/* ==========================================================================
   SMASHPOINT - BADMINTON CLUB HUB DESIGN SYSTEM
   Modern Athletic Glassmorphism & Sport Dark UI
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&display=swap');

:root {
  --bg-main: #0a0e0c;
  --bg-card: rgba(18, 26, 22, 0.85);
  --bg-card-hover: rgba(24, 36, 30, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(16, 185, 129, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.35);
  --primary-dark: #064e3b;
  --accent-lime: #22c55e;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;
  --accent-blue: #38bdf8;
  --whatsapp-green: #25D366;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-brand: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   THEME COLOR PRESETS
   ========================================================================== */
[data-theme="emerald"], :root {
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.35);
  --primary-dark: #064e3b;
  --accent-lime: #22c55e;
  --border-glass: rgba(16, 185, 129, 0.22);
}

[data-theme="electric-lime"] {
  --primary: #84cc16;
  --primary-glow: rgba(132, 204, 22, 0.38);
  --primary-dark: #365314;
  --accent-lime: #a3e635;
  --border-glass: rgba(132, 204, 22, 0.24);
}

[data-theme="ocean-blue"] {
  --primary: #0ea5e9;
  --primary-glow: rgba(14, 165, 233, 0.38);
  --primary-dark: #075985;
  --accent-lime: #38bdf8;
  --border-glass: rgba(56, 189, 248, 0.24);
}

[data-theme="sunset-orange"] {
  --primary: #f97316;
  --primary-glow: rgba(249, 115, 22, 0.38);
  --primary-dark: #7c2d12;
  --accent-lime: #fb923c;
  --border-glass: rgba(249, 115, 22, 0.24);
}

[data-theme="royal-purple"] {
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.38);
  --primary-dark: #4c1d95;
  --accent-lime: #a78bfa;
  --border-glass: rgba(139, 92, 246, 0.24);
}

[data-theme="crimson-smash"] {
  --primary: #f43f5e;
  --primary-glow: rgba(244, 63, 94, 0.38);
  --primary-dark: #881337;
  --accent-lime: #fb7185;
  --border-glass: rgba(244, 63, 94, 0.24);
}

[data-theme="stealth-silver"] {
  --primary: #e2e8f0;
  --primary-glow: rgba(226, 232, 240, 0.3);
  --primary-dark: #334155;
  --accent-lime: #cbd5e1;
  --border-glass: rgba(226, 232, 240, 0.2);
}

/* ==========================================================================
   COLOR MODE SYSTEM (AUTO SYSTEM THEME / LIGHT / DARK)
   ========================================================================== */
[data-color-mode="light"] {
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --border-glass: rgba(16, 185, 129, 0.28);
  --border-subtle: rgba(0, 0, 0, 0.08);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --primary-glow: rgba(16, 185, 129, 0.2);
}

/* Light Mode Theme Accent Adaptations (Ensures WCAG AAA Contrast on Light Surfaces) */
[data-color-mode="light"][data-theme="emerald"],
[data-color-mode="light"] {
  --primary: #059669;
  --primary-glow: rgba(5, 150, 105, 0.25);
  --primary-dark: #064e3b;
  --accent-lime: #16a34a;
  --border-glass: rgba(5, 150, 105, 0.28);
}

[data-color-mode="light"][data-theme="electric-lime"] {
  --primary: #65a30d;
  --primary-glow: rgba(101, 163, 13, 0.25);
  --primary-dark: #365314;
  --accent-lime: #84cc16;
  --border-glass: rgba(101, 163, 13, 0.28);
}

[data-color-mode="light"][data-theme="ocean-blue"] {
  --primary: #0284c7;
  --primary-glow: rgba(2, 132, 199, 0.25);
  --primary-dark: #075985;
  --accent-lime: #0ea5e9;
  --border-glass: rgba(2, 132, 199, 0.28);
}

[data-color-mode="light"][data-theme="sunset-orange"] {
  --primary: #ea580c;
  --primary-glow: rgba(234, 88, 12, 0.25);
  --primary-dark: #7c2d12;
  --accent-lime: #f97316;
  --border-glass: rgba(234, 88, 12, 0.28);
}

[data-color-mode="light"][data-theme="royal-purple"] {
  --primary: #7c3aed;
  --primary-glow: rgba(124, 58, 237, 0.25);
  --primary-dark: #4c1d95;
  --accent-lime: #8b5cf6;
  --border-glass: rgba(124, 58, 237, 0.28);
}

[data-color-mode="light"][data-theme="crimson-smash"] {
  --primary: #e11d48;
  --primary-glow: rgba(225, 29, 72, 0.25);
  --primary-dark: #881337;
  --accent-lime: #f43f5e;
  --border-glass: rgba(225, 29, 72, 0.28);
}

[data-color-mode="light"][data-theme="stealth-silver"] {
  --primary: #475569;
  --primary-glow: rgba(71, 85, 105, 0.25);
  --primary-dark: #1e293b;
  --accent-lime: #64748b;
  --border-glass: rgba(71, 85, 105, 0.28);
}

/* Light Mode Global Element & Component Overrides */
[data-color-mode="light"] body,
body[data-color-mode="light"] {
  background-color: #f1f5f9;
  color: #0f172a;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(56, 189, 248, 0.07) 0%, transparent 45%);
}

[data-color-mode="light"] .top-header {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

[data-color-mode="light"] .brand-text h1 {
  background: linear-gradient(135deg, #0f172a 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-color-mode="light"] .brand-text span {
  color: var(--primary);
}

[data-color-mode="light"] .card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

[data-color-mode="light"] .card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.1), 0 0 16px rgba(16, 185, 129, 0.1);
}

[data-color-mode="light"] .card-title {
  color: #0f172a !important;
}

[data-color-mode="light"] .card-subtitle {
  color: #64748b;
}

[data-color-mode="light"] .nav-desktop {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-color-mode="light"] .nav-tab {
  color: #64748b;
}

[data-color-mode="light"] .nav-tab:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
}

[data-color-mode="light"] .nav-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-color-mode="light"] .nav-bottom-mobile {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

[data-color-mode="light"] .nav-item-mobile {
  color: #64748b;
}

[data-color-mode="light"] .nav-item-mobile.active {
  color: var(--primary);
}

[data-color-mode="light"] .modal-overlay {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
}

[data-color-mode="light"] .modal-container {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

[data-color-mode="light"] .modal-close {
  color: #64748b;
}

[data-color-mode="light"] .modal-close:hover {
  color: #0f172a;
}

[data-color-mode="light"] .form-input,
[data-color-mode="light"] .form-select,
[data-color-mode="light"] .form-textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-color-mode="light"] .form-input:focus,
[data-color-mode="light"] .form-select:focus,
[data-color-mode="light"] .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

[data-color-mode="light"] .form-input::placeholder,
[data-color-mode="light"] .form-textarea::placeholder {
  color: #94a3b8;
}

[data-color-mode="light"] .form-input[readonly] {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

[data-color-mode="light"] .form-group label,
[data-color-mode="light"] .form-group .form-label,
[data-color-mode="light"] .form-label {
  color: #475569;
}

[data-color-mode="light"] .session-card {
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.07);
}

[data-color-mode="light"] .session-title {
  color: #0f172a;
}

[data-color-mode="light"] .session-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-color-mode="light"] .detail-label {
  color: #64748b;
}

[data-color-mode="light"] .detail-val {
  color: #0f172a;
}

[data-color-mode="light"] .slot-progress-bar {
  background: #e2e8f0;
}

[data-color-mode="light"] .btn-rsvp {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
}

[data-color-mode="light"] .btn-rsvp:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-color-mode="light"] .btn-rsvp.active-attend {
  background: #ecfdf5;
  border-color: #059669;
  color: #065f46;
}

[data-color-mode="light"] .btn-rsvp.active-waitlist {
  background: #fffbeb;
  border-color: #d97706;
  color: #92400e;
}

[data-color-mode="light"] .btn-rsvp.active-cant {
  background: #fff1f2;
  border-color: #e11d48;
  color: #9f1239;
}

[data-color-mode="light"] .attendee-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-color-mode="light"] .attendee-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-color-mode="light"] .attendee-name {
  color: #0f172a;
}

[data-color-mode="light"] .btn-secondary {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

[data-color-mode="light"] .btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-color-mode="light"] .btn-primary {
  color: #ffffff;
}

[data-color-mode="light"] .treasury-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-color-mode="light"] .treasury-stat-val {
  color: #0f172a;
}

[data-color-mode="light"] .treasury-stat-label {
  color: #64748b;
}

[data-color-mode="light"] .match-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

[data-color-mode="light"] .team-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-color-mode="light"] .team-box.winner {
  background: #ecfdf5;
  border: 1px solid #059669;
}

