/* =====================================================
   CRICKET PAY — Global Design System (Blue / White)
   ===================================================== */

:root {
  --ink:        #0f172a;
  --muted:      #64748b;
  --paper:      #f0f5ff;
  --line:       #dde3f0;
  --brand:      #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-mid:  #2563eb;
  --brand-light:#eff6ff;
  --accent:     #60a5fa;
  --gold:       #f59e0b;
  --rose:       #ef4444;
  --emerald:    #10b981;
  --sky:        #0ea5e9;
  --shadow:     0 18px 45px rgba(15,23,42,.11);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%,   rgba(29,78,216,.07), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(96,165,250,.09), transparent 50%),
    #f0f5ff;
  font-family: "Space Grotesk", sans-serif;
}

h1,h2,h3,h4,.app-logo,.metric-value { font-family: "Outfit", sans-serif; }
button,input,select,textarea { font: inherit; }


/* ─────────────────────────────────────────
   LANDING PAGE  (first-visit welcome screen)
   ───────────────────────────────────────── */

.lp {
  min-height: 100vh;
  background: #060d1f;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
}

.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 36px;
  background: rgba(6,13,31,.82); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.lp-nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.1rem; color: #fff;
}
.lp-nav-brand i { color: #60a5fa; font-size: 1.25rem; }
.lp-nav-actions { display: flex; gap: 10px; }
.lp-btn-ghost-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-weight: 700; font-size: .88rem; cursor: pointer; transition: .18s;
}
.lp-btn-ghost-sm:hover { background: rgba(255,255,255,.14); }
.lp-btn-lime-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  background: #3b82f6; border: 0;
  color: #fff; font-weight: 800; font-size: .88rem; cursor: pointer; transition: .18s;
}
.lp-btn-lime-sm:hover { background: #2563eb; transform: translateY(-1px); }

.lp-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 36px 70px; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 75% 50%, rgba(29,78,216,.22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(96,165,250,.08), transparent 60%),
    linear-gradient(160deg, #0c1535 0%, #060d1f 55%, #091225 100%);
}

.lp-pitch-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lp-pitch-oval {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 780px; height: 740px;
  border: 1.5px solid rgba(96,165,250,.1); border-radius: 50%;
}
.lp-pitch-inner-oval {
  position: absolute; right: 130px; top: 50%; transform: translateY(-50%);
  width: 460px; height: 440px;
  border: 1px dashed rgba(96,165,250,.07); border-radius: 50%;
}
.lp-pitch-strip {
  position: absolute; right: 350px; top: 50%; transform: translateY(-50%);
  width: 72px; height: 240px;
  background: rgba(96,165,250,.04);
  border: 1px solid rgba(96,165,250,.12); border-radius: 4px;
}
.lp-pitch-crease { position: absolute; right: 338px; width: 96px; height: 2px; background: rgba(96,165,250,.18); }
.lp-crease-top { top: calc(50% - 115px); }
.lp-crease-bottom { bottom: calc(50% - 115px); }

.lp-wickets { position: absolute; right: 374px; display: flex; gap: 5px; align-items: flex-end; }
.lp-wickets span { display: block; width: 4px; height: 24px; background: rgba(96,165,250,.3); border-radius: 2px 2px 0 0; }
.lp-wickets-top { top: calc(50% - 136px); }
.lp-wickets-bottom { bottom: calc(50% - 136px); transform: rotate(180deg); }

.lp-cricket-ball {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #e85d75, #7a1228);
  box-shadow: inset -3px -3px 8px rgba(0,0,0,.35), 0 0 22px rgba(232,93,117,.2);
}
.lp-cricket-ball::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  border-top: 1.5px solid rgba(255,255,255,.18); transform: rotate(-40deg);
}
.lp-ball-a { width: 30px; height: 30px; top: 20%; right: 18%; animation: lp-float 7s ease-in-out infinite; }
.lp-ball-b { width: 18px; height: 18px; top: 65%; right: 42%; opacity: .55; animation: lp-float 9s ease-in-out infinite reverse; }
.lp-ball-c { width: 12px; height: 12px; top: 32%; right: 56%; opacity: .35; animation: lp-float 11s ease-in-out 2s infinite; }
@keyframes lp-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-22px) rotate(200deg); }
}

.lp-ground-dots { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 780px; height: 740px; pointer-events: none; }
.lp-ground-dots span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: rgba(96,165,250,.2); }
.lp-ground-dots span:nth-child(1)  { top: 14%; left: 50%; }
.lp-ground-dots span:nth-child(2)  { top: 26%; left: 22%; }
.lp-ground-dots span:nth-child(3)  { top: 26%; left: 78%; }
.lp-ground-dots span:nth-child(4)  { top: 50%; left: 10%; }
.lp-ground-dots span:nth-child(5)  { top: 50%; left: 90%; }
.lp-ground-dots span:nth-child(6)  { top: 74%; left: 22%; }
.lp-ground-dots span:nth-child(7)  { top: 74%; left: 78%; }
.lp-ground-dots span:nth-child(8)  { top: 86%; left: 50%; }
.lp-ground-dots span:nth-child(9)  { top: 38%; left: 6%; }
.lp-ground-dots span:nth-child(10) { top: 62%; left: 94%; }

