  :root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface2: #1e1e1e;
    --accent: #c8f135;
    --accent2: #a8d420;
    --text: #f0f0f0;
    --muted: #666;
    --danger: #ff4444;
    --border: #2a2a2a;
    --radius: 16px;
  }
 
  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
 
  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
  }
 
  /* ── SCREENS ── */
  .screen { display: none; flex-direction: column; min-height: 100vh; padding: 24px 20px 40px; animation: fadeUp 0.3s ease; }
  .screen.active { display: flex; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
 
  /* ── TYPOGRAPHY ── */
  .display { font-family: 'Bebas Neue', sans-serif; font-size: 52px; line-height: 1; letter-spacing: 1px; }
  .display span { color: var(--accent); }
  h2 { font-size: 22px; font-weight: 600; }
  h3 { font-size: 16px; font-weight: 600; }
  .label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
  .muted { color: var(--muted); font-size: 14px; }
 
  /* ── LOGO ── */
  .logo-mark {
    width: 56px; height: 56px; background: var(--accent); border-radius: 14px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 32px;
  }
  .logo-mark svg { width: 30px; height: 30px; }
 
  /* ── BUTTONS ── */
  .btn {
    width: 100%; padding: 16px; border: none; border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.15s ease; position: relative; overflow: hidden;
  }
  .btn:active { transform: scale(0.97); }
  .btn-primary { background: var(--accent); color: #0a0a0a; }
  .btn-primary:hover { background: var(--accent2); }
  .btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
  .btn-ghost { background: transparent; color: var(--muted); font-size: 14px; padding: 12px; }
  .btn-icon {
    width: 44px; height: 44px; padding: 0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface2); border: 1px solid var(--border); color: var(--text);
    font-size: 20px; cursor: pointer; transition: all 0.15s;
  }
  .btn-icon:active { transform: scale(0.94); background: var(--border); }
 
  /* ── OPTION GRID ── */
  .option-grid { display: grid; gap: 10px; }
  .option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .option-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .option-btn {
    padding: 14px 10px; border-radius: 14px; border: 2px solid var(--border);
    background: var(--surface); color: var(--text); font-family: 'DM Sans', sans-serif;
    font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s;
    text-align: center; line-height: 1.3;
  }
  .option-btn .emoji { font-size: 22px; display: block; margin-bottom: 6px; }
  .option-btn.selected { border-color: var(--accent); background: rgba(200,241,53,0.08); color: var(--accent); }
  .option-btn:active { transform: scale(0.96); }
 
  /* ── INPUT ── */
  .input-group { display: flex; flex-direction: column; gap: 8px; }
  .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  input[type=number], input[type=text] {
    width: 100%; padding: 14px 16px; background: var(--surface);
    border: 2px solid var(--border); border-radius: var(--radius);
    color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 16px;
    outline: none; transition: border-color 0.15s;
    -webkit-appearance: none; appearance: none;
  }
  input:focus { border-color: var(--accent); }
  input::placeholder { color: var(--muted); }
 
  /* ── PROGRESS DOTS ── */
  .progress-dots { display: flex; gap: 6px; margin-bottom: 32px; }
  .dot { height: 4px; border-radius: 2px; background: var(--border); transition: all 0.3s; }
  .dot.active { background: var(--accent); width: 24px; }
  .dot.done { background: var(--accent); opacity: 0.4; }
  .dot:not(.active):not(.done) { width: 8px; }
  .dot.active { width: 24px; }
 
  /* ── NAV ── */
  .nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(10,10,10,0.95); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border); display: flex; padding: 10px 0 20px;
    z-index: 100;
  }
  .nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 500;
    transition: color 0.15s; padding: 4px 0; letter-spacing: 0.3px;
  }
  .nav-item svg { width: 22px; height: 22px; }
  .nav-item.active { color: var(--accent); }
 
  /* ── CARDS ── */
  .card {
    background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
    padding: 16px;
  }
  .card + .card { margin-top: 10px; }
 
  /* ── EXERCISE CARD ── */
  .exercise-card {
    background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
    padding: 16px; display: flex; gap: 14px; align-items: flex-start;
    transition: border-color 0.2s;
  }
  .exercise-card.done { border-color: var(--accent); opacity: 0.6; }
  .exercise-card + .exercise-card { margin-top: 10px; }
  .ex-num {
    width: 36px; height: 36px; background: var(--surface2); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: var(--accent);
    flex-shrink: 0;
  }
  .ex-info { flex: 1; }
  .ex-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
  .ex-detail { font-size: 13px; color: var(--muted); }
  .ex-log-btn {
    background: var(--surface2); border: 1px solid var(--border); border-radius: 10px;
    padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
    color: var(--text); font-family: 'DM Sans', sans-serif; white-space: nowrap;
    transition: all 0.15s;
  }
  .ex-log-btn.logged { background: rgba(200,241,53,0.1); border-color: var(--accent); color: var(--accent); }
  .ex-log-btn:active { transform: scale(0.95); }
  .ex-replace-btn {
    background: transparent; border: 1px solid var(--border);
    border-radius: 8px; padding: 4px 8px; font-size: 11px;
    font-weight: 600; cursor: pointer; color: var(--muted);
    font-family: 'DM Sans', sans-serif; transition: all 0.15s;
    white-space: nowrap; margin-top: 6px; display: inline-flex;
    align-items: center; gap: 4px;
  }
  .ex-replace-btn:hover { border-color: var(--accent); color: var(--accent); }
  .ex-replace-btn:active { transform: scale(0.93); }
  .ex-replace-btn.locked { color: var(--border); cursor: pointer; }
  .ex-replace-btn.used-up { opacity: 0.4; cursor: not-allowed; }
 
  /* Replace animation */
  @keyframes replaceFlash {
    0%   { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: none; }
  }
  .exercise-card.replacing { animation: replaceFlash 0.3s ease; }

  /* ── EXERCISE MUSCLE TAG ── */
  .ex-muscle-tag { font-size: 11px; color: var(--muted); margin-top: 2px; text-transform: capitalize; }

  /* ── ANIMATION BUTTON (on exercise card) ── */
  .ex-gif-btn {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 8px; background: rgba(200,241,53,0.06);
    border: 1px solid rgba(200,241,53,0.25); border-radius: 8px;
    padding: 4px 12px; font-size: 11px; font-weight: 600;
    color: var(--accent); cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.15s, border-color 0.15s;
  }
  .ex-gif-btn:active { background: rgba(200,241,53,0.14); }

  /* ── GIF INSTRUCTION MODAL ── */
  .gif-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.82);
    z-index: 250; display: flex; align-items: flex-end;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .gif-modal.open { opacity: 1; pointer-events: all; }
  .gif-modal-sheet {
    background: var(--surface); border-radius: 24px 24px 0 0;
    padding: 12px 20px 48px; width: 100%; max-height: 92vh; overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .gif-modal.open .gif-modal-sheet { transform: translateY(0); }
  .gif-modal-handle {
    width: 36px; height: 4px; background: var(--border);
    border-radius: 2px; margin: 0 auto 16px;
  }
  .gif-modal-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 18px;
  }
  .gif-modal-img {
    width: 100%; max-width: 340px; display: block; margin: 0 auto;
    border-radius: 14px; background: var(--surface2);
    min-height: 180px; object-fit: contain;
  }
  .gif-modal-instructions {
    margin: 18px 0 0 0; padding: 0 0 0 20px;
    font-size: 13px; color: var(--muted); line-height: 1.65;
  }
  .gif-modal-instructions li + li { margin-top: 8px; }

  /* ── EXTRA EXERCISE GIF ── */
  .extra-ex-gif {
    width: 52px; height: 52px; border-radius: 8px;
    object-fit: cover; flex-shrink: 0;
  }
  .extra-ex-card { gap: 10px; align-items: center; }

  /* ── WORKOUT HISTORY ── */
  .workout-history-card { padding: 14px; }
  .workout-history-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
  .workout-history-exercises { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
  .workout-history-ex-tag {
    background: var(--surface2); border-radius: 6px;
    padding: 2px 8px; font-size: 11px; color: var(--muted);
  }
 
  /* ── STAT CHIPS ── */
  .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-chip {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 14px 10px; text-align: center;
  }
  .stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--accent); line-height: 1; }
  .stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 500; }
 
  /* ── MACRO BARS ── */
  .macro-bar-wrap { display: flex; flex-direction: column; gap: 12px; }
  .macro-row { display: flex; flex-direction: column; gap: 6px; }
  .macro-header { display: flex; justify-content: space-between; align-items: center; }
  .macro-name { font-size: 14px; font-weight: 500; }
  .macro-val { font-size: 13px; color: var(--muted); }
  .macro-track { height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
  .macro-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
  .macro-fill.protein { background: #c8f135; }
  .macro-fill.carbs { background: #4fc3f7; }
  .macro-fill.fat { background: #ffb74d; }
 
  /* ── AI CHAT ── */
  .ai-fab {
    position: fixed; bottom: 90px; right: 20px; width: 54px; height: 54px;
    background: var(--accent); border-radius: 16px; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    box-shadow: 0 4px 20px rgba(200,241,53,0.3); transition: all 0.2s; z-index: 99;
  }
  .ai-fab:active { transform: scale(0.93); }
  .ai-fab.hidden { display: none; }
 
  .ai-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200;
    display: none; flex-direction: column; backdrop-filter: blur(4px);
  }
  .ai-overlay.open { display: flex; animation: fadeUp 0.25s ease; }
  .ai-sheet {
    margin-top: auto; background: var(--surface); border-radius: 24px 24px 0 0;
    height: 70vh; display: flex; flex-direction: column; overflow: hidden;
  }
  .ai-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 12px auto; }
  .ai-header { padding: 0 20px 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
  .ai-messages { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
  .msg { max-width: 85%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
  .msg.user { background: var(--accent); color: #0a0a0a; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
  .msg.ai { background: var(--surface2); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
  .msg.typing { color: var(--muted); }
  .ai-input-row { padding: 12px 20px 24px; display: flex; gap: 10px; border-top: 1px solid var(--border); }
  .ai-input {
    flex: 1; background: var(--surface2); border: 1px solid var(--border);
    border-radius: 14px; padding: 12px 14px; color: var(--text);
    font-family: 'DM Sans', sans-serif; font-size: 15px; outline: none; resize: none;
  }
  .ai-send {
    width: 44px; height: 44px; background: var(--accent); border: none; border-radius: 12px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .ai-send:active { transform: scale(0.93); }
  .ai-send svg { width: 18px; height: 18px; }
 
  /* ── TIMER ── */
  .timer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 150;
    display: none; flex-direction: column; align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
  }
  .timer-overlay.open { display: flex; animation: fadeUp 0.2s ease; }
  .timer-circle {
    width: 180px; height: 180px; border-radius: 50%;
    border: 3px solid var(--accent); display: flex; align-items: center;
    justify-content: center; margin-bottom: 24px; position: relative;
  }
  .timer-val { font-family: 'Bebas Neue', sans-serif; font-size: 64px; color: var(--accent); }
  .timer-label { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
 
  /* ── MISC ── */
  .spacer { flex: 1; }
  .gap-8 { display: flex; flex-direction: column; gap: 8px; }
  .gap-16 { display: flex; flex-direction: column; gap: 16px; }
  .gap-24 { display: flex; flex-direction: column; gap: 24px; }
  .mt-8 { margin-top: 8px; }
  .mt-16 { margin-top: 16px; }
  .mt-24 { margin-top: 24px; }
  .mt-32 { margin-top: 32px; }
  .app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
  .avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 16px; }
  .streak-badge { background: rgba(200,241,53,0.1); border: 1px solid rgba(200,241,53,0.3); border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--accent); }
  .section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .loading-dots { display: inline-flex; gap: 4px; }
  .loading-dots span { width: 6px; height: 6px; background: var(--muted); border-radius: 50%; animation: bounce 1.2s infinite; }
  .loading-dots span:nth-child(2) { animation-delay: 0.2s; }
  .loading-dots span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
 
  /* Main app screens have bottom nav padding */
  .main-screen { padding-bottom: 100px; }
 
  .highlight-box {
    background: rgba(200,241,53,0.06); border: 1px solid rgba(200,241,53,0.2);
    border-radius: var(--radius); padding: 16px;
  }
  .highlight-box h3 { color: var(--accent); margin-bottom: 4px; }
 
  /* Muscle group tags */
  .muscle-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .muscle-tag { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
 
  /* Volume bars on progress */
  .vol-bars { display: flex; flex-direction: column; gap: 10px; }
  .vol-row { display: flex; align-items: center; gap: 12px; }
  .vol-name { width: 80px; font-size: 13px; color: var(--muted); flex-shrink: 0; }
  .vol-bar-wrap { flex: 1; height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
  .vol-bar { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.8s ease; }
  .vol-num { width: 32px; font-size: 12px; color: var(--muted); text-align: right; flex-shrink: 0; }
  .vol-bar-empty { background: var(--border) !important; }
 
  /* ── HOME LOGO ── */
  .home-logo-small {
    width: 90px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .home-logo-small svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  .home-username-chip {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
  }
 
 
 
  /* ── SUBSCRIPTION CARD ── */
  .sub-card {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(200,241,53,0.25);
    background: linear-gradient(135deg, #0f1f0f 0%, #141414 60%, #0a1a0a 100%);
    position: relative; margin-bottom: 0;
  }
  .sub-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at top right, rgba(200,241,53,0.07) 0%, transparent 65%);
    pointer-events: none;
  }
  .sub-card-header {
    padding: 16px 16px 0;
    display: flex; align-items: center; justify-content: space-between;
  }
  .sub-badge {
    background: var(--accent); color: #0a0a0a;
    border-radius: 6px; padding: 3px 8px;
    font-size: 10px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
  }
  .sub-price-wrap {
    display: flex; align-items: baseline; gap: 3px;
  }
  .sub-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px; color: var(--accent); line-height: 1;
  }
  .sub-price-period { font-size: 12px; color: var(--muted); }
  .sub-card-body { padding: 12px 16px 16px; }
  .sub-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
  .sub-features {
    display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px;
  }
  .sub-feature {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--muted);
  }
  .sub-feature-dot {
    width: 16px; height: 16px; border-radius: 50%;
    background: rgba(200,241,53,0.15); border: 1px solid rgba(200,241,53,0.3);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 9px;
  }
  .sub-feature span { color: var(--text); }
  .sub-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .sub-btn {
    padding: 12px 8px; border: none; border-radius: 12px;
    font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all 0.15s; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
  }
  .sub-btn:active { transform: scale(0.96); }
  .sub-btn-primary { background: var(--accent); color: #0a0a0a; }
  .sub-btn-ton {
    background: #0098EA; color: white;
    opacity: 0.55; cursor: not-allowed !important;
    border: none;
  }
  .sub-btn-ton:active { transform: none !important; }
  .sub-btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
  .sub-btn-label { font-size: 10px; opacity: 0.65; font-weight: 500; }
 
  /* Already subscribed state */
  .sub-active-card {
    background: rgba(200,241,53,0.06);
    border: 1px solid rgba(200,241,53,0.2);
    border-radius: var(--radius); padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
  }
  .sub-active-icon {
    width: 40px; height: 40px; background: var(--accent);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 20px; flex-shrink: 0;
  }
  .sub-active-expires { font-size: 12px; color: var(--muted); margin-top: 2px; }
 
 
  /* ── AI WEEKLY ANALYSIS ── */
  .ai-analysis-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .ai-analysis-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    background: rgba(200,241,53,0.03);
  }
  .ai-analysis-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700;
  }
  .ai-analysis-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
  }
  .ai-analysis-date {
    font-size: 11px; color: var(--muted); font-weight: 500;
  }
  .ai-analysis-body { padding: 14px 16px; }
  .ai-analysis-summary {
    font-size: 14px; line-height: 1.65; color: var(--text);
    margin-bottom: 12px;
  }
  .ai-analysis-recs { display: flex; flex-direction: column; gap: 8px; }
  .ai-rec-item {
    display: flex; gap: 10px; align-items: flex-start;
    background: var(--surface2); border-radius: 10px;
    padding: 10px 12px;
  }
  .ai-rec-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
  .ai-rec-text { font-size: 13px; color: var(--muted); line-height: 1.5; }
  .ai-rec-text strong { color: var(--text); }
  .ai-analysis-notice {
    margin-top: 12px; padding: 8px 12px;
    background: rgba(255,180,50,0.06);
    border: 1px solid rgba(255,180,50,0.15);
    border-radius: 8px; font-size: 11px;
    color: rgba(255,180,50,0.7); line-height: 1.5;
    display: flex; gap: 6px;
  }
  .ai-analysis-empty {
    padding: 24px 16px; text-align: center;
  }
  .ai-analysis-refresh {
    background: transparent; border: 1px solid var(--border);
    border-radius: 8px; padding: 4px 10px;
    font-size: 11px; font-weight: 600;
    color: var(--muted); cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
  }
  .ai-analysis-refresh:hover { border-color: var(--accent); color: var(--accent); }
  .ai-analysis-refresh:disabled { opacity: 0.4; cursor: not-allowed; }
 
  /* ── WORKOUT DONE STATE ── */
  .extra-ex-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
  }
  .extra-ex-card .ex-name { font-weight: 600; font-size: 14px; }
  .extra-ex-card .ex-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }
  #add-extra-btn:disabled { opacity: 0.4; cursor: not-allowed; }
 
  /* ── REWARDS ── */
  .rewards-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    background: var(--surface); border-radius: 14px; padding: 4px;
    margin-bottom: 20px; border: 1px solid var(--border);
  }
  .rewards-tab {
    padding: 10px; border: none; border-radius: 11px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
    background: transparent; color: var(--muted); transition: all 0.2s;
  }
  .rewards-tab.active { background: var(--accent); color: #0a0a0a; }
  .rewards-page { display: block; }
 
  /* Points hero card */
  .points-hero {
    background: var(--accent); border-radius: var(--radius);
    padding: 20px 24px; display: flex; align-items: center; gap: 16px;
  }
  .points-orb {
    width: 52px; height: 52px; background: rgba(10,10,10,0.15);
    border-radius: 14px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
  }
 
  /* Task cards */
  .task-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px;
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 10px; transition: border-color 0.2s;
  }
  .task-card.claimable { border-color: rgba(200,241,53,0.4); }
  .task-card.claimed { opacity: 0.55; }

  .task-card-top {
    display: flex; align-items: center; gap: 12px;
  }
  .task-card-bottom { /* full-width row for the action button */ }

  .task-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--surface2); display: flex; align-items: center;
    justify-content: center; font-size: 18px; flex-shrink: 0;
  }
  .task-info { flex: 1; min-width: 0; }
  .task-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
  .task-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }

  .task-pts-badge {
    background: rgba(200,241,53,0.1); border: 1px solid rgba(200,241,53,0.3);
    border-radius: 8px; padding: 4px 10px; white-space: nowrap; flex-shrink: 0;
    font-family: 'Bebas Neue', sans-serif; font-size: 17px; letter-spacing: 0.5px;
    color: var(--accent);
  }
  .task-pts-badge.dimmed {
    background: rgba(255,255,255,0.05); border-color: var(--border); color: var(--muted);
  }

  /* Claim buttons */
  .task-claim-btn {
    width: 100%; padding: 11px 16px; border-radius: 10px;
    font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
    border: none; cursor: pointer; transition: opacity 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
  }
  .task-claim-btn.ready {
    background: var(--accent); color: #0a0a0a;
  }
  .task-claim-btn.ready:active { opacity: 0.8; }
  .task-claim-btn.done {
    background: rgba(255,255,255,0.05); color: var(--muted);
    cursor: default; font-size: 12px;
  }
  .task-claim-btn.locked {
    background: rgba(255,255,255,0.03); color: var(--muted);
    border: 1px solid var(--border); cursor: default; font-size: 12px;
  }
  .btn-arrow { opacity: 0.7; }
 
  /* Shop item card */
  .shop-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; margin-bottom: 10px;
  }
  .shop-card-img {
    width: 100%; height: 160px; object-fit: cover;
    background: linear-gradient(135deg, #1a2a1a 0%, #0d1f0d 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
  }
  .shop-card-img-inner {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
  }
  .steam-logo {
    font-family: 'Bebas Neue', sans-serif; font-size: 36px;
    color: #c8f135; letter-spacing: 3px;
  }
  .steam-sublabel {
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: rgba(200,241,53,0.5);
  }
  .shop-card-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--accent); color: #0a0a0a; border-radius: 8px;
    padding: 4px 10px; font-size: 11px; font-weight: 700;
  }
  .shop-card-body { padding: 16px; }
  .shop-card-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
  .shop-card-desc { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
  .shop-card-footer { display: flex; align-items: center; justify-content: space-between; }
  .shop-price {
    display: flex; align-items: baseline; gap: 4px;
  }
  .shop-price-val {
    font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--accent);
  }
  .shop-price-unit { font-size: 12px; color: var(--muted); font-weight: 500; }
  .shop-buy-btn {
    background: var(--accent); color: #0a0a0a; border: none;
    border-radius: 12px; padding: 10px 20px; font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.15s;
  }
  .shop-buy-btn:active { transform: scale(0.95); }
  .shop-buy-btn:disabled {
    background: var(--surface2); color: var(--muted);
    border: 1px solid var(--border); cursor: not-allowed;
  }