[data-color-mode="light"] .court-badge {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

[data-color-mode="light"] .active-member-pill {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-color-mode="light"] .member-name-mini {
  color: #0f172a;
}

[data-color-mode="light"] .header-notices-bell {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-color-mode="light"] .theme-picker-bar {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

[data-color-mode="light"] .theme-dot.active {
  border-color: #0f172a;
}

[data-color-mode="light"] .theme-option-row {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-color-mode="light"] .theme-option-row:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-color-mode="light"] .theme-option-row.active {
  background: #ecfdf5;
  border-color: #059669;
}

[data-color-mode="light"] .role-pill-admin {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

[data-color-mode="light"] .role-pill-co-admin {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

[data-color-mode="light"] .role-pill-member {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

[data-color-mode="light"] .guest-pill {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

[data-color-mode="light"] .skill-badge {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
}

[data-color-mode="light"] .court-chip {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}

[data-color-mode="light"] .court-chip.active {
  background: #ecfdf5;
  color: #065f46;
  border-color: #059669;
}

[data-color-mode="light"] .upi-amount-hero {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), #ffffff);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}

[data-color-mode="light"] .upi-details-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-color-mode="light"] .upi-row-label {
  color: #64748b;
}

[data-color-mode="light"] .upi-row-val {
  color: #0f172a;
}

[data-color-mode="light"] .upi-method-selector {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-color-mode="light"] .btn-upi-tab {
  color: #64748b;
}

[data-color-mode="light"] .btn-upi-tab.active {
  background: #ffffff;
  color: #059669;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-color-mode="light"] .upi-instruction-step-card {
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-color-mode="light"] .upi-instruction-step {
  color: #1e293b;
}

[data-color-mode="light"] .btn-upi-copy {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-color-mode="light"] #appToast {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   COMPREHENSIVE LIGHT THEME SYSTEM (WCAG AAA ATHLETIC AESTHETIC)
   ========================================================================== */

/* 1. Global Containers & Inline Adaptation */
[data-color-mode="light"] [style*="color:#fff"]:not(.btn-primary):not(.btn-launch-prompt):not(.btn-rsvp.active-attend):not(.member-avatar-mini):not(.badge-danger):not(.pill-points-reward):not(.btn-whatsapp):not(.btn-success),
[data-color-mode="light"] [style*="color: #fff"]:not(.btn-primary):not(.btn-launch-prompt):not(.btn-rsvp.active-attend):not(.member-avatar-mini):not(.badge-danger):not(.pill-points-reward):not(.btn-whatsapp):not(.btn-success),
[data-color-mode="light"] [style*="color:#ffffff"]:not(.btn-primary):not(.btn-launch-prompt):not(.btn-rsvp.active-attend):not(.member-avatar-mini):not(.badge-danger):not(.pill-points-reward):not(.btn-whatsapp):not(.btn-success),
[data-color-mode="light"] [style*="color: #ffffff"]:not(.btn-primary):not(.btn-launch-prompt):not(.btn-rsvp.active-attend):not(.member-avatar-mini):not(.badge-danger):not(.pill-points-reward):not(.btn-whatsapp):not(.btn-success) {
  color: #0f172a !important;
}

[data-color-mode="light"] [style*="background:rgba(0,0,0"],
[data-color-mode="light"] [style*="background: rgba(0,0,0"] {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-color-mode="light"] [style*="background:rgba(255,255,255,0.0"],
[data-color-mode="light"] [style*="background: rgba(255,255,255,0.0"] {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* 2. Morning Polls & Session Cards */
[data-color-mode="light"] .session-card,
[data-color-mode="light"] .session-card.completed-session,
[data-color-mode="light"] .session-card[style*="background:linear-gradient"] {
  background: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
}

[data-color-mode="light"] .session-card:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.1) !important;
}

[data-color-mode="light"] .session-title,
[data-color-mode="light"] .session-card .session-title {
  color: #0f172a !important;
}

[data-color-mode="light"] .session-header div,
[data-color-mode="light"] .session-header [style*="color:var(--text-muted)"] {
  color: #475569 !important;
}

[data-color-mode="light"] .session-details {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] .detail-label {
  color: #64748b !important;
}

[data-color-mode="light"] .detail-val {
  color: #0f172a !important;
}

[data-color-mode="light"] .slot-progress-header {
  color: #475569 !important;
}

[data-color-mode="light"] .slot-progress-bar {
  background: #e2e8f0 !important;
}

[data-color-mode="light"] .slot-progress-fill[style*="background:#64748b"],
[data-color-mode="light"] .slot-progress-fill[style*="background: #64748b"] {
  background: #94a3b8 !important;
}

[data-color-mode="light"] .session-card [style*="background:rgba(0,0,0,0.2)"],
[data-color-mode="light"] .session-card [style*="background: rgba(0,0,0,0.2)"],
[data-color-mode="light"] .session-notes-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

[data-color-mode="light"] .session-concluded-banner,
[data-color-mode="light"] .session-card [style*="background:rgba(255,255,255,0.03)"],
[data-color-mode="light"] .session-card [style*="background: rgba(255,255,255,0.03)"] {
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
}

[data-color-mode="light"] .session-concluded-banner span,
[data-color-mode="light"] .session-card [style*="color:#94a3b8"] {
  color: #1e293b !important;
}

[data-color-mode="light"] .session-concluded-banner div,
[data-color-mode="light"] .session-card .session-concluded-banner [style*="color:var(--text-muted)"] {
  color: #64748b !important;
}

[data-color-mode="light"] .closed-session-badge {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-color-mode="light"] .attendee-heading {
  color: #334155 !important;
}

[data-color-mode="light"] .attendee-chip {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

[data-color-mode="light"] .attendee-chip:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-color-mode="light"] .attendee-chip[style*="border-color:var(--primary)"] {
  background: #f0fdf4 !important;
  border-color: var(--primary) !important;
}

[data-color-mode="light"] .attendee-name {
  color: #0f172a !important;
}

[data-color-mode="light"] .checkin-tag.checked {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
}

[data-color-mode="light"] .checkin-btn {
  background: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.25);
}

[data-color-mode="light"] .checkin-btn:hover {
  background: var(--accent-lime) !important;
  color: #ffffff !important;
}

[data-color-mode="light"] .btn-undo-checkin {
  background: #f1f5f9 !important;
  color: #dc2626 !important;
  border: 1px solid #fca5a5 !important;
}

[data-color-mode="light"] button[onclick*="openAdminAdmitOverCapacityModal"] {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #f59e0b !important;
  font-weight: 700 !important;
}

[data-color-mode="light"] button[onclick*="openAdminAdmitOverCapacityModal"]:hover {
  background: #fef3c7 !important;
}

/* 3. Challenge Cards */
[data-color-mode="light"] .challenge-card {
  background: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
}

[data-color-mode="light"] .challenge-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.1) !important;
}

[data-color-mode="light"] .challenge-card.joined {
  background: #ffffff !important;
  border: 1.5px solid var(--primary) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.14) !important;
}

[data-color-mode="light"] .challenge-card.completed {
  background: #ffffff !important;
  border: 1.5px solid #f59e0b !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.14) !important;
}

[data-color-mode="light"] .challenge-icon-box {
  background: #f0fdf4 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

[data-color-mode="light"] .challenge-title {
  color: #0f172a !important;
}

[data-color-mode="light"] .challenge-desc {
  color: #334155 !important;
}

[data-color-mode="light"] .challenge-progress-area {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] .challenge-progress-labels span {
  color: #334155 !important;
}

[data-color-mode="light"] .challenge-progress-track {
  background: #e2e8f0 !important;
}

[data-color-mode="light"] .pill-category {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

[data-color-mode="light"] .pill-month {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-color-mode="light"] .pill-points-reward {
  background: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3) !important;
}

[data-color-mode="light"] .challenge-pill[style*="239,68,68"],
[data-color-mode="light"] .challenge-pill[style*="f87171"],
[data-color-mode="light"] .challenge-pill[style*="fca5a5"] {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
}

[data-color-mode="light"] .challenge-pill[style*="16,185,129"],
[data-color-mode="light"] .challenge-pill[style*="34d399"],
[data-color-mode="light"] .challenge-pill[style*="6ee7b7"] {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

[data-color-mode="light"] .challenge-card [style*="background: rgba(0,0,0,0.25)"],
[data-color-mode="light"] .challenge-card [style*="background:rgba(0,0,0,0.25)"] {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] .challenge-participants-chips .skill-badge {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
}

[data-color-mode="light"] .admin-review-banner {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
}

[data-color-mode="light"] .admin-review-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

/* 4. Club Store & Rewards Catalog */
[data-color-mode="light"] .reward-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

[data-color-mode="light"] .reward-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1), 0 0 18px rgba(16, 185, 129, 0.08) !important;
}

[data-color-mode="light"] .reward-card h4,
[data-color-mode="light"] .reward-card .reward-title {
  color: #0f172a !important;
}

[data-color-mode="light"] .reward-card p,
[data-color-mode="light"] .reward-card .reward-desc {
  color: #475569 !important;
}

[data-color-mode="light"] .reward-card.reward-membership,
[data-color-mode="light"] .reward-card[style*="16,185,129"] {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

[data-color-mode="light"] .reward-card [style*="background:rgba(255,255,255,0.06)"] {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

[data-color-mode="light"] .reward-cost {
  color: #059669 !important;
  font-weight: 800 !important;
}

[data-color-mode="light"] .reward-card [style*="color:#34d399"] {
  color: #059669 !important;
}

[data-color-mode="light"] .reward-card [style*="color:#60a5fa"] {
  color: #1d4ed8 !important;
}

[data-color-mode="light"] .reward-card [style*="background:rgba(245,158,11,0.18)"] {
  background: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}

[data-color-mode="light"] .reward-card [style*="background:rgba(16,185,129,0.18)"] {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

[data-color-mode="light"] .reward-card .btn-secondary {
  background: #f8fafc !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

/* 5. Tables, Ledgers & Financial Records */
[data-color-mode="light"] .treasury-table-wrap,
[data-color-mode="light"] .table-wrap {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-color-mode="light"] .treasury-table,
[data-color-mode="light"] .split-table {
  color: #0f172a !important;
}

[data-color-mode="light"] .treasury-table th,
[data-color-mode="light"] .split-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] .treasury-table td,
[data-color-mode="light"] .split-table td {
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] .treasury-table tr:hover td,
[data-color-mode="light"] .split-table tr:hover td {
  background: #f8fafc !important;
}

[data-color-mode="light"] .treasury-table [style*="background:rgba(255,255,255,0.05)"],
[data-color-mode="light"] .treasury-table [style*="background: rgba(255,255,255,0.05)"] {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] .ledger-credit,
[data-color-mode="light"] td[style*="color:#34d399"],
[data-color-mode="light"] td[style*="color: #34d399"],
[data-color-mode="light"] span[style*="color:#34d399"],
[data-color-mode="light"] span[style*="color: #34d399"] {
  color: #059669 !important;
}

[data-color-mode="light"] .ledger-debit,
[data-color-mode="light"] td[style*="color:#fca5a5"],
[data-color-mode="light"] td[style*="color: #fca5a5"],
[data-color-mode="light"] span[style*="color:#fca5a5"],
[data-color-mode="light"] span[style*="color: #fca5a5"] {
  color: #dc2626 !important;
}

[data-color-mode="light"] span[style*="color:#f87171"],
[data-color-mode="light"] span[style*="color: #f87171"] {
  color: #b91c1c !important;
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
}

[data-color-mode="light"] span[style*="color:#fbbf24"],
[data-color-mode="light"] span[style*="color: #fbbf24"],
[data-color-mode="light"] span[style*="color:#fcd34d"],
[data-color-mode="light"] span[style*="color: #fcd34d"] {
  color: #b45309 !important;
}

/* 6. Database Backup & Cloud Resilience */
[data-color-mode="light"] #cardDatabaseBackup {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06) !important;
}

[data-color-mode="light"] #cardDatabaseBackup .card-title {
  color: #0284c7 !important;
}

[data-color-mode="light"] #cardDatabaseBackup .card-subtitle {
  color: #64748b !important;
}

[data-color-mode="light"] #dbLiveActiveBanner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

[data-color-mode="light"] #dbLiveActiveBanner [style*="color:#94a3b8"] {
  color: #475569 !important;
}

[data-color-mode="light"] #dbActiveClusterName {
  color: #059669 !important;
}

[data-color-mode="light"] #dbLiveActiveBanner [style*="color:#cbd5e1"] {
  color: #334155 !important;
}

[data-color-mode="light"] #dbCardPrimary,
[data-color-mode="light"] #dbCardBackup {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] #dbCardPrimary [style*="color:#fff"],
[data-color-mode="light"] #dbCardBackup [style*="color:#fff"] {
  color: #0f172a !important;
}

[data-color-mode="light"] #dbCardPrimary [style*="color:var(--text-dim)"],
[data-color-mode="light"] #dbCardBackup [style*="color:var(--text-dim)"] {
  color: #64748b !important;
}

[data-color-mode="light"] #cardDatabaseBackup [style*="background:rgba(255,255,255,0.03)"] {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] #cardDatabaseBackup [style*="color:#e2e8f0"] {
  color: #0f172a !important;
}

[data-color-mode="light"] #btnSyncBackupDb {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #f59e0b !important;
}

[data-color-mode="light"] #btnProbeDbStatus {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

/* 7. Monthly Reports & Yearly Health Archive */
[data-color-mode="light"] #cardMonthlyReportsArchive {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06) !important;
}

[data-color-mode="light"] #cardMonthlyReportsArchive h3 {
  color: #0f172a !important;
}

[data-color-mode="light"] #cardMonthlyReportsArchive [style*="background:rgba(56,189,248,0.15)"] {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
}

