/* ============================================================
   ORYX Football Academy - Premium Parent App
   Design tokens, layout shell, and screen styles
   ============================================================ */

:root {
  /* Brand — Gold (from new shield logo). Variable names kept for compat. */
  --oryx-green:        #C8962A;  /* mid gold — hover/secondary */
  --oryx-green-bright: #E2AF33;  /* main gold — exact logo color */
  --oryx-green-dim:    #8B6A1F;  /* deep gold — gradient base */
  --oryx-gold:         #E2AF33;  /* alias for new code */
  --oryx-gold-bright:  #E2AF33;
  --oryx-gold-dim:     #8B6A1F;
  --oryx-red:          #dc2626;
  --oryx-red-bright:   #ef4444;

  /* Surfaces */
  --bg-0:  #000000;
  --bg-1:  #0a0a0b;
  --bg-2:  #111114;
  --bg-3:  #18181d;
  --bg-4:  #1f1f25;

  /* Borders */
  --border-1: rgba(255,255,255,0.06);
  --border-2: rgba(255,255,255,0.10);
  --border-glow: rgba(226,175,51,0.40);

  /* Text */
  --text-1: #ffffff;
  --text-2: #d4d4d8;
  --text-3: #a1a1aa;
  --text-4: #71717a;
  --text-5: #52525b;

  /* Status — keep semantic green for "present/paid" success indicators (still readable) */
  --status-present: #E2AF33;
  --status-absent:  #ef4444;
  --status-late:    #f59e0b;
  --status-paid:    #E2AF33;
  --status-pending: #f59e0b;

  /* Effects — glow uses gold to match new brand */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.40), 0 0 0 1px var(--border-1);
  --shadow-glow:  0 0 32px rgba(226,175,51,0.20);
  --shadow-glow-red: 0 0 32px rgba(239,68,68,0.18);

  /* Layout */
  --phone-w: 390px;
  --phone-h: 820px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ============================================================
   DESKTOP STAGE - shows phone in center for desktop preview
   ============================================================ */
.stage {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(226,175,51,0.08), transparent 60%),
    radial-gradient(800px 400px at 80% 100%, rgba(220,38,38,0.06), transparent 60%),
    var(--bg-0);
  position: relative;
}

.stage::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

/* Phone frame for desktop preview */
.phone-frame {
  position: relative;
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: 56px;
  background: linear-gradient(180deg, #1a1a1f, #0a0a0b);
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.04),
    0 30px 60px -10px rgba(0,0,0,0.7),
    0 0 100px rgba(226,175,51,0.10);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 44px;
  background: var(--bg-1);
  overflow: hidden;
  position: relative;
}

/* Mobile native rendering: full screen on real mobile devices */
@media (max-width: 480px) {
  .stage { padding: 0; min-height: 100dvh; }
  .phone-frame {
    width: 100%; height: 100dvh;
    border-radius: 0; padding: 0;
    box-shadow: none;
    background: var(--bg-1);
  }
  .phone-screen { border-radius: 0; }
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: var(--bg-1);
  position: relative;
}

.app-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 100px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.status-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.status-bar .icons { display: flex; gap: 6px; align-items: center; font-size: 13px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 16px;
  flex-shrink: 0;
}
.topbar .icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bg-3);
  color: var(--text-2);
  font-size: 16px;
  border: 1px solid var(--border-1);
  position: relative;
  transition: all .2s;
}
.topbar .icon-btn:hover { background: var(--bg-4); border-color: var(--border-2); }
.topbar .icon-btn .dot {
  position: absolute; top: 9px; right: 10px;
  width: 8px; height: 8px;
  background: var(--oryx-green-bright);
  border: 2px solid var(--bg-3);
  border-radius: 50%;
}
.topbar-logo {
  width: 42px; height: 42px;
  background: center/contain no-repeat;
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
.splash {
  width: 100%; height: 100%;
  position: relative;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 60%, #000 100%),
    url('/static/stadium-bg.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
  overflow: hidden;
}

.splash::before {
  content: '';
  position: absolute;
  top: -20%; left: -20%; right: -20%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(226,175,51,0.18), transparent 65%);
  pointer-events: none;
}

.splash-logo {
  display: block;
  width: 220px; height: 220px;
  margin: 0 auto 32px;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(226,175,51,0.35)) drop-shadow(0 0 24px rgba(0,0,0,0.5));
  animation: float 4s ease-in-out infinite;
  position: relative; z-index: 2;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

.splash-welcome {
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 8px;
  position: relative; z-index: 2;
}

.splash-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-1);
  margin-bottom: 6px;
  position: relative; z-index: 2;
}

.splash-subtitle {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 32px;
  position: relative; z-index: 2;
}

.splash-tagline {
  font-size: 14px;
  color: var(--oryx-green-bright);
  font-style: italic;
  font-weight: 500;
  margin-bottom: 40px;
  position: relative; z-index: 2;
}

.splash-actions {
  width: 100%; max-width: 320px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; z-index: 2;
}

.splash-flag {
  position: absolute;
  bottom: 24px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 4px;
  z-index: 2;
}
.splash-flag span { width: 28px; height: 4px; border-radius: 2px; }
.splash-flag .g { background: var(--oryx-green-bright); }
.splash-flag .w { background: #fff; }
.splash-flag .r { background: var(--oryx-red-bright); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  letter-spacing: -0.01em;
  transition: all .2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--oryx-green-bright), var(--oryx-green));
  color: #fff;
  box-shadow:
    0 8px 24px rgba(22,163,74,0.32),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(22,163,74,0.42), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-1);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); }

.btn-danger {
  background: linear-gradient(180deg, var(--oryx-red-bright), var(--oryx-red));
  color: #fff;
  box-shadow:
    0 8px 24px rgba(220,38,38,0.32),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-danger:hover { transform: translateY(-1px); }

/* ============================================================
   HOME SCREEN
   ============================================================ */
.greeting { padding: 0 20px 20px; }
.greeting .hi {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.greeting .name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.greeting .name .wave { font-size: 26px; animation: wave 2s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave {
  0%,60%,100% { transform: rotate(0); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}
.greeting .sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* Player highlight card with photo */
.hero-card {
  margin: 0 20px 16px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(226,175,51,0.20) 0%, rgba(226,175,51,0.05) 40%, transparent 70%),
    var(--bg-2);
  border: 1px solid var(--border-2);
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  padding: 20px;
}
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(226,175,51,0.12), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(220,38,38,0.06), transparent 50%);
  pointer-events: none;
}
.hero-info { flex: 1; position: relative; z-index: 2; display: flex; flex-direction: column; }
.hero-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.hero-meta { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.hero-status {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  background: rgba(226,175,51,0.15);
  border: 1px solid rgba(226,175,51,0.35);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  color: var(--oryx-green-bright);
  align-self: flex-start;
}
.hero-status::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--oryx-green-bright);
  box-shadow: 0 0 8px var(--oryx-green-bright);
}
.hero-next {
  margin-top: auto; padding-top: 16px;
}
.hero-next .label { font-size: 11px; color: var(--text-4); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.hero-next .when { font-size: 14px; font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.hero-next .when i { color: var(--oryx-green-bright); font-size: 13px; }

.hero-photo {
  width: 130px; height: auto;
  position: relative; z-index: 2;
  align-self: stretch;
  background: url('/static/player-yousef.png') center/cover no-repeat;
  margin: -20px -20px -20px 8px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 25%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 25%);
}

/* Phase 36 — when hero-photo also carries .av-frame we override the
   gradient-strip style and render a clean round "AI avatar" portrait. */
.hero-photo.av-frame {
  width: 132px; height: 132px;
  margin: 0 4px 0 8px;
  align-self: center;
  border-radius: 50%;
  mask-image: none;
  -webkit-mask-image: none;
  background-color: #0e0e10;
  background-image:
    radial-gradient(ellipse at center top, #1a1a1f 0%, #0e0e10 65%, #050507 100%);
}
.hero-photo.av-frame.has-photo {
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
}
@media (min-width: 480px) {
  .hero-photo.av-frame { width: 168px; height: 168px; }
}

/* Stat tiles */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 16px;
}
.stat-tile {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: all .2s;
  cursor: pointer;
}
.stat-tile:hover { border-color: var(--border-2); transform: translateY(-1px); }
.stat-tile .tile-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.stat-tile .tile-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-tile .tile-sub { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.stat-tile .tile-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 12px;
}
.stat-tile.green .tile-icon { background: rgba(226,175,51,0.15); color: var(--oryx-green-bright); }
.stat-tile.red   .tile-icon { background: rgba(239,68,68,0.15); color: var(--oryx-red-bright); }
.stat-tile.amber .tile-icon { background: rgba(245,158,11,0.15); color: #fbbf24; }
.stat-tile.blue  .tile-icon { background: rgba(59,130,246,0.15); color: #60a5fa; }
.stat-tile .tile-trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  color: var(--oryx-green-bright);
  margin-top: 4px;
}

/* Coach note card */
.note-card {
  margin: 0 20px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex; gap: 12px;
}
.note-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-3) center/cover no-repeat;
  flex-shrink: 0;
  border: 1px solid var(--border-2);
}
.note-body { flex: 1; min-width: 0; }
.note-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--oryx-green-bright);
  margin-bottom: 4px;
}
.note-text { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.note-by   { font-size: 11px; color: var(--text-4); margin-top: 6px; }
/* Batch C item 3a — empty state when no coach note has been sent yet */
.note-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-4);
  font-size: 18px;
  background: var(--bg-3);
}
.note-card-empty .note-text { font-style: italic; }

/* Section headers */
.section-head {
  padding: 8px 20px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.section-head a { font-size: 12px; color: var(--oryx-green-bright); font-weight: 600; }

/* Quick links horizontal */
.quick-links {
  display: flex; gap: 10px;
  padding: 0 20px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-links::-webkit-scrollbar { display: none; }
.quick-link {
  flex-shrink: 0;
  min-width: 110px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: left;
  transition: all .2s;
}
.quick-link:hover { background: var(--bg-3); border-color: var(--border-2); }
.quick-link i { font-size: 18px; color: var(--oryx-green-bright); margin-bottom: 10px; display: block; }
.quick-link .ql-title { font-size: 13px; font-weight: 600; }
.quick-link .ql-sub { font-size: 11px; color: var(--text-4); margin-top: 2px; }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.tabbar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-1);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  z-index: 50;
}
.tab {
  flex: 1; max-width: 80px;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 12px;
  color: var(--text-4);
  transition: color .2s;
  position: relative;
}
.tab i { font-size: 18px; }
.tab span { font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }
.tab.active { color: var(--oryx-green-bright); }
.tab.active::before {
  content: '';
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 2px;
  background: var(--oryx-green-bright);
  box-shadow: 0 0 12px var(--oryx-green-bright);
}

/* ============================================================
   PROFILE SCREEN
   ============================================================ */
.profile-header {
  position: relative;
  padding: 24px 20px 20px;
  text-align: center;
}
.profile-avatar-wrap {
  width: 140px; height: 140px;
  margin: 8px auto 16px;
  position: relative;
}
.profile-avatar-ring {
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--oryx-green-bright), var(--oryx-red-bright), var(--oryx-green-bright));
  filter: blur(0.5px);
  opacity: 0.6;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.profile-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-3) center/cover no-repeat;
  position: relative; z-index: 2;
  border: 4px solid var(--bg-1);
}
.profile-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.profile-role { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.profile-active {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  padding: 4px 12px;
  background: rgba(226,175,51,0.15);
  border: 1px solid rgba(226,175,51,0.35);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  color: var(--oryx-green-bright);
}
.profile-active::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--oryx-green-bright);
  box-shadow: 0 0 8px var(--oryx-green-bright);
}