.lp-hero-inner {
  position: relative; z-index: 1; max-width: 1180px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center;
}
.lp-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px;
  background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.25);
  color: #93c5fd; font-weight: 700; font-size: .82rem; margin-bottom: 22px;
}
.lp-hero-h1 {
  font-family: "Outfit", sans-serif; font-weight: 800;
  font-size: clamp(2.5rem, 5.5vw, 4rem); line-height: 1.08;
  margin: 0 0 20px; color: #fff;
}
.lp-accent { color: #60a5fa; }
.lp-hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.65); margin: 0 0 32px; max-width: 520px; line-height: 1.65; }
.lp-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.lp-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border: 0; border-radius: 10px;
  background: #3b82f6; color: #fff;
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1rem;
  cursor: pointer; transition: .2s;
  box-shadow: 0 8px 28px rgba(59,130,246,.35);
}
.lp-btn-primary:hover { background: #2563eb; transform: translateY(-3px); box-shadow: 0 14px 36px rgba(59,130,246,.45); }
.lp-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.2);
  color: #fff; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1rem;
  cursor: pointer; transition: .2s; backdrop-filter: blur(8px);
}
.lp-btn-secondary:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.lp-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px;
  background: transparent; border: 1.5px solid rgba(255,255,255,.22);
  color: #fff; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1rem;
  cursor: pointer; transition: .2s;
}
.lp-btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.38); }
.lp-btn-lg { padding: 16px 32px !important; font-size: 1.05rem !important; }