[data-color-mode="light"] .mr-toolbar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] .mr-toolbar [style*="background:rgba(0,0,0,0.4)"] {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

[data-color-mode="light"] #monthlyReportYearSelect {
  color: #0284c7 !important;
}

[data-color-mode="light"] .mr-kpi-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-color-mode="light"] .mr-kpi-card:hover {
  background: #f8fafc !important;
  border-color: #38bdf8 !important;
}

[data-color-mode="light"] .mr-kpi-title {
  color: #64748b !important;
}

[data-color-mode="light"] .mr-kpi-sub {
  color: #64748b !important;
}

[data-color-mode="light"] .mr-month-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-color-mode="light"] .mr-month-card:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
}

[data-color-mode="light"] .mr-month-card.current-month {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%) !important;
  border-color: #38bdf8 !important;
}

[data-color-mode="light"] .mr-card-month-title {
  color: #0f172a !important;
}

[data-color-mode="light"] .mr-badge-healthy {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

[data-color-mode="light"] .mr-badge-slump {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
}

[data-color-mode="light"] .mr-badge-current {
  background: #f0f9ff !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}

[data-color-mode="light"] #monthlyReportsModal [style*="color:#fff"] {
  color: #0f172a !important;
}

[data-color-mode="light"] #monthlyReportsModal [style*="background:rgba(56,189,248,0.06)"] {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  color: #0c4a6e !important;
}

/* 8. Login Page Banners, Auth Gateway & Modals */
[data-color-mode="light"] #authGatewayScreen > .card:first-child,
[data-color-mode="light"] .auth-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

[data-color-mode="light"] #authGatewayScreen .card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06) !important;
}

[data-color-mode="light"] #gatewayCourtCheckinBanner {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08) !important;
}

[data-color-mode="light"] #gatewayCourtCheckinBanner [style*="color:#fff"] {
  color: #065f46 !important;
}

[data-color-mode="light"] #gatewayCourtCheckinBannerMsg {
  color: #047857 !important;
}

[data-color-mode="light"] #authGatewayScreen h3,
[data-color-mode="light"] #authGatewayScreen h4,
[data-color-mode="light"] #loginModal h3,
[data-color-mode="light"] #loginModal h4 {
  color: #0f172a !important;
}

[data-color-mode="light"] #authGatewayScreen label,
[data-color-mode="light"] #loginModal label {
  color: #334155 !important;
}

[data-color-mode="light"] #authGatewayScreen [style*="background:rgba(0,0,0,0.3)"],
[data-color-mode="light"] #loginModal [style*="background:rgba(0,0,0,0.3)"] {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

[data-color-mode="light"] #authGatewayScreen [style*="background:rgba(255,255,255,0.06)"],
[data-color-mode="light"] #loginModal [style*="background:rgba(255,255,255,0.06)"] {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

[data-color-mode="light"] #authGatewayScreen [style*="rgba(59,130,246,0.12)"],
[data-color-mode="light"] #loginModal [style*="rgba(59,130,246,0.12)"] {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1e40af !important;
}

[data-color-mode="light"] #authGatewayScreen [style*="rgba(16,185,129,0.08)"],
[data-color-mode="light"] #loginModal [style*="rgba(16,185,129,0.08)"] {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
}

[data-color-mode="light"] #authGatewayScreen input.form-input,
[data-color-mode="light"] #loginModal input.form-input {
  color: #0f172a !important;
}

/* Universal Brand Logo Light Mode Inversion (Turns White Logo Images into High-Contrast Dark Brand Logos) */
[data-color-mode="light"] .splash-official-logo-img,
[data-color-mode="light"] .app-brand-logo-img,
[data-color-mode="light"] .auth-hero-card img,
[data-color-mode="light"] .about-hero-card img,
[data-color-mode="light"] img[src*="logo-brand-tight"],
[data-color-mode="light"] img[src*="logo-white"] {
  filter: brightness(0) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.15)) !important;
}

[data-color-mode="light"] .nsa-brand-font,
[data-color-mode="light"] .fullscreen-qr-title,
[data-color-mode="light"] [style*="font-family:var(--font-brand)"],
[data-color-mode="light"] [style*="font-family: var(--font-brand)"] {
  color: #0f172a !important;
}

[data-color-mode="light"] .login-modal-brand-sub {
  color: #475569 !important;
  font-weight: 500 !important;
}

/* 9. About Page & Support Form */
[data-color-mode="light"] .about-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
  border: 1px solid rgba(14, 165, 233, 0.25) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

[data-color-mode="light"] .about-hero-card::before {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%) !important;
}

[data-color-mode="light"] .about-dev-box,
[data-color-mode="light"] .about-hero-card [style*="background: rgba(0,0,0,0.35)"],
[data-color-mode="light"] .about-hero-card [style*="background:rgba(0,0,0,0.35)"] {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

[data-color-mode="light"] .about-dev-box > div:first-child {
  color: #64748b !important;
  font-weight: 700 !important;
}

[data-color-mode="light"] .about-dev-name,
[data-color-mode="light"] .about-dev-name span,
[data-color-mode="light"] .about-hero-card .about-dev-name,
[data-color-mode="light"] .about-hero-card .about-dev-name span,
[data-color-mode="light"] .about-hero-card [style*="color: #fff"],
[data-color-mode="light"] .about-hero-card [style*="color:#fff"] {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 800 !important;
  display: inline-block !important;
}

[data-color-mode="light"] .about-dev-desc {
  color: #334155 !important;
  line-height: 1.4 !important;
}

[data-color-mode="light"] .about-hero-card [style*="background:rgba(255,255,255,0.08)"] {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

/* 9b. App Loading & Splash Screen */
[data-color-mode="light"] .app-launch-splash {
  background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%) !important;
}

[data-color-mode="light"] .splash-subtitle {
  color: #475569 !important;
}

[data-color-mode="light"] .splash-brand-title {
  color: #0f172a !important;
}

[data-color-mode="light"] .splash-glow-ring {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.65) 0%, rgba(14, 165, 233, 0.45) 45%, rgba(16, 185, 129, 0.12) 70%, transparent 80%) !important;
  filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.45)) !important;
}

[data-color-mode="light"] .splash-glow-core {
  background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0.7) 45%, transparent 75%) !important;
  opacity: 0.65 !important;
}

[data-color-mode="light"] .splash-glow-ripple {
  border-color: rgba(16, 185, 129, 0.7) !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35) !important;
}

[data-color-mode="light"] .splash-shuttle-icon {
  filter: drop-shadow(0 8px 20px rgba(16, 185, 129, 0.55)) !important;
}

/* 9c. Loyalty Card & Points Callout */
[data-color-mode="light"] .loyalty-rules-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.16)) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.06) !important;
}

[data-color-mode="light"] .loyalty-rules-title {
  color: #047857 !important;
  font-weight: 800 !important;
}

[data-color-mode="light"] .loyalty-rules-text {
  color: #1e293b !important;
}

[data-color-mode="light"] .loyalty-rules-text strong.loyalty-rule-val-white {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-color-mode="light"] .loyalty-rules-text strong.loyalty-rule-val-green {
  color: #047857 !important;
  font-weight: 800 !important;
}

[data-color-mode="light"] .loyalty-balance-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

[data-color-mode="light"] .loyalty-balance-card:hover {
  background: #f0fdf4 !important;
  border-color: #10b981 !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.2) !important;
}

[data-color-mode="light"] .loyalty-balance-card > div:first-child {
  color: #475569 !important;
}

[data-color-mode="light"] .loyalty-balance-card #userLoyaltyBig {
  color: #0284c7 !important;
  font-weight: 800 !important;
}

[data-color-mode="light"] .loyalty-balance-card > div:last-child {
  color: #059669 !important;
}

[data-color-mode="light"] #btnRewardsPointsHistory {
  background: #ffffff !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

/* 9d. Profile Page & Member Settings Cards */
[data-color-mode="light"] .profile-account-card,
[data-color-mode="light"] #settingsAccountCard {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

[data-color-mode="light"] #settingsAccountName {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-color-mode="light"] #settingsAccountRole {
  color: #475569 !important;
}

[data-color-mode="light"] .profile-skill-tier-row {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] .profile-skill-tier-row > div:first-child > div:first-child {
  color: #475569 !important;
  font-weight: 700 !important;
}

[data-color-mode="light"] .profile-skill-tier-row > div:last-child {
  color: #64748b !important;
}

[data-color-mode="light"] .profile-avatar-controls-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] #cardMemberProfile {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] #cardMemberProfile .card-title {
  color: #0f172a !important;
}

[data-color-mode="light"] #cardMemberProfile .card-subtitle {
  color: #64748b !important;
}

[data-color-mode="light"] #cardMemberProfile label {
  color: #1e293b !important;
}

[data-color-mode="light"] #cardMemberProfile .form-input[readonly] {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

/* 9e. Daily Fill Rate Trend & KPI Cards */
[data-color-mode="light"] .th-chart-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

[data-color-mode="light"] .th-chart-header span {
  color: #0f172a !important;
}

[data-color-mode="light"] .th-kpi-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-color-mode="light"] .th-kpi-title {
  color: #64748b !important;
}

[data-color-mode="light"] .th-kpi-sub {
  color: #94a3b8 !important;
}

[data-color-mode="light"] #tab-reports .th-chart-card + div > div:first-child span:first-child {
  color: #0f172a !important;
}

[data-color-mode="light"] #tab-reports .th-chart-card + div > div:nth-child(2) {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-color-mode="light"] #tab-reports .th-chart-card + div table thead tr {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] #thHistoryTableBody tr {
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

[data-color-mode="light"] #thHistoryTableBody tr:hover {
  background: #f8fafc;
}

/* 9f. Login Modals in Light Mode */
[data-color-mode="light"] #loginModal label,
[data-color-mode="light"] #memberPasswordModal label {
  color: #1e293b !important;
}

[data-color-mode="light"] #loginSelectedName {
  color: #0f172a !important;
}

[data-color-mode="light"] #loginModal [style*="background:rgba(0,0,0,0.3)"] {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-color-mode="light"] #modalMemberMobile {
  color: #0f172a !important;
}

[data-color-mode="light"] #modalMemberMobile::placeholder {
  color: #94a3b8 !important;
}

/* 9g. UPI Payment Modals in Light Mode */
[data-color-mode="light"] .upi-amount-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

[data-color-mode="light"] #rewardUpiPayItemTitle {
  color: #1d4ed8 !important;
}

[data-color-mode="light"] #rewardUpiPayItemDetails {
  color: #475569 !important;
}

[data-color-mode="light"] #rewardUpiPayAmountDisplay,
[data-color-mode="light"] #storeCheckoutUpiAmountDisplay {
  color: #0284c7 !important;
}

[data-color-mode="light"] .btn-upi-copy {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

[data-color-mode="light"] .btn-upi-tab {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-color-mode="light"] .btn-upi-tab.active {
  background: #ffffff !important;
  color: #0284c7 !important;
  border-color: #0284c7 !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15) !important;
}

[data-color-mode="light"] .upi-details-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-color-mode="light"] .upi-instruction-step-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

[data-color-mode="light"] .upi-row-label {
  color: #64748b !important;
}

