    :root {
      --bg: #0a0a14;
      --surface: #0c0d1b;
      --card: #0f1224;
      --card-border: #1a1e38;
      --cyan: #00f2fe;
      --cyan-glow: rgba(0, 242, 254, 0.4);
      --purple: #a855f7;
      --purple-text: #c084fc;
      --pink-text: #f472b6;
      --amber: #f59e0b;
      --emerald: #10b981;
      --blue-badge: #38bdf8;
      --text-white: #ffffff;
      --text-muted: #94a3b8;
      --text-dim: #64748b;
      --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
    }




    .app-container {
      width: 100%;
      max-width: 480px;
      min-height: 100vh;
      background: var(--bg);
      border-left: 1px solid var(--card-border);
      border-right: 1px solid var(--card-border);
      display: flex;
      flex-direction: column;
      position: relative;
      padding-bottom: 78px;
      box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
    }


    /* 2. PAGE TITLE & SUBTABS */
    main {
      flex: 1;
      padding: 16px;
    }

    .page-title {
      font-size: 22px;
      font-weight: 900;
      letter-spacing: -0.02em;
      color: #fff;
      margin-bottom: 2px;
    }

    .page-subtitle {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 16px;
    }

    .subtabs-bar {
      display: flex;
      gap: 6px;
      margin-bottom: 16px;
      overflow-x: auto;
      padding-bottom: 2px;
    }

    .subtab-btn {
      flex: 1;
      min-width: fit-content;
      padding: 8px 12px;
      border-radius: 12px;
      background: #0f1224;
      border: 1px solid #1b203d;
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .subtab-btn.active {
      background: var(--cyan);
      color: #060913;
      border-color: var(--cyan);
      font-weight: 800;
      box-shadow: 0 0 16px var(--cyan-glow);
    }

    /* 3. RESET COUNTDOWN BANNER */
    .countdown-banner {
      background: linear-gradient(135deg, rgba(16, 21, 46, 0.9) 0%, rgba(24, 18, 51, 0.8) 100%);
      border: 1px solid rgba(88, 70, 150, 0.4);
      border-radius: 20px;
      padding: 16px 14px;
      text-align: center;
      margin-bottom: 16px;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    .countdown-header {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--cyan);
      margin-bottom: 6px;
    }

    .countdown-timer-display {
      font-family: var(--font-mono);
      font-size: 20px;
      font-weight: 800;
      color: var(--cyan);
      letter-spacing: 0.05em;
      margin: 4px 0 6px 0;
      text-shadow: 0 0 16px var(--cyan-glow);
    }

    .countdown-desc {
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.4;
      max-width: 320px;
      margin: 0 auto;
    }

    /* 4. LEADERBOARD LIST & ROWS */
    .leaderboard-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .rank-card {
      background: #0f1224;
      border: 1px solid var(--card-border);
      border-radius: 18px;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: all 0.15s ease;
      position: relative;
    }

    /* Rank #1 Highlighting (Cyan Border Glow from Screenshot) */
    .rank-card.rank-1-you {
      background: linear-gradient(135deg, rgba(17, 24, 48, 0.95), rgba(12, 16, 36, 0.95));
      border: 1.5px solid var(--cyan);
      box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
    }

    .rank-left-section {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .rank-medal-box {
      width: 24px;
      text-align: center;
      font-size: 18px;
      font-weight: 900;
      flex-shrink: 0;
    }

    .rank-number-text {
      font-size: 13px;
      font-weight: 900;
      color: var(--text-dim);
      font-family: var(--font-mono);
    }

    .player-avatar-circle {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1.5px solid #232b50;
      object-fit: cover;
      flex-shrink: 0;
      background: #111;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 900;
    }

    .player-info-meta {
      min-width: 0;
    }

    .player-username-row {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .player-name {
      font-size: 13px;
      font-weight: 800;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Role & YOU Badges */
    .badge-admin {
      font-size: 9px;
      font-weight: 800;
      text-transform: uppercase;
      padding: 1px 6px;
      border-radius: 4px;
      background: rgba(0, 242, 254, 0.15);
      color: var(--cyan);
      letter-spacing: 0.04em;
    }

    .badge-spooner {
      font-size: 9px;
      font-weight: 800;
      text-transform: uppercase;
      padding: 1px 6px;
      border-radius: 4px;
      background: rgba(56, 189, 248, 0.18);
      color: #38bdf8;
      letter-spacing: 0.04em;
    }

    .badge-you {
      font-size: 9px;
      font-weight: 800;
      text-transform: uppercase;
      padding: 1px 6px;
      border-radius: 4px;
      background: var(--cyan);
      color: #060913;
      letter-spacing: 0.04em;
    }

    .player-insta-handle {
      font-size: 11px;
      font-weight: 600;
      color: var(--pink-text);
      display: block;
      margin-top: 1px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .rank-right-section {
      text-align: right;
      flex-shrink: 0;
    }

    .xp-points-num {
      font-family: var(--font-mono);
      font-size: 14px;
      font-weight: 900;
      color: var(--cyan);
    }

    .xp-points-label {
      font-size: 9px;
      font-weight: 700;
      color: var(--text-dim);
      text-transform: uppercase;
      display: block;
      margin-top: 1px;
    }

    .subtab-panel {
      display: none;
      animation: fadeIn 0.2s ease-out;
    }
    .subtab-panel.active {
      display: block;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .chat-box {
      height: 380px;
      background: #0f1224;
      border: 1px solid var(--card-border);
      border-radius: 18px;
      padding: 12px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 12px;
    }

    .chat-bubble {
      padding: 8px 12px;
      background: #141830;
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 12px;
      font-size: 12px;
    }

    .chat-bubble-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 3px;
    }

    .chat-user-label {
      font-weight: 800;
      color: var(--cyan);
      font-size: 11px;
    }

    .chat-time-label {
      font-size: 10px;
      color: var(--text-dim);
    }

    .chat-form-row {
      display: flex;
      gap: 8px;
    }

    .chat-input-field {
      flex: 1;
      padding: 10px 14px;
      background: #0f1224;
      border: 1px solid var(--card-border);
      border-radius: 12px;
      color: #fff;
      font-size: 12px;
      outline: none;
    }

    .chat-input-field:focus {
      border-color: var(--cyan);
    }

    .chat-submit-btn {
      padding: 10px 18px;
      background: var(--cyan);
      color: #060913;
      font-weight: 800;
      font-size: 12px;
      border-radius: 12px;
      border: none;
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      box-shadow: 0 0 12px var(--cyan-glow);
    }

    /* 5. BOTTOM NAVIGATION BAR */
    .bottom-nav {
      position: fixed;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      max-width: 480px;
      background: rgba(12, 13, 27, 0.95);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-top: 1px solid var(--card-border);
      display: flex;
      justify-content: space-around;
      padding: 8px 4px;
      z-index: 50;
    }

    .nav-btn {
      background: none;
      border: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      color: var(--text-dim);
      cursor: pointer;
      padding: 4px 10px;
      border-radius: 12px;
      transition: all 0.2s ease;
      position: relative;
    }

    .nav-btn.active {
      color: var(--cyan);
      transform: scale(1.05);
    }

    .nav-btn span {
      font-size: 10px;
      font-weight: 700;
    }

    .nav-active-bar {
      position: absolute;
      bottom: -4px;
      width: 22px;
      height: 2px;
      background: var(--cyan);
      border-radius: 9999px;
      box-shadow: 0 0 8px var(--cyan);
      display: none;
    }

    .nav-btn.active .nav-active-bar {
      display: block;
    }