.lp-hero-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 99px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55); font-size: .8rem; font-weight: 600;
}
.lp-pill i { color: #60a5fa; }
.lp-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.3); font-size: .78rem; font-weight: 600;
  animation: lp-bounce 2.2s ease-in-out infinite;
}
@keyframes lp-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Hero preview card */
.lp-hero-preview { position: relative; }
.lp-mockup-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 50px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); transition: transform .4s ease;
}
.lp-mockup-card:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.lp-mc-titlebar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #1a1a1a; }
.lp-mc-dot { width: 12px; height: 12px; border-radius: 50%; display: block; }
.lp-mc-url { flex: 1; text-align: center; padding-right: 38px; color: rgba(255,255,255,.3); font-size: .75rem; font-weight: 600; }
.lp-mc-body { padding: 16px; background: #f0f5ff; }
.lp-mc-team-row { display: flex; align-items: center; gap: 8px; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.05rem; color: #0f172a; margin-bottom: 14px; }
.lp-mc-active-badge { margin-left: auto; padding: 3px 9px; border-radius: 99px; background: #dbeafe; color: #1d4ed8; font-size: .7rem; font-weight: 800; }
.lp-mc-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.lp-mc-metric { padding: 10px; border-radius: 8px; font-size: .75rem; }
.lp-mc-metric i { display: block; margin-bottom: 5px; font-size: .95rem; }
.lp-mc-green { background: #dcfce7; } .lp-mc-green i { color: #16a34a; }
.lp-mc-amber { background: #fef3c7; } .lp-mc-amber i { color: #d97706; }
.lp-mc-dark  { background: #1e3a8a; } .lp-mc-dark  i { color: #93c5fd; }
.lp-mc-m-val { font-family: "Outfit", sans-serif; font-weight: 800; font-size: .88rem; color: #0f172a; }
.lp-mc-dark .lp-mc-m-val { color: #fff; }
.lp-mc-m-label { color: #64748b; font-size: .68rem; font-weight: 600; margin-top: 2px; }
.lp-mc-dark .lp-mc-m-label { color: #93c5fd; }
.lp-mc-prog-row { display: flex; justify-content: space-between; font-size: .76rem; font-weight: 700; color: #0f172a; margin-bottom: 5px; }
.lp-mc-prog-track { height: 7px; background: #dde3f0; border-radius: 99px; margin-bottom: 14px; overflow: hidden; }
.lp-mc-prog-fill { height: 100%; background: linear-gradient(90deg, #1d4ed8, #60a5fa); border-radius: 99px; }
.lp-mc-players { display: grid; gap: 6px; }
.lp-mc-player { display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: #fff; border-radius: 8px; }
.lp-av { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: .65rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.lp-pname { flex: 1; font-size: .8rem; font-weight: 700; color: #0f172a; }
.lp-tag-paid { padding: 2px 8px; border-radius: 99px; background: #dcfce7; color: #16a34a; font-size: .7rem; font-weight: 800; }
.lp-tag-due  { padding: 2px 8px; border-radius: 99px; background: #fef3c7; color: #d97706; font-size: .7rem; font-weight: 800; }

.lp-notif {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 10px;
  background: rgba(6,13,31,.9); border: 1px solid rgba(96,165,250,.2);
  color: #fff; font-size: .8rem; font-weight: 700;
  backdrop-filter: blur(14px); white-space: nowrap;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.lp-notif i { color: #60a5fa; }
.lp-notif-top    { top: -18px; right: -24px; animation: lp-float 6s ease-in-out infinite; }
.lp-notif-bottom { bottom: 36px; left: -28px; animation: lp-float 8s ease-in-out infinite reverse; }

/* Features */
.lp-features { padding: 90px 36px; background: #fff; color: #0f172a; }
.lp-wrap { max-width: 1160px; margin: 0 auto; }
.lp-section-eyebrow {
  display: inline-flex; padding: 5px 14px; border-radius: 99px;
  background: rgba(29,78,216,.08); color: #1d4ed8;
  font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 14px;
}
.lp-ey-dark { background: rgba(29,78,216,.08); color: #1d4ed8; }
.lp-section-h2 { font-family: "Outfit", sans-serif; font-weight: 800; font-size: clamp(1.9rem,4vw,2.9rem); margin: 0 0 12px; color: #0f172a; }
.lp-h2-dark { color: #0f172a; }
.lp-section-p { color: #64748b; font-size: 1rem; max-width: 560px; margin: 0 0 46px; line-height: 1.65; }
.lp-feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.lp-feat-card {
  padding: 26px 22px; border: 1px solid #e2e8f0; border-radius: 12px;
  background: #f8faff; transition: .22s ease;
}
.lp-feat-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(29,78,216,.1); border-color: rgba(29,78,216,.2); }
.lp-feat-icon { width: 50px; height: 50px; border-radius: 11px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.lp-fi-teal  { background: rgba(29,78,216,.1); color: #1d4ed8; }
.lp-fi-amber { background: rgba(245,158,11,.12); color: #d97706; }
.lp-fi-blue  { background: rgba(14,165,233,.1); color: #0284c7; }
.lp-fi-rose  { background: rgba(239,68,68,.09); color: #dc2626; }
.lp-fi-lime  { background: rgba(16,185,129,.1); color: #059669; }
.lp-feat-card h3 { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.05rem; margin: 0 0 8px; color: #0f172a; }
.lp-feat-card p  { margin: 0; font-size: .9rem; color: #64748b; line-height: 1.55; }

/* How it works */
.lp-how { padding: 90px 36px; background: #f0f5ff; color: #0f172a; }
.lp-steps {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 14px; align-items: center; margin-top: 44px;
}
.lp-step {
  padding: 28px 20px; border: 1px solid #dde3f0; border-radius: 14px;
  background: #fff; text-align: center;
  box-shadow: 0 4px 18px rgba(29,78,216,.06); transition: .22s;
}
.lp-step:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(29,78,216,.1); }
.lp-step-n { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 2.1rem; color: rgba(29,78,216,.16); margin-bottom: 10px; }
.lp-step-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(29,78,216,.1); color: #1d4ed8; display: grid; place-items: center; font-size: 1.25rem; margin: 0 auto 12px; }
.lp-step h4 { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1rem; margin: 0 0 8px; color: #0f172a; }
.lp-step p  { margin: 0; font-size: .86rem; color: #64748b; line-height: 1.5; }
.lp-step-conn { color: #3b82f6; font-size: 1.5rem; text-align: center; filter: drop-shadow(0 0 8px rgba(59,130,246,.4)); }

/* CTA Section */
.lp-cta { padding: 90px 36px; background: #060d1f; }
.lp-cta-box {
  position: relative; max-width: 720px; margin: 0 auto; text-align: center;
  padding: 56px 44px; border: 1px solid rgba(96,165,250,.14);
  border-radius: 20px; overflow: hidden;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(29,78,216,.2), transparent 70%), rgba(10,16,40,.8);
}
.lp-cta-bg-art { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lp-cta-oval { position: absolute; right: -30px; top: 50%; transform: translateY(-50%); width: 260px; height: 250px; border: 1.5px solid rgba(96,165,250,.08); border-radius: 50%; }
.lp-cta-strip { position: absolute; right: 106px; top: 50%; transform: translateY(-50%); width: 22px; height: 80px; border: 1px solid rgba(96,165,250,.1); border-radius: 3px; }
.lp-cta-ball { position: absolute; top: 18%; right: 14%; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 38% 38%, #e85d75, #7a1228); opacity: .4; animation: lp-float 7s ease-in-out infinite; }
.lp-cta-content { position: relative; z-index: 1; }
.lp-cta-content h2 { font-family: "Outfit", sans-serif; font-weight: 800; font-size: clamp(1.7rem,3.5vw,2.6rem); margin: 0 0 12px; color: #fff; }
.lp-cta-content p  { color: rgba(255,255,255,.6); margin: 0 0 32px; font-size: 1.05rem; }
.lp-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.lp-footer { padding: 28px 36px; background: #040a14; border-top: 1px solid rgba(255,255,255,.05); }
.lp-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-footer-copy { color: rgba(255,255,255,.28); font-size: .82rem; margin: 0; }


/* ─────────────────────────────────────────
   HOME SCREEN  (public player view)
   ───────────────────────────────────────── */

.home-screen {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 40% at 10% 60%, rgba(124,58,237,.07), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(219,39,119,.06), transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(8,145,178,.06), transparent 55%),
    #eef2ff;
}

/* Header */
.hs-header {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  padding: 28px 36px 56px;
}
.hs-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1200px; margin: 0 auto; }
.hs-brand { display: flex; align-items: center; gap: 16px; }
.hs-logo-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; font-size: 1.5rem; color: #fbbf24;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.hs-team-name { font-family: "Outfit", sans-serif; font-weight: 800; font-size: clamp(1.4rem,3vw,2rem); color: #fff; margin: 0; }
.hs-month-label { color: rgba(255,255,255,.7); font-size: .9rem; margin-top: 4px; }
.hs-header-right { display: flex; align-items: center; gap: 20px; }
.hs-hstats { display: flex; align-items: center; gap: 14px; }
.hs-hstat { text-align: center; }
.hs-hstat-val { display: block; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.5rem; color: #fff; }
.hs-hstat-amber { color: #fbbf24; }
.hs-hstat-green { color: #86efac; }
.hs-hstat-lbl { font-size: .75rem; color: rgba(255,255,255,.6); font-weight: 600; }
.hs-hstat-sep { width: 1px; height: 32px; background: rgba(255,255,255,.2); }
.hs-admin-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 20px; border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 10px; background: rgba(255,255,255,.1);
  color: #fff; font-weight: 800; font-size: .9rem; cursor: pointer;
  transition: .2s; backdrop-filter: blur(8px);
}
.hs-admin-btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.hs-wave { position: absolute; bottom: 0; left: 0; right: 0; height: 60px; fill: #f0f5ff; }

/* Summary bar */
.hs-summary { margin-top: -2px; padding: 0 36px 8px; }
.hs-summary-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr;
  gap: 16px;
  background: #fff; border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(29,78,216,.12);
  border: 1px solid #dde3f0;
  margin-top: -36px; position: relative; z-index: 2;
}
.hs-sum-stat { display: flex; align-items: center; gap: 14px; }
.hs-sum-stat i { font-size: 1.5rem; color: #1d4ed8; }
.hs-sum-val { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.2rem; color: #0f172a; }
.hs-sum-amber { color: #d97706; }
.hs-sum-rose  { color: #dc2626; }
.hs-sum-lbl { font-size: .78rem; color: #64748b; font-weight: 600; margin-top: 2px; }
.hs-sum-arrow { font-size: .6rem; vertical-align: middle; opacity: .5; }
.hs-sum-clickable {
  border: 0; background: none; text-align: left; cursor: pointer;
  border-radius: 10px; padding: 6px 10px; margin: -6px -10px;
  transition: background .18s;
}
.hs-sum-clickable:hover { background: #fef2f2; }
.hs-sum-clickable:hover .hs-sum-lbl { color: #dc2626; }
.hs-sum-clickable:hover i { color: #dc2626; }
.hs-prog-wrap { border-left: 1px solid #dde3f0; padding-left: 24px; }
.hs-prog-head { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.hs-prog-track { height: 10px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.hs-prog-fill { height: 100%; background: linear-gradient(90deg, #1d4ed8, #60a5fa); border-radius: 99px; transition: width .8s ease; }

/* Creator info in header */
.hs-header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hs-creator { display: flex; align-items: center; gap: 5px; }
.hs-creator-by { font-size: .68rem; color: rgba(255,255,255,.45); font-weight: 600; }
.hs-creator-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 800; color: rgba(255,255,255,.75);
  text-decoration: none; transition: color .18s;
  padding: 3px 8px; border-radius: 99px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
}
.hs-creator-link:hover { color: #fff; background: rgba(255,255,255,.18); }
.hs-creator-link i { font-size: .65rem; color: #86efac; }

/* Expense drawer overlay */
.hs-drawer-overlay {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.hs-drawer-overlay.open { opacity: 1; pointer-events: all; }

/* Expense drawer panel */
.hs-drawer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1060;
  background: #fff; border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(15,23,42,.18);
  transform: translateY(100%); transition: transform .38s cubic-bezier(.32,1,.64,1);
  max-height: 82vh; display: flex; flex-direction: column;
}
.hs-drawer.open { transform: translateY(0); }
.hs-drawer-handle {
  width: 44px; height: 4px; border-radius: 99px;
  background: #dde3f0; margin: 14px auto 0; flex-shrink: 0;
}
.hs-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px 14px; flex-shrink: 0;
  border-bottom: 1px solid #f1f5f9;
}
.hs-drawer-title {
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.15rem;
  color: #0f172a; margin: 0;
}
.hs-drawer-title i { color: #1d4ed8; margin-right: 5px; }
.hs-drawer-subtitle { font-size: .8rem; color: #64748b; margin-top: 3px; }
.hs-drawer-head-right { display: flex; align-items: center; gap: 14px; }
.hs-drawer-total {
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.4rem; color: #dc2626;
}
.hs-drawer-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #e2e8f0;
  background: #f8faff; color: #64748b; font-size: .9rem;
  display: grid; place-items: center; cursor: pointer; transition: .18s;
}
.hs-drawer-close:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.hs-drawer-body { overflow-y: auto; padding: 16px 24px 32px; flex: 1; }

@media (min-width: 768px) {
  .hs-drawer {
    left: auto; right: 0; top: 0; bottom: 0;
    width: min(480px, 100vw); border-radius: 0;
    max-height: 100vh;
    border-left: 1px solid #e2e8f0;
    transform: translateX(100%);
  }
  .hs-drawer.open { transform: translateX(0); }
  .hs-drawer-handle { display: none; }
}

/* Controls */
.hs-controls {
  max-width: 1200px; margin: 24px auto 0; padding: 0 36px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.hs-search-wrap {
  flex: 1; min-width: 220px; position: relative;
}
.hs-search-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.hs-search {
  width: 100%; padding: 11px 14px 11px 40px;
  border: 1.5px solid #dde3f0; border-radius: 10px;
  background: #fff; font-size: .95rem; outline: none; transition: .2s;
  color: #0f172a;
}
.hs-search:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.hs-tabs { display: flex; gap: 6px; background: #fff; padding: 5px; border-radius: 10px; border: 1.5px solid #dde3f0; }
.hs-tab {
  padding: 7px 16px; border-radius: 7px; border: 0;
  background: transparent; color: #64748b;
  font-weight: 700; font-size: .85rem; cursor: pointer; transition: .18s;
}
.hs-tab.active { background: #1d4ed8; color: #fff; box-shadow: 0 4px 12px rgba(29,78,216,.3); }
.hs-tab:not(.active):hover { background: #eff6ff; color: #1d4ed8; }

/* Player grid */
.hs-grid {
  max-width: 1200px; margin: 24px auto 48px; padding: 0 36px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Player Card */
.hs-player-card {
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(15,23,42,.08), inset 0 0 0 1px rgba(255,255,255,.5);
  overflow: hidden; cursor: default;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  animation: card-rise .55s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: var(--delay, 0s);
  position: relative;
}
.hs-player-card:hover {
  transform: translateY(-10px) scale(1.025);
  box-shadow: 0 28px 60px rgba(15,23,42,.16), inset 0 0 0 1px rgba(255,255,255,.7);
}
.hs-player-card[data-status="pending"]:hover {
  box-shadow: 0 28px 60px rgba(217,119,6,.28), inset 0 0 0 1px rgba(255,255,255,.7);
}
.hs-player-card[data-status="paid"]:hover {
  box-shadow: 0 28px 60px rgba(22,163,74,.22), inset 0 0 0 1px rgba(255,255,255,.7);
}
.hs-player-card[data-status="advance"]:hover {
  box-shadow: 0 28px 60px rgba(29,78,216,.24), inset 0 0 0 1px rgba(255,255,255,.7);
}
@keyframes card-rise {
  from { opacity: 0; transform: translateY(32px) scale(.94); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Card top color band */
.hs-card-band {
  height: 108px;
  background: linear-gradient(135deg, var(--band-from), var(--band-to));
  position: relative;
  overflow: hidden;
}
.hs-card-band::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 1px, transparent 1px 14px);
}

/* Avatar section */
.hs-card-top {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 20px 10px;
  margin-top: -56px;
  position: relative; z-index: 2;
}
.hs-card-avatar {
  width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 2.2rem; color: #fff;
  border: 5px solid #fff;
  box-shadow: 0 10px 32px rgba(0,0,0,.24), 0 0 0 6px rgba(255,255,255,.35);
  position: relative;
}
.hs-card-avatar-ring {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.7);
  animation: hs-spin 16s linear infinite;
}
@keyframes hs-spin { to { transform: rotate(360deg); } }

/* Card body */
.hs-card-body { padding: 8px 22px 22px; text-align: center; }
.hs-card-name { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.08rem; color: #0f172a; margin-bottom: 4px; }
/* Phone icon-only in player cards */
.hs-card-meta-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.hs-card-phone-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: #f1f5f9; border: 1.5px solid #e2e8f0;
  display: grid; place-items: center;
  color: #1d4ed8; font-size: .82rem;
  text-decoration: none; transition: background .18s, border-color .18s, transform .18s;
  flex-shrink: 0;
}
.hs-card-phone-icon:hover {
  background: #dbeafe; border-color: #93c5fd;
  transform: scale(1.12);
}

/* Dates */
.hs-card-dates {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  margin-bottom: 12px;
}
.hs-card-date-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; font-weight: 600; color: #64748b;
}
.hs-card-date-item i { font-size: .72rem; color: #94a3b8; }
.hs-dob-icon { font-size: .82rem; line-height: 1; }
.hs-birthday { color: #d97706; font-weight: 800; }

/* Amount section */
.hs-card-amount {
  padding: 14px 16px; border-radius: 12px; text-align: center;
}
.hs-card-amount.pending { background: #fef9ec; border: 1.5px solid #fde68a; }
.hs-card-amount.paid    { background: #f0fdf4; border: 1.5px solid #bbf7d0; }
.hs-card-amount.advance { background: #eff6ff; border: 1.5px solid #bfdbfe; }
.hs-amount-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.hs-amount-label.pending { color: #d97706; }
.hs-amount-label.paid    { color: #16a34a; }
.hs-amount-label.advance { color: #1d4ed8; }
.hs-amount-val { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.5rem; }
.hs-amount-val.pending { color: #d97706; }
.hs-amount-val.paid    { color: #16a34a; }
.hs-amount-val.advance { color: #1d4ed8; }
.hs-paid-icon { font-size: 1.5rem; color: #16a34a; }

/* Expense drawer rows */
.hs-exp-empty {
  padding: 32px 20px; text-align: center; color: #94a3b8;
  font-size: .9rem; font-weight: 600;
}
.hs-exp-empty i { display: block; font-size: 2rem; margin-bottom: 8px; color: #cbd5e1; }
.hs-exp-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid #f1f5f9;
}
.hs-exp-row:last-child { border-bottom: 0; }
.hs-exp-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: #eff6ff; color: #1d4ed8;
  display: grid; place-items: center; font-size: 1rem;
}
.hs-exp-info { flex: 1; min-width: 0; }
.hs-exp-cat { font-weight: 800; font-size: .9rem; color: #0f172a; }
.hs-exp-desc { font-size: .8rem; color: #64748b; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-exp-right { text-align: right; flex-shrink: 0; }
.hs-exp-amount {
  font-family: "Outfit", sans-serif; font-weight: 800;
  font-size: .95rem; color: #dc2626;
}
.hs-exp-meta { font-size: .72rem; color: #94a3b8; margin-top: 2px; }

/* Empty state */
.hs-empty-state {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: #94a3b8;
}
.hs-empty-state i { font-size: 3rem; margin-bottom: 12px; display: block; }
.hs-empty-state h3 { font-family: "Outfit", sans-serif; font-size: 1.2rem; font-weight: 800; color: #64748b; margin: 0 0 6px; }
.hs-empty-state p { margin: 0; font-size: .9rem; }


/* ─────────────────────────────────────────
   ADMIN LOGIN SCREEN
   ───────────────────────────────────────── */

.login-screen {
  min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
  position: relative; overflow: hidden;
}
.ls-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ls-orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,.2), transparent 70%);
  filter: blur(40px);
}
.ls-orb-1 { width: 500px; height: 500px; top: -100px; left: -100px; }
.ls-orb-2 { width: 400px; height: 400px; bottom: -80px; right: -80px; background: radial-gradient(circle, rgba(29,78,216,.3), transparent 70%); }
.ls-orb-3 { width: 300px; height: 300px; top: 50%; left: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(255,255,255,.04), transparent 70%); }

.ls-wrap { position: relative; z-index: 1; width: min(420px, 94vw); padding: 20px; }
.ls-card {
  background: rgba(255,255,255,.97); border-radius: 20px; padding: 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
}
.ls-back {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; color: #64748b;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  padding: 0; margin-bottom: 24px; transition: .18s;
}
.ls-back:hover { color: #1d4ed8; }
.ls-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  display: grid; place-items: center; font-size: 1.6rem; color: #fff;
  margin: 0 auto 18px;
  box-shadow: 0 12px 28px rgba(29,78,216,.35);
}
.ls-title { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.6rem; text-align: center; margin: 0 0 6px; color: #0f172a; }
.ls-sub   { text-align: center; color: #64748b; font-size: .9rem; margin: 0 0 28px; }
.ls-form  { display: grid; gap: 16px; }
.ls-field label { display: block; font-weight: 700; font-size: .85rem; color: #374151; margin-bottom: 6px; }
.ls-input-wrap { position: relative; }
.ls-input-wrap i.bi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.ls-input {
  width: 100%; padding: 13px 14px 13px 42px;
  border: 1.5px solid #dde3f0; border-radius: 10px;
  font-size: .95rem; color: #0f172a; outline: none; transition: .2s;
  background: #fff;
}
.ls-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.ls-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: #94a3b8; cursor: pointer; padding: 4px;
  transition: .18s;
}
.ls-eye:hover { color: #1d4ed8; }
.ls-error {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-radius: 8px;
  background: #fef2f2; border: 1px solid #fecaca;
  color: #dc2626; font-size: .86rem; font-weight: 700;
}
.ls-submit {
  width: 100%; padding: 14px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff; font-family: "Outfit", sans-serif; font-weight: 800;
  font-size: 1rem; cursor: pointer; transition: .2s;
  box-shadow: 0 8px 24px rgba(29,78,216,.35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ls-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(29,78,216,.45); }
.ls-hint { text-align: center; color: #94a3b8; font-size: .82rem; margin-top: 14px; }
.ls-hint code { color: #1d4ed8; font-weight: 700; background: #eff6ff; padding: 1px 6px; border-radius: 4px; }


/* ─────────────────────────────────────────
   ADMIN SHELL  (Blue/White)
   ───────────────────────────────────────── */

.app-shell { min-height: 100vh; display: flex; }
.side-nav {
  width: 252px; position: fixed; inset: 0 auto 0 0;
  padding: 20px 14px; display: flex; flex-direction: column;
  background: #0f172a;
  border-right: 1px solid rgba(255,255,255,.06);
}
.nav-spacer { flex: 1; }
.app-logo {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 10px 22px;
  font-weight: 800; line-height: 1.1; color: #fff;
  font-family: "Outfit", sans-serif;
}
.app-logo i { color: #60a5fa; font-size: 1.45rem; }
.nav-link {
  width: 100%; display: flex; align-items: center; gap: 12px;
  margin: 3px 0; padding: 11px 12px; border: 0; border-radius: 8px;
  background: transparent; color: rgba(255,255,255,.5);
  text-align: left; font-weight: 700; transition: .18s ease;
}
.nav-link.active, .nav-link:hover {
  background: rgba(59,130,246,.2); color: #fff;
  transform: translateX(2px);
}
.nav-link.active { background: #1d4ed8; }
.nav-link-logout {
  color: rgba(255,255,255,.4);
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 4px; padding-top: 14px;
}
.nav-link-logout:hover { background: rgba(239,68,68,.15); color: #fca5a5; }

.main-content { width: 100%; margin-left: 252px; padding: 22px 28px 72px; }

.admin-footer {
  margin-top: 40px; padding: 16px 0 4px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; color: var(--muted); font-weight: 500;
}
.admin-footer strong { color: var(--ink); font-weight: 700; }
.admin-footer-sep { color: var(--line); }
.top-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 22px;
}
.team-select {
  border: 0; border-radius: 8px; padding: 11px 38px 11px 13px;
  background: #1e3a8a; color: white;
  font-family: "Outfit", sans-serif; font-weight: 800;
}
.subtitle { color: var(--muted); margin-top: 5px; }

.page-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.page-head h2 { margin: 0; font-weight: 800; }

/* Metrics */
.metric-grid { display: grid; grid-template-columns: repeat(5,minmax(150px,1fr)); gap: 14px; margin: 16px 0; }
.metric-card, .content-card, .item-card { border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.92); box-shadow: 0 6px 24px rgba(15,23,42,.07); }
.metric-card { padding: 18px; min-height: 132px; }
.metric-card i { font-size: 1.5rem; color: var(--brand); }
.metric-label { margin-top: 12px; color: var(--muted); font-weight: 700; }
.metric-value { font-size: clamp(1.55rem,4vw,2.25rem); font-weight: 800; }
.metric-card.balance { background: #0f172a; color: white; }
.metric-card.balance .metric-label, .metric-card.balance i { color: #93c5fd; }

/* Quick actions */
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 16px 0; }
.quick-action { border: 0; border-radius: 8px; padding: 16px; background: #fff; box-shadow: 0 6px 20px rgba(15,23,42,.07); font-weight: 800; }
.quick-action i { display: block; font-size: 1.5rem; color: var(--brand); }

/* Layout helpers */
.two-col   { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.home-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 16px; }
.admin-overview { display: grid; grid-template-columns: repeat(3,minmax(170px,1fr)); gap: 14px; margin-bottom: 16px; }

/* Cards */
.content-card { padding: 18px; }
.content-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-title h3 { margin-bottom: 2px; }
.stack { display: grid; gap: 12px; }
.item-card { padding: 14px; transition: .16s ease; }
.item-card:hover { transform: translateY(-2px); }
.item-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.muted  { color: var(--muted); }
.amount { font-family: "Outfit", sans-serif; font-weight: 800; }

/* Status pills */
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 99px;
  font-weight: 800; font-size: .82rem;
  background: #dcfce7; color: #16a34a;
}
.status-pill.pending { background: #fef3c7; color: #d97706; }
.status-pill.partial { background: #dbeafe; color: #1d4ed8; }
.status-pill.advance { background: #dbeafe; color: #1d4ed8; }

/* Pending list */
.pending-list { display: grid; gap: 10px; }
.pending-row {
  min-height: 66px; display: grid;
  grid-template-columns: minmax(150px,1fr) auto auto 40px;
  gap: 10px; align-items: center; padding: 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.pending-row strong, .pending-row span { display: block; }
.pending-row span { color: var(--muted); font-size: .94rem; }
.pending-amount { min-width: 92px; font-family: "Outfit", sans-serif; font-weight: 800; text-align: right; }

/* Admin actions */
.admin-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.admin-tile {
  min-height: 96px; display: grid; place-items: center; gap: 8px;
  padding: 14px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-weight: 800; cursor: pointer; transition: .18s;
}
.admin-tile:hover { background: var(--brand-light); border-color: #bfdbfe; }
.admin-tile i { color: var(--brand); font-size: 1.45rem; }

/* Progress */
.collection-progress { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 800; }
.progress { height: 10px; margin-top: 8px; border-radius: 999px; background: #e2e8f0; }
.progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--accent)); }

/* Empty state */
.empty-state {
  padding: 28px 18px; border: 1px dashed var(--line); border-radius: 8px;
  background: #fff; text-align: center;
}
.empty-state i { color: var(--brand); font-size: 2rem; }
.empty-state h3 { margin: 8px 0 4px; }
.empty-state p  { margin: 0; color: var(--muted); }

/* Toolbar */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search-input, .form-control, .form-select { border-radius: 8px; border-color: var(--line); }
.btn { border-radius: 8px; font-weight: 800; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: white; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: white; }
.btn-soft  { background: #eff6ff; color: #1e3a8a; border: 0; }
.btn-icon  { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; }

/* Tables / charts */
.list-grid    { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.ledger-summary { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.timeline     { position: relative; display: grid; gap: 12px; }
.timeline-item { border-left: 3px solid var(--brand); padding-left: 12px; }
.table-wrap   { overflow-x: auto; }
.chart-box    { min-height: 260px; }

/* FAB */
.fab {
  position: fixed; right: 24px; bottom: 24px;
  width: 58px; height: 58px; border: 0; border-radius: 50%;
  background: var(--brand); color: white;
  box-shadow: 0 18px 35px rgba(29,78,216,.38); z-index: 1040; font-size: 1.35rem;
}
.fab-menu { position: fixed; right: 22px; bottom: 90px; z-index: 1040; display: none; gap: 8px; flex-direction: column; }
.fab-menu.open { display: flex; }
.fab-option { border: 0; border-radius: 8px; padding: 10px 14px; background: #0f172a; color: white; box-shadow: var(--shadow); font-weight: 800; }
.mobile-nav { display: none; }

/* Responsive — admin shell */
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .list-grid   { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .side-nav { display: none; }
  .main-content { margin-left: 0; padding: 16px 14px 92px; }
  .top-bar { align-items: flex-start; }
  .metric-grid, .quick-grid, .two-col, .list-grid, .ledger-summary, .admin-overview, .admin-actions { grid-template-columns: 1fr; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .pending-row { grid-template-columns: 1fr; align-items: start; }
  .pending-row .pending-amount { text-align: left; }
  .pending-row .btn { width: 100%; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .mobile-nav {
    position: fixed; display: grid; grid-template-columns: repeat(5,1fr);
    left: 0; right: 0; bottom: 0; z-index: 1030;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,.95); border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }
  .mobile-nav button { border: 0; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 800; }
  .mobile-nav i      { display: block; font-size: 1.2rem; }
  .mobile-nav button.active { color: var(--brand); }
  .fab       { bottom: 82px; right: 16px; }
  .fab-menu  { bottom: 150px; right: 14px; }
}

/* Responsive — home screen */
@media (max-width: 1100px) {
  .hs-summary-inner { grid-template-columns: 1fr 1fr 1fr; }
  .hs-prog-wrap { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid #dde3f0; padding-top: 16px; }
}
@media (max-width: 900px) {
  .hs-header-inner { flex-direction: column; align-items: flex-start; }
  .hs-header-right { width: 100%; justify-content: space-between; }
  .hs-summary-inner { grid-template-columns: 1fr 1fr; }
  .hs-prog-wrap { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid #dde3f0; padding-top: 16px; }
}
@media (max-width: 640px) {
  .hs-header  { padding: 20px 18px 50px; }
  .hs-summary { padding: 0 18px 8px; }
  .hs-summary-inner { grid-template-columns: 1fr 1fr; margin-top: -28px; }
  .hs-controls { padding: 0 18px; flex-direction: column; align-items: stretch; }
  .hs-grid    { padding: 0 18px; gap: 16px; grid-template-columns: 1fr; }
  .hs-hstats  { gap: 10px; }
  .hs-creator { display: none; }
  .lp-nav     { padding: 13px 18px; }
  .lp-hero    { padding: 80px 18px 60px; min-height: auto; }
  .lp-features, .lp-how, .lp-cta { padding: 64px 18px; }
  .lp-feat-grid { grid-template-columns: 1fr; }
  .lp-hero-inner { grid-template-columns: 1fr; }
  .lp-hero-preview { display: none; }
  .lp-hero-btns { flex-direction: column; }
  .lp-hero-btns button, .lp-cta-btns button { width: 100%; justify-content: center; }
  .lp-cta-btns { flex-direction: column; align-items: stretch; }
  .lp-cta-box  { padding: 38px 22px; }
  .lp-footer-inner { flex-direction: column; text-align: center; }
  .lp-steps { grid-template-columns: 1fr; max-width: 380px; margin: 44px auto 0; }
  .lp-step-conn { transform: rotate(90deg); }
  .lp-nav-brand span { display: none; }
}

/* ─────────────────────────────────────────
   ADMIN SIDEBAR — grouped labels
   ───────────────────────────────────────── */

.app-logo-name  { display: block; font-size: 1rem; }
.app-logo-badge {
  display: inline-block; padding: 1px 7px; border-radius: 99px;
  background: rgba(96,165,250,.2); color: #93c5fd;
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; margin-top: 2px;
}
.nav-group-label {
  padding: 14px 12px 5px;
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.25);
}


/* ─────────────────────────────────────────
   PLAYER CARDS — admin view
   ───────────────────────────────────────── */

.pcard-list { display: grid; gap: 12px; }

.pcard {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(15,23,42,.06);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.pcard:hover {
  box-shadow: 0 10px 32px rgba(29,78,216,.12);
  transform: translateY(-2px);
  border-color: #bfdbfe;
}

.pcard-left { flex-shrink: 0; }

.pcard-photo-wrap {
  position: relative;
  display: inline-block;
  border-radius: 50%;
}
.pcard-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2.5px solid transparent;
}
.pcard-photo-wrap.pending-ring::after  { border-color: #fbbf24; }
.pcard-photo-wrap.paid-ring::after     { border-color: #4ade80; }
.pcard-photo-wrap.advance-ring::after  { border-color: #60a5fa; }

.pcard-photo-img {
  width: 58px; height: 58px; border-radius: 50%;
  object-fit: cover; display: block;
}
.pcard-avatar-initials {
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Outfit", sans-serif; font-weight: 800;
  color: #fff;
}

.pcard-name {
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.05rem;
  color: #0f172a; margin-bottom: 5px;
}
.pcard-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.pcard-mobile {
  font-size: .82rem; color: #64748b;
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
  transition: color .18s;
}
.pcard-mobile:hover { color: #1d4ed8; }
.pcard-mobile i { color: #94a3b8; }

.pcard-role-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px;
  background: #eff6ff; border: 1px solid #bfdbfe;
  color: #1d4ed8; font-size: .76rem; font-weight: 800;
}

.pcard-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px;
  font-size: .8rem; font-weight: 800;
}
.pcard-status.pending { background: #fef3c7; color: #d97706; }
.pcard-status.paid    { background: #dcfce7; color: #16a34a; }
.pcard-status.advance { background: #dbeafe; color: #1d4ed8; }

.pcard-actions { display: flex; gap: 8px; flex-shrink: 0; }
.pcard-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: 8px; border: 0;
  font-size: .82rem; font-weight: 800; cursor: pointer; transition: .18s;
}
.pcard-btn-primary { background: var(--brand); color: #fff; }
.pcard-btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.pcard-btn-outline { background: #fff; color: #0f172a; border: 1.5px solid var(--line); }
.pcard-btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.pcard-btn-ghost { background: #f8faff; color: #64748b; border: 1.5px solid var(--line); }
.pcard-btn-ghost:hover { background: #eff6ff; color: var(--brand); }


/* ─────────────────────────────────────────
   PHOTO UPLOAD UI
   ───────────────────────────────────────── */

.photo-upload-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  background: #f8faff;
  border: 1.5px dashed #bfdbfe;
  border-radius: 12px;
  margin-bottom: 4px;
}
.photo-upload-preview {
  position: relative;
  width: 84px; height: 84px; flex-shrink: 0;
}
.photo-upload-preview img,
.photo-upload-preview > div {
  width: 84px; height: 84px;
  border-radius: 50%; object-fit: cover; display: block;
}
#photoInitialsDiv {
  display: grid; place-items: center;
  font-family: "Outfit", sans-serif; font-weight: 800;
  font-size: 1.6rem; color: #fff; border-radius: 50%;
}
.photo-upload-cam {
  position: absolute; bottom: 0; right: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand);
  display: grid; place-items: center;
  color: #fff; font-size: .75rem; cursor: pointer;
  box-shadow: 0 2px 8px rgba(29,78,216,.4);
  transition: .18s;
}
.photo-upload-cam:hover { background: var(--brand-dark); transform: scale(1.1); }

/* Ledger header */
.ledger-header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: #f0f5ff;
  border-radius: 10px; margin-bottom: 18px;
}
.ledger-avatar img, .ledger-avatar .pcard-avatar-initials { border-radius: 50%; }


/* ─────────────────────────────────────────
   HOME SCREEN PLAYER CARDS — photo support
   ───────────────────────────────────────── */

.hs-card-avatar img {
  width: 112px; height: 112px;
  border-radius: 50%; object-fit: cover; display: block;
  border: 5px solid #fff;
  box-shadow: 0 10px 32px rgba(0,0,0,.24), 0 0 0 6px rgba(255,255,255,.35);
}
.hs-card-role {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px; margin: 6px 0 8px;
  background: rgba(29,78,216,.08); border: 1px solid rgba(29,78,216,.15);
  color: #1d4ed8; font-size: .72rem; font-weight: 800;
}
.hs-card-role i { font-size: .65rem; }

/* Mobile — pcard stacks */
@media (max-width: 640px) {
  .pcard { grid-template-columns: auto 1fr; }
  .pcard-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
  .pcard-btn { flex: 1; justify-content: center; }
}