[data-color-mode="light"] #rewardsCustomInputGroup,
[data-color-mode="light"] #storeCustomInputGroup,
[data-color-mode="light"] #membershipCustomInputGroup,
[data-color-mode="light"] #shuttleCustomInputGroup {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-color-mode="light"] #tab-about .form-label,
[data-color-mode="light"] #tab-about label {
  color: #0f172a !important;
}

[data-color-mode="light"] .issue-cat-label {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

[data-color-mode="light"] .issue-cat-label:hover {
  background: #f1f5f9 !important;
  border-color: #25D366 !important;
}

[data-color-mode="light"] .issue-cat-label input[type="radio"]:checked + span {
  color: #065f46 !important;
  font-weight: 700 !important;
}

[data-color-mode="light"] .issue-cat-label:has(input[type="radio"]:checked) {
  border-color: #25D366 !important;
  background: #ecfdf5 !important;
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.2) !important;
}

[data-color-mode="light"] #tab-about [style*="background: rgba(0,0,0,0.3)"],
[data-color-mode="light"] #tab-about [style*="background:rgba(0,0,0,0.3)"] {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] #bugDiagnosticChips .badge {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-color-mode="light"] #tab-about h2,
[data-color-mode="light"] #tab-about h3 {
  color: #0f172a !important;
}

[data-color-mode="light"] #tab-about li strong {
  color: #0f172a !important;
}

[data-color-mode="light"] #tab-about [style*="color:#fff"],
[data-color-mode="light"] #tab-about [style*="color: #fff"] {
  color: #0f172a !important;
}

[data-color-mode="light"] #panDisplayPhone {
  color: #0f172a !important;
}

/* 10. Tournaments, Leaderboard & Court Register */
[data-color-mode="light"] .tournament-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08) !important;
}

[data-color-mode="light"] .tournament-hero h2,
[data-color-mode="light"] .tournament-hero h3 {
  color: #0f172a !important;
}

[data-color-mode="light"] .tournament-hero p {
  color: #475569 !important;
}

[data-color-mode="light"] .leaderboard-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-color-mode="light"] .leaderboard-item:hover {
  background: #f8fafc !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-color-mode="light"] .leaderboard-item .points-val {
  color: #059669 !important;
  font-weight: 800 !important;
}

[data-color-mode="light"] .announcement-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #f0fdf4 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: #0f172a !important;
}

[data-color-mode="light"] #crtAllCollectionsList [style*="color:#fff"] {
  color: #0f172a !important;
}

[data-color-mode="light"] #crtAllCollectionsList [style*="border-bottom:1px solid rgba(255,255,255,0.05)"] {
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
[data-color-mode="light"] ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

/* ==========================================================================
   11. COMPREHENSIVE LIGHT THEME RULES FOR TEAM HEALTH, CHALLENGE, ARCHIVE & MODALS
   ========================================================================== */

/* 11a. Frontpage Team Health Meter & Accordion */
[data-color-mode="light"] .team-health-card {
  background: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

[data-color-mode="light"] .team-health-card:hover {
  border-color: rgba(16, 185, 129, 0.5) !important;
}

[data-color-mode="light"] .team-health-title-badge {
  color: #0f172a !important;
}

[data-color-mode="light"] .team-health-mini-bar {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}

[data-color-mode="light"] .team-health-toggle-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

[data-color-mode="light"] .team-health-toggle-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

[data-color-mode="light"] .team-health-btn-graph {
  background: rgba(2, 132, 199, 0.1) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
  color: #0284c7 !important;
}

[data-color-mode="light"] .team-health-btn-graph:hover {
  background: rgba(2, 132, 199, 0.2) !important;
  color: #0369a1 !important;
}

[data-color-mode="light"] .team-health-details {
  border-top-color: #e2e8f0 !important;
}

[data-color-mode="light"] .team-health-details [style*="background:rgba(0,0,0,0.25)"] {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

[data-color-mode="light"] .team-health-details [style*="background:rgba(0,0,0,0.4)"] {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}

/* 11b. Session Polls RSVP Challenge Opt-In */
[data-color-mode="light"] .rsvp-challenge-optin {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-color-mode="light"] .rsvp-challenge-optin.opted-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
  border-color: rgba(217, 119, 6, 0.45) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.1) !important;
}

[data-color-mode="light"] .challenge-optin-title {
  color: #0f172a !important;
}

[data-color-mode="light"] .challenge-optin-desc {
  color: #475569 !important;
}

[data-color-mode="light"] .challenge-enrolled-pill {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #047857 !important;
}

/* 11c. Member Points Transaction History Modal */
[data-color-mode="light"] #memberPointsHistoryModal .modal-container {
  background: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}

[data-color-mode="light"] #mHistoryPlayerName {
  color: #0f172a !important;
}

[data-color-mode="light"] #mHistoryPlayerSubtitle {
  color: #64748b !important;
}

[data-color-mode="light"] #memberPointsHistoryModal [style*="background: linear-gradient(135deg, rgba(16,185,129,0.12)"] {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, #f8fafc 100%) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-color-mode="light"] #memberPointsHistoryModal [style*="background:rgba(0,0,0,0.25)"] {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-color-mode="light"] #mHistoryMonthSelect {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

[data-color-mode="light"] .m-hist-filter-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

[data-color-mode="light"] .m-hist-filter-btn.active {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #047857 !important;
  border-color: #059669 !important;
}

[data-color-mode="light"] .member-txn-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-color-mode="light"] .member-txn-card:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-color-mode="light"] .member-txn-card [style*="background:rgba(255,255,255,0.04)"] {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

.member-txn-reason {
  font-size: 0.82rem;
  color: #f1f5f9;
  word-break: break-word;
  line-height: 1.35;
  font-weight: 500;
}

[data-color-mode="light"] .member-txn-reason {
  color: #0f172a !important;
  font-weight: 600 !important;
}

/* 11d. Monthly Reports & Yearly Health Archive Modal */
[data-color-mode="light"] .mr-modal-dialog {
  background: #ffffff !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}

[data-color-mode="light"] .mr-toolbar {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-color-mode="light"] .mr-toolbar [style*="background:rgba(0,0,0,0.4)"] {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

[data-color-mode="light"] #monthlyReportYearSelect {
  color: #0284c7 !important;
}

[data-color-mode="light"] .mr-kpi-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-color-mode="light"] .mr-kpi-card:hover {
  background: #f1f5f9 !important;
  border-color: rgba(2, 132, 199, 0.4) !important;
}

[data-color-mode="light"] .mr-kpi-title {
  color: #64748b !important;
}

[data-color-mode="light"] .mr-kpi-sub {
  color: #64748b !important;
}

[data-color-mode="light"] .mr-month-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-color-mode="light"] .mr-month-card:hover {
  border-color: rgba(2, 132, 199, 0.45) !important;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12) !important;
}

[data-color-mode="light"] .mr-month-card.current-month {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.06) 0%, #ffffff 100%) !important;
  border-color: rgba(2, 132, 199, 0.4) !important;
}

[data-color-mode="light"] .mr-card-month-title {
  color: #0f172a !important;
}

[data-color-mode="light"] .mr-progress-track {
  background: #e2e8f0 !important;
}

.mr-stats-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

[data-color-mode="light"] .mr-stats-box,
[data-color-mode="light"] .mr-month-card [style*="background:rgba(0,0,0,0.2)"] {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-color-mode="light"] .mr-stat-row {
  color: #475569 !important;
}

[data-color-mode="light"] .mr-stat-row strong {
  color: #0f172a !important;
}

[data-color-mode="light"] .mr-note-box {
  background: #f1f5f9 !important;
  border-left: 3px solid #0284c7 !important;
  color: #1e293b !important;
}

[data-color-mode="light"] .mr-modal-dialog [style*="color:#fff"] {
  color: #0f172a !important;
}

[data-color-mode="light"] .mr-modal-dialog [style*="background:rgba(56,189,248,0.06)"] {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  color: #1e293b !important;
}

/* 11e. Team Health 30-Day Analytics & Graph Pop-up Modal */
[data-color-mode="light"] .th-modal-dialog {
  background: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}

[data-color-mode="light"] .th-range-bar {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

[data-color-mode="light"] .th-range-btn {
  color: #475569 !important;
}

[data-color-mode="light"] .th-range-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

[data-color-mode="light"] .th-mode-btn {
  color: #475569 !important;
}

[data-color-mode="light"] .th-mode-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

[data-color-mode="light"] #thKpiSlots {
  color: #0f172a !important;
}

.th-td-date {
  padding: 8px 10px;
  font-weight: 600;
  color: #fff;
  font-family: monospace;
}

.th-strong-checkins {
  color: #e2e8f0;
}

[data-color-mode="light"] .th-td-date {
  color: #0f172a !important;
}

[data-color-mode="light"] .th-strong-checkins {
  color: #0f172a !important;
}

[data-color-mode="light"] .th-modal-dialog [style*="color:#fff"] {
  color: #0f172a !important;
}

[data-color-mode="light"] .th-modal-dialog [style*="background:rgba(0,0,0,0.2)"] {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-color-mode="light"] .th-modal-dialog [style*="background:rgba(255,255,255,0.04)"] {
  background: #f1f5f9 !important;
  border-bottom-color: #e2e8f0 !important;
  color: #475569 !important;
}

/* 11f. Desktop Tabs in Light Mode */
[data-color-mode="light"] .nav-desktop {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

[data-color-mode="light"] .nav-tab {
  color: #475569 !important;
  border-radius: 9999px !important;
}

[data-color-mode="light"] .nav-tab:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

[data-color-mode="light"] .nav-tab.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
}

[data-color-mode="light"][data-theme="electric-lime"] .nav-tab.active,
[data-color-mode="light"][data-theme="stealth-silver"] .nav-tab.active {
  color: #04241a !important;
}

/* 11g. About Support Modal in Light Mode */
[data-color-mode="light"] #aboutSupportModal .modal-container {
  background: #ffffff !important;
}

[data-color-mode="light"] #aboutSupportModal [style*="background:linear-gradient(135deg, rgba(16,185,129,0.12)"] {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, #f8fafc 100%) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

[data-color-mode="light"] #aboutSupportModal [style*="color:#fff"] {
  color: #0f172a !important;
}

/* ==========================================================================
   11h. MY STORE ORDERS & OFFICIAL CLUB RECEIPTS (DARK & LIGHT OPTIMIZED)
   ========================================================================== */
.my-store-order-card {
  margin-bottom: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.my-store-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.my-store-order-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: #ffffff;
  line-height: 1.3;
}

.my-store-order-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.my-store-order-delivered-tag {
  color: #34d399;
  font-weight: 600;
}

.my-store-order-delivery-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 3.5px solid #f59e0b;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fef08a;
  margin-top: 10px;
}

.my-store-order-delivery-notice .delivery-notice-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.my-store-order-delivery-notice strong {
  color: #ffffff;
  font-weight: 700;
}

.my-store-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

.my-store-order-pay {
  color: var(--text-muted);
}

.my-store-order-amount {
  color: #ffffff;
  font-weight: 700;
}

.my-store-order-notes {
  margin-left: 6px;
  color: var(--text-dim);
}