/* Pills tab strip */
.tabs-strip {
  display: flex;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-1);
  margin-bottom: 16px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-strip::-webkit-scrollbar { display: none; }
.tab-link {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-4);
  position: relative;
  white-space: nowrap;
  transition: color .2s;
  cursor: pointer;
}
.tab-link:hover { color: var(--text-2); }
.tab-link.active { color: var(--text-1); }
.tab-link.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 14px; right: 14px;
  height: 2px;
  background: var(--oryx-green-bright);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--oryx-green-bright);
}

/* Info rows */
.info-list {
  margin: 0 20px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.info-row {
  display: flex; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-1);
}
.info-row:last-child { border-bottom: none; }
.info-row .ir-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(226,175,51,0.10);
  color: var(--oryx-green-bright);
  font-size: 12px;
  margin-right: 12px;
}
.info-row .ir-label { font-size: 13px; color: var(--text-2); flex: 1; }
.info-row .ir-value { font-size: 13px; font-weight: 600; color: var(--text-1); }

.profile-cta {
  margin: 20px;
}

/* ============================================================
   PROGRESS SCREEN
   ============================================================ */
.progress-header {
  padding: 8px 20px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.progress-header h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.period-pill {
  padding: 6px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px;
}

.donut-card {
  margin: 0 20px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.donut-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(226,175,51,0.12), transparent 60%);
  pointer-events: none;
}
.donut-wrap {
  position: relative;
  width: 220px; height: 220px;
  margin: 0 auto 16px;
}
.donut-wrap canvas { position: absolute; inset: 0; }
.donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.donut-center .pct {
  font-size: 52px; font-weight: 800; letter-spacing: -0.04em;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(180deg, #fff, #d4d4d8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.donut-center .lbl { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.donut-msg { font-size: 13px; color: var(--oryx-green-bright); font-weight: 500; }

/* Skill rows */
.skills-list { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.skill-row { display: flex; align-items: center; gap: 12px; }
.skill-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(226,175,51,0.10);
  color: var(--oryx-green-bright);
  font-size: 14px;
  flex-shrink: 0;
}
.skill-body { flex: 1; min-width: 0; }
.skill-top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.skill-name { font-size: 13px; font-weight: 600; }
.skill-pct { font-size: 13px; font-weight: 700; color: var(--text-2); }
.skill-bar {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--oryx-green-dim), var(--oryx-green-bright));
  border-radius: 3px;
  position: relative;
  width: 0%;
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}
.skill-fill::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 16px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
}

/* ============================================================
   PAYMENTS SCREEN
   ============================================================ */
.due-card {
  margin: 0 20px 20px;
  background:
    linear-gradient(135deg, rgba(239,68,68,0.18) 0%, rgba(239,68,68,0.04) 100%),
    var(--bg-2);
  border: 1px solid rgba(239,68,68,0.30);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.due-card::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(239,68,68,0.18), transparent 70%);
  pointer-events: none;
}
.due-label { font-size: 11px; color: var(--text-3); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.due-amount {
  margin-top: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 44px; font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--oryx-red-bright);
  display: flex; align-items: baseline; gap: 8px;
}
.due-amount .currency { font-size: 16px; font-weight: 600; color: var(--text-3); letter-spacing: 0.04em; }
.due-when {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 6px;
}

/* History rows */
.history-list {
  margin: 0 20px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.history-row {
  display: flex; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-1);
  gap: 12px;
}
.history-row:last-child { border-bottom: none; }
.history-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg-3);
  color: var(--text-2);
  font-size: 13px;
  flex-shrink: 0;
}
.history-body { flex: 1; min-width: 0; }
.history-title { font-size: 13px; font-weight: 600; }
.history-date  { font-size: 11px; color: var(--text-4); margin-top: 2px; }
.history-amt   {
  text-align: right;
  font-size: 13px; font-weight: 700;
}
.status-pill {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em;
}
.status-pill.paid    { background: rgba(226,175,51,0.15); color: var(--oryx-green-bright); }
.status-pill.pending { background: rgba(245,158,11,0.15); color: #fbbf24; }

.view-all {
  margin: 14px 20px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.view-all:hover { background: var(--bg-3); color: var(--text-1); }

/* ============================================================
   SCHEDULE SCREEN
   ============================================================ */
.schedule-header {
  padding: 4px 20px 16px;
}
.schedule-header h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.schedule-header p { font-size: 13px; color: var(--text-3); }

.schedule-list { padding: 0 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.event-card {
  display: flex; gap: 14px;
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  transition: all .2s;
  cursor: pointer;
}
.event-card:hover { background: var(--bg-3); border-color: var(--border-2); }
.event-card.match {
  background: linear-gradient(120deg, rgba(226,175,51,0.12), transparent 50%), var(--bg-2);
  border-color: rgba(226,175,51,0.25);
}
.event-date {
  width: 56px;
  flex-shrink: 0;
  text-align: center;
  padding: 8px 0;
  background: var(--bg-3);
  border-radius: 12px;
  border: 1px solid var(--border-1);
}
.event-card.match .event-date { background: rgba(226,175,51,0.12); border-color: rgba(226,175,51,0.30); }
.event-date .day  { font-size: 10px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.event-date .num  { font-size: 22px; font-weight: 800; margin-top: 2px; letter-spacing: -0.02em; }
.event-body { flex: 1; min-width: 0; }
.event-title { font-size: 14px; font-weight: 700; }
.event-meta { font-size: 12px; color: var(--text-3); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 12px; }
.event-meta i { color: var(--oryx-green-bright); margin-right: 4px; }
.event-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.event-tag.training { background: rgba(59,130,246,0.15); color: #60a5fa; }
.event-tag.match    { background: rgba(226,175,51,0.18); color: var(--oryx-green-bright); }

/* ============================================================
   MESSAGES SCREEN
   ============================================================ */
.msg-header {
  padding: 4px 20px 16px;
}
.msg-header h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

.msg-search {
  margin: 0 20px 16px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 12px;
}
.msg-search i { color: var(--text-4); font-size: 13px; }
.msg-search input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  color: var(--text-1);
  font-size: 13px;
}
.msg-search input::placeholder { color: var(--text-4); }

.msg-list { padding: 0 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.msg-row {
  display: flex; gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background .2s;
  cursor: pointer;
  align-items: center;
}
.msg-row:hover { background: var(--bg-2); }
.msg-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-3) center/cover no-repeat;
  flex-shrink: 0;
  border: 1px solid var(--border-1);
}
.msg-body { flex: 1; min-width: 0; }
.msg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.msg-from { font-size: 14px; font-weight: 600; }
.msg-time { font-size: 11px; color: var(--text-4); flex-shrink: 0; }
.msg-preview { font-size: 12px; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-row.unread .msg-from { color: var(--text-1); }
.msg-row.unread .msg-preview { color: var(--text-2); }
.msg-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--oryx-green-bright);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--oryx-green-bright);
}

/* ============================================================
   COMMON: page header with back
   ============================================================ */
.page-head {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 20px 16px;
}
.page-head .back-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  color: var(--text-1);
  font-size: 14px;
  transition: all .2s;
}
.page-head .back-btn:hover { background: var(--bg-4); }
.page-head h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; flex: 1; }
.page-head .head-action {
  display: flex; gap: 8px;
}

/* ============================================================
   FOOTER PROMO STRIP - desktop only
   ============================================================ */
.promo-strip {
  display: none;
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 24px 32px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
@media (min-width: 900px) {
  .promo-strip { display: flex; }
}
.promo-item {
  flex: 1; min-width: 180px;
  display: flex; gap: 12px; align-items: flex-start;
}
.promo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(226,175,51,0.10);
  color: var(--oryx-green-bright);
  font-size: 14px;
  border: 1px solid rgba(226,175,51,0.20);
}
.promo-text .pt-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oryx-green-bright);
  margin-bottom: 4px;
}
.promo-text .pt-body { font-size: 12px; color: var(--text-3); line-height: 1.5; }

