  /* ═══════════════════════════════════════ */
  /* ROOT & RESET                            */
  /* ═══════════════════════════════════════ */
  :root {
    --bg-primary: #0a0a0f;
    --bg-card: #111118;
    --bg-elevated: #16161f;
    --bg-input: #1a1a26;
    --accent: #c8a44e;
    --accent-glow: rgba(200, 164, 78, 0.3);
    --accent-dim: rgba(200, 164, 78, 0.08);
    --accent-border: rgba(200, 164, 78, 0.2);
    --text-primary: #e8e4dc;
    --text-secondary: #8a8690;
    --text-muted: #5a5660;
    --danger: #e74c3c;
    --success: #2ecc71;
    --blue: #3498db;
    --border: rgba(200, 164, 78, 0.12);
    --border-strong: rgba(200, 164, 78, 0.25);
    --radius: 6px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --font: 'Tajawal', sans-serif;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
  }

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

  body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Subtle grid background for war-room feel */
    background-image:
      linear-gradient(rgba(200, 164, 78, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(200, 164, 78, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
  }

  /* ═══════════════════════════════════════ */
  /* LAYOUT                                  */
  /* ═══════════════════════════════════════ */
  #app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: calc(72px + var(--safe-bottom));
  }

  .screen { display: none; animation: fadeIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  .screen.active { display: block; }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
  @keyframes gearSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

  /* ═══════════════════════════════════════ */
  /* HEADER                                  */
  /* ═══════════════════════════════════════ */
  .app-header {
    padding: 16px 20px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--accent-border);
    position: sticky;
    top: 0;
    background: #0a0a0f;
    z-index: 100;
  }

  .app-logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.5px;
  }

  .app-logo span { color: var(--text-muted); font-weight: 400; font-size: 13px; margin-right: 6px; }

  .header-actions { display: flex; gap: 12px; align-items: center; }

  /* ═══════════════════════════════════════ */
  /* BOTTOM NAV                              */
  /* ═══════════════════════════════════════ */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    background: #0c0c12;
    border-top: 1px solid var(--accent-border);
    display: flex;
    padding: 8px 0 calc(8px + var(--safe-bottom));
    z-index: 200;
  }

  .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-item.active { color: var(--accent); }
  .nav-item svg { width: 22px; height: 22px; }

  /* ═══════════════════════════════════════ */
  /* BUTTONS                                 */
  /* ═══════════════════════════════════════ */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    text-transform: none;
    letter-spacing: 0.3px;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--accent), #a88a3a);
    color: #0a0a0f;
    box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
  }
  .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.5s;
  }
  .btn-primary:active { transform: scale(0.97); }
  .btn-primary:active::after { left: 100%; }

  .btn-ghost {
    background: #12111a;
    color: var(--accent);
    border: 1px solid var(--accent-border);
  }
  .btn-ghost:active { background: rgba(200, 164, 78, 0.12); }

  .btn-sm { padding: 8px 16px; font-size: 14px; border-radius: var(--radius-sm); }
  .btn-block { width: 100%; }
  .btn:disabled { opacity: 0.3; pointer-events: none; }

  /* ═══════════════════════════════════════ */
  /* INPUTS                                  */
  /* ═══════════════════════════════════════ */
  .input-group { margin-bottom: 16px; }
  .input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0.3px;
  }

  .input-field {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 16px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
  }
  .input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(200, 164, 78, 0.1);
  }
  .input-field::placeholder { color: var(--text-muted); }

  /* ═══════════════════════════════════════ */
  /* AUTH SCREEN                              */
  /* ═══════════════════════════════════════ */
  .auth-screen {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 24px;
  }

  .auth-brand {
    text-align: center;
    margin-bottom: 48px;
  }

  .auth-brand h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 8px;
    text-shadow: 0 0 40px rgba(200, 164, 78, 0.3);
    letter-spacing: -1px;
  }

  .auth-brand p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
  }

  .auth-toggle {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 14px;
  }

  .auth-toggle a {
    color: var(--accent);
    cursor: pointer;
    font-weight: 700;
  }

  /* ═══════════════════════════════════════ */
  /* ONBOARDING                              */
  /* ═══════════════════════════════════════ */
  .onboard-screen {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 24px;
  }

  .onboard-quote {
    font-size: 18px;
    font-weight: 500;
    color: var(--accent);
    text-align: center;
    line-height: 1.8;
    margin-bottom: 40px;
    font-style: italic;
  }

  /* ═══════════════════════════════════════ */
  /* COMMAND CENTER                           */
  /* ═══════════════════════════════════════ */
  .cc-header {
    padding: 20px;
    text-align: center;
  }

  .cc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
  }

  .cc-date {
    font-size: 12px;
    color: var(--text-muted);
  }

  /* Progress Ring */
  .progress-ring-wrap {
    display: flex;
    justify-content: center;
    margin: 16px 0 24px;
  }

  .progress-ring {
    position: relative;
    width: 140px;
    height: 140px;
  }

  .progress-ring svg { transform: rotate(-90deg); }

  .progress-ring circle {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
  }

  .progress-ring .bg { stroke: var(--bg-elevated); }
  .progress-ring .fg { stroke: var(--accent); transition: stroke-dashoffset 0.6s ease; }

  .progress-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
  }

  .progress-pct span { font-size: 14px; font-weight: 400; }

  /* Time Bar */
  .time-bar {
    margin: 0 20px 24px;
    background: var(--bg-elevated);
    border-radius: 20px;
    height: 6px;
    overflow: hidden;
  }

  .time-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #e6c75a);
    border-radius: 20px;
    transition: width 1s linear;
  }

  .time-label {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--text-muted);
  }

  /* Imperative Blocks */
  .imperatives {
    padding: 0 16px;
  }

  .imp-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 20px 4px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .imp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .imp-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: height 0.3s ease;
  }

  .imp-card:active { transform: scale(0.98); }
  .imp-card.done {
    border-color: var(--accent-border);
    background: rgba(200, 164, 78, 0.08);
  }
  .imp-card.done::before { height: 100%; }

  .imp-info { display: flex; align-items: center; gap: 12px; }

  .imp-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
  }

  .imp-card.done .imp-icon {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(200, 164, 78, 0.3);
  }

  .imp-name { font-size: 16px; font-weight: 700; }
  .imp-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

  .imp-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

  .imp-card.done .imp-check {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0a0f;
  }

  /* Gear Tasks */
  .gears-row {
    display: flex;
    gap: 10px;
    padding: 0 16px;
    margin: 16px 0;
    justify-content: center;
  }

  .gear-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
  }

  .gear-btn:active { transform: scale(0.9); }
  .gear-btn.done {
    border-color: var(--accent);
    background: var(--accent);
    color: #0a0a0f;
    animation: gearSpin 0.5s ease;
    box-shadow: 0 0 16px rgba(200, 164, 78, 0.4);
  }

  /* Hashtag Actions */
  .hashtag-actions {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hashtag-btn {
    padding: 10px 18px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .hashtag-btn:active { transform: scale(0.95); }
  .hashtag-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 12px rgba(200, 164, 78, 0.15); }

  /* ═══════════════════════════════════════ */
  /* FEED                                    */
  /* ═══════════════════════════════════════ */
  .feed-tabs {
    display: flex;
    gap: 0;
    padding: 0 16px;
    margin: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .feed-tab {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .feed-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

  .feed-list { padding: 0 16px 24px; }

  .feed-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
  }
  .feed-card:hover { border-color: var(--accent-border); }

  .feed-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .feed-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
  }

  .feed-user-info {
    flex: 1;
    min-width: 0;
  }

  .feed-user-name {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .feed-time {
    font-size: 11px;
    color: var(--text-muted);
  }

  .feed-hashtag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .feed-block-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
  }

  .feed-content {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  .feed-reaction {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .feed-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .feed-vote-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: none;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .feed-vote-btn.voted { color: var(--accent); background: var(--accent-dim); }

  .share-btn {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: none;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* ═══════════════════════════════════════ */
  /* PLAYER CARDS                             */
  /* ═══════════════════════════════════════ */
  .players-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .player-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .player-card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 0 20px rgba(200, 164, 78, 0.08);
  }

  .player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
  }

  .player-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    margin: 0 auto 10px;
    background: var(--bg-elevated);
    border: 2px solid var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: var(--accent);
  }

  .player-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-mission {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .player-bar {
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
  }

  .player-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
    transition: width 0.5s ease;
  }

  .player-pct {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 700;
  }

  /* ═══════════════════════════════════════ */
  /* MODAL                                   */
  /* ═══════════════════════════════════════ */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 500;
    display: none;
    align-items: flex-end;
    justify-content: center;
  }

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

  .modal-content {
    background: #0f0f16;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-top: 1px solid var(--accent-border);
    max-width: 480px;
    width: 100%;
    padding: 24px;
    padding-bottom: calc(24px + var(--safe-bottom));
    animation: slideUp 0.3s ease;
  }

  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .modal-handle {
    width: 36px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 10px;
    margin: 0 auto 20px;
  }

  .modal-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
  }

  .reactions-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
  }

  .reaction-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }

  .reaction-btn.selected {
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: scale(1.15);
  }

  /* ═══════════════════════════════════════ */
  /* SELF-TALK CARD                          */
  /* ═══════════════════════════════════════ */
  .self-talk-card {
    background: linear-gradient(135deg, #15111e, #141420);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 16px;
    text-align: center;
    box-shadow: 0 0 24px rgba(200, 164, 78, 0.06);
  }

  .self-talk-card .st-label {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 12px;
  }

  .self-talk-card .st-message {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 500;
  }

  /* ═══════════════════════════════════════ */
  /* SHARE CANVAS (hidden, for generation)   */
  /* ═══════════════════════════════════════ */
  #shareCanvas { display: none; }

  /* ═══════════════════════════════════════ */
  /* VIDEO PLAYER                            */
  /* ═══════════════════════════════════════ */
  .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  .video-container .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 8px;
  }

  .video-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }

  .lesson-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
  }

  .lesson-item:active { transform: scale(0.98); }
  .lesson-item.completed { border-color: var(--accent); background: var(--accent-dim); }
  .lesson-item.active-lesson { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }

  .lesson-meta { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
  .lesson-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg-elevated); display: flex; align-items: center;
    justify-content: center; font-size: 13px; font-weight: 700;
    color: var(--text-secondary); flex-shrink: 0;
  }
  .lesson-item.completed .lesson-num { background: var(--accent); color: #0a0a0f; }
  .lesson-title { font-size: 14px; font-weight: 600; }
  .lesson-dur { font-size: 11px; color: var(--text-muted); }

  /* Trial banner */
  .trial-banner {
    background: linear-gradient(135deg, rgba(52,152,219,0.15), rgba(200,164,78,0.15));
    border: 1px solid rgba(52,152,219,0.3);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
  }
  .trial-banner .trial-days { font-size: 24px; font-weight: 900; color: var(--accent); }
  .trial-banner .trial-label { font-size: 12px; color: var(--text-secondary); }
  .trial-expired-banner {
    background: rgba(231,76,60,0.1);
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
    color: var(--danger);
    font-size: 14px;
  }

  /* ═══════════════════════════════════════ */
  /* EMPTY STATE                             */
  /* ═══════════════════════════════════════ */
  .empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
  }

  .empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.3; }
  .empty-state p { font-size: 14px; }

  /* ═══════════════════════════════════════ */
  /* LOADING                                 */
  /* ═══════════════════════════════════════ */
  .loading {
    display: flex;
    justify-content: center;
    padding: 32px;
  }

  .loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin: 0 4px;
    animation: pulse 1s infinite;
  }

  .loading-dot:nth-child(2) { animation-delay: 0.2s; }
  .loading-dot:nth-child(3) { animation-delay: 0.4s; }

  /* ═══════════════════════════════════════ */
  /* PROFILE                                 */
  /* ═══════════════════════════════════════ */
  .profile-header {
    text-align: center;
    padding: 32px 24px 24px;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 3px solid var(--accent);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
  }

  .profile-name { font-size: 20px; font-weight: 800; }
  .profile-mission { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

  .profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
  }

  .stat-item { text-align: center; }
  .stat-value { font-size: 22px; font-weight: 900; color: var(--accent); }
  .stat-label { font-size: 11px; color: var(--text-muted); }

  /* Toast */
  .toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #0f0f16;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    z-index: 9999;
    transition: transform 0.3s ease;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  }

  .toast.show { transform: translateX(-50%) translateY(0); }

  /* ═══════════════════════════════════════ */
  /* AVATAR SELECTION                        */
  /* ═══════════════════════════════════════ */
  .avatar-select-screen {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 24px;
  }

  .avatar-select-title {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    color: var(--accent);
  }

  .avatar-select-sub {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
  }

  .avatar-option {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.25s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .avatar-option:active { transform: scale(0.98); }
  .avatar-option.selected {
    border-color: var(--accent);
    background: rgba(200, 164, 78, 0.08);
    box-shadow: 0 0 20px rgba(200, 164, 78, 0.1);
  }

  .avatar-option-icon {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .avatar-option-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
  }

  .avatar-option-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
  }

  /* ═══════════════════════════════════════ */
  /* ZONES                                   */
  /* ═══════════════════════════════════════ */
  .zones-header {
    padding: 20px 16px 8px;
  }

  .zones-header h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
  }

  .zones-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
  }

  .zone-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 0 16px 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s;
    -webkit-tap-highlight-color: transparent;
  }
  .zone-card:hover { border-color: var(--accent-border); }

  .zone-card:active { transform: scale(0.98); }

  .zone-card-top {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .zone-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid var(--border);
  }

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

  .zone-name {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .zone-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
  }

  .zone-tag.free { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
  .zone-tag.paid { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
  .zone-tag.trial { background: rgba(52, 152, 219, 0.15); color: #3498db; }
  .zone-tag.recommended { background: var(--accent-dim); color: var(--accent); }

  .zone-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
  }

  .zone-progress {
    padding: 0 16px 12px;
  }

  .zone-progress-bar {
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 10px;
    overflow: hidden;
  }

  .zone-progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
  }

  .zone-progress-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
  }

  /* ═══════════════════════════════════════ */
  /* BADGES ON PLAYER CARDS                  */
  /* ═══════════════════════════════════════ */
  .badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 8px;
  }

  .badge-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    opacity: 0.85;
  }

  .badge-icon.earned {
    border-color: var(--accent-dim);
    opacity: 1;
  }

  /* ═══════════════════════════════════════ */
  /* CYBERPUNK ENHANCEMENTS                  */
  /* ═══════════════════════════════════════ */

  /* Removed scan-line overlay — was killing mobile performance */

  /* Progress ring glow */
  .progress-ring .fg {
    filter: drop-shadow(0 0 6px rgba(200, 164, 78, 0.4));
  }

  .progress-pct {
    text-shadow: 0 0 20px rgba(200, 164, 78, 0.3);
  }

  /* Golden star vote button */
  .feed-vote-btn .vote-star {
    display: inline-flex;
    color: var(--text-muted);
    transition: all 0.3s;
    font-size: 16px;
  }

  .feed-vote-btn.voted .vote-star {
    color: var(--accent);
    filter: drop-shadow(0 0 6px rgba(200, 164, 78, 0.5));
  }

  /* Command Center section titles — tactical */
  .imp-section-title {
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 13px;
    color: var(--accent);
    opacity: 0.7;
  }

  .imp-section-title svg {
    color: var(--accent);
    opacity: 0.5;
  }

  /* Time bar enhanced glow */
  .time-bar-fill {
    box-shadow: 0 0 8px rgba(200, 164, 78, 0.3);
  }

  /* Lesson items — sharp */
  .lesson-item {
    border-radius: var(--radius);
  }

  /* Video container — sharp */
  .video-container {
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }

  /* Profile avatar — hexagonal feel with sharp corners */
  .profile-avatar {
    border-radius: var(--radius-md);
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(200, 164, 78, 0.15);
  }

  /* Reaction buttons — sharp */
  .reaction-btn {
    border-radius: var(--radius-md);
  }

  /* Feed hashtag tags — sharp */
  .feed-hashtag {
    border-radius: var(--radius-sm);
  }

  /* Zone tags — keep rounded for contrast */
  .zone-tag { border-radius: var(--radius-sm); }

  /* Check circle — sharp square */
  .imp-check {
    border-radius: var(--radius-sm);
  }

  /* Lesson number badge */
  .lesson-num {
    border-radius: var(--radius-sm);
  }

  /* Trial banner */
  .trial-banner {
    border-radius: var(--radius);
  }

  .trial-expired-banner {
    border-radius: var(--radius);
  }

  /* Loading dots — keep round */
  .loading-dot { border-radius: 50%; }

  /* ═══════════════════════════════════════ */
  /* PULL-TO-REFRESH / SWIPE-DOWN           */
  /* ═══════════════════════════════════════ */
  .ptr-indicator {
    text-align: center;
    padding: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.2s ease, padding 0.2s ease;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .ptr-indicator.pulling {
    height: 48px;
    padding: 12px 0;
  }

  .ptr-indicator.refreshing {
    height: 48px;
    padding: 12px 0;
  }

  .ptr-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-dim);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: ptrSpin 0.6s linear infinite;
  }

  @keyframes ptrSpin {
    to { transform: rotate(360deg); }
  }

  /* ═══════════════════════════════════════ */
  /* CAPSULE TIMER (placeholder structure)   */
  /* ═══════════════════════════════════════ */
  .capsule-section {
    padding: 0 16px;
    margin: 20px 0;
  }

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

  .capsule-header-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
  }

  .capsule-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
  }

  .capsule-battery {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
  }

  .capsule-battery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
  }

  .capsule-timer-display {
    text-align: center;
    margin-bottom: 16px;
  }

  .capsule-timer-digits {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px rgba(200, 164, 78, 0.3);
    letter-spacing: 2px;
  }

  .capsule-timer-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
  }

  .capsule-progress-bar {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 16px;
  }

  .capsule-progress-fill {
    height: 100%;
    border-radius: 1px;
    transition: width 1s linear;
    box-shadow: 0 0 8px var(--accent-glow);
  }

  .capsule-progress-fill.gold { background: linear-gradient(90deg, var(--accent), #e6c75a); }
  .capsule-progress-fill.silver { background: linear-gradient(90deg, #8a8690, #b4b0bc); }
  .capsule-progress-fill.bronze { background: linear-gradient(90deg, #8b6914, #a88a3a); }

  .capsule-tier-select {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
  }

  .capsule-tier-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .capsule-tier-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(200, 164, 78, 0.08);
  }

  .capsule-tier-btn .tier-duration {
    font-size: 18px;
    font-weight: 900;
    display: block;
    margin-bottom: 2px;
  }

  .capsule-tier-btn .tier-name {
    font-size: 11px;
    opacity: 0.7;
  }

  .capsule-start-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), #a88a3a);
    color: #0a0a0f;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 20px var(--accent-glow);
  }

  .capsule-start-btn:active { transform: scale(0.97); }
  .capsule-start-btn:disabled { opacity: 0.3; pointer-events: none; }

  .capsule-daily-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
  }

  .capsule-dot {
    width: 8px;
    height: 8px;
    border-radius: 1px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: all 0.3s;
  }

  .capsule-dot.completed {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 6px rgba(200, 164, 78, 0.4);
  }

  .capsule-dot.active {
    border-color: var(--accent);
    animation: pulse 1.5s infinite;
  }

  /* ═══════════════════════════════════════ */
  /* SPOTLIGHT BANNER                        */
  /* ═══════════════════════════════════════ */
  .spotlight-banner {
    margin: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(200, 164, 78, 0.08), rgba(200, 164, 78, 0.03));
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
  }

  .spotlight-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
  }

  .spotlight-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #0a0a0f;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(200, 164, 78, 0.3);
  }

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

  .spotlight-label {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
  }

  .spotlight-name {
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .spotlight-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
  }

  .spotlight-timer {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  /* ═══════════════════════════════════════ */
  /* ONBOARDING CHECKLIST                    */
  /* ═══════════════════════════════════════ */
  .onboard-checklist {
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 0 16px 20px;
  }

  .checklist-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: opacity 0.2s;
  }

  .checklist-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .checklist-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    transition: all 0.3s;
  }

  .checklist-item.done .checklist-check {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-primary);
  }

  .checklist-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
  }

  .checklist-item.done .checklist-text {
    color: var(--text-muted);
    text-decoration: line-through;
  }

  .checklist-item.done {
    opacity: 0.6;
  }