.my-store-order-badge {
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.my-store-order-badge.badge-awaiting {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.my-store-order-badge.badge-delivered,
.my-store-order-badge.badge-approved {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.my-store-order-badge.badge-pending {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.my-store-order-badge.badge-cancelled {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.my-store-btn-slip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.my-store-orders-empty {
  text-align: center;
  padding: 36px 16px;
}

.my-store-empty-title {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.my-store-empty-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Official Club Receipt Slip (Dark Theme) */
.court-receipt-card {
  background: linear-gradient(180deg, rgba(20, 28, 24, 0.95) 0%, rgba(12, 18, 15, 0.98) 100%);
  border: 1.5px dashed rgba(16, 185, 129, 0.5);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  margin: 8px 0 14px 0;
  position: relative;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.court-receipt-modal-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.court-receipt-header {
  text-align: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.court-receipt-brand-logo {
  max-width: 180px;
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto 6px auto;
}

.court-receipt-club-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-brand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.court-receipt-id-pill {
  display: inline-block;
  margin-top: 6px;
  font-family: monospace;
  font-size: 0.78rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.court-receipt-details {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.82rem;
}

.court-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.court-receipt-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.court-receipt-val {
  font-weight: 600;
  color: #ffffff;
  text-align: right;
}

.court-receipt-val-bold {
  font-weight: 700;
}

.court-receipt-item {
  font-weight: 700;
  color: #34d399;
  text-align: right;
}

.court-receipt-cashier {
  color: var(--text-muted);
}

.court-receipt-status.status-approved,
.court-receipt-status.status-delivered {
  color: #34d399;
  font-weight: 700;
}

.court-receipt-status.status-pending,
.court-receipt-status.status-awaiting {
  color: #fbbf24;
  font-weight: 700;
}

.court-receipt-status.status-cancelled {
  color: #f87171;
  font-weight: 700;
}

.court-receipt-upi-section {
  text-align: center;
  margin-top: 12px;
  padding: 12px 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
}

.court-receipt-upi-title {
  font-size: 0.7rem;
  color: #93c5fd;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.court-receipt-qr-img {
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  display: inline-block;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.court-receipt-upi-id {
  color: #60a5fa;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.78rem;
}

.court-receipt-total-row {
  border-top: 1.5px dashed rgba(255, 255, 255, 0.18);
  margin-top: 12px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.court-receipt-total-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.court-receipt-total-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #34d399;
  font-family: var(--font-heading);
}

.court-receipt-action-btn {
  font-weight: 700;
}

/* Cashier Court Delivery Cards */
.cashier-delivery-card {
  margin-bottom: 10px;
  padding: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
}

.cashier-delivery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}

.cashier-delivery-member {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.cashier-delivery-receipt-id {
  font-size: 0.75rem;
  font-weight: normal;
  color: var(--text-dim);
}

.cashier-delivery-item {
  font-size: 0.85rem;
  color: #fbbf24;
  font-weight: 700;
  margin-top: 2px;
}

.cashier-delivery-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.cashier-delivery-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 5px 9px;
  border-radius: 4px;
}

.cashier-delivery-badge {
  font-size: 0.72rem;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 4px;
}

/* ==========================================================================
   LIGHT MODE OPTIMIZATIONS FOR STORE ORDERS & OFFICIAL CLUB RECEIPTS
   ========================================================================== */
[data-color-mode="light"] #myStoreOrdersModal .modal-container,
[data-color-mode="light"] #courtReceiptModal .modal-container {
  background: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12) !important;
}

[data-color-mode="light"] .my-store-modal-title {
  color: #0f172a !important;
}

[data-color-mode="light"] .my-store-modal-sub {
  color: #64748b !important;
}

[data-color-mode="light"] .my-store-order-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

[data-color-mode="light"] .my-store-order-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

[data-color-mode="light"] .my-store-order-title {
  color: #0f172a !important;
}

[data-color-mode="light"] .my-store-order-sub {
  color: #64748b !important;
}

[data-color-mode="light"] .my-store-order-delivered-tag {
  color: #047857 !important;
  font-weight: 700;
}

[data-color-mode="light"] .my-store-order-delivery-notice {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  border-left: 3.5px solid #d97706 !important;
  color: #92400e !important;
}

[data-color-mode="light"] .my-store-order-delivery-notice strong {
  color: #78350f !important;
}

[data-color-mode="light"] .my-store-order-footer {
  border-top-color: #f1f5f9 !important;
}

[data-color-mode="light"] .my-store-order-pay {
  color: #475569 !important;
}

[data-color-mode="light"] .my-store-order-amount {
  color: #0f172a !important;
}

[data-color-mode="light"] .my-store-order-notes {
  color: #64748b !important;
}

[data-color-mode="light"] .my-store-order-badge.badge-awaiting {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fcd34d !important;
}

[data-color-mode="light"] .my-store-order-badge.badge-delivered,
[data-color-mode="light"] .my-store-order-badge.badge-approved {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
}

[data-color-mode="light"] .my-store-order-badge.badge-pending {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fcd34d !important;
}

[data-color-mode="light"] .my-store-order-badge.badge-cancelled {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fca5a5 !important;
}

[data-color-mode="light"] .my-store-btn-slip {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

[data-color-mode="light"] .my-store-btn-slip:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

[data-color-mode="light"] .my-store-empty-title {
  color: #0f172a !important;
}

[data-color-mode="light"] .my-store-empty-sub {
  color: #64748b !important;
}

/* Light Theme: Official Club Receipt Slip */
[data-color-mode="light"] .court-receipt-modal-title {
  color: #64748b !important;
}

[data-color-mode="light"] .court-receipt-card {
  background: #ffffff !important;
  border: 1.5px dashed rgba(16, 185, 129, 0.65) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
}

[data-color-mode="light"] .court-receipt-header {
  border-bottom: 1px dashed #cbd5e1 !important;
}

[data-color-mode="light"] .court-receipt-club-sub {
  color: #64748b !important;
  font-weight: 500 !important;
}

[data-color-mode="light"] .court-receipt-id-pill {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
}

[data-color-mode="light"] .court-receipt-label {
  color: #64748b !important;
}

[data-color-mode="light"] .court-receipt-val {
  color: #0f172a !important;
}

[data-color-mode="light"] .court-receipt-item {
  color: #047857 !important;
}

[data-color-mode="light"] .court-receipt-cashier {
  color: #64748b !important;
}

[data-color-mode="light"] .court-receipt-status.status-approved,
[data-color-mode="light"] .court-receipt-status.status-delivered {
  color: #047857 !important;
}

[data-color-mode="light"] .court-receipt-status.status-pending,
[data-color-mode="light"] .court-receipt-status.status-awaiting {
  color: #b45309 !important;
}

[data-color-mode="light"] .court-receipt-status.status-cancelled {
  color: #dc2626 !important;
}

[data-color-mode="light"] .court-receipt-upi-section {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 1px dashed #cbd5e1 !important;
}

[data-color-mode="light"] .court-receipt-upi-title {
  color: #1e40af !important;
}

[data-color-mode="light"] .court-receipt-qr-img {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1) !important;
  border: 1px solid #e2e8f0 !important;
}

[data-color-mode="light"] .court-receipt-upi-id {
  color: #1d4ed8 !important;
}

[data-color-mode="light"] .court-receipt-total-row {
  border-top: 1.5px dashed #cbd5e1 !important;
}

[data-color-mode="light"] .court-receipt-total-label {
  color: #0f172a !important;
}

[data-color-mode="light"] .court-receipt-total-val {
  color: #047857 !important;
}

[data-color-mode="light"] .court-receipt-action-btn {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

[data-color-mode="light"] .court-receipt-action-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

/* Light Theme: Cashier Delivery Cards */
[data-color-mode="light"] .cashier-delivery-card {
  background: #fffbeb !important;
  border: 1px solid #fcd34d !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

[data-color-mode="light"] .cashier-delivery-member {
  color: #0f172a !important;
}

[data-color-mode="light"] .cashier-delivery-receipt-id {
  color: #64748b !important;
}

[data-color-mode="light"] .cashier-delivery-item {
  color: #b45309 !important;
}

[data-color-mode="light"] .cashier-delivery-meta {
  color: #64748b !important;
}

[data-color-mode="light"] .cashier-delivery-note {
  background: #ffffff !important;
  border: 1px solid #fde68a !important;
  color: #78350f !important;
}

[data-color-mode="light"] .cashier-delivery-badge {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
}

[data-color-mode="light"] .cashier-delivery-slip-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Universal Light Mode for QR Save Buttons */
[data-color-mode="light"] .btn-save-qr {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

[data-color-mode="light"] .btn-save-qr:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Appearance Mode Segmented Selector in Modals & Settings */
.color-mode-segmented {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

[data-color-mode="light"] .color-mode-segmented {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-color-mode-tab {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-color-mode-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

[data-color-mode="light"] .btn-color-mode-tab:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.btn-color-mode-tab.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1));
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

[data-color-mode="light"] .btn-color-mode-tab.active {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Theme Picker Bar */

.theme-picker-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.theme-dot:hover {
  transform: scale(1.2);
}

.theme-dot.active {
  border-color: #fff;
  box-shadow: 0 0 8px currentColor;
}

/* Mobile & Universal Theme Picker Button (Accessible on all screen sizes) */
.header-theme-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.theme-option-row {
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.theme-option-row:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--primary) !important;
}
.theme-option-row.active {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: var(--primary) !important;
}

/* Admin Verification Pill & Banner */
.admin-mode-pill {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-pending-alert {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(244, 63, 94, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(34, 197, 94, 0.06) 0%, transparent 45%);
  padding-bottom: 84px; /* Space for bottom mobile nav */
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1f3529;
  border-radius: var(--radius-full);
}

/* App Container */
.app-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

/* ==========================================================================
   TOP HEADER & USER BAR
   ========================================================================== */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 12px;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--primary-glow);
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.brand-icon[data-badge-style="dark"] {
  background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 18px var(--primary-glow);
}

.brand-icon[data-badge-style="neon"] {
  background: radial-gradient(circle at center, var(--primary-dark) 0%, #030712 100%);
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 22px var(--primary-glow), inset 0 0 8px var(--primary-glow);
}

.brand-icon:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 22px var(--primary-glow);
}

.brand-icon svg, .brand-icon img {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  min-width: 0;
  overflow: hidden;
}

.brand-text h1 {
  font-family: var(--font-brand);
  font-size: clamp(0.82rem, 2.5vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 60%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
  line-height: 1.25;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

/* Member Selector Pill */
.active-member-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  min-width: 0;
  max-width: 220px;
}

.active-member-pill:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(-1px);
}

.member-avatar-mini {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.member-meta-mini {
  text-align: left;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.member-name-mini {
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.member-streak-mini {
  font-size: 0.7rem;
  color: #f59e0b;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Notification Bell - ALWAYS fully visible, never shrinks or clips */
.header-notices-bell {
  flex-shrink: 0 !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: var(--radius-full) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--border-subtle) !important;
  color: #fff !important;
  font-size: 1.05rem !important;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0 !important;
}

.header-notices-bell:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   NAVIGATION TABS
   ========================================================================== */
/* Desktop Nav Header */
.nav-desktop {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 3px;
  background: rgba(18, 26, 22, 0.75);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-desktop::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.81rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.nav-tab.active {
  background: var(--primary);
  color: #04241a;
  font-weight: 700;
  box-shadow: 0 3px 12px var(--primary-glow);
}

@media (max-width: 1100px) {
  .nav-tab {
    padding: 6px 9px;
    font-size: 0.77rem;
    gap: 4px;
  }
}

/* Mobile Bottom Navigation */
.nav-bottom-mobile {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 16, 13, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  padding: 8px 12px 14px;
  z-index: 1000;
  justify-content: space-around;
}

.nav-item-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-item-mobile .icon {
  font-size: 1.25rem;
}

.nav-item-mobile.active {
  color: var(--primary);
}

.nav-item-mobile.active .icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 8px var(--primary-glow));
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none !important;
  }
  .nav-bottom-mobile {
    display: flex !important;
    padding: 6px 0 10px;
    gap: 0;
    justify-content: space-around;
    background: rgba(10, 16, 13, 0.98);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-bottom-mobile::-webkit-scrollbar {
    display: none;
  }
  .nav-item-mobile {
    padding: 3px 0;
    font-size: 0.52rem;
    flex: 1;
    min-width: 0;
    position: relative;
    text-align: center;
  }
  .nav-item-mobile span:not(.icon) {
    font-size: 0.52rem;
    letter-spacing: -0.35px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }
  .nav-item-mobile .icon {
    font-size: 1.15rem;
    line-height: 1;
    margin-bottom: 2px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-item-mobile span:not(.icon) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 0.62rem;
  }

/* Court Selection Chips */
.court-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}
.court-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.court-chip.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px var(--primary-glow);
}

  /* One-Line Mobile Top Header / Top Banner with enhanced touch height */
  .top-header {
    padding: 12px 14px;
    min-height: 56px;
    margin-bottom: 14px;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
  }
  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
    overflow: hidden;
    align-items: center;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .brand-icon img, .brand-icon svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }
  .brand-text {
    min-width: 0;
    overflow: visible;
    flex: 1 1 auto;
  }
  .brand-text h1 {
    font-size: clamp(0.74rem, 3.2vw, 0.94rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    line-height: 1.2;
  }
  .brand-text span {
    font-size: 0.64rem;
    white-space: nowrap;
    overflow: visible;
    max-width: none;
    line-height: 1.2;
  }

  /* Prevent top-header crowding on mobile by hiding color swatches (accessible via 🎨 button & Settings) */
  .theme-picker-bar {
    display: none;
  }
  .header-theme-btn {
    display: inline-flex !important;
  }
  .header-right-controls {
    gap: 6px;
    align-items: center;
  }
  .active-member-pill {
    padding: 4px 8px;
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
    max-width: 125px;
  }
  .member-name-mini {
    font-size: 0.76rem;
    max-width: 76px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .member-streak-mini {
    display: none;
  }
  .member-avatar-mini {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    font-size: 0.72rem;
  }
  .header-notices-bell, .header-theme-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-full) !important;
    padding: 0 !important;
  }
  #btnHeaderLogout {
    padding: 4px 8px;
    font-size: 0.72rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Enhanced mobile heights & breathing room for banners */
  .offline-top-banner {
    padding: 12px 16px;
    min-height: 48px;
    font-size: 0.88rem;
  }
  .announcement-banner {
    padding: 14px 16px;
    min-height: 52px;
    margin-bottom: 16px;
  }
  .membership-renewal-banner {
    padding: 16px 16px;
    min-height: 60px;
    margin-bottom: 16px;
  }
  .admin-review-banner {
    padding: 16px 18px;
    min-height: 56px;
    margin-bottom: 16px;
  }

  /* Prevent icon elongation */
  img, svg, .icon, .theme-dot, .member-avatar-mini, .brand-icon {
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }
}

/* Notification unread badge on mobile nav */
.notice-nav-dot {
  position: absolute;
  top: 2px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  display: none;
}

/* ==========================================================================
   ANNOUNCEMENTS BANNER
   ========================================================================== */
.announcement-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: fadeIn 0.4s ease;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.announcement-badge {
  background: var(--accent-amber);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* ==========================================================================
   CARDS & SECTIONS
   ========================================================================== */
.card {
  background: linear-gradient(145deg, rgba(20, 32, 26, 0.88) 0%, rgba(11, 17, 14, 0.96) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 10px 32px -4px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}

.card:hover {
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 14px 40px -4px rgba(0, 0, 0, 0.55), 0 0 18px rgba(16, 185, 129, 0.08);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Action Buttons */
.btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  pointer-events: auto;
  box-sizing: border-box;
}

/* Ensure inner elements (icons, emojis, spans, badges, text) do not swallow or fragment clicks */
.btn > *,
.btn-rsvp > *,
.checkin-btn > * {
  pointer-events: none;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-lime));
  color: #04241a;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  /* Prevent boundary shift/flutter that cancels mouseup clicks near edges */
  box-shadow: 0 6px 20px var(--primary-glow);
  filter: brightness(1.06);
}

.btn-primary:active {
  transform: scale(0.985);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-secondary:active {
  transform: scale(0.985);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #fff;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #20ba59;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
  transform: scale(0.985);
}

.spinner-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btnSpinnerAnim 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes btnSpinnerAnim {
  to { transform: rotate(360deg); }
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-icon-only {
  padding: 8px;
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
}

/* ==========================================================================
   GAME SESSIONS & POLLS
   ========================================================================== */
.session-card {
  background: linear-gradient(145deg, rgba(24, 38, 30, 0.88) 0%, rgba(13, 20, 16, 0.97) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 36px -6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.session-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 18px 46px -6px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.12);
}

.session-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-lime), #38bdf8);
  box-shadow: 0 0 10px var(--primary-glow);
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.session-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.session-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 14px 0;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.detail-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Court Slot Progress Bar */
.slot-progress-wrap {
  margin: 14px 0;
}

.slot-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.slot-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.slot-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-lime));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* RSVP Actions */
.rsvp-buttons-group {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.btn-rsvp {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-rsvp:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-rsvp.active-attend {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--primary);
  color: #34d399;
  font-weight: 700;
}

.btn-rsvp.active-waitlist {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-amber);
  color: #fbbf24;
  font-weight: 700;
}

.btn-rsvp.active-cant {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--accent-rose);
  color: #f87171;
  font-weight: 700;
}

/* Attending Player Avatars & Checkin */
.attendee-list {
  margin-top: 16px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.attendee-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.attendee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 12px;
}

@media (max-width: 720px) {
  .attendee-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.attendee-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  transition: var(--transition-fast);
}

.attendee-chip:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.45);
}

.attendee-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 0%;
}

.attendee-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.attendee-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendee-tier {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.attendee-chip > div:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Checkin badge / button */
.checkin-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.checkin-tag.checked {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.checkin-btn {
  background: var(--primary);
  color: #04241a;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.checkin-btn:hover {
  background: var(--accent-lime);
  transform: scale(1.04);
}

/* WhatsApp Share Section */
.session-footer-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   SHUTTLE RESTOCKING & EXPENSE SPLIT
   ========================================================================== */
.expense-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.expense-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.expense-amount-badge {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-lime);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-md);
}

.split-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.split-table th {
  text-align: left;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.split-table td {
  padding: 10px;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status-paid {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.status-unpaid {
  background: rgba(244, 63, 94, 0.2);
  color: #f87171;
}

/* QR Code & Payment Box */
.payment-info-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.upi-id-pill {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--accent-lime);
  font-size: 0.88rem;
}

/* ==========================================================================
   LOYALTY & LEADERBOARD
   ========================================================================== */
.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.leaderboard-item:hover {
  background: rgba(14, 165, 233, 0.06);
  border-color: rgba(14, 165, 233, 0.3);
}

.leaderboard-rank {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  width: 32px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.rank-1 { color: #f59e0b; }
.rank-2 { color: #94a3b8; }
.rank-3 { color: #b45309; }

.leaderboard-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.leaderboard-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-align: right;
  margin-left: auto;
}

.points-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

/* Rewards Grid */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.reward-card {
  background: linear-gradient(145deg, rgba(22, 34, 27, 0.8) 0%, rgba(13, 19, 16, 0.92) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.reward-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 18px rgba(245, 158, 11, 0.1);
}

.reward-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  display: inline-block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.reward-cost {
  font-size: 0.9rem;
  color: #f59e0b;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   TOURNAMENTS & MATCHMAKER
   ========================================================================== */
.tournament-hero {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}

.guest-pill {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.match-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.match-round {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.match-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.team-box.winner {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--primary);
}

.vs-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-dim);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-container {
  background: #111a14;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: modalUp 0.25s ease-out;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label,
.form-group .form-label,
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.form-input[readonly] {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1;
  cursor: pointer;
}

.form-input.profile-field-editing,
.form-input.club-field-editing {
  background: rgba(16, 185, 129, 0.06) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
  color: #fff !important;
  cursor: text !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Quick Morning Scheduling Action Bar */
.quick-action-bar {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 78, 59, 0.3) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
}

.quick-action-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-time-pill {
  background: var(--primary);
  color: #032319;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

/* Skill Tier Badges (Beginner, Intermediate, Advanced) */
.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.skill-badge-beginner {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.skill-badge-intermediate {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.skill-badge-advanced {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* UPI Payment Buttons */
.btn-upi-app {
  background: linear-gradient(135deg, #5f27cd, #341f97);
  color: #fff;
  font-weight: 700;
}

.btn-upi-app:hover {
  background: linear-gradient(135deg, #6c5ce7, #5f27cd);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}

.upi-edit-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: var(--radius-md);
  margin-top: 10px;
  border: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
}

/* Enhanced UPI Payment Hub Styles */
.upi-payment-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.upi-amount-hero {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.upi-qr-stage {
  background: #ffffff;
  padding: 14px;
  border-radius: 16px;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  margin: 0 auto;
  position: relative;
}

.upi-qr-stage img {
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.upi-details-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upi-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.upi-row-item:last-child {
  border-bottom: none;
}

.upi-row-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.upi-row-val {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  word-break: break-all;
}

.btn-upi-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent-lime);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-upi-copy:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-lime);
  color: #fff;
  transform: translateY(-1px);
}

.btn-upi-copy.copied {
  background: rgba(16, 185, 129, 0.3) !important;
  color: #34d399 !important;
  border-color: #34d399 !important;
}

.upi-app-launcher-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 6px 0;
}

.btn-app-gpay {
  background: linear-gradient(135deg, #1f2937, #111827);
  border: 1px solid rgba(66, 133, 244, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-app-gpay:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-app-phonepe {
  background: linear-gradient(135deg, #5f259f, #4a154b);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-app-phonepe:hover {
  background: linear-gradient(135deg, #7c3aed, #5f259f);
  border-color: #a855f7;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-app-paytm {
  background: linear-gradient(135deg, #002970, #001e4d);
  border: 1px solid rgba(0, 185, 245, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-app-paytm:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-app-bhim {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(249, 115, 22, 0.45);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-app-bhim:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border-color: #fb923c;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
}

.btn-app-any {
  background: linear-gradient(135deg, #065f46, #047857);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-app-any:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-save-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  color: #e2e8f0;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.btn-save-qr:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.upi-security-callout {
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.74rem;
  line-height: 1.4;
  color: #fef08a;
}

.upi-security-callout strong {
  color: #fde047;
}

.upi-method-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 6px;
  margin-bottom: 12px;
}

.btn-upi-tab {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-upi-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-upi-tab.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1));
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-launch-prompt {
  width: 100%;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.btn-launch-prompt:hover {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.upi-instruction-step-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: left;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upi-instruction-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  color: #e2e8f0;
  line-height: 1.35;
}

.upi-step-num {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Role Pills & Skill Badges (Never wrap or collide) */
.role-pill-admin, .role-pill-co-admin, .role-pill-member, .guest-pill, .skill-badge {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.role-pill-admin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  letter-spacing: 0.03em;
}

.role-pill-co-admin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.45);
  letter-spacing: 0.03em;
}

.role-pill-member {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 10px;
}

.gateway-player-row {
  cursor: pointer;
  padding: 9px 12px;
  margin-bottom: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.gateway-player-row:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
}

.gateway-player-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.gateway-player-info {
  min-width: 0;
  flex: 1;
}

.gateway-player-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.25;
}

.gateway-player-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gateway-player-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.73rem;
  color: var(--text-dim);
  margin-top: 3px;
}

.gateway-login-btn {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  padding: 5px 12px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-md) !important;
}


/* ==========================================================================
   COURT ATTENDANCE & QR CODE STYLES
   ========================================================================== */
.qr-card-display {
  background: #ffffff;
  padding: 16px;
  border-radius: 18px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
  margin: 12px 0;
  position: relative;
}

.qr-card-display img {
  border-radius: 10px;
  display: block;
}

.qr-stand-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a0e0c;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 1.6s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.closed-session-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.session-stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  text-align: center;
}

.scanner-viewport {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 240px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-laser {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22c55e, #10b981, transparent);
  box-shadow: 0 0 8px #22c55e;
  animation: scanAnim 2s ease-in-out infinite;
}

@keyframes scanAnim {
  0%, 100% { top: 15%; }
  50% { top: 85%; }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-25px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-alert-banner {
  position: fixed;
  top: 14px;
  left: 12px;
  right: 12px;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.96), rgba(6, 95, 70, 0.98));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideInDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Quick Match Team Generator */
.quick-match-board {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.match-court-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.match-court-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.match-court-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.match-teams-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

@media (max-width: 640px) {
  .match-teams-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.team-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px;
}

.team-box.team-a {
  border-left: 3px solid #3b82f6;
}

.team-box.team-b {
  border-left: 3px solid #f59e0b;
}

.team-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.team-player-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.versus-badge {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  justify-self: center;
}

.bench-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.bench-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.bench-player-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Treasury & Financial Accounts Dashboard */
.treasury-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.treasury-stat-card {
  background: linear-gradient(145deg, rgba(24, 36, 30, 0.75) 0%, rgba(13, 20, 16, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.treasury-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.treasury-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.treasury-stat-val {
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.treasury-stat-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.treasury-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.treasury-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.treasury-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.treasury-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  vertical-align: middle;
}

.treasury-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.ledger-credit {
  color: #34d399;
  font-weight: 800;
}

.ledger-debit {
  color: #f87171;
  font-weight: 800;
}

.treasury-tabs-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.treasury-tabs-bar::-webkit-scrollbar {
  display: none;
}

.treasury-subtab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.treasury-subtab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.treasury-subtab-btn.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.crt-tabs-bar {
  display: flex;
  gap: 6px;
  padding: 10px 0 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.crt-tabs-bar::-webkit-scrollbar {
  display: none;
}

.crt-subtab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1 1 auto;
  text-align: center;
}

.crt-subtab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.crt-subtab-btn.active {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border-color: #10b981;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

@media (max-width: 600px) {
  .treasury-tabs-bar {
    gap: 5px;
    padding-bottom: 6px;
  }
  .treasury-subtab-btn {
    padding: 5px 9px;
    font-size: 0.74rem;
    gap: 3px;
  }
  .treasury-tab-amount {
    display: none;
  }
  .crt-tabs-bar {
    gap: 4px;
    padding: 8px 0 6px 0;
  }
  .crt-subtab-btn {
    padding: 6px 8px;
    font-size: 0.74rem;
    gap: 3px;
  }
}

/* ==========================================================================
   PAGE LOADING ANIMATIONS & TRANSITIONS
   ========================================================================== */

/* 1. Global Top Loading Progress Bar */
#globalLoadingBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #6ee7b7 80%, #10b981 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.85), 0 0 24px rgba(52, 211, 153, 0.4);
  z-index: 9999999;
  transition: width 0.28s ease, opacity 0.3s ease;
  pointer-events: none;
}

#globalLoadingBar.animating {
  animation: loadingGlowPulse 1.2s infinite linear;
}

@keyframes loadingGlowPulse {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* 2. Full App Launch Splash Animation */
.app-launch-splash {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, #0c1811 0%, #060907 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s;
}

.app-launch-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-shuttle-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.splash-glow-ring {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.65) 0%, rgba(14, 165, 233, 0.45) 45%, rgba(99, 102, 241, 0.22) 65%, transparent 75%);
  filter: drop-shadow(0 0 28px rgba(16, 185, 129, 0.55));
  animation: splashPulse 2.2s infinite ease-in-out;
  pointer-events: none;
}

.splash-glow-core {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0.8) 42%, transparent 75%);
  opacity: 0.55;
  filter: blur(14px);
  animation: splashPulseCore 1.6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes splashPulseCore {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.88;
  }
}

.splash-glow-ripple {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2.5px solid rgba(16, 185, 129, 0.75);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.5);
  animation: splashRipple 2.2s infinite cubic-bezier(0.15, 0.75, 0.35, 1);
  pointer-events: none;
}

@keyframes splashRipple {
  0% {
    transform: scale(0.65);
    opacity: 0.95;
    border-color: rgba(16, 185, 129, 0.9);
  }
  60% {
    opacity: 0.6;
  }
  100% {
    transform: scale(1.95);
    opacity: 0;
    border-color: rgba(14, 165, 233, 0.1);
  }
}

.splash-shuttle-icon {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 22px rgba(16, 185, 129, 0.65));
  animation: splashBounce 1.4s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
}

@keyframes splashBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-20px) rotate(-8deg) scale(1.12);
  }
}

@keyframes splashPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.splash-brand-title {
  font-size: 1.45rem;
  font-weight: 300;
  font-family: var(--font-brand);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.splash-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 6px;
  letter-spacing: 0.3px;
  animation: splashTextShimmer 2s infinite ease-in-out;
}

@keyframes splashTextShimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; color: #34d399; }
}

/* 3. Tab Pane Smooth Enter Animation */
.tab-pane.active {
  animation: pageSlideFade 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageSlideFade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4. Skeleton Shimmer Loaders */
.skeleton-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite linear;
}

.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-35 { width: 35%; }
.skeleton-line.h-title { height: 22px; width: 45%; margin-bottom: 14px; }

@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0%; }
}

/* ==========================================================================
   UNDO CHECK-IN STYLES
   ========================================================================== */
.btn-undo-checkin {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-undo-checkin:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   MONTHLY CHALLENGES SYSTEM
   ========================================================================== */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.challenge-card {
  background: rgba(18, 26, 21, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.challenge-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.challenge-card.joined {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(12, 18, 14, 0.8) 100%);
}

.challenge-card.completed {
  border-color: rgba(234, 179, 8, 0.4);
  background: linear-gradient(145deg, rgba(234, 179, 8, 0.09) 0%, rgba(12, 18, 14, 0.8) 100%);
}

.challenge-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.challenge-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.challenge-meta-wrap {
  flex: 1;
  min-width: 0;
}

.challenge-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.challenge-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.challenge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.pill-category {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.pill-month {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid var(--border-subtle);
}

.pill-points-reward {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #000;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.challenge-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 10px 0 16px 0;
  flex: 1;
}

.challenge-progress-area {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}

.challenge-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.challenge-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.challenge-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.challenge-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

/* Admin Review Pending Alert Box */
.admin-review-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-review-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   ABOUT & WHATSAPP SUPPORT STYLES
   ========================================================================== */

.btn-whatsapp {
  background: #25D366 !important;
  color: #04241a !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35) !important;
  transition: var(--transition-fast) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: #20ba59 !important;
  color: #000 !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
  transform: translateY(-1px);
}

.app-version-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.issue-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.issue-cat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  user-select: none;
}

.issue-cat-label:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.issue-cat-label input[type="radio"] {
  accent-color: #25D366;
  cursor: pointer;
}

.issue-cat-label input[type="radio"]:checked + span {
  color: #fff;
  font-weight: 700;
}

.issue-cat-label:has(input[type="radio"]:checked) {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.12);
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.15);
}

.about-hero-card {
  position: relative;
  overflow: hidden;
}

.about-hero-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   MEMBERSHIP EXPIRATION, RENEWAL & TRIAL BADGES
   ========================================================================== */

.membership-renewal-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.12);
  animation: fadeIn 0.3s ease-out;
}

.membership-renewal-banner .banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.membership-renewal-banner .banner-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.membership-renewal-banner .banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.membership-renewal-banner .banner-desc {
  font-size: 0.8rem;
  color: #fca5a5;
  margin-top: 2px;
  line-height: 1.4;
}

.trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.3) 100%);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.expired-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.session-rsvp-locked {
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #fca5a5;
  margin-top: 10px;
}

.btn-rsvp-disabled {
  opacity: 0.65;
  cursor: pointer;
  position: relative;
}

/* ==========================================================================
   PLAN SELECTION CARDS & CARD POLISH ADJUSTMENTS
   ========================================================================== */
#planCardMonthly, #planCardQuarterly, #planCardAnnual {
  margin-bottom: 0 !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

#planCardMonthly:hover, #planCardQuarterly:hover, #planCardAnnual:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45) !important;
}

/* Leaderboard podium enhancements */
.leaderboard-item.rank-1 {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
}

.leaderboard-item.rank-2 {
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.leaderboard-item.rank-3 {
  border-color: rgba(180, 83, 9, 0.28);
  background: linear-gradient(90deg, rgba(180, 83, 9, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

@media (max-width: 768px) {
  .card, .session-card, .expense-card, .about-hero-card {
    padding: 14px 14px;
    margin-bottom: 14px;
    border-radius: var(--radius-md);
  }
  .app-container {
    padding: 10px 12px;
  }
  .rewards-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
  }
  .challenges-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .treasury-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* ==========================================================================
   NO INTERNET / OFFLINE CONNECTION ERROR OVERLAY & BANNER (v2.10.0)
   ========================================================================== */

@keyframes fadeInOverlay {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideDownBanner {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes pulseRed {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.15); opacity: 0.8; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.no-internet-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px;
  animation: fadeInOverlay 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.no-internet-card {
  max-width: 440px;
  width: 100%;
  background: linear-gradient(180deg, #161e29 0%, #0b1017 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(239, 68, 68, 0.15);
  border-radius: 20px;
  padding: 26px 22px;
  text-align: center;
  position: relative;
}

.no-internet-gif-wrap {
  width: 100%;
  max-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
  padding: 10px;
}

.no-internet-gif {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 8px;
}

.offline-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
}

.offline-dot.pulse {
  animation: pulseRed 1.8s infinite;
}

.no-internet-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px 0;
  font-family: var(--font-heading);
}

.no-internet-msg {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.no-internet-status {
  font-size: 0.8rem;
  color: #94a3b8;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.no-internet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offline-top-banner {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99990;
  background: linear-gradient(90deg, #7f1d1d 0%, #b91c1c 50%, #7f1d1d 100%);
  color: #fff;
  padding: 7px 16px;
  font-size: 0.82rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  animation: slideDownBanner 0.3s ease;
}

.offline-top-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-banner-retry {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  border-radius: 4px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-banner-retry:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   GAME SESSION CHALLENGE ENROLLMENT & ROSTER (v2.10.0)
   ========================================================================== */

.attendee-challenge-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  vertical-align: middle;
  margin-left: 6px;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.session-challenge-roster-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(20, 26, 36, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.session-challenge-roster-banner .challenge-roster-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.session-challenge-roster-banner .challenge-roster-names {
  color: #fbbf24;
  font-weight: 700;
}

.rsvp-challenge-optin {
  margin-top: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.rsvp-challenge-optin.opted-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.12);
}

.challenge-optin-toggle-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.challenge-optin-toggle-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #f59e0b;
  cursor: pointer;
}

.challenge-optin-label-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.challenge-optin-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.challenge-optin-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.challenge-enrolled-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Member Loyalty Points History & Balance Card */
.loyalty-balance-card {
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.35);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.loyalty-balance-card:hover {
  border-color: rgba(16, 185, 129, 0.75) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25) !important;
  background: rgba(16, 185, 129, 0.08) !important;
}

.loyalty-balance-card:active {
  transform: translateY(0);
}

.m-hist-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.15s ease;
  user-select: none;
}

.m-hist-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.m-hist-filter-btn.active {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #34d399 !important;
  border-color: var(--primary) !important;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.member-txn-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: all 0.15s ease;
}

.member-txn-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

/* Challenge Participants Scrollable Bar and Modal Cards */
.challenge-participants-chips::-webkit-scrollbar,
#challengeParticipantsListContainer::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.challenge-participants-chips::-webkit-scrollbar-track,
#challengeParticipantsListContainer::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}
.challenge-participants-chips::-webkit-scrollbar-thumb,
#challengeParticipantsListContainer::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.4);
  border-radius: 4px;
}
.challenge-participants-chips::-webkit-scrollbar-thumb:hover,
#challengeParticipantsListContainer::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.7);
}

.challenge-participant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 12px;
  transition: all 0.18s ease;
}

.challenge-participant-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   BADMINTON PLAYER PROFILE & KIT DETAILS (V2.19)
   ========================================================================== */

/* Interactive Playstyle Tags / Chips */
.play-style-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.play-style-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.play-style-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.play-style-chip.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.3) 100%);
  border-color: var(--primary);
  color: #34d399;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.play-style-chip.disabled {
  pointer-events: none;
  cursor: default;
}

.play-style-chip.readonly-badge {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
  cursor: default;
}

/* Profile Gear / Kit Info Cards */
.profile-section-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}

.profile-section-card:hover {
  border-color: rgba(16, 185, 129, 0.25);
}

.profile-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 10px;
}

/* Bio Display Quote Card */
.profile-bio-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(18, 26, 22, 0.6) 100%);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--text-main);
  font-style: italic;
  line-height: 1.45;
  margin-top: 6px;
}

/* Member Directory Compact Kit Chips */
.member-kit-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.member-kit-chip.accent {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

/* Player Passport Modal */
.passport-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.passport-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.passport-stat-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

/* Dedicated Profile & Kit Editor Modal */
.profile-modal-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-modal-section:focus-within {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.02);
}

.modal-sticky-actions {
  position: sticky;
  bottom: -1px;
  background: #111a14;
  padding: 12px 0 2px 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 10;
}

/* ==========================================================================
   TEAM COURT CAPACITY HEALTH METER (ONE-LINER ACCORDION)
   ========================================================================== */
.team-health-card {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(15, 23, 42, 0.65) 100%);
  border: 1px solid rgba(16, 185, 129, 0.22);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.team-health-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
}

.team-health-oneliner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  min-height: 32px;
  width: 100%;
}