.promo-mission {
  flex: 1.2; min-width: 200px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.promo-mission .green { color: var(--oryx-green-bright); }
.promo-mission .red   { color: var(--oryx-red-bright); }

.promo-logo {
  width: 64px; height: 64px;
  background: url('/static/oryx-logo.png') center/contain no-repeat;
}

/* Animations */
.fade-in { animation: fadeIn .4s cubic-bezier(.22,1,.36,1) both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hide pages by default — only active page shown */
.page { display: none; }
.page.active { display: flex; flex-direction: column; min-height: 100%; }

/* ─── Child picker ──────────────────────────────────────── */
.child-picker {
  display: flex;
  gap: 10px;
  padding: 0 20px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 4px;
}
.child-picker::-webkit-scrollbar { display: none; }
.child-pill-form { margin: 0; flex: 0 0 auto; }
.child-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  color: var(--text-2);
  transition: all .2s ease;
  white-space: nowrap;
}
.child-pill:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--border-3, rgba(255,255,255,0.18));
}
.child-pill.active {
  background: linear-gradient(135deg, rgba(226,175,51,0.16), rgba(226,175,51,0.06));
  border-color: rgba(226,175,51,0.55);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(226,175,51,0.25), 0 6px 20px -8px rgba(226,175,51,0.5);
}
.child-pill .cp-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.10);
  flex: 0 0 auto;
}
.child-pill .cp-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.child-pill .cp-name { font-size: 13px; font-weight: 700; }
.child-pill .cp-team { font-size: 10px; color: var(--text-3); font-weight: 500; }
.child-pill.active .cp-team { color: rgba(255,255,255,0.7); }
.child-pill .cp-check {
  color: var(--oryx-green-bright, #E2AF33);
  font-size: 13px;
  margin-left: 2px;
}

/* ─── Phase 6: Schedule view toggle + Calendar ───────────────── */

.topbar-spacer { width: 36px; height: 36px; }

.schedule-toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 999px;
}
.schedule-toggle .seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.schedule-toggle .seg-btn i { font-size: 11px; }
.schedule-toggle .seg-btn.active {
  background: var(--oryx-green, #C8962A);
  color: #fff;
}
.schedule-toggle .seg-btn:not(.active):hover { color: var(--text-1); }

.cal-wrap {
  padding: 0 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.cal-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cal-dow-cell {
  text-align: center;
  padding: 4px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-cell {
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-2);
}
.cal-cell-empty {
  background: transparent;
  border-color: transparent;
}
.cal-cell-num { font-weight: 700; font-size: 12px; }
.cal-cell.is-today {
  background: rgba(22,163,74,0.18);
  border-color: rgba(22,163,74,0.5);
  color: #fff;
}
.cal-cell.is-today .cal-cell-num { color: var(--oryx-green-bright, #E2AF33); }
.cal-cell.has-events { cursor: pointer; }
.cal-cell.has-events:hover { background: var(--bg-3); }
.cal-cell-dots {
  display: flex;
  gap: 3px;
  margin-top: auto;
}
.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--text-3);
}
.cal-dot-training { background: #3b82f6; }
.cal-dot-match    { background: var(--oryx-green-bright, #E2AF33); }

.cal-legend {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 8px;
}
.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  margin: 14px 0 4px;
  padding: 0 2px;
}

/* Auxiliary event meta (meeting time + weather) */
.event-meta-aux { margin-top: 4px; opacity: 0.85; }
.event-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.rsvp-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  background: var(--bg-2);
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.rsvp-pill.rsvp-yes {
  background: rgba(226,175,51,0.15);
  border-color: rgba(226,175,51,0.4);
  color: var(--oryx-green-bright, #E2AF33);
}
.rsvp-pill.rsvp-no {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.4);
  color: #f87171;
}

.empty-state {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-3);
}
.empty-state i { font-size: 32px; opacity: 0.5; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* ============================================================
   PHASE 9 — FIFA-style player card
   ============================================================ */

.fifa-card {
  position: relative;
  width: 240px;
  aspect-ratio: 5 / 7;
  border-radius: 18px;
  overflow: hidden;
  user-select: none;
  box-shadow: 0 12px 28px rgba(15,23,42,0.22), 0 2px 6px rgba(15,23,42,0.10);
  isolation: isolate;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}
.fifa-size-sm { width: 180px; }
.fifa-size-md { width: 240px; }
.fifa-size-lg { width: 300px; }

/* Rank-specific gradient backgrounds */
.fifa-bronze  { background: linear-gradient(160deg, #4a2e15 0%, #b97a3a 35%, #f1c27d 65%, #b97a3a 100%); }
.fifa-silver  { background: linear-gradient(160deg, #2e3340 0%, #94a3b8 35%, #e5e7eb 65%, #94a3b8 100%); }
.fifa-gold    { background: linear-gradient(160deg, #5b3d09 0%, #c79338 35%, #fde68a 65%, #c79338 100%); }
.fifa-totw    { background: linear-gradient(160deg, #0a0f1a 0%, #1e293b 30%, #2563eb 70%, #060914 100%); }
.fifa-icon    { background: linear-gradient(160deg, #1a0a2a 0%, #5b21b6 30%, #f59e0b 65%, #ec4899 100%); }

/* Subtle diagonal shine overlay */
.fifa-shine {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(255,255,255,0.30), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(0,0,0,0.30), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.fifa-card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 12px;
  color: #1f1207;
}
.fifa-totw .fifa-card-inner,
.fifa-icon .fifa-card-inner { color: #fff; }

/* Top row — overall + flag/badge */
.fifa-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}
.fifa-overall { line-height: 1; }
.fifa-overall-num {
  font-size: 32px; font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.12);
}
.fifa-size-sm .fifa-overall-num { font-size: 24px; }
.fifa-size-lg .fifa-overall-num { font-size: 40px; }
.fifa-overall-pos {
  font-size: 12px; font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
.fifa-flag {
  width: 24px; height: 24px;
  border-radius: 4px;
  background: rgba(255,255,255,0.25);
  display: grid; place-items: center;
  font-size: 12px;
  backdrop-filter: blur(2px);
}

/* Photo */
.fifa-photo {
  position: relative;
  flex: 1;
  margin: 4px -4px 4px;
  display: flex; align-items: center; justify-content: center;
}
.fifa-photo-img {
  width: 100%; height: 100%;
  background-size: cover; background-position: top center;
  background-color: rgba(0,0,0,0.15);
  border-radius: 8px;
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
}
.fifa-jersey {
  position: absolute; top: 6px; right: 8px;
  font-size: 12px; font-weight: 800;
  background: rgba(0,0,0,0.4); color: #fff;
  padding: 2px 7px; border-radius: 999px;
  backdrop-filter: blur(3px);
}

/* Name */
.fifa-name {
  font-size: 13px; font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  padding-bottom: 6px;
  margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fifa-totw .fifa-name,
.fifa-icon .fifa-name { border-bottom-color: rgba(255,255,255,0.25); }
.fifa-size-sm .fifa-name { font-size: 11px; }
.fifa-size-lg .fifa-name { font-size: 15px; }

/* Stats */
.fifa-stats {
  display: flex; flex-direction: column; gap: 3px;
  font-weight: 700;
}
.fifa-stat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}
.fifa-stat {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 12px;
}
.fifa-size-sm .fifa-stat { font-size: 10px; }
.fifa-size-lg .fifa-stat { font-size: 13px; }
.fifa-stat-key { font-weight: 800; opacity: 0.85; letter-spacing: 0.04em; }
.fifa-stat-val { font-weight: 900; font-size: 1.15em; }
.fifa-stat-divider {
  width: 1px; height: 14px;
  background: currentColor; opacity: 0.20;
}

/* Footer */
.fifa-foot {
  margin-top: 6px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9.5px; font-weight: 700; opacity: 0.75;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* Hover tilt */
.fifa-card { transition: transform .25s cubic-bezier(.22,.9,.32,1.2), box-shadow .25s; }
.fifa-card:hover {
  transform: translateY(-3px) rotate(-0.5deg) scale(1.02);
  box-shadow: 0 18px 36px rgba(15,23,42,0.30), 0 4px 8px rgba(15,23,42,0.10);
}

/* Container helpers for the parent home + progress views */
.fifa-card-block {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; margin: 16px 0;
}
.fifa-card-block .fifa-block-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px;
}
.fifa-card-block .fifa-block-head h3 {
  font-size: 14px; font-weight: 700; color: var(--text-1, #0f172a);
  margin: 0;
}
.fifa-card-block .fifa-block-head .fifa-rank-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}
.fifa-rank-tag.bronze { background: #f3d6a4; color: #6b3a0a; }
.fifa-rank-tag.silver { background: #e5e7eb; color: #1f2937; }
.fifa-rank-tag.gold   { background: #fde68a; color: #854d0e; }
.fifa-rank-tag.totw   { background: #1e3a8a; color: #fef3c7; }
.fifa-rank-tag.icon   {
  background: linear-gradient(90deg, #f59e0b, #ec4899);
  color: #fff;
}

/* Team grid (admin coach view) */
.fifa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px; padding: 6px 2px;
}
.fifa-grid .fifa-card { width: 100%; cursor: pointer; }

/* Editor modal */
.fifa-editor-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.55);
  display: none; align-items: center; justify-content: center;
  z-index: 9998;
  backdrop-filter: blur(4px);
}
.fifa-editor-overlay.open { display: flex; }
.fifa-editor {
  width: min(720px, 92vw);
  max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
@media (max-width: 640px) {
  .fifa-editor { grid-template-columns: 1fr; }
}
.fifa-editor-preview {
  display: flex; align-items: center; justify-content: center;
}
.fifa-editor-form { display: flex; flex-direction: column; gap: 12px; }
.fifa-editor-head {
  display: flex; justify-content: space-between; align-items: center;
}
.fifa-editor-head h3 {
  font-size: 16px; font-weight: 700; margin: 0;
}
.fifa-editor-close {
  background: transparent; border: 0;
  font-size: 18px; color: #64748b; cursor: pointer;
}
.fifa-stat-input {
  display: flex; align-items: center; gap: 12px;
}
.fifa-stat-input label {
  width: 36px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.04em; color: #475569;
}
.fifa-stat-input input[type="range"] {
  flex: 1; accent-color: #C8962A;
}
.fifa-stat-input input[type="number"] {
  width: 56px; padding: 4px 8px; text-align: center;
  border: 1px solid #e5e7eb; border-radius: 6px;
  font-size: 13px; font-weight: 700;
}
.fifa-editor-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 4px; padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

/* ─── Phase 12 — Announcement feed (parent home) ───────────── */
.ann-feed { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ann-feed-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.ann-feed-card:hover { background: rgba(255,255,255,0.07); }
.ann-feed-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #E2AF33, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; flex-shrink: 0;
}
.ann-feed-body { flex: 1; min-width: 0; }
.ann-feed-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.ann-feed-text  { font-size: 13px; color: #cbd5e1; line-height: 1.4; margin-bottom: 4px;
                  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
                  overflow: hidden; }
.ann-feed-meta  { font-size: 11px; color: #94a3b8; }

/* Phase 15 — Calendar UX (week grid + day popover) */
.week-wrap { padding: 0 4px; }
.week-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin: 8px 0 12px;
}
.week-day {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  min-height: 130px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.week-day.is-today {
  border-color: rgba(226,175,51,0.45);
  background: rgba(226,175,51,0.06);
}
.week-day-head {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 4px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.week-dow {
  font-size: 10px; font-weight: 600;
  color: var(--text-3, #9ca3af); letter-spacing: 0.05em; text-transform: uppercase;
}
.week-num {
  font-size: 18px; font-weight: 700;
  color: var(--text-1, #e5e7eb); margin-top: 1px;
}
.week-day.is-today .week-num { color: var(--oryx-green-bright, #E2AF33); }
.week-day-body {
  display: flex; flex-direction: column; gap: 3px;
  padding: 4px 3px; flex: 1;
}
.week-event {
  display: block; text-decoration: none;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--text-3, #9ca3af);
  border-radius: 5px;
  padding: 4px 5px;
  font-size: 10px; line-height: 1.25;
  color: var(--text-1, #e5e7eb);
  overflow: hidden;
}
.week-event-training { border-left-color: #E2AF33; background: rgba(226,175,51,0.10); }
.week-event-match    { border-left-color: #f59e0b; background: rgba(245,158,11,0.12); }
.week-event-time {
  font-size: 9px; font-weight: 700;
  color: var(--text-3, #9ca3af); letter-spacing: 0.03em;
}
.week-event-title {
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.week-event-loc {
  font-size: 9px; color: var(--text-3, #9ca3af);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.week-event-loc i { margin-right: 3px; opacity: 0.7; }
.week-empty { flex: 1; }

@media (max-width: 480px) {
  .week-day { min-height: 110px; }
  .week-event-title { font-size: 9.5px; }
}

/* Calendar day click hint */
.cal-cell.has-events { cursor: pointer; }
.cal-cell.has-events:hover {
  background: rgba(226,175,51,0.10);
  border-color: rgba(226,175,51,0.35);
}
.cal-cell.cal-flash {
  background: rgba(226,175,51,0.18);
  border-color: rgba(226,175,51,0.55);
}

/* Highlight a card temporarily after deep-link scroll */
.event-card.flash {
  outline: 2px solid var(--oryx-green-bright, #E2AF33);
  outline-offset: 2px;
  transition: outline 0.6s ease;
}

/* ─── Phase 16 — Settings & Profile (parent) ─── */
.page-header { padding: 16px 16px 4px; }
.page-header h2 { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: var(--text-1); }
.page-header p  { font-size: 13px; color: var(--text-3); margin: 0; }

.settings-card {
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--border-1, rgba(255,255,255,0.08));
  border-radius: 14px;
  padding: 16px;
  margin: 12px 16px;
}
.settings-card-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-1, rgba(255,255,255,0.06));
}
.settings-card-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text-1); }
.settings-card-head i { color: var(--oryx-red-bright, #ef4444); font-size: 14px; }

.settings-profile-row {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 0 16px;
}
.settings-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 2px solid var(--border-2, rgba(255,255,255,0.12));
}
.settings-name { font-size: 16px; font-weight: 700; color: var(--text-1); }
.settings-sub  { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.settings-fields { display: flex; flex-direction: column; gap: 12px; }
.settings-fields .field { display: flex; flex-direction: column; gap: 6px; }
.settings-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-4, rgba(255,255,255,0.5));
}
.settings-input, .settings-select {
  width: 100%; padding: 10px 12px;
  background: var(--input-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--border-1, rgba(255,255,255,0.10));
  border-radius: 8px;
  color: var(--text-1); font-size: 14px;
  font-family: inherit;
}
.settings-input:focus, .settings-select:focus {
  outline: none; border-color: var(--oryx-red-bright, #ef4444);
}
.settings-input:disabled { opacity: 0.6; cursor: not-allowed; }
.settings-hint { font-size: 11px; color: var(--text-4); }

.settings-rows { display: flex; flex-direction: column; gap: 0; }
.settings-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-1, rgba(255,255,255,0.04));
  cursor: pointer;
}
.settings-row:last-child { border-bottom: none; }
.settings-row .ir-icon { font-size: 14px; color: var(--text-3); }
.settings-row .ir-label { font-size: 14px; color: var(--text-1); }
.settings-row .toggle {
  width: 38px; height: 22px; appearance: none;
  background: rgba(255,255,255,0.12);
  border-radius: 999px; position: relative; cursor: pointer;
  transition: background 0.2s;
}
.settings-row .toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: white; transition: transform 0.2s;
}
.settings-row .toggle:checked { background: var(--oryx-red-bright, #ef4444); }
.settings-row .toggle:checked::after { transform: translateX(16px); }
.settings-row .settings-select {
  width: auto; min-width: 140px; padding: 6px 10px; font-size: 13px;
}

.settings-actions {
  margin-top: 16px; display: flex; justify-content: flex-end; gap: 8px;
}

.flash {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px; padding: 10px 14px;
  border-radius: 10px; font-size: 13px;
}
.flash-ok  { background: rgba(226,175,51,0.10);  color: #4ade80; border: 1px solid rgba(226,175,51,0.25); }
.flash-err { background: rgba(239,68,68,0.10);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }

/* ────────────────────────────────────────────────────────────────
   Phase 18 — PWA UI: offline bar, install button, update banner
   ──────────────────────────────────────────────────────────────── */
.offline-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: #b45309;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  text-align: center;
  transform: translateY(-100%);
  transition: transform 200ms ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.offline-bar.is-visible { transform: translateY(0); }
.offline-bar i { margin-right: 6px; }
body.is-offline { padding-top: 32px; }

.pwa-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 9998;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  font-size: 14px;
}
.pwa-banner button {
  appearance: none;
  border: 0;
  background: #fff;
  color: #000;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

.pwa-install-btn {
  position: fixed;
  right: 16px; bottom: 84px;
  z-index: 9997;
  appearance: none;
  border: 0;
  background: #fff;
  color: #000;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pwa-install-btn i { font-size: 12px; }

.pwa-ios-hint {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 9996;
  background: #0e0e0e;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}
.pwa-ios-hint button {
  appearance: none;
  background: transparent;
  border: 0;
  color: #aaa;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.pwa-ios-hint i { margin: 0 2px; }

@media (display-mode: standalone) {
  /* Slightly more bottom padding for home indicator */
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* Push the parent-app topbar BELOW the device status bar / notch. Without
   this fix, in installed-PWA mode (viewport-fit=cover +
   apple-mobile-web-app-status-bar-style: black-translucent) the back arrow,
   logo, and notification bell render UNDER the iOS clock/battery row and
   can't be tapped. The env() inset is 0 in non-PWA / non-notched contexts,
   so this is a no-op there. */
@supports (padding-top: env(safe-area-inset-top)) {
  .topbar {
    padding-top: calc(8px + env(safe-area-inset-top));
  }
  /* .admin-topbar has a fixed pixel height; extend it so its content stays
     centered below the status bar rather than colliding with it. */
  .admin-topbar {
    height: calc(var(--topbar-h) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
}

/* ────────────────────────────────────────────────────────────────
   Phase 19 — RSVP controls (parent confirm/decline/cancel)
   ──────────────────────────────────────────────────────────────── */
.rsvp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.rsvp-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 80ms ease, opacity 120ms ease;
}
.rsvp-btn:active { transform: scale(0.97); }
.rsvp-btn:disabled { opacity: 0.6; cursor: wait; }
.rsvp-btn.rsvp-yes {
  background: #C8962A;
  color: #fff;
}
.rsvp-btn.rsvp-yes:hover { background: #15803d; }
.rsvp-btn.rsvp-no {
  background: rgba(255,255,255,0.06);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.35);
}
.rsvp-btn.rsvp-no:hover { background: rgba(248,113,113,0.1); }
.rsvp-btn.rsvp-cancel,
.rsvp-btn.rsvp-rejoin {
  font-size: 12px;
  padding: 6px 12px;
}
.rsvp-confirmed,
.rsvp-declined {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.rsvp-confirmed { color: #4ade80; }
.rsvp-declined  { color: #f87171; }
.rsvp-confirmed i,
.rsvp-declined i { font-size: 14px; }

.rsvp-pill {
  cursor: pointer;
  user-select: none;
}
.rsvp-pill[data-rsvp="pending"] {
  background: rgba(245,158,11,0.18);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.35);
}
.rsvp-pill.rsvp-yes {
  background: rgba(22,163,74,0.18);
  color: #4ade80;
  border: 1px solid rgba(22,163,74,0.35);
}
.rsvp-pill.rsvp-no {
  background: rgba(248,113,113,0.15);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.35);
}

.rsvp-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 20px);
  z-index: 10000;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  pointer-events: none;
}
.rsvp-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.rsvp-toast.is-error {
  background: #7f1d1d;
  border-color: rgba(248,113,113,0.4);
}

/* ────────────────────────────────────────────────────────────────
   Phase 20 — Parent ↔ Coach conversation page
   ──────────────────────────────────────────────────────────────── */
.conv-peer {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.conv-peer-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  background-color: #1a1a1a;
  flex: 0 0 36px;
}
.conv-peer-meta { min-width: 0; line-height: 1.2; }
.conv-peer-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conv-peer-role {
  font-size: 12px;
  color: #888;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.conv-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 100px;
  overflow-y: auto;
  min-height: 60vh;
}
.conv-empty {
  text-align: center;
  padding: 48px 16px;
  color: #888;
}
.conv-empty i { font-size: 36px; color: #444; margin-bottom: 12px; }
.conv-empty h3 { margin: 8px 0 4px; color: #ddd; font-weight: 700; }
.conv-empty p  { margin: 0; font-size: 14px; }

.conv-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 80%;
}
.conv-msg.mine   { align-self: flex-end; flex-direction: row-reverse; }
.conv-msg.theirs { align-self: flex-start; }
.conv-msg-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background-size: cover; background-position: center;
  background-color: #1a1a1a;
  flex: 0 0 28px;
}
.conv-msg-bubble {
  border-radius: 16px;
  padding: 10px 14px;
  max-width: 100%;
  word-wrap: break-word;
}
.conv-msg.mine .conv-msg-bubble {
  background: #C8962A;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.conv-msg.theirs .conv-msg-bubble {
  background: #1a1a1a;
  color: #f0f0f0;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}
.conv-msg-body {
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.conv-msg-time {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.7;
}

.conv-composer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(11,11,11,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  gap: 8px;
  z-index: 50;
}
.conv-composer textarea {
  flex: 1;
  resize: none;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 18px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  max-height: 140px;
  outline: none;
}
.conv-composer textarea:focus { border-color: #C8962A; }
.conv-send {
  appearance: none;
  border: 0;
  background: #C8962A;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 40px;
  transition: opacity 120ms ease;
}
.conv-send:disabled { opacity: 0.5; cursor: wait; }
.conv-send i { font-size: 14px; }

/* ─── Phase 21 — Unified inbox & notification detail ─── */
.msg-row { text-decoration: none; color: inherit; cursor: pointer; }
.msg-row:hover { background: rgba(255,255,255,0.04); }
.msg-row .msg-avatar { position: relative; }
.msg-row .msg-badge {
  position: absolute; right: -4px; bottom: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #C8962A; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; border: 2px solid #0b0b0b;
}
.msg-row.msg-notification .msg-avatar {
  background-color: #1f2937;
  background-size: 60% !important;
  background-repeat: no-repeat;
  background-position: center;
}
.msg-role-tag {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  padding: 2px 6px; margin-left: 6px;
  border-radius: 4px;
  background: rgba(226,175,51,0.15); color: #4ade80;
  text-transform: uppercase; letter-spacing: 0.4px;
  vertical-align: middle;
}
.msg-role-tag[data-role="admin"]    { background: rgba(59,130,246,0.18); color: #93c5fd; }
.msg-role-tag[data-role="finance"]  { background: rgba(234,179,8,0.18);  color: #fde047; }
.msg-role-tag[data-role="system"]   { background: rgba(148,163,184,0.18);color: #cbd5e1; }
.msg-title {
  font-size: 13px; font-weight: 600;
  color: #e5e7eb; margin-bottom: 2px;
}
.msg-empty {
  padding: 40px 16px; text-align: center;
  color: rgba(255,255,255,0.5);
}
.msg-empty i { font-size: 32px; margin-bottom: 8px; display: block; }

/* Notification detail page */
.notif-detail { padding: 16px; }
.notif-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 18px;
}
.notif-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 14px;
}
.notif-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background-size: cover; background-position: center;
  background-color: #1f2937;
  position: relative; flex: 0 0 48px;
}
.notif-icon {
  position: absolute; right: -4px; bottom: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #C8962A; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; border: 2px solid #0b0b0b;
}
.notif-meta { flex: 1; min-width: 0; }
.notif-from { font-weight: 600; font-size: 14px; color: #f3f4f6; }
.notif-cat {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
  color: #94a3b8; margin-top: 2px;
}
.notif-time { font-size: 12px; color: #6b7280; margin-top: 2px; }
.notif-title {
  font-size: 18px; font-weight: 700; line-height: 1.3;
  margin: 0 0 12px; color: #f9fafb;
}
.notif-body { font-size: 14px; line-height: 1.55; color: #d1d5db; }
.notif-body p { margin: 0 0 8px; }
.notif-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  padding: 10px 14px; border-radius: 10px;
  background: #C8962A; color: #fff !important;
  font-weight: 600; text-decoration: none;
}
.notif-cta i { font-size: 12px; }
.notif-back {
  display: block; text-align: center; margin-top: 18px;
  padding: 10px; color: #94a3b8 !important;
  font-size: 13px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}

/* ── Admin/Coach notification popover (built by admin-phase8.js) ─
   Uses theme tokens so it follows dark/light mode like the rest
   of the app, instead of falling back to unstyled white. */
.notif-panel {
  position: fixed;
  z-index: 1100;
  width: min(360px, calc(100vw - 24px));
  max-height: 70vh;
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  color: var(--text-1);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  overflow: hidden;
}
.notif-panel.open { display: flex; }
.notif-panel .notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-1);
  margin: 0;
  font-size: 14px; font-weight: 600;
  color: var(--text-1);
  background: transparent;
}
.notif-panel .notif-mark-all {
  background: none; border: 0;
  color: var(--oryx-green-bright, #E2AF33);
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.notif-panel .notif-mark-all:hover { color: #4ade80; }
.notif-panel .notif-list {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.notif-panel .notif-item {
  display: flex; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-1);
  text-decoration: none;
  color: var(--text-1);
  align-items: flex-start;
  transition: background 120ms ease;
}
.notif-panel .notif-item:last-child { border-bottom: 0; }
.notif-panel .notif-item:hover { background: var(--bg-3); }
.notif-panel .notif-item.unread { background: rgba(226,175,51,0.06); }
.notif-panel .notif-item > i {
  flex: 0 0 22px;
  font-size: 14px;
  color: var(--oryx-green-bright, #E2AF33);
  margin-top: 2px;
}
.notif-panel .notif-item .notif-body {
  flex: 1; min-width: 0;
  font-size: 13px; line-height: 1.4;
  color: var(--text-1);
}
.notif-panel .notif-item .notif-title {
  font-size: 13px; font-weight: 600;
  color: var(--text-1);
  margin: 0 0 2px;
}
.notif-panel .notif-item .notif-sub {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notif-panel .notif-item .notif-time {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}
.notif-panel .notif-empty {
  padding: 24px 14px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.notif-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 8px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  pointer-events: none;
}
html[data-theme="light"] .notif-panel {
  background: var(--bg-1);
  border-color: var(--border-2);
  color: var(--text-1);
  box-shadow: 0 20px 50px rgba(15,23,42,0.18);
}
html[data-theme="light"] .notif-panel .notif-item:hover { background: var(--bg-3); }
html[data-theme="light"] .notif-panel .notif-item.unread { background: rgba(22,163,74,0.08); }

/* ============================================================
   Phase 22 — Light theme palette + RTL support
   ============================================================ */
html[data-theme="light"] {
  --bg-0:  #f5f5f7;
  --bg-1:  #ffffff;
  --bg-2:  #f9fafb;
  --bg-3:  #f3f4f6;
  --bg-4:  #e5e7eb;

  --border-1: rgba(0,0,0,0.06);
  --border-2: rgba(0,0,0,0.10);
  --border-glow: rgba(22,163,74,0.35);

  --text-1: #0f172a;
  --text-2: #1f2937;
  --text-3: #4b5563;
  --text-4: #6b7280;
  --text-5: #9ca3af;

  --shadow-card: 0 4px 24px rgba(15,23,42,0.08), 0 0 0 1px var(--border-1);
}
html[data-theme="light"] body { background: var(--bg-0); color: var(--text-1); }
html[data-theme="light"] .stage { background: var(--bg-0); }
html[data-theme="light"] .phone-frame { background: var(--bg-1); border-color: var(--border-2); }
html[data-theme="light"] .status-bar { color: var(--text-1); }
html[data-theme="light"] .tabbar { background: var(--bg-1); border-top: 1px solid var(--border-1); }
html[data-theme="light"] .tab { color: var(--text-3); }
html[data-theme="light"] .tab.active { color: var(--oryx-green); }
html[data-theme="light"] .tab.active i { color: var(--oryx-green); }
html[data-theme="light"] .icon-btn { background: var(--bg-3); color: var(--text-2); border-color: var(--border-1); }
html[data-theme="light"] .icon-btn:hover { background: var(--bg-4); }
html[data-theme="light"] .info-list { background: var(--bg-1); border: 1px solid var(--border-1); }
html[data-theme="light"] .info-row { border-bottom-color: var(--border-1); }
html[data-theme="light"] .ir-icon { background: rgba(22,163,74,0.10); color: var(--oryx-green); }
html[data-theme="light"] .settings-card { background: var(--bg-1); border: 1px solid var(--border-1); }
html[data-theme="light"] .settings-input,
html[data-theme="light"] .settings-select { background: var(--bg-2); color: var(--text-1); border-color: var(--border-2); }
html[data-theme="light"] .msg-list,
html[data-theme="light"] .msg-row { background: var(--bg-1); border-color: var(--border-1); }
html[data-theme="light"] .msg-row:hover { background: var(--bg-3); }
html[data-theme="light"] .msg-search input { background: var(--bg-2); color: var(--text-1); border: 1px solid var(--border-1); }
html[data-theme="light"] .conv-bubble.theirs { background: var(--bg-3); color: var(--text-1); }
html[data-theme="light"] .notif-card { background: var(--bg-1); border-color: var(--border-1); }
html[data-theme="light"] .notif-back { color: var(--text-3) !important; border-color: var(--border-1); }
html[data-theme="light"] .hero-card { background: linear-gradient(135deg, rgba(22,163,74,0.10), rgba(22,163,74,0.02)); }

/* RTL adjustments — Arabic */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .topbar a[aria-label="Back"] i.fa-arrow-left::before,
html[dir="rtl"] a[aria-label="Back"] i.fa-arrow-left::before { content: "\f061"; } /* swap to fa-arrow-right */
html[dir="rtl"] .ir-value i.fa-chevron-right::before { content: "\f053"; } /* fa-chevron-left */
html[dir="rtl"] .conv-back i.fa-arrow-left::before { content: "\f061"; }
html[dir="rtl"] .notif-cta i.fa-arrow-right::before { content: "\f060"; } /* fa-arrow-left */
html[dir="rtl"] .ir-icon { margin-right: 0; margin-left: 12px; }
html[dir="rtl"] .msg-avatar { margin-right: 0; margin-left: 12px; }
html[dir="rtl"] .msg-dot { right: auto; left: 12px; }
html[dir="rtl"] .conv-bubble.mine { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .conv-bubble.theirs { margin-right: 0; margin-left: auto; }
html[dir="rtl"] .settings-card-head i { margin-right: 0; margin-left: 10px; }
html[dir="rtl"] .info-row { text-align: right; }

/* Theme + lang segmented controls in Settings */
.seg-control {
  display: flex; gap: 6px;
  background: var(--bg-3); border-radius: 12px; padding: 4px;
  border: 1px solid var(--border-1);
}
.seg-control input[type="radio"] { display: none; }
.seg-control label {
  flex: 1; text-align: center;
  padding: 8px 10px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--text-3);
  cursor: pointer; transition: background 120ms ease, color 120ms ease;
  user-select: none;
}
.seg-control input[type="radio"]:checked + label {
  background: var(--bg-1); color: var(--text-1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
html[data-theme="light"] .seg-control input[type="radio"]:checked + label {
  background: var(--bg-0);
}
.seg-control label .seg-icon { display: block; margin-bottom: 2px; font-size: 14px; }

.notif-cat-list { display: flex; flex-direction: column; gap: 0; }
.notif-cat-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border-1);
}
.notif-cat-row:last-child { border-bottom: none; }
.notif-cat-row .ncr-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22,163,74,0.12); color: var(--oryx-green);
  flex: 0 0 32px;
}
.notif-cat-row .ncr-label {
  flex: 1; font-size: 14px; color: var(--text-1);
}
.quiet-time-row {
  display: flex; gap: 12px; margin-top: 12px;
}
.quiet-time-row label { flex: 1; }

/* ─── Phase 23 — Topbar overlays (drawer, bell popover, action sheets) ─── */

/* Bell badge count */
.icon-btn { position: relative; }
.icon-btn .badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--oryx-red, #dc2626);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg-1, #0a0a0b);
  pointer-events: none;
}
html[dir="rtl"] .icon-btn .badge-count { right: auto; left: 4px; }

/* Overlay scaffold */
.p23-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  opacity: 0;
  transition: opacity 180ms ease;
  display: flex;
  -webkit-tap-highlight-color: transparent;
}
.p23-overlay.p23-open { opacity: 1; }
html[data-theme="light"] .p23-overlay { background: rgba(0, 0, 0, 0.35); }

/* Bell popover (drops down from top-right) */
.p23-popover-wrap { align-items: flex-start; justify-content: flex-end; padding: 60px 12px 0; }
html[dir="rtl"] .p23-popover-wrap { justify-content: flex-start; }
.p23-popover {
  width: min(360px, calc(100vw - 24px));
  max-height: 70vh;
  background: var(--bg-2, #111114);
  border: 1px solid var(--border-2, rgba(255,255,255,0.10));
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-8px);
  transition: transform 180ms ease;
}
.p23-overlay.p23-open .p23-popover { transform: translateY(0); }
html[data-theme="light"] .p23-popover { background: #fff; border-color: rgba(0,0,0,0.10); }

.p23-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-1, rgba(255,255,255,0.06));
  font-size: 14px;
  color: var(--text-1, #fff);
}
.p23-link {
  background: none;
  border: 0;
  color: var(--oryx-green-bright, #E2AF33);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.p23-pop-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.p23-pop-row {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-1, rgba(255,255,255,0.06));
  text-decoration: none;
  color: inherit;
  position: relative;
}
.p23-pop-row:last-child { border-bottom: 0; }
.p23-pop-row.unread { background: rgba(226,175,51,0.06); }
.p23-pop-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-3, #18181d) center/cover no-repeat;
  position: relative;
}
.p23-pop-bell {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--oryx-green, #C8962A);
  color: #fff;
  font-size: 8px;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg-2);
}
.p23-pop-meta { flex: 1; min-width: 0; }
.p23-pop-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.p23-pop-from {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p23-pop-time {
  font-size: 10px;
  color: var(--text-3, #a1a1aa);
  white-space: nowrap;
}
.p23-pop-role {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(226,175,51,0.15);
  color: var(--oryx-green-bright);
}
.p23-pop-role[data-role="admin"]      { background: rgba(59,130,246,0.15); color: #60a5fa; }
.p23-pop-role[data-role="finance"]    { background: rgba(251,191,36,0.15); color: #fbbf24; }
.p23-pop-role[data-role="system"]     { background: rgba(156,163,175,0.20); color: #9ca3af; }
.p23-pop-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2, #d4d4d8);
  margin-top: 2px;
}
.p23-pop-preview {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.p23-pop-dot {
  position: absolute;
  top: 16px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oryx-green-bright);
}
html[dir="rtl"] .p23-pop-dot { right: auto; left: 12px; }
.p23-pop-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-top: 1px solid var(--border-1);
  background: var(--bg-3, #18181d);
  color: var(--oryx-green-bright);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
html[data-theme="light"] .p23-pop-foot { background: #f9fafb; }
.p23-empty, .p23-loading {
  padding: 28px 14px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.p23-empty i { font-size: 28px; opacity: 0.5; display: block; margin-bottom: 8px; }
.p23-empty p { margin: 0; }

/* Drawer (slides from left) */
.p23-drawer-wrap { align-items: stretch; justify-content: flex-start; }
html[dir="rtl"] .p23-drawer-wrap { justify-content: flex-end; }
.p23-drawer {
  width: min(320px, 86vw);
  background: var(--bg-1, #0a0a0b);
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 200ms ease;
  overflow: hidden;
}
html[dir="rtl"] .p23-drawer {
  border-right: 0;
  border-left: 1px solid var(--border-1);
  transform: translateX(100%);
}
.p23-overlay.p23-open .p23-drawer { transform: translateX(0); }
html[data-theme="light"] .p23-drawer { background: #fff; }

.p23-drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-1);
}
.p23-drawer-logo {
  width: 28px; height: 28px;
  background: center/contain no-repeat;
}
.p23-drawer-head strong {
  flex: 1;
  font-size: 14px;
  color: var(--text-1);
}
.p23-x {
  background: var(--bg-3, #18181d);
  border: 1px solid var(--border-1);
  color: var(--text-2);
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: grid; place-items: center;
}

.p23-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 12px;
}
.p23-drawer-user {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-1);
}
.p23-drawer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-3) center/cover no-repeat;
}
.p23-drawer-avatar--placeholder {
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 16px;
  background: var(--bg-3);
}
.p23-drawer-name { font-size: 13px; font-weight: 700; color: var(--text-1); }
.p23-drawer-role { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.p23-drawer-section { padding: 12px 16px 4px; }
.p23-drawer-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.p23-child-row { display: flex; gap: 8px; flex-wrap: wrap; }
.p23-child-form { margin: 0; }
.p23-child {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  font: inherit;
  color: var(--text-2);
  cursor: pointer;
}
.p23-child.active {
  border-color: var(--oryx-green);
  background: rgba(226,175,51,0.08);
  color: var(--text-1);
}
.p23-child-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-3) center/cover no-repeat;
}
.p23-child-name { font-size: 12px; font-weight: 600; }
.p23-child i { color: var(--oryx-green-bright); font-size: 11px; }

.p23-drawer-nav { display: flex; flex-direction: column; padding: 4px 0; }
.p23-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.p23-drawer-nav a:hover { background: var(--bg-2); color: var(--text-1); }
.p23-drawer-nav a i { width: 20px; text-align: center; color: var(--text-3); }

.p23-lang-row { display: flex; gap: 6px; }
.p23-lang {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  color: var(--text-2);
  border-radius: 8px;
  padding: 8px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.p23-lang.active {
  background: rgba(226,175,51,0.10);
  border-color: var(--oryx-green);
  color: var(--text-1);
  font-weight: 600;
}

.p23-drawer-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin: 12px 12px 4px;
  background: rgba(239,68,68,0.10);
  border-radius: 10px;
  color: var(--oryx-red-bright, #ef4444);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.p23-drawer-version {
  text-align: center;
  padding: 12px 8px;
  font-size: 10px;
  color: var(--text-3);
}

/* Bottom action sheet */
.p23-sheet-wrap { align-items: flex-end; justify-content: center; }
.p23-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  background: var(--bg-2, #111114);
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 200ms ease;
}
.p23-overlay.p23-open .p23-sheet { transform: translateY(0); }
html[data-theme="light"] .p23-sheet { background: #fff; }
.p23-sheet-grip {
  width: 36px;
  height: 4px;
  background: var(--border-2);
  border-radius: 4px;
  margin: 8px auto 4px;
}
.p23-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--border-1);
  color: var(--text-1);
  font-size: 15px;
}
.p23-sheet-body {
  overflow-y: auto;
  padding: 8px 0 16px;
}

.p23-list { display: flex; flex-direction: column; }
.p23-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-1);
  border-bottom: 1px solid var(--border-1);
}
.p23-list-row:last-child { border-bottom: 0; }
.p23-list-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-3) center/cover no-repeat;
}
.p23-list-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-3);
  display: grid; place-items: center;
  color: var(--text-2);
}
.p23-list-meta { flex: 1; min-width: 0; }
.p23-list-name { font-size: 14px; font-weight: 600; }
.p23-list-role { margin-top: 4px; }
.p23-chev { color: var(--text-3); font-size: 11px; }
.p23-danger .p23-list-icon {
  background: rgba(239,68,68,0.10);
  color: var(--oryx-red-bright);
}
.p23-danger .p23-list-name { color: var(--oryx-red-bright); }

/* FAQ */
.p23-faq { padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.p23-faq details {
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 10px 12px;
}
.p23-faq summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.p23-faq summary::-webkit-details-marker { display: none; }
.p23-faq summary i { color: var(--oryx-green-bright); }
.p23-faq p {
  margin: 8px 0 2px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}
.p23-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 16px 4px;
  padding: 12px;
  background: var(--oryx-green, #C8962A);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* Segmented control inside sheets */
.p23-seg {
  display: flex;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 4px;
  margin: 0 16px;
  gap: 4px;
}
.p23-seg button {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text-2);
  padding: 8px 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}
.p23-seg button.on {
  background: var(--oryx-green);
  color: #fff;
}

/* ─── Phase 24 — Profile tabs (Overview / Attendance / Progress / Profile) ─── */

/* Overview tab */
.pf-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 16px 4px;
}
.pf-stat {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.pf-stat-icon {
  width: 32px; height: 32px;
  margin: 0 auto 6px;
  border-radius: 8px;
  background: rgba(226,175,51,0.10);
  color: var(--oryx-green-bright);
  display: grid; place-items: center;
  font-size: 14px;
}
.pf-stat[data-stat="progress"] .pf-stat-icon {
  background: rgba(59,130,246,0.10); color: #60a5fa;
}
.pf-stat[data-stat="jersey"] .pf-stat-icon {
  background: rgba(251,191,36,0.10); color: #fbbf24;
}
.pf-stat-num { font-size: 18px; font-weight: 800; color: var(--text-1); }
.pf-stat-lbl { font-size: 10px; color: var(--text-3); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }

.pf-next-card,
.pf-due-card,
.pf-note-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 12px;
}
.pf-next-icon, .pf-due-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(226,175,51,0.10);
  color: var(--oryx-green-bright);
  display: grid; place-items: center;
  font-size: 16px;
  flex: 0 0 38px;
}
.pf-due-icon { background: rgba(251,191,36,0.10); color: #fbbf24; }
.pf-next-body, .pf-due-body { flex: 1; min-width: 0; }
.pf-next-date { font-size: 14px; font-weight: 700; color: var(--text-1); }
.pf-next-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pf-dot { color: var(--text-4, #6b7280); }
.pf-next-go {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-3);
  text-decoration: none;
}
.pf-due-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; }
.pf-due-amt { font-size: 18px; font-weight: 800; color: var(--text-1); margin-top: 2px; }
.pf-due-when { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.pf-due-cta {
  background: var(--oryx-green);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.pf-note-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-3) center/cover no-repeat;
  flex: 0 0 38px;
}
.pf-note-body { flex: 1; min-width: 0; }
.pf-note-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--text-1);
}
.pf-note-time { color: var(--text-3); font-size: 10px; }
.pf-note-text { font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }

.pf-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-3);
  font-size: 13px;
}

.pf-quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 16px 16px;
}
.pf-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-2);
}
.pf-quick i { font-size: 18px; color: var(--oryx-green-bright); }
.pf-quick span { font-size: 11px; font-weight: 600; }

/* Attendance tab */
.pa-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}
.pa-donut {
  width: 130px; height: 130px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: 0 0 130px;
}
.pa-donut-inner {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--bg-1, #0a0a0b);
  display: grid; place-items: center;
  text-align: center;
}
html[data-theme="light"] .pa-donut-inner { background: #fff; }
.pa-donut-pct { font-size: 22px; font-weight: 800; color: var(--text-1); }
.pa-donut-lbl { font-size: 10px; color: var(--text-3); }
.pa-stats { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); }
.pa-stat { display: flex; align-items: center; gap: 8px; }
.pa-stat strong { margin-left: auto; color: var(--text-1); }
html[dir="rtl"] .pa-stat strong { margin-left: 0; margin-right: auto; }
.pa-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.pa-dot-present { background: var(--oryx-green-bright); }
.pa-dot-late    { background: #f59e0b; }
.pa-dot-absent  { background: var(--oryx-red, #dc2626); }
.pa-dot-total   { background: var(--text-3); }

.pa-streak {
  margin: 0 16px 12px;
  padding: 10px 14px;
  background: rgba(226,175,51,0.08);
  border: 1px solid rgba(226,175,51,0.20);
  border-radius: 10px;
  color: var(--text-1);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pa-streak i { color: #f97316; }
.pa-streak strong { color: var(--oryx-green-bright); }
.pa-last-abs {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
}
html[dir="rtl"] .pa-last-abs { margin-left: 0; margin-right: auto; }

.pa-trend {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 16px 8px;
  height: 130px;
}
.pa-trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}
.pa-trend-bar {
  width: 100%;
  max-width: 28px;
  background: linear-gradient(to top, var(--oryx-green) 0%, var(--oryx-green-bright) 100%);
  border-radius: 6px 6px 0 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  min-height: 6px;
}
.pa-trend-pct {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}
.pa-trend-lbl {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
}

.pa-filters {
  display: flex;
  gap: 6px;
  padding: 0 16px 8px;
}
.pa-filter {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.pa-filter.on {
  background: rgba(226,175,51,0.10);
  border-color: var(--oryx-green);
  color: var(--text-1);
}

.pa-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}
.pa-log-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 10px;
}
.pa-log-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-3);
  color: var(--text-2);
  display: grid; place-items: center;
  flex: 0 0 38px;
  font-size: 15px;
}
.pa-log-body { flex: 1; min-width: 0; }
.pa-log-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.pa-log-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pa-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.pa-pill-present { background: rgba(226,175,51,0.15); color: var(--oryx-green-bright); }
.pa-pill-late    { background: rgba(245,158,11,0.15); color: #f59e0b; }
.pa-pill-absent  { background: rgba(239,68,68,0.15); color: var(--oryx-red-bright); }
.pa-pill-other   { background: rgba(156,163,175,0.20); color: #9ca3af; }
.pa-log-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-3);
}
.pa-log-meta i { margin-right: 4px; }
html[dir="rtl"] .pa-log-meta i { margin-right: 0; margin-left: 4px; }
.pa-log-comment {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-2);
  font-style: italic;
  background: var(--bg-3);
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 2px solid var(--oryx-green);
}
html[dir="rtl"] .pa-log-comment { border-left: 0; border-right: 2px solid var(--oryx-green); }

/* Progress tab — coach notes timeline */
.pp-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
}
.pp-note {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 10px;
}
.pp-note-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-3) center/cover no-repeat;
  flex: 0 0 36px;
}
.pp-note-body { flex: 1; min-width: 0; }
.pp-note-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--text-1);
}
.pp-note-time { color: var(--text-3); font-size: 10px; }
.pp-note-text {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* Profile (info) tab */
.pp-soon {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(156,163,175,0.15);
  color: #9ca3af;
  letter-spacing: 0.5px;
}
html[dir="rtl"] .pp-soon { margin-left: 0; margin-right: auto; }
.pp-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pp-status-active { background: rgba(226,175,51,0.15); color: var(--oryx-green-bright); }
.pp-muted { color: var(--text-3); font-style: italic; font-size: 12px; }

/* ─── Phase 26 — RSVP refinements (matches only) ──────────────── */

/* Pill is now a status indicator, not a button. Kill all pointer affordance. */
.rsvp-pill {
  cursor: default !important;
  user-select: none;
  pointer-events: none;
}
.rsvp-pill[aria-disabled="true"] { cursor: default !important; }

/* Locked state pill (≤2h before kickoff) */
.rsvp-pill.rsvp-locked {
  background: rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

/* Locked state — show helper line where buttons used to be */
.rsvp-actions.rsvp-state-locked {
  padding-top: 6px;
}
.rsvp-locked-msg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
}
.rsvp-locked-msg i {
  color: var(--text-4);
  font-size: 11px;
}

/* Session info row — replaces RSVP buttons on training/skills sessions */
.session-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-3);
}
.session-info-row i {
  color: var(--oryx-green-bright);
  font-size: 13px;
}
.session-info-row > span {
  flex: 1;
}
.session-report-absence {
  font-size: 12px;
  font-weight: 600;
  color: var(--oryx-green-bright);
  text-decoration: none;
  white-space: nowrap;
}
.session-report-absence:hover { text-decoration: underline; }

/* ─── Cancel-with-reason bottom sheet ─────────────────────────── */
.p26-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(2px);
}
.p26-overlay.is-open { opacity: 1; }

.p26-sheet {
  width: 100%;
  max-width: 520px;
  background: var(--bg-1, #161616);
  border-radius: 20px 20px 0 0;
  padding: 8px 20px 28px;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.23, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  max-height: 85vh;
  overflow-y: auto;
}
.p26-overlay.is-open .p26-sheet { transform: translateY(0); }

.p26-handle {
  width: 40px;
  height: 4px;
  background: var(--text-4, #475569);
  border-radius: 2px;
  margin: 6px auto 14px;
  opacity: 0.6;
}

.p26-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 6px;
  line-height: 1.3;
}
.p26-sub {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 16px;
}

.p26-reasons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.p26-reason {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-2);
  transition: all 0.16s ease;
}
.p26-reason:has(input:checked) {
  border-color: var(--oryx-green-bright);
  background: rgba(34, 197, 94, 0.10);
  color: var(--text-1);
}
.p26-reason input[type="radio"] {
  accent-color: var(--oryx-green-bright);
  width: 16px;
  height: 16px;
}

.p26-note-label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 16px;
}
.p26-note {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  color: var(--text-1);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 64px;
  box-sizing: border-box;
}
.p26-note:focus {
  outline: none;
  border-color: var(--oryx-green-bright);
}

.p26-actions {
  display: flex;
  gap: 10px;
}
.p26-actions .btn {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
}
.p26-actions .btn-ghost {
  background: rgba(148, 163, 184, 0.10);
  color: var(--text-2);
}
.p26-actions .btn-danger {
  background: var(--oryx-red-bright, #ef4444);
  color: #fff;
}
.p26-actions .btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.p26-actions .btn-primary {
  background: var(--oryx-green-bright, #E2AF33);
  color: #0b0b0b;
}
.p26-actions .btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Light mode */
html[data-theme="light"] .p26-sheet { background: #ffffff; }
html[data-theme="light"] .p26-reason { background: rgba(148, 163, 184, 0.08); }
html[data-theme="light"] .p26-note { background: rgba(148, 163, 184, 0.06); }
html[data-theme="light"] .session-info-row { background: rgba(148, 163, 184, 0.10); }

/* ─── Phase 27 — Squad & Lineup builder ──────────────────── */
.squad-info { display:flex; flex-wrap:wrap; gap:10px 16px; padding:0 18px 16px; color:var(--text-2); font-size:13px; }
.squad-info span { display:inline-flex; align-items:center; gap:6px; }
.squad-info i { color:var(--text-3); }

.callout { display:flex; align-items:center; gap:10px; padding:10px 14px; margin:0 18px 14px; border-radius:10px; font-size:13px; }
.callout-info { background:rgba(59,130,246,.08); color:#3b82f6; border:1px solid rgba(59,130,246,.2); }

.sl-pickers { display:grid; grid-template-columns:1fr 1fr; gap:14px; padding:6px 18px 18px; }
@media (max-width:720px){ .sl-pickers { grid-template-columns:1fr; } }
.sl-picker { display:flex; flex-direction:column; gap:6px; }
.sl-picker-label { font-size:12px; font-weight:600; color:var(--text-2); text-transform:uppercase; letter-spacing:.04em; }
.sl-picker-help { font-size:11px; color:var(--text-3); }
.formation-select { padding:9px 12px; border:1px solid var(--border); border-radius:8px; background:var(--bg-2); color:var(--text-1); font-size:14px; }
.formation-select:disabled { opacity:.6; cursor:not-allowed; }

.sl-tabs { display:flex; gap:8px; padding:0 0 14px; }
.sl-tab { flex:1; padding:11px 14px; border:1px solid var(--border); border-radius:10px; background:var(--bg-2); color:var(--text-2); font-weight:600; font-size:13px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.sl-tab.active { background:var(--accent); color:#fff; border-color:var(--accent); }

.sl-pane { display:none; }
.sl-pane.active { display:block; }

.sl-bucket { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:8px; padding:0 18px 14px; }
.sl-bucket-readonly { opacity:.85; }
.sl-pick { display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--border); border-radius:10px; background:var(--bg-2); cursor:pointer; }
.sl-pick:hover { border-color:var(--accent); }
.sl-pick-muted { cursor:default; opacity:.7; }
.sl-pick-cb { width:18px; height:18px; accent-color:#E2AF33; }
.sl-avatar { width:32px; height:32px; border-radius:50%; background:var(--bg-3) center/cover no-repeat; flex-shrink:0; }
.sl-pick-body { flex:1; min-width:0; }
.sl-pick-name { font-weight:600; font-size:13px; color:var(--text-1); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sl-pick-meta { font-size:11px; color:var(--text-3); }
.sl-save-msg { font-size:12px; color:var(--text-3); margin-left:10px; }

.sl-grid { display:grid; grid-template-columns:1fr 280px; gap:14px; }
@media (max-width:980px){ .sl-grid { grid-template-columns:1fr; } }

.sl-pitch-card .actions { display:flex; gap:8px; }
/* ── Pitch — enhanced graphics (match-tab style) ─────────── */
.pitch-wrap { padding:14px 18px 8px; }
.pitch {
  position:relative; width:100%; aspect-ratio: 68/100; max-width:520px; margin:0 auto;
  /* layered greens with horizontal mowing stripes */
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,0.06) 0 7%,
      rgba(0,0,0,0.10)        7% 14%
    ),
    radial-gradient(ellipse at 50% 0%,   #1e9e4d 0%, #0f7a3a 60%, #0c6630 100%),
    linear-gradient(180deg, #1e9e4d 0%, #0c6630 100%);
  background-blend-mode: overlay, normal, normal;
  border:2px solid rgba(255,255,255,.82);
  border-radius:14px;
  overflow:hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 0 60px rgba(0,0,0,.25);
}
/* corner arcs */
.pitch::before, .pitch::after {
  content:''; position:absolute; width:5%; aspect-ratio:1;
  border:2px solid rgba(255,255,255,.82); border-radius:50%;
}
.pitch::before { top:-2.5%; left:-2.5%; }
.pitch::after  { top:-2.5%; right:-2.5%; }
/* halfway line */
.pitch-half {
  position:absolute; left:0; right:0; top:50%;
  height:2px; background:rgba(255,255,255,.82);
}
.pitch-circle {
  position:absolute; left:50%; top:50%; width:24%; aspect-ratio:1;
  transform:translate(-50%,-50%);
  border:2px solid rgba(255,255,255,.82); border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
}
.pitch-circle::after {
  content:''; position:absolute; left:50%; top:50%;
  width:8px; height:8px; background:#fff; border-radius:50%;
  transform:translate(-50%,-50%);
}
/* penalty boxes */
.pitch-box-top, .pitch-box-bottom {
  position:absolute; left:18%; right:18%; height:16%;
  border:2px solid rgba(255,255,255,.82);
}
.pitch-box-top    { top:0; border-top:none; }
.pitch-box-bottom { bottom:0; border-bottom:none; }
/* 6-yard goal areas */
.pitch-goal-top, .pitch-goal-bottom {
  position:absolute; left:34%; right:34%; height:6.5%;
  border:2px solid rgba(255,255,255,.82);
}
.pitch-goal-top    { top:0; border-top:none; }
.pitch-goal-bottom { bottom:0; border-bottom:none; }
/* penalty arcs */
.pitch-arc-top, .pitch-arc-bottom {
  position:absolute; left:50%; width:18%; aspect-ratio:1;
  transform:translateX(-50%);
  border:2px solid rgba(255,255,255,.82); border-radius:50%;
  clip-path: inset(50% 0 0 0);
}
.pitch-arc-top    { top:13%; }
.pitch-arc-bottom { bottom:13%; transform:translateX(-50%) rotate(180deg); }
/* penalty spots */
.pitch-spot-top, .pitch-spot-bottom, .pitch-spot-mid {
  position:absolute; left:50%; width:6px; height:6px;
  background:#fff; border-radius:50%; transform:translate(-50%,-50%);
}
.pitch-spot-top    { top:11%; }
.pitch-spot-bottom { top:89%; }

/* ── Pitch slots ───────────────────────────────────────────
   Compact, elegant chips inspired by FIFA/EA-style cards:
   small dark headshot circle, neon-green glowing ring,
   and a slim dark pill name label below. */
.pitch-slot {
  position:absolute; transform:translate(-50%,-50%);
  width:54px; min-height:54px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  border:2px dashed rgba(255,255,255,.45); border-radius:50%;
  background:rgba(255,255,255,.04);
  color:#fff; font-size:10px; font-weight:800; letter-spacing:.04em;
  text-align:center; transition:transform .12s, border-color .15s, background .15s, box-shadow .15s;
  text-shadow:0 1px 2px rgba(0,0,0,.5);
}
.pitch-slot.slot-hover {
  background:rgba(226,175,51,.45); border-color:#E2AF33; border-style:solid;
  box-shadow:0 0 14px rgba(226,175,51,.6);
  transform:translate(-50%,-50%) scale(1.1);
}
.pitch-slot-filled {
  border:none; background:transparent;
  width:auto; min-height:0;
}
.pitch-slot-mine .slot-avatar,
.pitch-slot-mine .player-chip.pc-on-pitch .pc-avatar {
  box-shadow:
    0 0 0 2px #facc15,
    0 0 12px rgba(250,204,21,.55),
    0 4px 10px rgba(0,0,0,.5);
}
.slot-label { font-size:11px; color:#fff; opacity:.85; }

/* ── Player chips (bench + on-pitch) ──────────────────────── */
.player-chip {
  display:flex; align-items:center; gap:8px; padding:7px 9px;
  border:1px solid var(--border); border-radius:10px; background:var(--bg-2);
  cursor:grab; user-select:none; font-size:12px;
}
.player-chip:hover { border-color:var(--accent); }
.player-chip.dragging { opacity:.4; cursor:grabbing; }
.player-chip .pc-avatar {
  width:30px; height:30px; border-radius:50%;
  background:#1f2937 center/cover no-repeat; flex-shrink:0;
  border:1px solid var(--border);
}

/* On-pitch chip — compact headshot with neon-green ring + name pill */
.player-chip.pc-on-pitch {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  background:transparent; border:none; padding:0;
  width:auto; height:auto;
  cursor:grab;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.45));
}
.player-chip.pc-on-pitch .pc-num-wrap {
  position:relative;
  /* outer neon-green halo behind the ring */
  filter: drop-shadow(0 0 6px rgba(226,175,51,.7));
}
.player-chip.pc-on-pitch .pc-avatar {
  width:46px; height:46px;
  border-radius:50%;
  /* dark inner background so cropped headshots blend like the reference */
  background:#0f1b14 center/cover no-repeat;
  /* thin double ring: outer glow + crisp neon-green stroke */
  border:2px solid #E2AF33;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.55),
    0 0 0 2px rgba(226,175,51,.25),
    0 0 10px rgba(226,175,51,.55);
  position:relative;
}
.player-chip.pc-on-pitch:hover .pc-avatar {
  border-color:#4ade80;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.55),
    0 0 0 2px rgba(74,222,128,.35),
    0 0 14px rgba(74,222,128,.75);
}
.player-chip.pc-on-pitch .pc-num {
  position:absolute; top:-4px; right:-6px;
  background:#facc15; color:#000;
  font-size:9px; font-weight:800; padding:1px 5px; border-radius:6px;
  min-width:auto;
  box-shadow:0 1px 3px rgba(0,0,0,.5);
}
.player-chip.pc-on-pitch .pc-name {
  color:#fff;
  font-size:10.5px; font-weight:700; line-height:1;
  /* dark rounded pill behind the name, like the reference */
  background:rgba(0,0,0,.55);
  padding:3px 8px; border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  max-width:88px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  text-shadow:none;
}
.player-chip.pc-on-pitch .pc-pos { display:none; }
.pc-num { font-weight:700; color:var(--text-2); min-width:26px; }
.pc-name { font-weight:600; color:var(--text-1); flex:1; min-width:0; }
.pc-pos { font-size:10px; color:var(--text-3); }

/* Parent-side read-only pitch chip (MatchLineup.tsx uses .slot-avatar) */
.slot-avatar {
  width:46px; height:46px; border-radius:50%;
  background:#0f1b14 center/cover no-repeat;
  border:2px solid #E2AF33;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.55),
    0 0 0 2px rgba(226,175,51,.25),
    0 0 10px rgba(226,175,51,.55);
  position:relative;
}
.slot-mine-badge {
  position:absolute; top:-6px; right:-12px; background:#facc15; color:#000;
  font-size:9px; font-weight:800; padding:1px 5px; border-radius:6px;
  letter-spacing:.04em;
  box-shadow:0 1px 3px rgba(0,0,0,.5);
}
.slot-name {
  color:#fff; font-size:10.5px; font-weight:700; line-height:1;
  margin-top:6px;
  background:rgba(0,0,0,.55);
  padding:3px 8px; border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  max-width:88px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.slot-num {
  color:#facc15; font-size:10px; font-weight:800;
  text-shadow:0 1px 2px rgba(0,0,0,.7);
}

.sl-bench-card { max-height:600px; overflow:auto; }
.sl-bench-list { display:flex; flex-direction:column; gap:6px; padding:0 14px 14px; min-height:80px; }
.sl-bench-list.bench-hover { background:rgba(226,175,51,.06); border-radius:8px; }

/* My Matches list cards */
.mm-list { display:flex; flex-direction:column; gap:8px; padding:0 14px 14px; }
.mm-list-muted { opacity:.85; }
.mm-card {
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; border:1px solid var(--border); border-radius:12px;
  background:var(--bg-2); text-decoration:none; color:inherit; transition:border-color .15s, transform .1s;
}
.mm-card:hover { border-color:var(--accent); transform:translateY(-1px); }
.mm-date { display:flex; flex-direction:column; align-items:center; min-width:54px; padding:6px; background:var(--bg-3); border-radius:8px; }
.mm-dow { font-size:10px; font-weight:700; color:var(--text-3); letter-spacing:.04em; }
.mm-day { font-size:20px; font-weight:800; color:var(--text-1); line-height:1; margin:2px 0; }
.mm-mon { font-size:10px; font-weight:700; color:var(--text-3); }
.mm-body { flex:1; min-width:0; }
.mm-title { font-weight:700; font-size:14px; color:var(--text-1); display:flex; align-items:center; flex-wrap:wrap; }
.mm-meta { display:flex; flex-wrap:wrap; gap:4px 12px; margin-top:4px; font-size:12px; color:var(--text-3); }
.mm-meta i { margin-right:4px; }
.mm-rsvp { display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; font-size:11px; }
.rsvp-stat { display:inline-flex; align-items:center; gap:4px; }
.rsvp-stat-yes { color:#E2AF33; }
.rsvp-stat-no { color:#ef4444; }
.rsvp-stat-pending { color:#f59e0b; }
.mm-arrow { color:var(--text-3); }

/* Parent lineup view */
.lineup-hero { padding:14px; margin:0 14px 14px; background:var(--bg-2); border:1px solid var(--border); border-radius:14px; }
.lineup-hero-top { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:8px; }
.lineup-hero-title { font-weight:700; font-size:16px; color:var(--text-1); }
.lineup-hero-meta { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:12px; color:var(--text-3); margin-top:4px; }
.lineup-pitch-wrap { padding:0 14px; margin-bottom:14px; }
.info-row-mine { background:rgba(250,204,21,.1); border-color:#facc15; }
.lineup-footer { padding:10px 14px; margin:0 14px 80px; font-size:12px; color:var(--text-3); display:flex; align-items:center; gap:8px; }

/* Toast (shared) */
.toast { position:fixed; left:50%; bottom:80px; transform:translateX(-50%) translateY(20px); padding:10px 16px; border-radius:10px; font-size:13px; font-weight:600; opacity:0; transition:all .25s; z-index:9999; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.toast-ok { background:#C8962A; color:#fff; }
.toast-error { background:#dc2626; color:#fff; }

/* Phase 28 — FIFA stat code badge inside skill row */
.skill-code {
  display:inline-block; margin-left:8px; padding:1px 6px;
  font-size:9px; font-weight:800; letter-spacing:.04em;
  border-radius:4px; background:rgba(226,175,51,.18); color:#E2AF33;
  vertical-align:middle;
}

/* ── Phase 29: Medical & emergency form + Documents list ─────── */
.med-form {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 18px;
}
.med-row {
  display: flex; align-items: center; gap: 12px;
}
.med-row-block {
  flex-direction: column; align-items: stretch; gap: 6px;
}
.med-row label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  flex: 0 0 auto;
}
.med-row label i {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(226,175,51,0.12); color: var(--oryx-green-bright);
  display: grid; place-items: center; font-size: 12px;
}
.med-input {
  flex: 1; min-width: 0;
  padding: 9px 12px;
  background: var(--bg-1);
  color: var(--text-1);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.med-input:focus { border-color: var(--oryx-green-bright); }
.med-textarea { resize: vertical; min-height: 72px; font-family: inherit; }
.med-grid {
  display: grid; grid-template-columns: 1fr; gap: 8px;
}
@media (min-width: 480px) {
  .med-grid { grid-template-columns: 1fr 1fr; }
  .med-grid > input:first-child { grid-column: 1 / -1; }
}
.med-meta {
  font-size: 11px; color: var(--text-3); padding: 0 2px;
}
.med-actions {
  display: flex; justify-content: flex-end;
}

/* Documents list rows + actions */
.doc-row .ir-label {
  display: flex; flex-direction: column; gap: 2px;
}
.doc-meta {
  display: flex; gap: 8px;
  font-size: 11px; color: var(--text-3);
}
.doc-fn {
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doc-actions {
  display: flex; align-items: center; gap: 6px;
}
.doc-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px;
  background: var(--bg-3); color: var(--text-1);
  border: 1px solid var(--border-1); border-radius: 8px;
  text-decoration: none;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.doc-link:hover { border-color: var(--oryx-green-bright); }
.doc-link.doc-remove:hover { border-color: #ef4444; color: #ef4444; }
.doc-link.doc-upload {
  background: rgba(226,175,51,0.12);
  color: var(--oryx-green-bright);
  border-color: rgba(226,175,51,0.35);
}
.doc-link.doc-upload:hover { background: rgba(226,175,51,0.22); }

/* Toast for medical/document feedback */
.p29-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 16px);
  z-index: 1200;
  background: var(--bg-2);
  color: var(--text-1);
  border: 1px solid var(--border-2);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  opacity: 0; transition: opacity 200ms, transform 200ms;
  pointer-events: none;
}
.p29-toast.show { opacity: 1; transform: translate(-50%, 0); }
.p29-toast.success { border-color: rgba(226,175,51,0.5); color: var(--oryx-green-bright); }
.p29-toast.error   { border-color: rgba(239,68,68,0.5); color: #fca5a5; }

/* ─── Phase 36 — Lineup published CTA on parent home ─── */
.lineup-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 16px 4px;
  padding: 14px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(226,175,51,0.10) 0%, rgba(226,175,51,0.04) 100%);
  border: 1px solid rgba(226,175,51,0.35);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease;
  position: relative;
  overflow: hidden;
}
.lineup-cta:active { transform: scale(0.99); }
.lineup-cta:hover  { border-color: rgba(226,175,51,0.6); }
.lineup-cta-bench {
  background: linear-gradient(135deg, rgba(245,158,11,0.10) 0%, rgba(245,158,11,0.04) 100%);
  border-color: rgba(245,158,11,0.35);
}
.lineup-cta-bench:hover { border-color: rgba(245,158,11,0.6); }
.lineup-cta-icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(226,175,51,0.18);
  color: var(--oryx-green-bright);
  font-size: 16px;
}
.lineup-cta-bench .lineup-cta-icon {
  background: rgba(245,158,11,0.18);
  color: #f59e0b;
}
.lineup-cta-body { flex: 1; min-width: 0; }
.lineup-cta-title {
  font-size: 14px; font-weight: 700; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lineup-cta-sub {
  font-size: 12px; color: var(--text-3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lineup-cta-arrow {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-3); font-size: 12px;
}
.lineup-cta-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--oryx-green-bright);
  color: #0b0b0d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lineup-cta-bench .lineup-cta-pill {
  background: #f59e0b;
  color: #1a1108;
}

/* ─── Phase 40 — Parent: result badge on past-match cards ────────────── */
.event-card.is-past { opacity: 0.92; }
.event-card.is-past .event-date { background: #f3f4f6; }

.result-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px; padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  text-decoration: none;
  vertical-align: middle;
  border: 1px solid transparent;
  white-space: nowrap;
}
.result-badge-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,0.85);
}
.result-badge-score { font-variant-numeric: tabular-nums; }
.result-badge-motm  { margin-left: 2px; font-size: 11px; }

.result-badge-win  { background: #dcfce7; color: #15803d; border-color: #86efac; }
.result-badge-win  .result-badge-letter { color: #15803d; }
.result-badge-loss { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.result-badge-loss .result-badge-letter { color: #b91c1c; }
.result-badge-draw { background: #e0e7ff; color: #3730a3; border-color: #a5b4fc; }
.result-badge-draw .result-badge-letter { color: #3730a3; }

.post-match-link-row { margin-top: 10px; }
.post-match-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  background: #f3f4f6; color: #374151;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.post-match-link:hover { background: #e5e7eb; }
.post-match-link .fa-chevron-right { margin-left: auto; font-size: 11px; opacity: 0.6; }

/* ─── Phase 40 — Parent: match recap page ────────────────────────────── */
.recap-wrap { padding: 16px; padding-bottom: 100px; }

.recap-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  border-radius: 16px;
  padding: 18px 16px 20px 16px;
  box-shadow: 0 6px 20px rgba(30,58,138,0.18);
}
.recap-hero-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; opacity: 0.85; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}

.recap-scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 8px; align-items: center;
  margin: 8px 0 12px 0;
}
.recap-team {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.recap-team-crest {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.recap-team-crest-us { background: #fff; padding: 6px; }
.recap-team-crest-initials {
  font-weight: 800; font-size: 18px; color: #1e3a8a;
  letter-spacing: 1px;
}
.recap-team-name {
  font-weight: 700; font-size: 14px; max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.recap-team-side {
  font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px;
}

.recap-score {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 44px; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1;
  min-width: 100px;
}
.recap-score-dash { opacity: 0.5; }
.recap-score-pending {
  font-size: 18px; font-weight: 600; opacity: 0.7;
  text-transform: uppercase; letter-spacing: 1px;
}

.recap-outcome {
  display: block; text-align: center;
  margin: 12px auto 0 auto; padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  width: fit-content;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.recap-outcome-win  { background: #dcfce7; color: #15803d; }
.recap-outcome-loss { background: #fee2e2; color: #b91c1c; }
.recap-outcome-draw { background: #e0e7ff; color: #3730a3; }
.recap-outcome-pending { background: rgba(255,255,255,0.15); color: #fff; }

.recap-hero-foot {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 14px; font-size: 13px; opacity: 0.9;
}
.recap-hero-foot span { display: inline-flex; align-items: center; gap: 6px; }

.recap-motm {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 14px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  border-radius: 12px;
}
.recap-motm-mine { background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%); border-color: #f59e0b; }
.recap-motm-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  color: #d97706; font-size: 20px;
  box-shadow: 0 2px 6px rgba(217,119,6,0.2);
}
.recap-motm-body { flex: 1; min-width: 0; }
.recap-motm-label {
  font-size: 11px; font-weight: 700; color: #92400e;
  text-transform: uppercase; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 8px;
}
.recap-motm-tag {
  background: #f59e0b; color: #fff; padding: 1px 8px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.3px;
}
.recap-motm-name {
  font-size: 17px; font-weight: 700; color: #1f2937; margin-top: 2px;
}

.recap-card {
  margin-top: 14px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 14px 16px;
}
.recap-card-head h3 {
  font-size: 14px; font-weight: 700; color: #111827; margin: 0 0 8px 0;
  display: flex; align-items: center;
}
.recap-personal {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}
.recap-note-body {
  font-size: 14px; line-height: 1.55; color: #374151;
  white-space: pre-wrap; word-wrap: break-word; margin: 0;
}
.recap-card-foot {
  margin-top: 10px; font-size: 11px;
}

.recap-empty {
  margin-top: 14px; padding: 16px;
  text-align: center; border-radius: 12px;
  background: #f9fafb; border: 1px dashed #e5e7eb;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px;
}

.recap-actions {
  margin-top: 18px; display: flex; gap: 10px; justify-content: center;
}

/* ─── Phase 41 — Push notification enable widget ─── */
.settings-row--stack { align-items: flex-start; padding: 12px 12px; gap: 10px; }
.settings-row--stack .ir-icon { padding-top: 2px; }
.ir-label--stack { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ir-label--stack .ir-title { font-size: 14px; color: var(--text-1); font-weight: 500; }
.ir-label--stack .ir-sub   { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.ir-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ir-actions .btn-sm { padding: 6px 10px; font-size: 12px; }