.team-health-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.team-health-title-group {
  display: inline-flex;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  flex-shrink: 0;
}

.team-health-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.83rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.team-health-mini-bar {
  width: 44px;
  height: 6px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.team-health-mini-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.team-health-badges-row {
  display: flex;
  align-items: center;
  gap: 6px 8px;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}

.team-health-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  max-width: 100%;
}

.team-health-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.team-health-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  border-radius: 16px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
  min-height: 28px;
}

.team-health-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.team-health-btn-graph {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
  font-weight: 700;
}

.team-health-btn-graph:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.6);
  color: #7dd3fc;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.th-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
}

.th-btn-label {
  display: inline-block;
  line-height: 1;
}

.team-health-chevron {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.78rem;
  line-height: 1;
}

.team-health-card.expanded .team-health-chevron {
  transform: rotate(180deg);
}

.team-health-details {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeIn 0.25s ease;
}

.team-health-card.expanded .team-health-details {
  display: block;
}

/* Wide screen layouts: inline flow across one sleek bar */
@media (min-width: 768px) {
  .team-health-oneliner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .team-health-header-row {
    width: auto;
    justify-content: flex-start;
  }
  .team-health-badges-row {
    width: auto;
    flex: 1;
    margin-top: 0;
  }
}

/* Small screens (phones & compact displays): show ONLY icons, no text labels, eliminating all button collisions */
@media (max-width: 768px) {
  .team-health-toggle-btn .th-btn-label {
    display: none !important;
  }
  .team-health-toggle-btn {
    padding: 3px 8px !important;
    min-width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    gap: 0 !important;
  }
  .th-btn-icon {
    font-size: 0.95rem !important;
  }
  .team-health-chevron {
    font-size: 0.88rem !important;
  }
}

/* ========================================================
   TEAM HEALTH MODAL & RESPONSIVE MOBILE CHART SYSTEM
   ======================================================== */
.th-modal-dialog {
  max-width: 620px;
  width: 100%;
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  max-height: 92vh;
  overflow-y: auto;
}

/* 4-KPI Grid (Desktop: 4 columns in 1 row, Mobile: 2x2 symmetrical grid) */
.th-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.th-kpi-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.th-kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.th-kpi-title {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.th-kpi-val {
  font-size: 1.35rem;
  font-weight: 900;
  margin-top: 3px;
  line-height: 1.15;
  font-family: var(--font-heading);
}

.th-kpi-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Time Window Range Filter Pills */
.th-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
  flex-wrap: wrap;
}

.th-range-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.th-range-btn {
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.th-range-btn.active {
  background: var(--primary) !important;
  color: #04241a !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.th-mode-btn {
  padding: 3px 8px;
  font-size: 0.67rem;
  font-weight: 700;
  border-radius: 4px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.th-mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.th-mode-btn.active {
  background: rgba(56, 189, 248, 0.18) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
}

/* SVG Chart Container Card */
.th-chart-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  position: relative;
}

.th-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.th-chart-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.66rem;
  flex-wrap: wrap;
}

.th-chart-svg-wrap {
  width: 100%;
  position: relative;
  overflow: visible;
  line-height: 0;
}

.th-chart-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Customization for Mobile Screens (≤ 580px) */
@media (max-width: 580px) {
  .th-modal-dialog {
    padding: 14px 10px !important;
    max-width: 95vw !important;
    width: 95vw !important;
    border-radius: 14px;
    margin: 8px auto;
    max-height: 94vh;
  }

  .th-modal-dialog .modal-header {
    margin-bottom: 10px;
  }

  .th-modal-dialog .card-title {
    font-size: 1.05rem !important;
  }

  .th-modal-dialog .card-subtitle {
    font-size: 0.70rem !important;
    line-height: 1.35;
  }

  /* Exactly 2x2 grid on mobile so no card dangles on its own */
  .th-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    margin-bottom: 12px;
  }

  .th-kpi-card {
    padding: 8px 6px;
  }

  .th-kpi-title {
    font-size: 0.62rem;
  }

  .th-kpi-val {
    font-size: 1.25rem;
  }

  .th-kpi-sub {
    font-size: 0.62rem;
  }

  /* Range pills take full row on mobile */
  .th-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
  }

  .th-range-bar {
    width: 100%;
    display: flex;
  }

  .th-range-btn {
    flex: 1;
    text-align: center;
    padding: 6px 2px;
    font-size: 0.72rem;
  }

  #thRecordCountBadge {
    align-self: flex-end;
    font-size: 0.68rem;
  }

  /* Chart Card on mobile */
  .th-chart-card {
    padding: 10px 8px;
    margin-bottom: 12px;
  }

  .th-chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .th-chart-legend {
    gap: 8px;
    font-size: 0.64rem;
  }
}

/* ==========================================================================
   MONTHLY REPORTS & YEARLY HEALTH ARCHIVE SYSTEM
   ========================================================================== */
.mr-modal-dialog {
  max-width: 860px !important;
  width: 94vw !important;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(10, 14, 12, 0.98) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

.mr-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.mr-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.mr-kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.mr-kpi-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
}

.mr-kpi-title {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.mr-kpi-val {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 3px;
}

.mr-kpi-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.mr-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.mr-month-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.mr-month-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.mr-month-card.current-month {
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.mr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mr-card-month-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mr-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
}

.mr-badge-healthy {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.mr-badge-slump {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.mr-badge-current {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.mr-badge-empty {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mr-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.mr-stat-row strong {
  color: #fff;
}

.mr-progress-track {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.mr-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.mr-note-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 2px solid #38bdf8;
  padding: 6px 8px;
  font-size: 0.70rem;
  color: #cbd5e1;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

@media (max-width: 680px) {
  .mr-modal-dialog {
    padding: 14px 10px !important;
    max-width: 95vw !important;
    width: 95vw !important;
  }

  .mr-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .mr-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .mr-kpi-card {
    padding: 8px 10px;
  }

  .mr-kpi-val {
    font-size: 1.25rem;
  }

  .mr-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Accessibility: Visually hidden but screen-reader and form-control accessible */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   OFFICIAL BRAND LOGO & MONTSERRAT LIGHT SYSTEM (NØ STRINGS ATTACHED)
   ========================================================================== */
.nsa-official-logo {
  font-family: var(--font-brand);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  user-select: none;
}

.nsa-official-logo .logo-top {
  font-size: 1em;
  letter-spacing: 0.26em;
  font-weight: 300;
}

.nsa-official-logo .logo-bot {
  font-size: 0.44em;
  letter-spacing: 0.52em;
  font-weight: 300;
  margin-top: 0.18em;
  opacity: 0.92;
}

.nsa-brand-font {
  font-family: var(--font-brand) !important;
  font-weight: 300 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

.header-brand-logo-img {
  max-height: 28px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.splash-official-logo-img {
  max-width: 260px;
  width: 82%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 16px rgba(16, 185, 129, 0.25));
}

/* ==========================================================================
   FRONT PAGE SESSIONS & POLLS HEADER & ACTION BUTTON BAR
   ========================================================================== */
.polls-header-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.polls-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.polls-action-bar .btn-action-short {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.84rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
  .polls-action-bar {
    gap: 8px;
  }
  .polls-action-bar .btn-action-short {
    flex: 1 1 auto;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}


