  :root {
    --bg: #EDEAE4;
    --bg-card: #FFFFFF;
    --border: #E6E2DA;
    --silver: #9AA7B2;
    --silver-light: #D6DEE5;
    --gold: #BFA05A;
    --ink: #161513;
    --ink-mid: #5E5A54;
    --ink-soft: #9C978F;
    --accent: #2E4733;
    --drip-bg: #1A2E1F;
  }

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

  body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    font-size: 14px;
    overflow-x: hidden;
  }

  body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; opacity: 0.025; z-index: 999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 128px;
  }
  @media (max-width: 780px) {
    body::before { display: none; }
  }

  header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    position: sticky; top: 0; z-index: 100;
  }

  @media (max-width: 700px) {
    header { padding: 12px 16px; }
  }

  .logo {
    font-family: 'Outfit', sans-serif;
    font-size: 20px; font-weight: 300;
    color: var(--ink); display: flex; align-items: center; gap: 10px;
    letter-spacing: 0.01em; text-transform: none;
  }
  .logo-drip-text { font-weight: 300; color: var(--ink); }
  .logo-stack-text { font-weight: 300; color: var(--ink); }
  .logo-dot { display: none; }
  .logo-drip {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, rgba(200,216,224,0.3), rgba(191,160,90,0.15));
    border: 1px solid rgba(191,160,90,0.2);
    flex-shrink: 0;
  }

  .btn-ghost {
    font-family: 'DM Mono', monospace; font-size: 11px;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-mid); background: none;
    border: 1px solid var(--border); padding: 8px 16px;
    border-radius: 6px; cursor: pointer; transition: all 0.2s;
  }
  .btn-ghost:hover { border-color: var(--ink-mid); color: var(--ink); }

  .header-right { display: flex; align-items: center; gap: 14px; }
  .tier-badge {
    font-family: 'DM Mono', monospace;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gold);
    background: rgba(191,160,90,0.12);
    border: 1px solid rgba(191,160,90,0.3);
    border-radius: 20px;
    padding: 5px 12px;
  }
  .avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--silver-light), var(--silver));
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-family: 'DM Mono', monospace;
    color: var(--ink); cursor: pointer; font-weight: 500;
    transition: box-shadow 0.2s;
  }
  .avatar:hover { box-shadow: 0 0 0 2px var(--silver); }

  /* Walkthrough modal */
  .walkthrough-modal { text-align: center; max-width: 400px; }
  .walkthrough-step { display: none; }
  .walkthrough-step.active { display: block; }
  .walkthrough-icon {
    font-size: 36px; margin-bottom: 8px;
  }
  .walkthrough-title {
    font-family: 'Outfit', sans-serif; font-size: 18px;
    font-weight: 400; color: var(--ink); margin-bottom: 8px;
  }
  .walkthrough-body {
    font-family: 'Outfit', sans-serif; font-size: 13px;
    font-weight: 300; color: var(--ink-mid); line-height: 1.75;
    margin-bottom: 16px;
  }
  .walkthrough-body em { font-style: italic; color: var(--ink); }

  /* Mini preview cards inside walkthrough */
  .wk-preview {
    background: #1F2123; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 12px 14px; margin: 12px 0 16px;
    text-align: left;
  }
  .wk-preview.shimmer-border {
    border-color: #8BA5B4;
    box-shadow: inset 0 0 6px rgba(154,167,178,0.15);
  }
  .wk-preview.gold-border {
    border-color: rgba(191,160,90,0.3);
  }
  .wk-preview.special-border {
    border-color: rgba(46,71,51,0.4);
    background: linear-gradient(135deg, #1F2123 60%, rgba(46,71,51,0.15));
  }
  .wk-preview.light {
    background: var(--bg-card); border-color: var(--border);
  }
  .wk-preview-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  }
  .wk-preview-coin {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
    background: rgba(255,255,255,0.05);
  }
  .wk-preview-coin.light-bg { background: var(--bg); }
  .wk-preview-name {
    font-family: 'Outfit', sans-serif; font-size: 13px;
    font-weight: 400; color: rgba(255,255,255,0.85);
  }
  .wk-preview-meta {
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: rgba(255,255,255,0.35); letter-spacing: 0.03em;
  }
  .wk-preview-name.dark { color: var(--ink); }
  .wk-preview-meta.dark { color: var(--ink-soft); }
  .wk-preview-bar {
    height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06);
    overflow: hidden; margin-top: 4px;
  }
  .wk-preview-bar-fill {
    height: 100%; border-radius: 2px; width: 55%;
    background: linear-gradient(90deg, #6BA5B8, #9AB8C8);
  }
  .wk-preview-bar-fill.gold { background: linear-gradient(90deg, #B8922A, #D4A843); }
  .wk-preview-bar-fill.green { background: linear-gradient(90deg, #2E4733, #4A7A56); }
  .wk-preview-label {
    font-family: 'DM Mono', monospace; font-size: 8px;
    color: rgba(255,255,255,0.3); margin-top: 4px; letter-spacing: 0.04em;
  }
  .wk-preview-label.dark { color: var(--ink-soft); }
  .wk-preview-price {
    font-family: 'Outfit', sans-serif; font-size: 16px;
    font-weight: 300; color: rgba(255,255,255,0.85);
    text-align: right;
  }
  .wk-preview-pair {
    display: flex; gap: 8px; margin: 12px 0 16px;
  }
  .wk-preview-pair .wk-preview { flex: 1; margin: 0; }
  .wk-preview-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .wk-preview-stat-row:last-child { border-bottom: none; }
  .wk-preview-stat-label {
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: rgba(255,255,255,0.4);
  }
  .wk-preview-stat-val {
    font-family: 'DM Mono', monospace; font-size: 10px;
    color: rgba(255,255,255,0.7); font-weight: 500;
  }
  .wk-mystery {
    font-family: 'DM Mono', monospace; font-size: 11px;
    color: rgba(255,255,255,0.5); text-align: center;
    padding: 8px 0; letter-spacing: 0.06em;
  }
  .pwa-device-instructions { text-align: left; margin-top: 12px; }
  .pwa-device-instructions .pwa-device {
    background: var(--bg); border-radius: 10px; padding: 12px 14px;
    margin-bottom: 8px; font-size: 13px; color: var(--ink-mid); line-height: 1.6;
  }
  .pwa-device-instructions .pwa-device-label {
    font-weight: 500; color: var(--ink); font-size: 13px; margin-bottom: 4px;
    display: flex; align-items: center; gap: 6px;
  }
  .btn-skip {
    background: none; border: none; font-family: 'Outfit', sans-serif;
    font-size: 13px; color: var(--ink-soft); cursor: pointer;
    margin-top: 8px; padding: 6px 12px; text-decoration: underline;
    text-underline-offset: 3px;
  }
  .btn-skip:hover { color: var(--ink-mid); }

  /* Install nudge banner */
  .install-nudge {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    background: var(--accent);
    color: rgba(255,255,255,0.9);
    font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 300;
    cursor: pointer;
    animation: slideUp 0.4s ease-out;
  }
  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .install-nudge-icon { font-size: 18px; flex-shrink: 0; }
  .install-nudge-text { flex: 1; }
  .install-nudge-close {
    background: none; border: none; color: rgba(255,255,255,0.5);
    font-size: 16px; cursor: pointer; padding: 4px; flex-shrink: 0;
  }
  .install-nudge-close:hover { color: #fff; }
  .walkthrough-dots {
    display: flex; justify-content: center; gap: 8px; margin-top: 16px;
  }
  .walkthrough-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border); cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }
  .walkthrough-dot.active {
    background: var(--gold); transform: scale(1.3);
  }

  /* Welcome modal */
  .welcome-modal { text-align: center; }
  .welcome-greeting {
    font-family: 'Outfit', sans-serif; font-size: 22px;
    font-weight: 300; color: var(--ink); margin-bottom: 4px;
  }
  .welcome-greeting strong { font-weight: 500; }
  .welcome-stats {
    display: flex; align-items: center;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px 24px;
    margin-bottom: 20px; gap: 0;
  }
  .welcome-stat { flex: 1; }
  .welcome-stat-val {
    font-family: 'Outfit', sans-serif; font-size: 42px;
    font-weight: 300; color: var(--ink); line-height: 1;
    margin-bottom: 4px;
  }
  .welcome-stat-val span {
    font-size: 20px; color: var(--ink-mid); font-weight: 300;
  }
  .welcome-stat-label {
    font-family: 'DM Mono', monospace; font-size: 9px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-mid); margin-bottom: 4px;
  }
  .welcome-stat-sub {
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: var(--accent); letter-spacing: 0.04em;
  }
  .welcome-stat-divider {
    width: 1px; background: var(--border);
    align-self: stretch; margin: 0 24px;
  }

  .tagline-bar {
    text-align: center; padding: 12px 40px;
    font-family: 'DM Mono', monospace; font-size: 11px;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-mid);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
  }
  .tagline-bar span { color: var(--ink); font-weight: 500; }

  .main {
    max-width: 600px; margin: 0 auto;
    padding: 24px 20px 80px;
    display: flex; flex-direction: column; gap: 12px;
  }

  .card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 24px;
    position: relative; overflow: hidden;
    animation: fadeUp 0.5s ease both;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 0 rgba(255,255,255,0.9) inset, 0 8px 24px -4px rgba(0,0,0,0.08), 0 20px 40px -8px rgba(0,0,0,0.06);
  }
  .drip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  }
  .card:nth-child(1) { animation-delay: 0.05s; }
  .card:nth-child(2) { animation-delay: 0.12s; }
  .card:nth-child(3) { animation-delay: 0.19s; }
  .card:nth-child(4) { animation-delay: 0.26s; }
  .card:nth-child(5) { animation-delay: 0.33s; }

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

  /* ── UNIFIED CARD HEADERS ── */
  .card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 28px 16px;
    border-bottom: 1px solid var(--border);
    margin: -32px -32px 24px -32px;
  }
  .stack-card .card-header { margin: 0; padding: 20px 32px 16px; border-bottom: 1px solid var(--border); }
  .card-header-left { display: flex; align-items: center; gap: 10px; }
  .card-header-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
  }
  .card-header-icon.silver {
    background: linear-gradient(135deg, rgba(200,216,224,0.35), rgba(154,167,178,0.1));
    border: 1px solid rgba(154,167,178,0.25);
    transition: background 1.2s ease, border-color 1.2s ease;
  }
  .card-header-icon.gold {
    background: linear-gradient(135deg, rgba(232,210,138,0.3), rgba(191,160,90,0.1));
    border: 1px solid rgba(191,160,90,0.25);
    transition: background 1.2s ease, border-color 1.2s ease;
  }
  /* Holdings icon gold-unlock pulse */
  @keyframes holdingsIconGoldPulse {
    0%   { box-shadow: 0 0 0 0 rgba(212,168,67,0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(212,168,67,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,168,67,0); }
  }
  .card-header-icon.gold-unlocked {
    animation: holdingsIconGoldPulse 1.4s ease-out;
  }
  .card-header-icon.drip {
    background: linear-gradient(135deg, rgba(200,216,224,0.3), rgba(191,160,90,0.15));
    border: 1px solid rgba(191,160,90,0.2);
  }
  .card-header-icon.accent {
    background: linear-gradient(135deg, rgba(46,71,51,0.12), rgba(46,71,51,0.04));
    border: 1px solid rgba(46,71,51,0.18);
  }
  .card-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px; font-weight: 400; color: var(--ink); line-height: 1.2;
  }
  .card-header-sub {
    font-family: 'DM Mono', monospace;
    font-size: 9px; letter-spacing: 0.08em;
    color: var(--ink-mid); text-transform: uppercase; margin-top: 1px;
  }
  .founding-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: 'DM Mono', monospace; font-size: 8px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold); background: rgba(191,160,90,0.1);
    border: 1px solid rgba(191,160,90,0.25); border-radius: 100px;
    padding: 3px 8px; flex-shrink: 0;
  }
  .founding-badge-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold); flex-shrink: 0;
  }
  .welcome-founding-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold); background: rgba(191,160,90,0.08);
    border: 1px solid rgba(191,160,90,0.2); border-radius: 10px;
    padding: 8px 14px; margin-bottom: 16px; width: 100%;
  }
  .welcome-founding-badge-icon { font-size: 14px; }

  .card-header-badge {
    font-family: 'DM Mono', monospace;
    font-size: 9px; letter-spacing: 0.06em;
    border-radius: 20px; padding: 4px 10px;
  }
  .card-header-badge.silver {
    color: var(--silver); background: rgba(154,167,178,0.1);
    border: 1px solid rgba(154,167,178,0.25);
  }
  .card-header-badge.gold {
    color: var(--gold); background: rgba(191,160,90,0.1);
    border: 1px solid rgba(191,160,90,0.25);
  }
  .card-header-badge.accent {
    color: var(--accent); background: rgba(46,71,51,0.08);
    border: 1px solid rgba(46,71,51,0.2);
  }
  .card-header-actions { display: flex; align-items: center; gap: 8px; }

  .card-label {
    font-family: 'DM Mono', monospace; font-size: 12px;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-mid); margin-bottom: 20px; font-weight: 700;
  }

  /* ── YOUR STACK ── */
  .stack-card {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0; align-items: start;
    padding: 0;
    position: relative;
  }
  .stack-col {
    padding: 28px 32px;
  }
  .stack-col:first-child { padding-left: 32px; }
  .stack-col:last-child  { padding-right: 32px; }
  .stack-col-divider {
    background: var(--border);
  }


  .stack-oz {
    font-family: 'Outfit', sans-serif;
    font-size: 44px; font-weight: 300; line-height: 1.05;
    color: var(--ink); letter-spacing: -0.02em;
  }
  .stack-oz span { font-size: 20px; color: var(--ink-mid); font-weight: 300; }
  .stack-oz.gold-oz { font-size: 34px; margin-top: 8px; }

  .stack-value {
    font-family: 'DM Mono', monospace;
    font-size: 11px; color: var(--ink-mid); letter-spacing: 0.04em;
    margin-top: 2px;
  }

  .stack-total {
    display: flex; align-items: baseline; gap: 10px;
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .stack-total-label {
    font-family: 'DM Mono', monospace; font-size: 9px;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-mid); font-weight: 600;
  }
  .stack-total-val {
    font-family: 'Outfit', sans-serif; font-size: 20px;
    font-weight: 400; color: var(--ink); letter-spacing: -0.01em;
  }

  /* Action buttons */
  .stack-actions {
    display: flex; flex-direction: row;
    gap: 8px; align-items: center;
  }
  .stack-action-btn {
    font-family: 'DM Mono', monospace; font-size: 10px;
    font-weight: 500; letter-spacing: 0.07em;
    padding: 7px 13px; border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--bg); color: var(--ink-mid);
    cursor: pointer; transition: all 0.15s ease;
    white-space: nowrap; line-height: 1;
    display: flex; align-items: center; gap: 5px;
    height: 30px; font-size: 10px;
  }
  .stack-action-btn span, .stack-action-btn { font-size: 10px; }
  .stack-action-btn:hover {
    border-color: var(--ink-mid);
    color: var(--ink);
  }
  .stack-action-btn.primary {
    background: var(--bg);
    color: var(--ink-mid);
    border-color: var(--border);
  }
  .stack-action-btn.primary:hover {
    border-color: var(--ink-mid);
    color: var(--ink);
  }
  .stack-action-btn.privacy-toggle {
    background: var(--bg);
    color: var(--ink-mid);
    border-color: var(--border);
  }
  .alloc-legend-row {
    display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
    margin-top: 14px;
  }

  /* Next drip teaser */
  .stack-next-drip {
    margin-top: 12px; padding: 8px 12px;
    background: rgba(46,71,51,0.05);
    border: 1px solid rgba(46,71,51,0.12);
    border-radius: 8px;
    display: flex; align-items: center; gap: 8px;
  }
  .stack-next-drip-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
    animation: sDotPulse 2s ease-in-out infinite;
  }
  .stack-next-drip-text {
    font-family: 'DM Mono', monospace; font-size: 9px;
    letter-spacing: 0.08em; color: var(--ink-mid); line-height: 1.5;
  }
  .stack-next-drip-text strong { color: var(--accent); }

  /* Tube progress */
  .tube-label {
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mid);
    margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
  }
  .tube-count { 
    color: var(--silver); font-weight: 600; 
    font-variant-numeric: tabular-nums;
    letter-spacing: 0; text-transform: none;
    white-space: nowrap; flex-shrink: 0;
    transition: filter 0.3s ease, opacity 0.3s ease;
  }
  .tube-wrapper {
    position: relative; height: 32px; background: #ECEAE5;
    border-radius: 20px; overflow: hidden; margin-bottom: 6px; border: 1px solid var(--border);
  }
  .tube-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, #7A9AAA 0%, #9AB8C8 40%, #B0CCDA 70%, #9AB8C8 100%);
    border-radius: 20px 0 0 20px; position: relative;
    transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
  }
  .tube-fill.gold-fill {
    background: linear-gradient(90deg, #BFA05A 0%, #D4A843 40%, #E8C870 70%, #D4A843 100%);
  }
  .tube-fill::after {
    content: ''; position: absolute;
    top: 4px; left: 10px; right: 10px; height: 8px;
    background: rgba(255,255,255,0.35); border-radius: 10px 0 0 10px;
  }
  .tube-slots {
    position: absolute; inset: 0;
    display: flex; align-items: center; padding: 0 6px; gap: 3px;
  }
  .slot {
    flex: 1; height: 20px; border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.04); transition: all 0.3s ease;
  }
  .slot.filled { background: rgba(255,255,255,0.35); border-color: rgba(255,255,255,0.6); }
  .slot.gold-filled { background: rgba(255,220,100,0.35); border-color: rgba(255,255,255,0.55); }
  .tube-section { margin-bottom: 14px; }
  .tube-type-tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'DM Mono', monospace; font-size: 8.5px;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-mid); margin-bottom: 4px;
  }
  .tube-type-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--silver); flex-shrink: 0;
  }
  .tube-type-dot.gold { background: var(--gold); }
  .tube-milestone { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--ink-mid); text-align: right; margin-top: 3px; }

  /* Gold tube tooltip */
  .tube-section-gold { position: relative; margin-bottom: 14px; }
  .gold-tooltip {
    display: none;
    position: absolute; top: 0; left: calc(100% + 10px);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 10; min-width: 160px;
    font-family: 'DM Mono', monospace; font-size: 9px;
    letter-spacing: 0.06em; color: var(--ink-mid);
    white-space: nowrap;
  }
  .tube-section-gold:hover .gold-tooltip { display: block; }
  .gold-tooltip-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; padding: 3px 0;
    border-bottom: 1px solid var(--border);
  }
  .gold-tooltip-row:last-child { border-bottom: none; padding-top: 6px; margin-top: 2px; }
  .gold-tooltip-row:last-child .gold-tooltip-denom { color: var(--ink); font-weight: 600; }
  .gold-tooltip-row:last-child .gold-tooltip-count { color: var(--gold); font-weight: 600; }
  .gold-tooltip-denom { color: var(--ink-mid); }
  .gold-tooltip-count { color: var(--gold); text-align: right; }
  .milestone-badge {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
    padding: 4px 10px; background: rgba(191,160,90,0.1);
    border: 1px solid rgba(191,160,90,0.25); border-radius: 20px;
    font-family: 'DM Mono', monospace; font-size: 9px;
    letter-spacing: 0.06em; color: var(--gold);
  }

  /* Privacy blur toggle */
  .privacy-toggle {
    flex-shrink: 0;
    margin-top: 8px;
  }
  .stack-action-btn.active {
    background: var(--accent); border-color: var(--accent);
    color: #fff;
  }
  .stack-action-btn.active:hover {
    background: #3a5a40; border-color: #3a5a40;
  }

  /* Blurred state — covers all sensitive values */
  .blurred .alloc-legend-detail,
  .blurred .donut-center-val,
  .blurred .alloc-legend-pct,
  .blurred .tube-count,
  .blurred .mini-stat-val,
  .blurred .mini-stat-row { 
    filter: blur(7px); opacity: 0.35;
    user-select: none;
  }
  .alloc-legend-detail,
  .donut-center-val { transition: filter 0.3s ease, opacity 0.3s ease; }
  .mini-stat { margin-bottom: 0; }
  .mini-stat-val {
    font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 400;
    color: var(--ink); line-height: 1; margin-bottom: 2px;
    transition: filter 0.3s ease, opacity 0.3s ease;
  }
  .mini-stat-label {
    font-family: 'DM Mono', monospace; font-size: 8px;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mid);
  }

  /* Stats grid — desktop and mobile */
  .mini-stats-grid {
    display: flex; flex-direction: column;
    gap: 0; margin-top: 10px;
  }
  .mini-stat-row {
    display: flex; align-items: baseline;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: filter 0.3s ease, opacity 0.3s ease;
  }
  .mini-stat-row:last-child { border-bottom: none; }
  .mini-stat-num {
    font-family: 'Outfit', sans-serif; font-size: 15px;
    font-weight: 400; color: var(--ink); min-width: 36px;
    line-height: 1;
  }
  .mini-stat-unit {
    font-size: 10px; color: var(--ink-mid); font-weight: 300;
  }
  .mini-stat-desc {
    font-family: 'DM Mono', monospace; font-size: 9px;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-mid); text-align: right;
  }


  /* ── MODAL OVERLAY ── */
  .modal-overlay {
    position: fixed; inset: 0;
    background: rgba(22,21,19,0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-overlay.open { opacity: 1; pointer-events: all; }

  .modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 36px 32px 28px;
    width: 500px; max-width: 94vw;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.5) inset;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
  }
  .modal-overlay.open .modal { transform: translateY(0) scale(1); }

  /* Modal icon header strip */
  .modal-icon-strip {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
  }
  .modal-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
  }
  .modal-icon.gold { background: linear-gradient(135deg, rgba(191,160,90,0.15), rgba(191,160,90,0.05)); border: 1px solid rgba(191,160,90,0.2); }
  .modal-icon.silver { background: linear-gradient(135deg, rgba(154,167,178,0.15), rgba(154,167,178,0.05)); border: 1px solid rgba(154,167,178,0.2); }
  .modal-icon-text { flex: 1; }

  .modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px; font-weight: 300;
    color: var(--ink); margin-bottom: 2px; line-height: 1.2;
  }
  .modal-sub {
    font-family: 'DM Mono', monospace;
    font-size: 9.5px; letter-spacing: 0.07em;
    color: var(--ink-mid);
  }
  .modal-close {
    position: absolute; top: 18px; right: 18px;
    width: 28px; height: 28px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 50%; cursor: pointer;
    font-size: 14px; color: var(--ink-mid);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; line-height: 1;
  }
  .modal-close:hover { color: var(--ink); border-color: var(--ink-mid); background: var(--border); }

  /* Form fields */
  .form-row { margin-bottom: 16px; }
  .form-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink-mid);
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 7px;
  }
  .form-label-icon { font-size: 11px; opacity: 0.7; }
  .form-input {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--border); border-radius: 10px;
    font-family: 'Outfit', sans-serif; font-size: 16px;
    font-weight: 300; color: var(--ink);
    background: var(--bg); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
  }
  .form-input:focus {
    border-color: var(--silver);
    box-shadow: 0 0 0 3px rgba(154,167,178,0.12);
  }
  .form-input::placeholder { color: var(--ink-soft); opacity: 0.6; }
  select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B7580' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
  select.form-input option { background: var(--bg-card); color: var(--ink); }

  .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
  .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
  .form-detail-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0 14px; }
  .form-detail-label {
    font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--ink-mid);
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  }
  .form-detail-label::before { content: ''; display: inline-block; width: 12px; height: 1px; background: var(--ink-soft); opacity: 0.4; }

  /* Form group card */
  .form-group-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 16px 4px;
    margin-bottom: 16px;
  }
  .form-group-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 14px;
  }
  .form-group-icon {
    width: 26px; height: 26px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
  }
  .form-group-icon.gold { background: rgba(191,160,90,0.12); }
  .form-group-icon.silver { background: rgba(154,167,178,0.12); }
  .form-group-icon.other { background: rgba(94,90,84,0.1); }
  .form-group-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px; letter-spacing: 0.12em;
    text-transform: uppercase; font-weight: 700;
    color: var(--ink-mid);
  }

  .btn-primary {
    width: 100%; padding: 14px;
    background: var(--ink); color: #fff;
    border: none; border-radius: 10px;
    font-family: 'DM Mono', monospace;
    font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase; cursor: pointer;
    transition: all 0.2s; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .btn-primary:hover { background: #2A2826; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
  .btn-primary:active { transform: translateY(0); }

  .btn-secondary {
    width: 100%; padding: 12px;
    background: none; color: var(--ink-mid);
    border: 1px solid var(--border); border-radius: 10px;
    font-family: 'DM Mono', monospace;
    font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase; cursor: pointer;
    transition: all 0.2s; margin-top: 8px;
  }
  .btn-secondary:hover { border-color: var(--ink-mid); color: var(--ink); }

  /* Modal footer button row */
  .modal-btn-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-top: 24px;
  }
  .modal-btn-row .btn-secondary { margin-top: 0; }

  /* Goals section */
  .goal-bar-wrap { margin: 14px 0; }
  .goal-bar-bg {
    height: 7px; background: var(--border);
    border-radius: 8px; overflow: hidden; margin: 8px 0 6px;
  }
  .goal-bar-fill {
    height: 100%; border-radius: 8px;
    background: linear-gradient(90deg, #C8A84B, #E8D28A);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .goal-bar-label {
    display: flex; justify-content: space-between;
    font-family: 'DM Mono', monospace;
    font-size: 9.5px; color: var(--ink-mid);
  }

  /* Goal summary card */
  .goal-summary-card {
    background: linear-gradient(135deg, rgba(191,160,90,0.06), rgba(191,160,90,0.02));
    border: 1px solid rgba(191,160,90,0.2);
    border-radius: 12px; padding: 14px 16px;
    margin-top: 14px;
  }
  .goal-summary-stat {
    font-family: 'Outfit', sans-serif;
    font-size: 28px; font-weight: 300;
    color: var(--gold); line-height: 1;
  }
  .goal-summary-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink-mid);
    margin-top: 3px;
  }

  /* Pre-reserve drips */
  .precommit-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
  /* Preauth education banner */
  .preauth-edu-banner {
    background: rgba(46,71,51,0.12); border: 1px solid rgba(46,71,51,0.25);
    border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
    display: none;
  }
  .preauth-edu-banner.visible { display: block; }
  .preauth-edu-text {
    font-family: 'DM Mono', monospace; font-size: 9px; color: var(--ink-mid);
    line-height: 1.7; letter-spacing: 0.03em;
  }
  .preauth-edu-dismiss {
    font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink-soft); background: none;
    border: none; cursor: pointer; padding: 6px 0 0; display: block;
    text-decoration: underline; text-underline-offset: 2px;
  }

  /* Daily precommit rows */
  .precommit-row {
    display: grid; grid-template-columns: 52px 1fr auto auto;
    align-items: center; gap: 10px;
    padding: 10px 14px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 10px; transition: border-color 0.2s;
  }
  .precommit-row.is-gold {
    border-color: rgba(191,160,90,0.25);
    background: rgba(191,160,90,0.03);
  }
  .precommit-row.is-reserved {
    border-color: rgba(46,71,51,0.35);
    background: rgba(46,71,51,0.05);
  }
  .precommit-date {
    font-family: 'DM Mono', monospace;
    font-size: 9px; color: var(--ink-mid); flex-shrink: 0;
  }
  .precommit-day {
    font-family: 'DM Mono', monospace;
    font-size: 8px; color: var(--ink-soft); letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .precommit-name {
    font-family: 'Outfit', sans-serif;
    font-size: 13px; color: var(--ink);
  }
  .precommit-badge {
    display: inline-block; font-family: 'DM Mono', monospace;
    font-size: 7px; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 1px 6px; border-radius: 100px; margin-left: 6px;
    background: rgba(191,160,90,0.12); color: var(--gold);
    border: 1px solid rgba(191,160,90,0.25); vertical-align: middle;
  }
  .precommit-price {
    font-family: 'DM Mono', monospace;
    font-size: 10px; color: var(--ink-mid); flex-shrink: 0; text-align: right;
  }
  .precommit-qty-wrap {
    display: flex; align-items: center; gap: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden; flex-shrink: 0;
  }
  .precommit-qty-btn {
    background: none; border: none; color: var(--ink-mid);
    font-size: 15px; width: 28px; height: 28px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.15s;
  }
  .precommit-qty-btn:hover { color: var(--ink); }
  .precommit-qty-val {
    font-family: 'DM Mono', monospace; font-size: 12px;
    color: var(--ink); min-width: 20px; text-align: center;
  }
  .precommit-qty-val.active { color: var(--accent); font-weight: 600; }

  /* Autopilot schedule grid */
  .autopilot-schedule {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-bottom: 14px;
  }
  .autopilot-day-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
  }
  .autopilot-day-card.gold-day { border-color: rgba(191,160,90,0.25); }
  .autopilot-day-label {
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: var(--ink-mid); letter-spacing: 0.06em; text-transform: uppercase;
  }
  .autopilot-day-sub {
    font-family: 'DM Mono', monospace; font-size: 8px;
    color: var(--ink-soft); margin-top: 2px;
  }
  .autopilot-day-input {
    width: 52px; font-family: 'DM Mono', monospace; font-size: 13px;
    text-align: center; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 6px;
    padding: 5px 4px; color: var(--ink); outline: none;
  }
  .autopilot-day-input:focus { border-color: var(--accent); }

  /* ── ABOUT MODAL ── */
  .about-eyebrow {
    font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--ink-mid); margin-bottom: 12px;
  }
  .about-headline {
    font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 300;
    color: var(--ink); line-height: 1.2; margin-bottom: 28px;
  }
  .about-body {
    font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 300;
    color: var(--ink); line-height: 1.75; margin-bottom: 20px;
  }
  .about-quote {
    border-left: 3px solid rgba(191,160,90,0.4);
    background: rgba(255,255,255,0.03);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px; margin: 24px 0;
  }
  .about-quote-text {
    font-family: 'Outfit', sans-serif; font-size: 15px; font-style: italic;
    font-weight: 300; color: var(--ink); line-height: 1.6; margin-bottom: 8px;
  }
  .about-quote-ref {
    font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold);
  }
  .about-origin {
    display: flex; align-items: center; gap: 16px;
    background: rgba(46,71,51,0.15); border: 1px solid rgba(46,71,51,0.3);
    border-radius: 12px; padding: 16px 18px; margin-top: 24px;
  }
  .about-origin-icon { font-size: 28px; flex-shrink: 0; }
  .about-origin-label {
    font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 5px;
  }
  .about-origin-desc {
    font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 300;
    color: var(--ink-mid); line-height: 1.5;
  }

  .modal-section-title {
    font-family: 'DM Mono', monospace;
    font-size: 9px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--ink-mid);
    margin: 22px 0 10px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
  }
  .modal-section-title::after {
    content: ''; flex: 1; height: 1px;
    background: var(--border);
  }

  /* Stack preview in holdings modal */
  /* ── SETTINGS MODAL ── */
  .settings-section-label {
    font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ink-mid);
    margin: 20px 0 8px; padding: 0 2px;
  }
  .settings-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; margin-bottom: 4px;
  }
  .settings-row {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px; border-bottom: 1px solid var(--border);
    position: relative;
  }
  .settings-row:last-child { border-bottom: none; }
  .settings-row-icon {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
  }
  .settings-row-icon.gold { background: rgba(191,160,90,0.12); }
  .settings-row-icon.silver { background: rgba(154,167,178,0.12); }
  .settings-row-icon.green { background: rgba(93,168,122,0.12); }
  .settings-row-icon.neutral { background: rgba(255,255,255,0.05); }
  .settings-row-icon.red { background: rgba(196,107,90,0.1); }
  .settings-row-body { flex: 1; min-width: 0; }
  .settings-row-title { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 300; color: var(--ink); }
  .settings-row-sub { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.03em; color: var(--ink-mid); margin-top: 2px; line-height: 1.5; }
  .settings-row-sub.green { color: #5DA87A; }
  .settings-row-title.red { color: #C46B5A; }
  .settings-toggle {
    width: 40px; height: 22px; border-radius: 11px;
    border: 1px solid var(--border); background: var(--bg);
    cursor: pointer; position: relative; flex-shrink: 0; transition: all 0.2s;
  }
  .settings-toggle::after {
    content: ''; position: absolute; width: 16px; height: 16px;
    border-radius: 50%; background: var(--ink-soft);
    top: 2px; left: 2px; transition: all 0.2s;
  }
  .settings-toggle.on { background: rgba(93,168,122,0.15); border-color: #5DA87A; }
  .settings-toggle.on::after { background: #5DA87A; left: 20px; }
  .settings-chevron { color: var(--ink-soft); font-size: 11px; flex-shrink: 0; }

  /* Payment type selector */
  .pay-type-btn {
    flex:1; padding:12px 8px; border-radius:10px; border:1px solid var(--border);
    background:rgba(255,255,255,0.03); color:var(--ink-mid); font-size:12px;
    font-weight:500; cursor:pointer; text-align:center; transition:all 0.2s;
  }
  .pay-type-btn.active {
    border-color:var(--accent); background:rgba(46,71,51,0.15); color:var(--ink-light);
  }
  .pay-type-btn:hover { border-color:rgba(255,255,255,0.15); }
  .settings-ship-options { padding: 10px 14px 14px; }
  .settings-ship-opt {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border);
    margin-bottom: 8px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
  }
  .settings-ship-opt:last-child { margin-bottom: 0; }
  .settings-ship-opt.selected { border-color: var(--gold); background: rgba(191,160,90,0.06); }
  .settings-ship-radio {
    width: 16px; height: 16px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg);
    flex-shrink: 0; margin-top: 2px; position: relative; transition: all 0.2s;
  }
  .settings-ship-opt.selected .settings-ship-radio { border-color: var(--gold); }
  .settings-ship-opt.selected .settings-ship-radio::after {
    content: ''; position: absolute; width: 8px; height: 8px;
    border-radius: 50%; background: var(--gold); top: 3px; left: 3px;
  }
  .settings-ship-title { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 300; color: var(--ink); }
  .settings-ship-sub { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--ink-mid); margin-top: 2px; }
  .settings-ship-badge {
    display: inline-block; background: rgba(93,168,122,0.15); color: #5DA87A;
    border-radius: 4px; font-family: 'DM Mono', monospace; font-size: 8px;
    letter-spacing: 0.06em; padding: 2px 6px; margin-top: 4px;
  }

  /* ── Shipping Savings Visualizer ── */
  .ship-savings-viz {
    padding: 16px;
    border-top: 1px solid var(--border);
    background: rgba(46,71,51,0.02);
  }
  .ship-savings-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
  }
  .ship-savings-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-mid);
  }
  .ship-savings-coins-row {
    display: flex; align-items: center; gap: 8px;
  }
  .ship-savings-coins-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px; color: var(--ink-soft);
  }
  .ship-savings-adj {
    width: 26px; height: 26px; border-radius: 6px;
    border: 1px solid var(--border); background: var(--bg-card);
    font-size: 14px; color: var(--ink-mid); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
  }
  .ship-savings-adj:hover { border-color: var(--ink-mid); color: var(--ink); }
  .ship-savings-coins-val {
    font-family: 'Outfit', sans-serif;
    font-size: 18px; font-weight: 400;
    color: var(--ink); min-width: 24px; text-align: center;
  }
  .ship-savings-compare {
    display: grid; grid-template-columns: 1fr auto 1fr;
    gap: 12px; align-items: center;
    margin-bottom: 14px;
  }
  .ship-savings-col {
    text-align: center;
    padding: 12px; border-radius: 10px;
  }
  .ship-col-immediate {
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border);
  }
  .ship-col-bag {
    background: rgba(46,71,51,0.06);
    border: 1px solid rgba(46,71,51,0.2);
  }
  .ship-savings-col-label {
    font-family: 'DM Mono', monospace;
    font-size: 8px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-soft); margin-bottom: 4px;
  }
  .ship-col-bag .ship-savings-col-label { color: var(--accent); }
  .ship-savings-shipments {
    font-family: 'DM Mono', monospace;
    font-size: 9px; color: var(--ink-mid);
    margin-bottom: 6px;
  }
  .ship-savings-cost {
    font-family: 'Outfit', sans-serif;
    font-size: 20px; font-weight: 300;
    color: var(--ink);
  }
  .ship-col-immediate .ship-savings-cost { color: rgba(220,80,80,0.7); }
  .ship-col-bag .ship-savings-cost { color: var(--accent); }
  .ship-savings-cost-sub {
    font-family: 'DM Mono', monospace;
    font-size: 8px; color: var(--ink-soft);
    margin-top: 2px;
  }
  .ship-savings-arrow {
    font-size: 16px; color: var(--ink-soft);
  }
  .ship-savings-result {
    text-align: center;
    padding: 10px;
    background: rgba(46,71,51,0.06);
    border-radius: 8px;
    border: 1px solid rgba(46,71,51,0.12);
  }
  .ship-savings-saved {
    font-size: 14px; font-weight: 300;
    color: var(--ink);
  }
  .ship-savings-saved strong { color: var(--accent); font-weight: 500; }
  .ship-savings-annual {
    font-family: 'DM Mono', monospace;
    font-size: 9px; color: var(--ink-mid);
    margin-top: 4px;
  }
  .settings-input-wrap { padding: 6px 16px 14px; }
  .settings-input-label { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mid); margin-bottom: 6px; }
  .settings-input {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: 10px; font-family: 'Outfit', sans-serif; font-size: 15px;
    font-weight: 300; color: var(--ink); background: var(--bg-card); outline: none;
    transition: border-color 0.2s;
  }
  .settings-input:focus { border-color: var(--silver); }
  .settings-input::placeholder { color: var(--ink-soft); opacity: 0.5; }
  .settings-input-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 14px; }
  .settings-danger-btn {
    font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.1em;
    text-transform: uppercase; color: #C46B5A;
    background: rgba(196,107,90,0.1); border: 1px solid rgba(196,107,90,0.2);
    border-radius: 8px; padding: 8px 14px; cursor: pointer;
  }
  .settings-action-btn {
    font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink-mid);
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 14px; cursor: pointer;
    transition: all 0.2s;
  }
  .settings-action-btn:hover {
    border-color: var(--gold); color: var(--gold);
  }
  .settings-version {
    font-family: 'DM Mono', monospace; font-size: 9px; color: var(--ink-mid);
    text-align: center; margin-top: 20px; letter-spacing: 0.08em;
  }

  /* ── INVITE MODAL ── */
  .invite-hero {
    background: linear-gradient(135deg, rgba(191,160,90,0.12), rgba(154,167,178,0.06));
    border: 1px solid rgba(191,160,90,0.2); border-radius: 14px;
    padding: 20px; text-align: center; margin-bottom: 20px;
  }
  .invite-coin-icon {
    font-size: 36px; display: block; margin-bottom: 10px;
  }
  .invite-headline {
    font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 300;
    color: var(--ink); line-height: 1.4; margin-bottom: 6px;
  }
  .invite-headline strong { font-weight: 400; color: var(--gold); }
  .invite-sub {
    font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.04em;
    color: var(--ink-mid); line-height: 1.6;
  }
  .invite-founding-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(191,160,90,0.15); border: 1px solid rgba(191,160,90,0.3);
    border-radius: 20px; padding: 5px 14px; margin-bottom: 14px;
    font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--gold);
  }
  .invite-founding-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  }
  .invite-link-wrap {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 10px; padding: 4px 4px 4px 14px;
    display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  }
  .invite-link-text {
    font-family: 'DM Mono', monospace; font-size: 10px; color: var(--ink-mid);
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .invite-copy-btn {
    font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink); background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px;
    cursor: pointer; flex-shrink: 0; transition: all 0.2s;
  }
  .invite-copy-btn:hover { border-color: var(--gold); color: var(--gold); }
  .invite-copy-btn.copied { border-color: #5DA87A; color: #5DA87A; }
  .invite-share-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px;
  }
  .invite-share-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px; border-radius: 10px; border: 1px solid var(--border);
    background: none; color: var(--ink-mid); cursor: pointer;
    font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.08em;
    text-transform: uppercase; transition: all 0.2s;
  }
  .invite-share-btn:hover { border-color: var(--ink-mid); color: var(--ink); }
  .invite-disclaimer {
    font-family: 'DM Mono', monospace; font-size: 10px; color: var(--ink-mid);
    line-height: 1.6; text-align: center; margin-top: 14px; letter-spacing: 0.03em;
  }

  .stack-preview-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px; margin-bottom: 20px;
    display: none;
  }
  .stack-preview-card.visible { display: block; }
  .stack-preview-total {
    font-family: 'Outfit', sans-serif;
    font-size: 34px; font-weight: 300; color: var(--ink); line-height: 1;
  }
  .stack-preview-value {
    font-family: 'DM Mono', monospace;
    font-size: 11px; color: var(--ink-mid); margin-top: 4px;
  }
  .stack-preview-pnl-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
  }
  .stack-preview-pnl-label {
    font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink-mid);
  }
  .stack-preview-pnl-value {
    font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500;
  }
  .pnl-up { color: #5DA87A; }
  .pnl-down { color: #C46B5A; }
  .pnl-flat { color: var(--ink-mid); }

  /* Holdings oz total pill */
  .holdings-total-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(191,160,90,0.1); border: 1px solid rgba(191,160,90,0.25);
    border-radius: 20px; padding: 5px 12px;
    font-family: 'DM Mono', monospace; font-size: 10px;
    color: var(--gold); margin-bottom: 20px;
  }

  /* Drip reservation summary */
  .commitment-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(46,71,51,0.08); border: 1px solid rgba(46,71,51,0.2);
    border-radius: 6px; padding: 4px 10px;
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: var(--accent); letter-spacing: 0.06em;
  }

  /* ── LEGAL MODALS ── */
  .legal-section { margin-bottom: 20px; }
  .legal-heading {
    font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
    margin-bottom: 8px;
  }
  .legal-body {
    font-size: 13px; font-weight: 300; color: var(--ink-mid);
    line-height: 1.75; margin-bottom: 8px;
  }
  .legal-list {
    font-size: 13px; font-weight: 300; color: var(--ink-mid);
    line-height: 1.75; padding-left: 18px; margin-bottom: 8px;
  }
  .legal-list li { margin-bottom: 4px; }
  .legal-list strong { color: var(--ink); font-weight: 500; }


  /* ── REDESIGNED DS HOLDINGS CARD ── */

  .ds-holdings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    margin-bottom: 0;
    grid-column: 1 / -1;
  }

  .ds-holdings-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 28px 16px;
    border-bottom: 1px solid var(--border);
  }

  /* Active reservation banner */
  .ds-active-reservation {
    background: rgba(46,71,51,0.07); border-bottom: 1px solid rgba(46,71,51,0.15);
    padding: 12px 28px; display: none;
  }
  .ds-active-reservation.visible { display: block; }
  .ds-active-res-row {
    display: flex; align-items: center; gap: 12px;
  }
  .ds-active-res-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #78d278; animation: pulse 2s infinite; flex-shrink: 0;
  }
  .ds-active-res-coin {
    font-family: 'Outfit', sans-serif; font-size: 14px; color: var(--ink); flex: 1;
  }
  .ds-active-res-qty {
    font-family: 'DM Mono', monospace; font-size: 11px; color: var(--ink-mid);
  }
  .ds-active-res-price {
    font-family: 'DM Mono', monospace; font-size: 12px;
    font-weight: 500; color: var(--ink); margin-left: 8px;
  }
  .ds-active-res-timer {
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: var(--ink-mid); letter-spacing: 0.06em; margin-left: 4px;
  }
  .ds-active-res-cancel {
    font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.08em;
    text-transform: uppercase; color: #c0392b; background: none;
    border: 1px solid rgba(192,57,43,0.3); border-radius: 6px;
    padding: 5px 10px; cursor: pointer; flex-shrink: 0;
    transition: background 0.15s;
  }
  .ds-active-res-cancel:hover { background: rgba(192,57,43,0.06); }
  .ds-active-res-thanks {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: var(--accent);
    padding: 8px 0 0 20px;
    line-height: 1.5;
    opacity: 0.75;
  }

  /* Week view */
  .ds-week-section {
    padding: 18px 28px 0;
  }
  .ds-week-label {
    font-family: 'DM Mono', monospace; font-size: 8px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
    margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
  }
  .ds-week-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
  .ds-week-grid {
    display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px;
  }
  .ds-week-row {
    display: grid; grid-template-columns: 44px 1fr auto auto auto;
    align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    transition: background 0.15s;
  }
  .ds-week-row:hover { background: rgba(0,0,0,0.02); }
  .ds-week-row.is-today { background: rgba(46,71,51,0.05); border: 1px solid rgba(46,71,51,0.12); }
  .ds-week-row.is-gold { background: rgba(191,160,90,0.04); }
  .ds-week-row.is-skipped { opacity: 0.45; }
  .ds-week-row.is-future { opacity: 0.55; }
  .ds-week-day {
    font-family: 'DM Mono', monospace; font-size: 9px;
    letter-spacing: 0.06em; color: var(--ink-mid); text-transform: uppercase;
  }
  .ds-week-row.is-today .ds-week-day { color: var(--accent); font-weight: 700; }
  .ds-week-coin {
    font-family: 'Outfit', sans-serif; font-size: 13px; color: var(--ink);
    display: flex; align-items: center;
  }
  .ds-week-coin.is-mystery { color: var(--ink-mid); font-style: italic; }
  .ds-week-qty {
    font-family: 'DM Mono', monospace; font-size: 10px; color: var(--ink-mid);
    text-align: right; min-width: 32px;
  }
  .ds-week-price {
    font-family: 'DM Mono', monospace; font-size: 10px; color: var(--ink-mid);
    text-align: right; min-width: 60px;
  }
  .ds-week-status {
    font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.06em;
    text-align: right; min-width: 72px;
  }
  .ds-week-status.purchased { color: var(--accent); }
  .ds-week-status.reserved { color: #2980b9; }
  .ds-week-status.open { color: var(--ink-soft); }
  .ds-week-status.skipped { color: var(--ink-soft); }
  .ds-week-status.mystery { color: var(--ink-soft); font-style: italic; }
  .ds-week-status.processing { color: var(--gold); }

  /* Performance bar */
  .ds-perf-section {
    padding: 0 28px 16px;
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0; border-top: 1px solid var(--border); padding-top: 14px;
  }
  .ds-perf-stat {
    padding: 0 16px; border-right: 1px solid var(--border);
  }
  .ds-perf-stat:first-child { padding-left: 0; }
  .ds-perf-stat:last-child { border-right: none; }
  .ds-perf-label {
    font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px;
  }
  .ds-perf-val {
    font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 300; color: var(--ink);
    line-height: 1;
  }
  .ds-perf-val.green { color: #2E7D32; }
  .ds-perf-val.gold { color: var(--gold); }
  .ds-perf-sub {
    font-family: 'DM Mono', monospace; font-size: 8px; color: var(--ink-soft);
    margin-top: 3px;
  }
  .ds-perf-sub.green { color: #2E7D32; }

  /* Shipping strip */
  .ds-shipping-strip {
    border-top: 1px solid var(--border);
    padding: 12px 28px;
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; transition: background 0.15s;
  }
  .ds-shipping-strip:hover { background: rgba(0,0,0,0.02); }
  .ds-shipping-icon { font-size: 16px; flex-shrink: 0; }
  .ds-shipping-text {
    font-family: 'DM Mono', monospace; font-size: 10px;
    color: var(--ink); letter-spacing: 0.04em; flex: 1;
  }
  .ds-shipping-sub {
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: var(--ink-mid); margin-top: 2px;
  }
  .ds-shipping-arr {
    font-family: 'DM Mono', monospace; font-size: 10px;
    color: var(--ink-mid); flex-shrink: 0;
  }
  .ds-batch-strip {
    border-top: 1px solid var(--border);
    padding: 11px 28px;
    display: flex; align-items: center; gap: 10px;
    background: rgba(191,160,90,0.04);
  }
  .ds-batch-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold); animation: pulse 2s infinite; flex-shrink: 0;
  }
  .ds-batch-text {
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: var(--gold); letter-spacing: 0.06em; flex: 1;
  }

  /* Streak badge */
  .ds-streak-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.06em;
    color: var(--ink-mid); background: var(--bg); border: 1px solid var(--border);
    border-radius: 20px; padding: 3px 10px; margin-left: 8px;
  }

  /* Header actions */
  .ds-header-actions {
    display: flex; align-items: center; gap: 8px;
  }
  .ds-header-btn {
    font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--ink-mid); background: none;
    border: 1px solid var(--border); border-radius: 8px;
    padding: 6px 12px; cursor: pointer; transition: border-color 0.15s, color 0.15s;
  }
  .ds-header-btn:hover { border-color: var(--ink-mid); color: var(--ink); }

  /* ETA line below the nudge bar in the volume meter */
  .hm-eta-line {
    display: flex; align-items: center; gap: 6px;
    margin-top: 6px;
    padding: 5px 10px;
    background: rgba(191,160,90,0.07);
    border: 1px solid rgba(191,160,90,0.18);
    border-radius: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 9px; letter-spacing: 0.06em;
    color: rgba(191,160,90,0.85);
    transition: all 0.5s ease;
  }
  .hm-eta-line.best {
    background: rgba(106,173,126,0.08);
    border-color: rgba(106,173,126,0.2);
    color: #6aad7e;
  }


  /* Populated state */

  /* DS donut */

  /* DS history list */
  .ds-history-list {
    display: flex; flex-direction: column; gap: 0;
  }

  .ds-history-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .ds-history-item:last-child { border-bottom: none; }

  .ds-history-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--silver-light), rgba(154,167,178,0.2));
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
  }

  .ds-history-icon.gold {
    background: linear-gradient(135deg, rgba(232,210,138,0.4), rgba(191,160,90,0.15));
  }

  .ds-history-name {
    font-family: 'Outfit', sans-serif;
    font-size: 13px; font-weight: 400; color: var(--ink); flex: 1;
  }

  .ds-history-date {
    font-family: 'DM Mono', monospace;
    font-size: 9px; color: var(--ink-mid); letter-spacing: 0.04em;
  }

  .ds-history-meta {
    text-align: right;
  }

  .ds-history-qty {
    font-family: 'DM Mono', monospace;
    font-size: 10px; color: var(--ink-mid); letter-spacing: 0.04em;
  }

  .ds-history-value {
    font-family: 'Outfit', sans-serif;
    font-size: 13px; font-weight: 300; color: var(--ink);
  }

  /* DS stats */
  .spot-price-bar {
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 7px 40px;
  }
  .spot-inner {
    display: flex; align-items: center;
    justify-content: center; gap: 28px;
  }
  .spot-item { display:flex; align-items:center; gap:7px; }
  .spot-dot {
    width:5px; height:5px; border-radius:50%;
    background:#3a7d52;
    animation: sDotPulse 2s ease-in-out infinite;
    flex-shrink:0;
  }
  @keyframes sDotPulse { 0%,100%{opacity:1} 50%{opacity:0.25} }
  .spot-metal {
    font-family:'DM Mono',monospace; font-size:11px;
    letter-spacing:0.12em; text-transform:uppercase;
    color:rgba(255,255,255,0.8); font-weight:600;
  }
  .spot-val {
    font-family:'Outfit',sans-serif; font-size:16px;
    font-weight:500; color:#fff; line-height:1;
  }
  .spot-chg {
    font-family:'DM Mono',monospace; font-size:12px;
    letter-spacing:0.04em; font-weight:600;
  }
  .spot-chg.up   { color:#5abf7a; }
  .spot-chg.down { color:#e07070; }
  .spot-sep { width:1px; height:16px; background:rgba(255,255,255,0.1); }
  .spot-updated {
    font-family:'DM Mono',monospace; font-size:8px;
    color:rgba(255,255,255,0.18); margin-left:8px;
    letter-spacing:0.04em;
    transition: color 0.3s, background 0.3s;
    padding: 1px 0; border-radius: 3px;
  }
  .spot-updated.stale {
    color: #e0a040;
    animation: stalePulse 2s ease-in-out infinite;
  }
  /* Locked state — market closed, price is final for the day */
  .spot-price-bar.locked {
    background: linear-gradient(90deg, var(--ink) 0%, #1a2420 100%);
    border-bottom: 1px solid rgba(46,71,51,0.3);
  }
  .spot-price-bar.locked .spot-dot {
    background: var(--gold);
    animation: none;
    opacity: 0.9;
  }
  .spot-updated.locked {
    color: rgba(191,160,90,0.85);
    background: rgba(191,160,90,0.1);
    padding: 1px 6px;
    animation: none;
  }
  @keyframes stalePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
  }


  /* How it works steps */
  .drip-how {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px; padding: 18px 18px 16px;
  }
  .drip-how-title {
    font-family: 'DM Mono', monospace;
    font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.3); margin-bottom: 16px; font-weight:700;
  }
  .drip-how-steps { display: flex; flex-direction: column; gap: 0; }
  .drip-how-step {
    display: flex; align-items: flex-start; gap: 12px;
    position: relative;
  }
  .drip-how-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 12px; top: 28px;
    width: 1px; height: calc(100% - 8px);
    background: rgba(255,255,255,0.09);
  }
  .drip-how-step-left {
    display: flex; flex-direction: column; align-items: center;
    flex-shrink: 0; padding-bottom: 14px;
  }
  .drip-how-step:last-child .drip-how-step-left { padding-bottom: 0; }
  .drip-how-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    font-family: 'DM Mono', monospace; font-size: 10px;
    color: rgba(255,255,255,0.5); display: flex;
    align-items: center; justify-content: center;
    flex-shrink: 0; font-weight: 700;
  }
  .drip-how-body { padding-bottom: 14px; padding-top: 3px; }
  .drip-how-step:last-child .drip-how-body { padding-bottom: 0; }
  .drip-how-text {
    font-family: 'Outfit', sans-serif;
    font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.5;
  }
  .drip-how-text strong {
    display: block; color: rgba(255,255,255,0.82);
    font-weight: 600; margin-bottom: 2px; font-size: 13px;
  }

  /* drip-how inside a light secondary-card */
  .secondary-card .drip-how-step:not(:last-child)::after,
  #modal-how-it-works .drip-how-step:not(:last-child)::after {
    background: var(--border);
  }
  .secondary-card .drip-how-num {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--ink-mid);
  }
  .secondary-card .drip-how-text {
    color: var(--ink-mid);
  }
  .secondary-card .drip-how-text strong {
    color: var(--ink);
  }

  /* Countdown */
  .drip-right {
    display: flex; flex-direction: column;
    gap: 16px; min-width: 0;
  }


  /* Contribution block */


  /* ── COIN FLIP ── */
  .coin-flip-scene {
    width: 64px; height: 64px;
    perspective: 400px;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .coin-flip-wrap {
    width: 64px; height: 64px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.07), 0 8px 24px rgba(0,0,0,0.4);
  }
  /* Desktop: flip on hover */
  @media (hover: hover) {
    .coin-flip-scene:hover .coin-flip-wrap {
      transform: rotateY(180deg);
    }
  }
  /* All devices: flip on tap via JS toggle */
  .coin-flip-wrap.flipped {
    transform: rotateY(180deg);
  }

  .coin-face {
    position: absolute; inset: 0;
    border-radius: 50%;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .coin-face img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    filter: brightness(1.08) contrast(1.05);
  }
  .coin-face.front {
    background: linear-gradient(135deg, rgba(200,216,224,0.15), rgba(154,167,178,0.15));
  }
  .coin-face.front.gold-coin {
    background: linear-gradient(135deg, rgba(232,213,160,0.15), rgba(191,160,90,0.15));
  }
  .coin-face.front .coin-emoji {
    font-size: 30px;
  }
  .tl-today-coin .coin-face.front .coin-emoji {
    font-size: 52px;
  }
  .coin-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(154,167,178,0.2), rgba(200,216,224,0.1));
  }
  .coin-back.gold-coin {
    background: linear-gradient(135deg, rgba(191,160,90,0.2), rgba(232,213,160,0.1));
  }
  .coin-back-info {
    font-family: 'DM Mono', monospace;
    font-size: 7px; line-height: 1.5;
    color: rgba(255,255,255,0.5);
    text-align: center;
    letter-spacing: 0.04em;
  }
  .coin-back-info strong {
    display: block; font-size: 8px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    margin-bottom: 2px;
  }
  .coin-hint {
    font-family: 'DM Mono', monospace;
    font-size: 7px; color: rgba(255,255,255,0.2);
    text-align: center; margin-top: 4px;
    letter-spacing: 0.06em;
  }

  @keyframes coinFlip {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
  }


  /* ── BOTTOM PAIR ── */
  .bottom-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    grid-column: 1 / -1;
  }
  .bottom-tile {
    display: flex; flex-direction: column;
    gap: 0;
    border-radius: 16px;
    padding: 28px 28px 24px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative; overflow: hidden;
  }
  .bottom-tile:hover { transform: translateY(-2px); }

  /* Gift tile — dark with silver accent */
  .gift-tile {
    background: linear-gradient(135deg, rgba(200,214,222,0.09) 0%, rgba(31,33,35,0.95) 100%);
    border: 1px solid rgba(200,214,222,0.2);
  }
  .gift-tile:hover {
    border-color: rgba(200,214,222,0.36);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(200,214,222,0.15);
  }
  .gift-tile .bottom-tile-title { color: rgba(255,255,255,0.95); }
  .gift-tile .bottom-tile-desc { color: rgba(255,255,255,0.5); }

  /* Gives back tile — dark with green accent */
  .gives-back-tile {
    background: linear-gradient(135deg, rgba(46,71,51,0.35) 0%, rgba(31,33,35,0.95) 100%);
    border: 1px solid rgba(46,71,51,0.5);
  }
  .gives-back-tile:hover {
    border-color: rgba(46,71,51,0.6);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 1px rgba(46,71,51,0.2);
  }

  .bottom-tile-icon {
    font-size: 28px; line-height: 1;
    margin-bottom: 16px;
  }
  .bottom-tile-title {
    font-family: 'Outfit', sans-serif; font-size: 18px;
    font-weight: 400; color: rgba(255,255,255,0.9);
    line-height: 1.2; margin-bottom: 6px;
  }
  .bottom-tile-desc {
    font-family: 'Outfit', sans-serif; font-size: 12px;
    color: rgba(255,255,255,0.4); line-height: 1.6;
    margin-bottom: 20px;
  }
  .bottom-tile-cta {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'DM Mono', monospace; font-size: 9px;
    letter-spacing: 0.12em; text-transform: uppercase;
    font-weight: 700; margin-top: auto;
    transition: gap 0.18s;
  }
  .gift-tile .bottom-tile-cta { color: rgba(200,214,222,0.8); }
  .gives-back-tile .bottom-tile-cta { color: var(--accent); opacity: 0.8; }
  .bottom-tile:hover .bottom-tile-cta { gap: 10px; }

  .bottom-tile-badge {
    position: absolute; top: 20px; right: 20px;
    font-family: 'DM Mono', monospace; font-size: 8px;
    letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 700; padding: 3px 8px;
    border-radius: 4px;
  }
  .gift-tile .bottom-tile-badge {
    color: var(--gold); background: rgba(191,160,90,0.1);
    border: 1px solid rgba(191,160,90,0.2);
  }
  .gives-back-tile .bottom-tile-badge {
    color: rgba(120,210,120,0.95); background: rgba(120,210,120,0.1);
    border: 1px solid rgba(120,210,120,0.25);
  }

  @media (max-width: 700px) {
    .bottom-pair { grid-template-columns: 1fr; }
  }


  /* ── BOTTOM ── */
  /* ── ORIGIN STRIP ── */
  .footer-wrap {
    border-top: 1px solid var(--border);
  }
    .origin-strip {
    max-width: 1100px; margin: 0 auto;
    padding: 18px 40px;
    display: flex; align-items: center; justify-content: center; gap: 28px;
    border-bottom: 1px solid var(--border);
  }
  .origin-flag {
    font-size: 22px; line-height: 1; flex-shrink: 0;
  }
  .origin-divider {
    width: 1px; height: 28px; background: var(--border); flex-shrink: 0;
  }
  .origin-location {
    text-align: center;
  }
  .origin-place {
    font-family: 'DM Mono', monospace;
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-mid); font-weight: 500;
    display: block; margin-bottom: 3px;
  }
  .origin-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 12px; font-style: italic;
    color: var(--ink-mid); letter-spacing: 0.01em;
    display: block;
  }
  .origin-year {
    font-family: 'DM Mono', monospace;
    font-size: 11px; letter-spacing: 0.14em;
    color: var(--ink-mid);
    flex-shrink: 0;
  }
  @media (max-width: 780px) {
    .origin-strip { padding: 16px 20px; gap: 14px; }
    .origin-tagline { display: none; }
    .origin-year { display: none; }
  }

  .bottom-bar {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 48px; max-width: 1100px; margin: 0 auto; gap: 12px;
  }
  .bottom-links { display: flex; gap: 24px; }
  .bottom-link {
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-mid); cursor: pointer; text-decoration: none; transition: color 0.2s;
  }
  .bottom-link:hover { color: var(--ink); }
  .footer-gives {
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: 0.06em; color: var(--ink-mid);
  }
  .footer-gives strong { color: var(--accent); font-weight: 600; }

  .privacy-row {
    display: flex; align-items: center; gap: 10px;
    font-family: 'DM Mono', monospace; font-size: 10px;
    letter-spacing: 0.08em; color: var(--ink-mid);
  }
  .toggle {
    width: 30px; height: 17px; background: var(--silver-light);
    border-radius: 9px; position: relative; cursor: pointer; transition: background 0.2s;
  }
  .toggle.on { background: var(--accent); }
  .toggle::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 13px; height: 13px; border-radius: 50%;
    background: #fff; transition: transform 0.2s;
  }
  .toggle.on::after { transform: translateX(13px); }

  @media (max-width: 780px) {
    /* Header */
    header { padding: 14px 20px; }
    .tier-badge { display: none; }

    /* Spot bar */
    .spot-price-bar { padding: 5px 16px; }
    .spot-inner { gap: 12px; }
    .spot-updated { display: none; }
    .spot-updated.stale { display: inline; font-size: 7px; }

    /* Tagline */
    .tagline-bar { padding: 10px 20px; font-size: 10px; }

    /* Main grid */
    .main { padding: 16px 16px 60px; gap: 10px; }

    /* Holdings card — stack columns vertically */
    .stack-card { grid-template-columns: 1fr; }
    .stack-card .card-header {
      padding: 16px 16px 14px;
      flex-direction: column; align-items: flex-start; gap: 12px;
    }
    .stack-card .card-header-actions {
      flex-wrap: wrap; gap: 6px; width: 100%;
    }
    .stack-card .card-header-actions .stack-action-btn {
      font-size: 9px; padding: 6px 10px; height: 28px;
    }
    .stack-col { padding: 16px; }
    .stack-col:first-child { padding-left: 16px; }
    .stack-col:last-child  { padding-right: 16px; padding-bottom: 16px; }
    .stack-col-divider { display: none; }
    .stack-col:not(:last-child) { border-bottom: 1px solid var(--border); }
    .stack-oz { font-size: 36px; }
    .stack-oz.gold-oz { font-size: 28px; }
    .alloc-chart-wrap { gap: 16px; }
    .alloc-donut { width: 120px; height: 120px; }
    .holdings-projection { font-size: 11px; }

    /* DRIP card (legacy) */
    .drip-card { padding: 28px 22px; }
    .drip-layout { grid-template-columns: 1fr; gap: 28px; }
    .drip-right { min-width: unset; }
    .drip-center { align-items: stretch; }
    .drip-name { font-size: 28px; }
    .drip-price-current { font-size: 38px; }
    .coin-col { align-items: center; }

    /* V2 DRIP CARD — mobile */
    .drip-card-v2 { padding: 18px 18px 14px; }
    .drip-v2-layout { grid-template-columns: 1fr; gap: 0; }
    .drip-v2-coin-col {
      flex-direction: row; align-items: flex-start;
      justify-content: flex-start; gap: 16px;
      padding-bottom: 18px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      margin-bottom: 18px;
    }
    .drip-v2-coin-col .coin-flip-scene { width: 90px; height: 90px; flex-shrink: 0; }
    .drip-v2-coin-col .coin-flip-wrap  { width: 90px; height: 90px; }
    .drip-v2-coin-label { display: none; }
    /* Show aside (name + meter + button) to the right of the coin */
    .drip-v2-coin-aside { display: flex; }
    /* Hide desktop duplicates */
    .drip-v2-name-desktop,
    .drip-v2-meta-desktop,
    .drip-v2-meter-desktop,
    .drip-v2-actions-desktop { display: none; }
    .drip-v2-info-col { gap: 14px; }
    .drip-v2-fact-body { font-size: 13px; }
    .drip-v2-fact-title { font-size: 9.5px; }

    /* Community */
    .community-card, .upcoming-card { grid-column: 1; }
    .gives-card { grid-column: 1; grid-template-columns: 1fr; gap: 20px; padding: 24px; }
    .how-steps { grid-template-columns: 1fr; }
    .step-arrow { display: none; }

    /* DripStack Purchases card — mobile */
    .ds-holdings-header { padding: 14px 16px 12px; flex-wrap: wrap; gap: 8px; }
    .ds-header-actions { gap: 4px; }
    .ds-header-btn { font-size: 8px; padding: 4px 8px; }
    .ds-streak-badge { font-size: 8px; padding: 3px 8px; }
    .ds-active-reservation { padding: 10px 16px; }
    .ds-active-res-row { flex-wrap: wrap; gap: 6px; }
    .ds-active-res-coin { font-size: 13px; }
    .ds-active-res-timer { font-size: 8px; width: 100%; margin-left: 20px; margin-top: -2px; }
    .ds-active-res-thanks { font-size: 11px; padding: 6px 0 0 20px; }
    .ds-week-section { padding: 14px 16px 0; }
    .ds-week-row { grid-template-columns: 32px 1fr auto auto; gap: 6px; padding: 6px 8px; }
    .ds-week-coin { font-size: 12px; }
    .ds-week-price { font-size: 9px; min-width: 50px; }
    .ds-week-status { font-size: 8px; }

    /* Bottom bar */
    .bottom-bar { flex-direction: column; align-items: center; gap: 14px; padding: 0 20px 28px; }
    .bottom-links { flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
    .bottom-link { font-size: 10px; }
    .cs-section { padding: 0 16px 24px; }

    /* Today card coin — slightly smaller on mobile */
    .tl-today-coin .coin-flip-scene { width: 100px; height: 100px; }
    .tl-today-coin .coin-flip-wrap { width: 100px; height: 100px; }
    .tl-today-coin { gap: 14px; padding: 14px; }
    .tl-today-nm { font-size: 18px; }
    .tl-today-pv { font-size: 20px; }

    /* Disable expensive GPU effects on mobile */
    .donut-track { filter: none; }
    .donut-silver { filter: none; }
    .donut-gold { filter: none; }
    .modal-overlay { backdrop-filter: none; -webkit-backdrop-filter: none; }
  }

  @media (max-width: 420px) {
    .spot-val { font-size: 14px; }
    .spot-chg { font-size: 11px; }
    .spot-inner { gap: 10px; }
    .drip-name { font-size: 24px; }
    .drip-price-current { font-size: 32px; }
  }

  /* Reduce non-essential animations on mobile to save GPU/battery */
  @media (max-width: 780px) {
    .dc-bar-shimmer,
    .tl-today-shimmer { animation: none; }
    .dc-ticker-inner { animation: none; }
    .tl-dc { transition: transform 0.3s ease, opacity 0.3s ease; }
    .card { animation: none; opacity: 1; }
  }

  /* Respect user's reduced-motion preference */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* ── ALLOCATION DONUT ── */
  .alloc-chart-wrap {
    display: flex; flex-direction: column;
    align-items: center; gap: 14px;
    margin: 12px 0 16px;
  }
  .alloc-donut { overflow: visible; }
  .donut-track {
    fill: none; stroke: #E2DED7; stroke-width: 14;
    filter: url(#innerShadow);
  }
  /* Border ring around the donut */
  .donut-border-outer {
    fill: none; stroke: rgba(0,0,0,0.08); stroke-width: 16;
  }
  .donut-border-inner {
    fill: none; stroke: rgba(255,255,255,0.6); stroke-width: 12;
  }
  .donut-silver {
    fill: none; stroke: url(#silverGrad); stroke-width: 14;
    stroke-linecap: round;
    filter: url(#arcGlow);
    transition: stroke-dasharray 1s cubic-bezier(0.4,0,0.2,1);
  }
  .donut-gold {
    fill: none; stroke: url(#goldGrad); stroke-width: 14;
    stroke-linecap: round;
    filter: url(#arcGlowGold);
    transition: stroke-dasharray 1s cubic-bezier(0.4,0,0.2,1);
  }
  .donut-center-label {
    font-family: 'DM Mono', monospace; font-size: 9px;
    letter-spacing: 0.1em; text-transform: uppercase;
    fill: var(--ink-soft); font-weight: 600;
  }
  .donut-center-val {
    font-family: 'Outfit', sans-serif; font-size: 16px;
    font-weight: 400; fill: var(--ink);
  }
  .alloc-legend {
    width: 100%; display: flex; flex-direction: column; gap: 10px;
  }
  .alloc-legend-item {
    display: flex; align-items: center; gap: 8px;
  }
  .alloc-dot {
    width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  }
  .silver-dot { background: #B8C8D0; }
  .gold-dot   { background: #D4A843; }
  .alloc-legend-metal {
    font-family: 'DM Mono', monospace; font-size: 11px;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink);
  }
  .alloc-legend-detail {
    font-family: 'DM Mono', monospace; font-size: 10px;
    color: var(--ink-mid); letter-spacing: 0.04em;
  }
  .alloc-legend-pct {
    margin-left: auto;
    font-family: 'Outfit', sans-serif; font-size: 22px;
    font-weight: 300; color: var(--ink); letter-spacing: -0.01em;
    transition: filter 0.3s ease, opacity 0.3s ease;
  }


  /* ── COIN FINAL TIER ── */
  .coin-flip-wrap.tier-final {
    box-shadow: 0 0 0 3px rgba(212,168,67,0.6), 0 0 40px rgba(212,168,67,0.35), 0 16px 48px rgba(0,0,0,0.8);
  }
  @keyframes coinFlipFast {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
  }
  .tier-unlocked-flash {
    position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,67,0.5) 0%, transparent 70%);
    animation: tierFlash 0.6s ease-out forwards;
    pointer-events: none; z-index: 10;
  }
  @keyframes tierFlash {
    0%   { opacity: 1; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(1.4); }
  }
  .drip-tier-row.unlocked .drip-tier-dot {
    background: var(--gold) !important;
    box-shadow: 0 0 8px rgba(212,168,67,0.6);
  }
  .drip-tier-row.unlocked .drip-tier-label,
  .drip-tier-row.unlocked .drip-tier-price { color: var(--gold) !important; opacity: 1; }


  /* ── V5 DRIP CARD (dc-*) ── */
  .dc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
  .dc-top-left { display: flex; align-items: center; gap: 10px; }
  .dc-subhead { font-family: 'DM Mono', monospace; font-size: 8px; color: rgba(255,255,255,0.3); letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
  .dc-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #78d278; animation: pulse 2s infinite; display: inline-block; flex-shrink: 0; }
  .dc-ticker { overflow: hidden; max-width: 160px; white-space: nowrap; display: inline-block; vertical-align: middle; }
  .dc-ticker-inner { display: inline-block; animation: dcticker 22s linear infinite; }
  @keyframes dcticker { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }
  .dc-price-block { text-align: right; flex-shrink: 0; }
  .dc-price { font-family: 'DM Mono', monospace; font-size: 20px; font-weight: 500; color: rgba(255,255,255,0.92); letter-spacing: -0.02em; }
  .dc-price span { font-size: 10px; color: rgba(255,255,255,0.35); }
  .dc-coin-name-top { font-size: 18px; font-weight: 300; color: rgba(255,255,255,0.82); margin-top: 4px; letter-spacing: -0.02em; line-height: 1.1; }
  .dc-price-est { font-family: 'DM Mono', monospace; font-size: 8px; color: rgba(255,255,255,0.25); margin-top: 3px; }
  .dc-body { display: grid; grid-template-columns: 150px 1fr; gap: 20px; margin-bottom: 16px; align-items: start; }
  .dc-left { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .dc-coin-label { font-family: 'DM Mono', monospace; font-size: 7px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.18); text-align: center; }
  .dc-actions { display: flex; flex-direction: column; gap: 7px; width: 100%; }
  .dc-qty-wrap { display: flex; align-items: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; }
  .dc-qty-btn { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 16px; flex: 1; height: 32px; cursor: pointer; }
  .dc-qty { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.85); min-width: 24px; text-align: center; }
  .dc-btn { background: #2E4733; border: 1px solid rgba(120,210,120,0.3); color: rgba(120,210,120,0.9); font-family: 'DM Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 10px 0; border-radius: 8px; cursor: pointer; text-align: center; }

  /* ── DRIP GATE ── */
  .dc-gate { width: 100%; }
  .dc-gate-inner {
    padding: 16px;
    background: rgba(191,160,90,0.06);
    border: 1px solid rgba(191,160,90,0.15);
    border-radius: 10px;
    text-align: center;
  }
  .dc-gate-counter {
    display: flex; align-items: baseline; justify-content: center;
    gap: 6px; margin-bottom: 10px;
  }
  .dc-gate-num {
    font-family: 'Outfit', sans-serif;
    font-size: 30px; font-weight: 300; color: #fff;
    letter-spacing: -0.02em; line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .dc-gate-of {
    font-family: 'DM Mono', monospace;
    font-size: 11px; color: rgba(255,255,255,0.4);
    letter-spacing: 0.04em;
  }
  .dc-gate-bar {
    height: 3px; background: rgba(255,255,255,0.06);
    border-radius: 3px; overflow: hidden;
    margin: 0 auto 10px; max-width: 180px;
  }
  .dc-gate-bar-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #2E4733, #BFA05A);
    transition: width 1s ease;
  }
  .dc-gate-msg {
    font-family: 'DM Mono', monospace;
    font-size: 9px; font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2px;
  }
  .dc-gate-sub {
    font-family: 'DM Mono', monospace;
    font-size: 9px; letter-spacing: 0.04em;
    color: rgba(74,222,128,0.65);
    margin-bottom: 10px;
  }
  .dc-gate-cta {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(191,160,90,0.1);
    border: 1px solid rgba(191,160,90,0.25);
    border-radius: 7px;
    font-family: 'DM Mono', monospace;
    font-size: 9px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.15s;
  }
  .dc-gate-cta:hover { background: rgba(191,160,90,0.18); border-color: rgba(191,160,90,0.35); }

  /* Compact gate for modals */
  .dc-gate-compact .dc-gate-inner { padding: 12px; }
  .dc-gate-compact .dc-gate-msg { font-size: 9px; margin-bottom: 0; }
  .dc-gate-compact .dc-gate-sub { font-size: 8px; margin-bottom: 0; }

  /* Gate type variants */
  .dc-gate.gate-maintenance .dc-gate-inner { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
  .dc-gate.gate-maintenance .dc-gate-msg { color: rgba(255,255,255,0.6); }
  .dc-gate.gate-maintenance .dc-gate-sub { color: rgba(255,255,255,0.35); }
  .dc-gate.gate-market .dc-gate-inner { background: rgba(255,160,60,0.06); border-color: rgba(255,160,60,0.2); }
  .dc-gate.gate-market .dc-gate-msg { color: rgba(255,160,60,0.8); }
  .dc-gate.gate-dealer .dc-gate-inner { background: rgba(255,100,100,0.04); border-color: rgba(255,100,100,0.15); }
  .dc-gate.gate-dealer .dc-gate-msg { color: rgba(255,100,100,0.7); }

  /* Admin gate banner at top of app */
  .gate-admin-banner {
    display: none;
    padding: 8px 16px;
    background: rgba(191,160,90,0.1);
    border-bottom: 1px solid rgba(191,160,90,0.2);
    text-align: center;
    font-family: 'DM Mono', monospace;
    font-size: 9px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gold);
  }
  .gate-admin-banner .gate-banner-reason { font-weight: 400; color: var(--ink-mid); text-transform: none; letter-spacing: 0.04em; }

  /* ── STANDALONE GATE CARD (pre-launch) ── */
  .gate-card {
    text-align: center;
    padding: 32px 28px 28px;
    border: 1px solid rgba(191,160,90,0.2);
    background: linear-gradient(180deg, rgba(191,160,90,0.04), var(--bg-card));
  }
  .gate-card-badge {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold);
    background: rgba(191,160,90,0.1);
    border: 1px solid rgba(191,160,90,0.2);
    border-radius: 100px;
    padding: 4px 14px;
    margin-bottom: 16px;
  }
  .gate-card-heading {
    font-size: 15px; font-weight: 300;
    color: var(--ink); margin-bottom: 20px;
  }
  .gate-card-heading strong { font-weight: 500; }
  .gate-card-counter {
    display: flex; align-items: baseline;
    justify-content: center; gap: 8px;
    margin-bottom: 12px;
  }
  .gate-card-num {
    font-size: 52px; font-weight: 200;
    color: var(--ink); letter-spacing: -0.03em;
    line-height: 1; font-variant-numeric: tabular-nums;
  }
  .gate-card-of {
    font-family: 'DM Mono', monospace;
    font-size: 14px; color: var(--ink-soft);
    letter-spacing: 0.04em;
  }
  .gate-card-bar-bg {
    height: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto 14px;
    max-width: 280px;
  }
  .gate-card-bar-fill {
    height: 100%; border-radius: 6px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  }
  .gate-card-remaining {
    font-family: 'DM Mono', monospace;
    font-size: 11px; color: var(--ink-mid);
    letter-spacing: 0.04em;
    margin-bottom: 20px;
  }
  .gate-card-cta {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #fff; background: var(--accent);
    border: none; padding: 12px 28px;
    border-radius: 8px; cursor: pointer;
    transition: all 0.18s;
    margin-bottom: 16px;
  }
  .gate-card-cta:hover { background: #3a5a40; transform: translateY(-1px); }
  .gate-card-sub {
    font-size: 12px; font-weight: 300;
    color: var(--ink-soft); line-height: 1.6;
    max-width: 340px; margin: 0 auto;
  }

  /* ── WELCOME MAT SCORECARD ── */
  .welcome-mat {
    text-align: center;
    padding: 28px 24px 16px;
    border: 1px solid rgba(191,160,90,0.15);
    background: linear-gradient(180deg, rgba(191,160,90,0.04), var(--bg-card));
    position: relative;
  }
  .wm-state { display: block; }
  .wm-tagline {
    font-size: 16px; font-weight: 400;
    color: var(--ink-light); margin-bottom: 10px;
  }
  .wm-explainer {
    font-size: 12px; font-weight: 300;
    color: var(--ink-mid); line-height: 1.6;
    max-width: 360px; margin: 0 auto 16px;
  }
  .wm-coin-preview {
    margin-bottom: 16px;
  }
  .wm-cta {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #fff; background: var(--accent);
    border: none; padding: 12px 28px;
    border-radius: 8px; cursor: pointer;
    transition: all 0.18s;
    margin-bottom: 14px;
  }
  .wm-cta:hover { background: #3a5a40; transform: translateY(-1px); }

  .wm-greeting {
    font-size: 16px; font-weight: 400;
    color: var(--ink-light); margin-bottom: 6px;
  }
  .wm-badge {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold);
    background: rgba(191,160,90,0.1);
    border: 1px solid rgba(191,160,90,0.2);
    border-radius: 100px;
    padding: 4px 14px;
    margin-bottom: 14px;
  }

  /* Scorecard — today's price line */
  .wm-price-line {
    font-family: 'DM Mono', monospace;
    font-size: 12px; color: var(--ink-mid);
    letter-spacing: 0.03em;
    margin: 4px 0 14px;
  }
  .wm-price-line .wm-price-amt {
    font-family: 'Outfit', sans-serif;
    font-size: 18px; font-weight: 500;
    color: var(--ink-light);
    letter-spacing: -0.01em;
  }
  .wm-price-line .wm-price-over {
    color: var(--accent-light);
    font-weight: 500;
  }

  /* Community meter — watermark fill behind text */
  .wm-community {
    max-width: 320px;
    margin: 0 auto 12px;
  }
  .wm-community-bar-bg { display: none; }
  .wm-community-bar-fill { display: none; }
  .wm-community-text {
    font-family: 'DM Mono', monospace;
    font-size: 10px; color: var(--ink-mid);
    letter-spacing: 0.04em;
    text-align: center;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
    transition: background 0.8s ease;
  }

  /* Momentum line */
  .wm-momentum {
    font-size: 13px; font-weight: 400;
    color: var(--ink-light);
    margin-bottom: 12px;
    min-height: 20px;
  }
  .wm-momentum .wm-momentum-num {
    font-weight: 600;
    color: var(--accent-light);
  }
  .wm-momentum .wm-momentum-soft {
    font-weight: 300; font-style: italic;
    color: var(--ink-mid);
  }

  /* Counter (shared between new and signed-in) */
  .wm-counter-row {
    display: flex; align-items: baseline;
    justify-content: center; gap: 8px;
    margin-bottom: 8px;
  }
  .wm-counter-num {
    font-size: 42px; font-weight: 200;
    color: var(--ink-light); letter-spacing: -0.03em;
    line-height: 1; font-variant-numeric: tabular-nums;
  }
  .wm-counter-label {
    font-family: 'DM Mono', monospace;
    font-size: 12px; color: var(--ink-soft);
    letter-spacing: 0.04em;
  }
  .wm-counter-bar {
    height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto 14px;
    max-width: 240px;
  }
  .wm-counter-fill {
    height: 100%; border-radius: 5px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  }
  .wm-counter-small .wm-counter-num { font-size: 28px; }
  .wm-counter-small .wm-counter-label { font-size: 10px; }

  /* Install prompt row */
  .wm-install {
    display: flex; align-items: center; gap: 8px;
    justify-content: center;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    margin: 10px auto 0;
    max-width: 320px;
  }
  .wm-install-icon { font-size: 16px; }
  .wm-install-text {
    font-size: 11px; color: var(--ink-mid); font-weight: 300;
  }
  .wm-install-btn {
    font-family: 'DM Mono', monospace;
    font-size: 9px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gold); background: rgba(191,160,90,0.1);
    border: 1px solid rgba(191,160,90,0.2);
    padding: 5px 12px; border-radius: 6px;
    cursor: pointer; white-space: nowrap;
  }
  .wm-install-btn:hover { background: rgba(191,160,90,0.18); }

  /* Invite nudge */
  .wm-invite {
    display: flex; align-items: center; gap: 8px;
    justify-content: center;
    margin-top: 10px;
  }
  .wm-invite-text {
    font-size: 11px; color: var(--ink-soft); font-weight: 300;
  }
  .wm-invite-btn {
    font-family: 'DM Mono', monospace;
    font-size: 9px; font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--accent-light);
    background: none; border: none;
    cursor: pointer; text-decoration: underline;
    text-underline-offset: 2px;
  }

  /* Admin override banner */
  .wm-admin-banner {
    background: rgba(191,160,90,0.08);
    border: 1px solid rgba(191,160,90,0.25);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
    text-align: left;
  }
  .wm-admin-text {
    font-size: 12px; font-weight: 400;
    color: var(--gold); line-height: 1.5; flex: 1;
  }
  .wm-admin-dismiss {
    background: none; border: none;
    color: var(--ink-soft); cursor: pointer;
    font-size: 14px; padding: 2px;
  }

  /* Scroll hint */
  .wm-scroll-hint {
    display: flex; align-items: center; gap: 6px;
    justify-content: center;
    padding: 10px 0 2px;
    font-family: 'DM Mono', monospace;
    font-size: 9px; letter-spacing: 0.08em;
    color: var(--ink-soft); opacity: 0.5;
    animation: wmBounce 2s ease-in-out infinite;
    transition: opacity 0.5s;
  }
  .wm-scroll-hint.hidden { opacity: 0; pointer-events: none; }
  @keyframes wmBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
  }

  /* ── ROTATING COIN SHOWCASE ── */
  .wm-coin-showcase {
    margin: 4px auto 14px;
    text-align: center;
  }
  .wm-coin-scene {
    width: 110px; height: 110px;
    perspective: 600px;
    margin: 0 auto 10px;
  }
  .wm-coin-flipper {
    width: 100%; height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: wmCoinSpin 8s ease-in-out infinite;
  }
  .wm-coin-front, .wm-coin-back {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
      0 2px 12px rgba(0,0,0,0.3),
      0 0 30px rgba(200,216,224,0.08),
      inset 0 1px 0 rgba(255,255,255,0.15);
  }
  .wm-coin-front img, .wm-coin-back img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  .wm-coin-back {
    transform: rotateY(180deg);
  }
  @keyframes wmCoinSpin {
    0%   { transform: rotateY(0deg); }
    25%  { transform: rotateY(0deg); }
    35%  { transform: rotateY(180deg); }
    65%  { transform: rotateY(180deg); }
    75%  { transform: rotateY(360deg); }
    100% { transform: rotateY(360deg); }
  }

  .wm-coin-name {
    font-size: 13px; font-weight: 400;
    color: var(--ink-light);
    margin-bottom: 2px;
  }
  .wm-coin-meta {
    font-family: 'DM Mono', monospace;
    font-size: 10px; color: var(--ink-soft);
    letter-spacing: 0.04em;
  }
  .wm-coin-why {
    font-size: 11px; font-weight: 300;
    font-style: italic;
    color: var(--ink-mid);
    margin-top: 8px;
    min-height: 16px;
    transition: opacity 0.6s ease;
  }
  .wm-coin-why.fade { opacity: 0; }

  /* Saturday mystery coin */
  .wm-coin-mystery {
    text-align: center;
    margin: 4px auto 14px;
  }
  .wm-mystery-circle {
    width: 110px; height: 110px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, rgba(191,160,90,0.12), rgba(191,160,90,0.04));
    border: 2px dashed rgba(191,160,90,0.3);
    display: flex; align-items: center; justify-content: center;
    animation: wmMysteryPulse 3s ease-in-out infinite;
  }
  .wm-mystery-q {
    font-size: 40px; font-weight: 200;
    color: var(--gold); opacity: 0.6;
  }
  @keyframes wmMysteryPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(191,160,90,0); }
    50% { box-shadow: 0 0 20px 4px rgba(191,160,90,0.1); }
  }

  /* ── COUNTDOWN TIMER BAR ── */
  .timer-bar {
    display: none; /* shown by JS when relevant */
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 6px 40px;
    text-align: center;
  }
  .timer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .timer-label {
    font-family: 'DM Mono', monospace;
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255,255,255,0.5);
  }
  .timer-countdown {
    font-family: 'DM Mono', monospace;
    font-size: 16px; font-weight: 600;
    color: #fff;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    min-width: 80px;
  }
  .timer-phase {
    font-family: 'DM Mono', monospace;
    font-size: 9px; font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.35);
  }
  /* Phase-specific coloring */
  .timer-bar.phase-live .timer-countdown { color: rgba(74,222,128,0.9); }
  .timer-bar.phase-live .timer-label { color: rgba(74,222,128,0.6); }
  .timer-bar.phase-early .timer-countdown { color: rgba(232,210,138,0.9); }
  .timer-bar.phase-early .timer-label { color: rgba(232,210,138,0.6); }
  .timer-bar.phase-prelaunch .timer-countdown { color: rgba(191,160,90,0.85); }
  .timer-bar.phase-prelaunch .timer-label { color: rgba(191,160,90,0.55); }
  .timer-bar.phase-next .timer-countdown { color: rgba(255,255,255,0.6); }
  .timer-bar.phase-next .timer-label { color: rgba(255,255,255,0.35); }
  @media (max-width: 700px) {
    .timer-bar { padding: 5px 16px; }
    .timer-countdown { font-size: 14px; }
    .timer-label { font-size: 9px; }
  }

  /* ── VERTICAL SCROLL-TO-HERO CAROUSEL ── */
  .tl-card { padding: 0; overflow: visible; }
  .tl-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 6px; }
  .tl-heading { font-size: 15px; font-weight: 400; color: var(--ink); }
  .tl-header-right { display: flex; align-items: center; gap: 8px; }
  .tl-date-range { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--ink-soft); letter-spacing: 0.04em; }
  .tl-month-btn { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--accent); padding: 4px 10px; border: 1px solid rgba(46,71,51,0.25); border-radius: 6px; background: rgba(46,71,51,0.05); cursor: pointer; transition: all 0.15s; }
  .tl-month-btn:hover { background: rgba(46,71,51,0.12); }
  .tl-month-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

  /* Vertical scroll strip */
  .tl-rail { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: y mandatory; padding: 0; height: 70vh; }
  .tl-rail::-webkit-scrollbar { display: none; }
  .tl-strip { display: flex; flex-direction: column; gap: 12px; padding: 30vh 16px; }

  /* Card base — all cards in the vertical carousel */
  .tl-dc { width: 100%; max-width: 100%; scroll-snap-align: center; border-radius: 14px; overflow: hidden; position: relative; transition: transform 0.35s ease, opacity 0.35s ease; transform: scale(0.88); opacity: 0.6; transform-origin: center center; }

  /* In-view = centered card */
  .tl-dc.in-view { transform: scale(1); opacity: 1; z-index: 10; }
  .tl-dc.near-view { transform: scale(0.92); opacity: 0.8; }

  /* Reserve button pulse when card is in view */
  @keyframes reservePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(120,210,120,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(120,210,120,0); }
  }
  .tl-dc.in-view .tl-reserve-btn:not(.purchased):not(:disabled) {
    animation: reservePulse 2.5s ease-in-out infinite;
  }
  .tl-dc.in-view .btn-purchase:not(.purchased):not(:disabled) {
    animation: reservePulse 2.5s ease-in-out infinite;
  }

  /* ── PAST CARD — light / white ── */
  .tl-dc.is-past { background: var(--bg-card); border: 1px solid #D1CCC4; }
  .tl-dc.is-past.in-view { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

  /* ── TODAY CARD — dark with animated shimmering border ── */
  @keyframes shimmerBorderSilver {
    0%, 100% { border-color: #6B917A; box-shadow: inset 0 0 6px rgba(154,167,178,0.12); }
    50%      { border-color: #9AB8A6; box-shadow: inset 0 0 10px rgba(180,210,190,0.18); }
  }
  @keyframes shimmerBorderGold {
    0%, 100% { border-color: #B8922A; box-shadow: inset 0 0 6px rgba(191,160,90,0.15); }
    50%      { border-color: #E8D28A; box-shadow: inset 0 0 10px rgba(232,210,138,0.25); }
  }
  @keyframes shimmerBorderSpecial {
    0%, 100% { border-color: #3A6B44; box-shadow: inset 0 0 6px rgba(46,71,51,0.15); }
    50%      { border-color: #5A9B68; box-shadow: inset 0 0 10px rgba(90,155,104,0.2); }
  }

  .tl-dc.is-today {
    background: var(--drip-bg);
    border: 1px solid #5A8A68;
    animation: shimmerBorderSilver 4s ease-in-out infinite;
  }
  .tl-dc.is-today.gold-drip {
    border-color: #D4A843;
    animation: shimmerBorderGold 4s ease-in-out infinite;
  }
  .tl-dc.is-today.sat-special-drip {
    border-color: #3A6B44;
    animation: shimmerBorderSpecial 4s ease-in-out infinite;
  }
  .tl-dc.is-today.in-view {
    box-shadow: inset 0 0 0 1px rgba(90,138,104,0.25), 0 8px 32px rgba(46,71,51,0.25), 0 2px 6px rgba(0,0,0,0.12);
  }
  .tl-dc.is-today.in-view.gold-drip {
    box-shadow: inset 0 0 0 1px rgba(212,168,67,0.25), 0 8px 32px rgba(191,160,90,0.18), 0 2px 6px rgba(0,0,0,0.1);
  }
  .tl-dc.is-today.in-view.sat-special-drip {
    box-shadow: inset 0 0 0 1px rgba(46,71,51,0.25), 0 8px 32px rgba(90,155,104,0.15), 0 2px 6px rgba(0,0,0,0.1);
  }
  /* Pause shimmer when not in view */
  .tl-dc.is-today:not(.in-view) { animation: none; }

  /* Subtle shimmer — ONLY on today's card when it's the hero */
  /* Timed to match 10s fact rotation — shimmer sweeps as new fact appears */
  @keyframes subtleShimmer {
    0%   { opacity: 0; transform: translateX(-120%) skewX(-15deg); }
    5%   { opacity: 0.8; }
    35%  { opacity: 0; transform: translateX(280%) skewX(-15deg); }
    100% { opacity: 0; transform: translateX(280%) skewX(-15deg); }
  }
  .tl-dc.is-today.in-view::after {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 35%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(180,210,180,0.07), transparent);
    border-radius: 12px;
    animation: subtleShimmer 10s ease-in-out infinite;
    pointer-events: none; z-index: 1;
  }
  .tl-dc.is-today.in-view.gold-drip::after {
    background: linear-gradient(90deg, transparent, rgba(232,210,138,0.09), transparent);
  }
  /* No shimmer when today is NOT in view */
  .tl-dc.is-today:not(.in-view)::after { display: none; }

  /* ── FUTURE CARD — same dark style as today, no shimmer border ── */
  .tl-dc.is-future { background: var(--drip-bg); border: 1px solid rgba(255,255,255,0.08); }
  .tl-dc.is-future.in-view { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
  .tl-dc.is-future.is-sat-special { border-color: rgba(191,160,90,0.15); }
  .tl-dc.is-future.gold-drip { border-color: rgba(212,168,67,0.15); }

  /* ── PAST CARD (white, archived) ── */
  .tl-past-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-bottom: 1px solid var(--border); }
  .tl-past-ck { width: 13px; height: 13px; border-radius: 50%; background: rgba(46,71,51,0.1); display: flex; align-items: center; justify-content: center; font-size: 7px; color: var(--accent); flex-shrink: 0; }
  .tl-past-day { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--ink-soft); letter-spacing: 0.04em; flex: 1; }
  .tl-past-closed { font-family: 'DM Mono', monospace; font-size: 7px; color: var(--ink-soft); padding: 2px 7px; border: 1px solid var(--border); border-radius: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
  .tl-past-meter { padding: 12px 14px 0; }
  .tl-past-ml { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
  .tl-past-mc { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--ink-mid); }
  .tl-past-mc span { font-size: 15px; font-weight: 500; color: var(--silver); }
  .tl-past-mt { font-family: 'DM Mono', monospace; font-size: 8px; color: var(--ink-soft); }
  .tl-past-mbg { height: 5px; background: var(--bg); border-radius: 5px; overflow: hidden; }
  .tl-past-mfl { height: 100%; border-radius: 5px; background: linear-gradient(90deg,#7A9AAA,#9AB8C8,#B0CCDA,#9AB8C8); }
  .tl-past-mfl.gold { background: linear-gradient(90deg,#BFA05A,#D4A843,#E8C870,#D4A843); }
  .tl-past-tiers { display: flex; gap: 3px; margin-top: 5px; }
  .tl-past-tp { flex: 1; height: 2px; border-radius: 2px; background: var(--border); }
  .tl-past-tp.on { background: var(--silver); }
  .tl-past-coin { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-top: 1px solid var(--border); }
  .tl-past-ci { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,rgba(200,216,224,0.25),rgba(154,167,178,0.15)); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
  .tl-past-ci.gold { background: linear-gradient(135deg,rgba(232,213,160,0.25),rgba(191,160,90,0.15)); }
  .tl-past-cn { font-size: 13px; font-weight: 400; color: var(--ink); }
  .tl-past-cm { font-family: 'DM Mono', monospace; font-size: 7px; color: var(--ink-soft); }
  .tl-past-pa { text-align: right; margin-left: auto; }
  .tl-past-pv { font-size: 13px; font-weight: 300; color: var(--ink-mid); }
  .tl-past-ps { font-family: 'DM Mono', monospace; font-size: 7px; color: var(--ink-soft); }
  .tl-past-result { padding: 6px 14px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); }
  .tl-past-badge { font-family: 'DM Mono', monospace; font-size: 8px; padding: 3px 9px; border-radius: 5px; }
  .tl-past-badge.yes { background: rgba(46,71,51,0.08); color: var(--accent); border: 1px solid rgba(46,71,51,0.2); }
  .tl-past-rprice { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--ink-mid); }
  .tl-past-vol { padding: 0 14px 6px; }
  .tl-past-vol-row { display: flex; align-items: center; gap: 5px; }
  .tl-past-vol-icon { font-size: 10px; opacity: 0.5; }
  .tl-past-vol-txt { font-family: 'DM Mono', monospace; font-size: 8px; color: var(--ink-soft); }
  .tl-past-vol-num { color: var(--silver); font-weight: 500; }
  .tl-past-gives { display: flex; align-items: center; gap: 6px; padding: 4px 14px 10px; }
  .tl-past-gives-icon { font-size: 11px; opacity: 0.6; }
  .tl-past-gives-txt { font-family: 'DM Mono', monospace; font-size: 8px; color: var(--ink-soft); }
  .tl-past-gives-amt { color: var(--accent); font-weight: 500; }

  /* ── TODAY CARD (dark, alive) ── */
  .tl-today-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .tl-today-bar .ira-pill { margin-left: auto; position: static; top: auto; }
  .tl-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; animation: livePulse 2s ease-in-out infinite; }
  @keyframes livePulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
  .tl-today-st { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }
  .tl-today-st strong { color: rgba(255,255,255,0.8); font-weight: 500; }
  .tl-today-mh { padding: 14px 14px 16px; border-top: 1px solid rgba(255,255,255,0.06); }
  .tl-today-meter-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; }
  .tl-today-meter-count { font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 300; color: rgba(255,255,255,0.85); line-height: 1; }
  .tl-today-meter-count span { font-size: 14px; color: rgba(255,255,255,0.45); font-weight: 300; }
  .tl-today-meter-price { text-align: right; }
  .tl-today-meter-price-val { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; color: rgba(120,210,120,0.9); }
  .tl-today-meter-price-lbl { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; }
  .tl-today-mbg { height: 10px; background: rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; position: relative; }
  .tl-today-mfl { height: 100%; border-radius: 10px; background: linear-gradient(90deg,#7A9AAA,#9AB8C8,#B0CCDA,#9AB8C8); transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
  .tl-today-mfl.gold-fill { background: linear-gradient(90deg,#BFA05A,#D4A843,#E8C870,#D4A843); }
  .tl-today-mgl { position: absolute; inset: -2px; border-radius: 12px; opacity: 0; pointer-events: none; box-shadow: 0 0 14px 3px rgba(154,183,200,0.5), inset 0 0 8px rgba(154,183,200,0.3); }
  .tl-today-meter-nodes { display: flex; gap: 6px; margin-top: 8px; }
  .tl-tier-pill {
    font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.04em;
    padding: 4px 10px; border-radius: 6px;
    background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.25);
    transition: all 0.3s ease;
  }
  .tl-tier-pill.reached { background: rgba(154,167,178,0.15); color: rgba(255,255,255,0.55); }
  .tl-tier-pill.active { background: rgba(120,210,120,0.12); color: rgba(120,210,120,0.7); border: 1px solid rgba(120,210,120,0.2); }
  .tl-tier-pill.active.gold { background: rgba(191,160,90,0.12); color: rgba(191,160,90,0.7); border-color: rgba(191,160,90,0.2); }
  .tl-today-meter-nudge { font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 10px; text-align: center; line-height: 1.5; }
  .tl-today-meter-nudge strong { color: #9AB8C8; font-weight: 500; }

  /* Best tier reached — gold celebration nudge */
  .tl-today-meter-nudge.best-tier {
    color: rgba(191,160,90,0.85);
    background: rgba(191,160,90,0.06);
    border: 1px solid rgba(191,160,90,0.15);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 10px;
  }
  .tl-today-meter-nudge.best-tier strong { color: var(--gold); }

  /* Final price locked — green celebration banner */
  .tl-final-price-banner {
    display: none;
    background: rgba(46,71,51,0.15);
    border: 1px solid rgba(90,191,122,0.2);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    text-align: center;
    animation: finalPriceIn 0.5s ease;
  }
  .tl-final-price-banner.show { display: block; }
  .tl-final-price-label {
    font-family: 'DM Mono', monospace; font-size: 8px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(90,191,122,0.7); margin-bottom: 4px;
  }
  .tl-final-price-val {
    font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 500;
    color: rgba(90,191,122,0.95); letter-spacing: -0.02em;
  }
  .tl-final-price-sub {
    font-family: 'DM Mono', monospace; font-size: 8px;
    color: rgba(255,255,255,0.3); margin-top: 3px;
  }
  @keyframes finalPriceIn {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  /* Price label transition from "est" to "final" */
  .tl-today-ps.final {
    color: rgba(90,191,122,0.7);
  }
  .tl-today-ps.spot-locked {
    color: rgba(191,160,90,0.5);
  }
  .tl-today-coin { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .tl-today-coin .coin-flip-scene { width: 120px; height: 120px; flex-shrink: 0; }
  .tl-today-coin .coin-flip-wrap { width: 120px; height: 120px; }
  .tl-today-coin .coin-hint { display: none; }
  .tl-today-ci { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#C8D8E0,#9AA7B2); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; box-shadow: 0 2px 10px rgba(0,0,0,0.3); position: relative; overflow: hidden; }
  .tl-today-ci::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.2) 0%, transparent 55%); pointer-events: none; }
  .tl-today-ci.gold { background: linear-gradient(135deg,#E8D5A0,#BFA05A); }
  .tl-today-ni { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
  .tl-today-nm { font-size: 20px; font-weight: 400; color: #fff; line-height: 1.2; margin-bottom: 6px; }
  .tl-today-mt { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.45); letter-spacing: 0.03em; margin-bottom: 10px; }
  .tl-today-pa { }
  .tl-today-pv { font-size: 22px; font-weight: 300; color: #fff; letter-spacing: -0.02em; }
  .tl-today-ps { font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.35); margin-top: 2px; }
  .tl-today-acts { padding: 0 14px 10px; display: flex; align-items: center; gap: 8px; }
  .tl-qty-wrap { display: flex; align-items: center; background: rgba(255,255,255,0.06); border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); }
  .tl-qty-btn { width: 30px; height: 34px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 15px; cursor: pointer; font-family: 'Outfit', sans-serif; }
  .tl-qty-btn:hover { color: #fff; }
  .tl-qty-val { font-family: 'DM Mono', monospace; font-size: 12px; color: #fff; min-width: 18px; text-align: center; }
  .tl-reserve-btn { flex: 1; height: 36px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; font-weight: 500; transition: all 0.15s; }
  .tl-reserve-btn:hover { background: #3a5a40; transform: translateY(-1px); }
  .tl-reserve-btn.purchased { background: rgba(46,71,51,0.6); pointer-events: none; }
  .tl-early-hint { display: flex; align-items: center; gap: 5px; margin: 0 14px 12px; padding: 6px 10px; background: rgba(46,71,51,0.15); border: 1px solid rgba(46,71,51,0.25); border-radius: 6px; }
  .tl-early-dot { width: 5px; height: 5px; border-radius: 50%; background: #4ADE80; flex-shrink: 0; }
  .tl-early-text { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 0.03em; line-height: 1.4; }
  .tl-early-text strong { color: rgba(255,255,255,0.8); font-weight: 500; }

  /* ── FUTURE CARD (warm tan, skeletal) ── */
  .tl-fut-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .tl-fut-dd { width: 8px; height: 8px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,0.15); }
  .tl-fut-dd.gold { border-color: rgba(212,168,67,0.4); }
  .tl-fut-dd.special { border-color: rgba(90,155,104,0.4); }
  .tl-fut-st { font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.3); letter-spacing: 0.04em; }
  .tl-fut-body { padding: 16px 14px 14px; }
  .tl-fut-cn { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.45); margin-bottom: 3px; }
  .tl-fut-cm { font-family: 'DM Mono', monospace; font-size: 8px; color: rgba(255,255,255,0.2); letter-spacing: 0.04em; margin-bottom: 14px; }
  .tl-fut-ghost-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 4px; margin-bottom: 4px; }
  .tl-fut-ghost-tiers { display: flex; gap: 3px; margin-bottom: 14px; }
  .tl-fut-gt { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.06); }
  .tl-fut-opens { font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.25); text-align: center; padding: 10px 0 0; border-top: 1px solid rgba(255,255,255,0.06); }
  .tl-fut-sat-lbl { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--gold); letter-spacing: 0.06em; margin-bottom: 4px; }
  .tl-fut-sat-sub { font-family: 'Outfit', sans-serif; font-size: 13px; color: rgba(255,255,255,0.3); font-weight: 300; margin-bottom: 14px; }

  /* Fact line — ambient knowledge on drip cards */
  .tl-fact-line {
    font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.03em;
    color: rgba(255,255,255,0.35); line-height: 1.5;
    padding: 8px 14px 0; margin-top: 4px;
  }
  /* Rotating fact container on today card — museum placard style */
  .tl-fact-section {
    margin: 10px 14px 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 12px 8px;
    position: relative;
  }
  .tl-fact-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 6px;
  }
  .tl-fact-label::before {
    content: '';
    display: inline-block;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(154,184,200,0.4);
    margin-right: 5px;
    vertical-align: middle;
    animation: factPulse 4s ease-in-out infinite;
  }
  @keyframes factPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
  }
  .tl-fact-rotator {
    position: relative;
    min-height: 32px;
    overflow: hidden;
  }
  .tl-fact-item {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
    opacity: 0;
    position: absolute;
    left: 0; right: 0; top: 0;
    transition: opacity 1.2s ease;
  }
  .tl-fact-item.active {
    opacity: 1;
  }
  /* Fact dots — progress indicators */
  .tl-fact-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.04);
  }
  .tl-fact-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background 0.4s ease, transform 0.3s ease;
  }
  .tl-fact-dot.active {
    background: rgba(154,184,200,0.5);
    transform: scale(1.3);
  }
  /* Price comparison line — inside the placard */
  .tl-price-compare {
    font-family: 'DM Mono', monospace; font-size: 11px;
    color: rgba(255,255,255,0.4); letter-spacing: 0.03em;
    padding: 6px 0 0; margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.04);
    line-height: 1.5;
  }
  .tl-price-save {
    color: rgba(120,210,120,0.8); font-weight: 500;
  }

  /* Autopilot prompt on today card — shows after first purchase */
  .tl-autopilot-prompt {
    display: none;
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
  }
  .tl-autopilot-prompt.visible { display: block; }
  .tl-autopilot-msg {
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: rgba(255,255,255,0.35); line-height: 1.6;
    margin-bottom: 8px;
  }
  .tl-autopilot-msg strong { color: rgba(255,255,255,0.6); font-weight: 500; }
  .tl-autopilot-btn {
    font-family: 'DM Mono', monospace; font-size: 9px;
    letter-spacing: 0.06em;
    color: var(--accent); background: rgba(46,71,51,0.15);
    border: 1px solid rgba(46,71,51,0.3); border-radius: 6px;
    padding: 6px 14px; cursor: pointer; transition: all 0.15s;
  }
  .tl-autopilot-btn:hover { background: rgba(46,71,51,0.25); }

  /* Weekly Bag upsell banner */
  .weekly-bag-banner {
    display: none;
    margin: 8px 14px; padding: 8px 12px;
    background: rgba(46,71,51,0.08);
    border: 1px solid rgba(46,71,51,0.15);
    border-radius: 8px;
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: rgba(255,255,255,0.4); line-height: 1.6;
  }
  .weekly-bag-banner.visible { display: block; }
  .weekly-bag-banner strong { color: var(--accent); font-weight: 500; }

  /* Saturday scarcity counter */
  .tl-scarcity {
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: rgba(220,80,80,0.7); letter-spacing: 0.04em;
    text-align: center; padding: 4px 14px 0;
  }

  /* Holdings projection */
  .holdings-projection {
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: var(--ink-soft); letter-spacing: 0.03em;
    padding: 8px 12px; margin-top: 8px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 6px; line-height: 1.6;
  }
  .holdings-projection strong { color: var(--accent); font-weight: 500; }

  /* Social proof toast */
  .social-toast {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--drip-bg); color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 8px 16px;
    font-family: 'DM Mono', monospace; font-size: 9px;
    letter-spacing: 0.04em;
    opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 200; pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }
  .social-toast.show {
    opacity: 1; transform: translateX(-50%) translateY(0);
  }
  .tl-past-fact {
    font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.03em;
    color: var(--ink-soft); line-height: 1.5;
    padding: 8px 14px 2px;
  }

  /* Saturday Special — pre-reveal anticipation card */
  .tl-dc.is-sat-special {
    border-color: rgba(191,160,90,0.25);
    background: #1A1C1E;
  }
  .tl-sat-mystery {
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; width: 48px; height: 48px;
    background: rgba(191,160,90,0.08); border: 1.5px dashed rgba(191,160,90,0.25);
    border-radius: 50%; margin: 0 auto 10px;
  }
  .tl-sat-countdown {
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: var(--gold); opacity: 0.6; letter-spacing: 0.06em;
    text-align: center; margin-top: 4px;
  }
  /* Saturday reveal animation */
  @keyframes satReveal {
    0%   { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
  }
  .tl-dc.is-sat.sat-revealed .tl-fut-body {
    animation: satReveal 0.6s ease both;
  }
  .tl-sat-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'DM Mono', monospace; font-size: 8px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gold); background: rgba(191,160,90,0.1);
    border: 1px solid rgba(191,160,90,0.25); border-radius: 20px;
    padding: 3px 8px; margin-bottom: 6px;
  }

  /* Welcome modal — momentum line */
  .welcome-momentum {
    font-family: 'Outfit', sans-serif; font-size: 15px;
    font-weight: 300; color: var(--ink); line-height: 1.6;
    margin: 16px 0 4px; text-align: center;
  }
  .welcome-momentum strong { font-weight: 500; }
  .welcome-fact {
    font-family: 'DM Mono', monospace; font-size: 9px;
    letter-spacing: 0.04em; color: var(--ink-mid);
    line-height: 1.6; text-align: center;
    padding: 10px 16px; margin: 12px 0 0;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 8px;
  }

  /* Dot indicators */
  .tl-dots { display: none; }
  .tl-dot-i { width: 6px; height: 6px; border-radius: 50%; transition: all 0.25s; }
  .tl-dot-i.pd { background: rgba(26,28,29,0.35); }
  .tl-dot-i.td { background: var(--accent); }
  .tl-dot-i.fd { background: #DDD8CE; }
  .tl-dot-i.on { width: 18px; border-radius: 3px; }
  .tl-dot-i.on.pd { background: rgba(26,28,29,0.55); }
  .tl-dot-i.on.td { background: var(--accent); }
  .tl-dot-i.on.fd { background: #8A8478; }

  /* Month overlay */
  /* ── MONTH VIEW OVERLAY — coin collector's calendar ── */
  .tl-month-overlay { position: fixed; inset: 0; background: var(--drip-bg); z-index: 1000; display: none; flex-direction: column; }
  .tl-month-overlay.open { display: flex; }
  .tl-month-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .tl-month-nav { display: flex; align-items: center; gap: 14px; }
  .tl-month-nb { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); cursor: pointer; font-size: 16px; color: rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
  .tl-month-nb:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); }
  .tl-month-nm { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 400; color: rgba(255,255,255,0.9); letter-spacing: 0.01em; }
  .tl-month-close { font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.5); cursor: pointer; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; background: rgba(255,255,255,0.04); letter-spacing: 0.08em; text-transform: uppercase; transition: all 0.15s; }
  .tl-month-close:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); }
  .tl-month-grid { padding: 8px 12px 24px; flex: 1; overflow-y: auto; }
  .tl-mg-weekdays { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; margin-bottom: 6px; }
  .tl-mg-wd { font-family: 'DM Mono', monospace; font-size: 8px; color: rgba(255,255,255,0.25); letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 0; }

  .tl-mg-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }

  .tl-mg-day {
    aspect-ratio: 1; border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    cursor: pointer; transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.02);
    position: relative; overflow: hidden;
    padding: 4px 2px;
  }
  .tl-mg-day:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); transform: translateY(-1px); }
  .tl-mg-day.empty { pointer-events: none; background: transparent; border-color: transparent; }
  .tl-mg-day.sunday { pointer-events: none; opacity: 0.08; background: transparent; border-color: transparent; }

  /* Day number */
  .tl-mg-num { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.35); font-weight: 500; line-height: 1; }

  /* Coin image in cell */
  .tl-mg-coin { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
  .tl-mg-emoji { font-size: 18px; line-height: 1; }

  /* Coin name */
  .tl-mg-name { font-family: 'DM Mono', monospace; font-size: 5.5px; color: rgba(255,255,255,0.2); letter-spacing: 0.04em; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Reservation count badge */
  .tl-mg-badge { font-family: 'DM Mono', monospace; font-size: 6px; color: rgba(255,255,255,0.35); letter-spacing: 0.04em; }

  /* Metal-colored borders */
  .tl-mg-day.drip-silver { border-color: rgba(154,167,178,0.2); }
  .tl-mg-day.drip-silver:hover { border-color: rgba(154,167,178,0.4); }
  .tl-mg-day.drip-gold { border-color: rgba(191,160,90,0.25); }
  .tl-mg-day.drip-gold:hover { border-color: rgba(191,160,90,0.5); }
  .tl-mg-day.drip-gold .tl-mg-num { color: rgba(191,160,90,0.5); }
  .tl-mg-day.drip-special { border-color: rgba(46,71,51,0.3); }
  .tl-mg-day.drip-special:hover { border-color: rgba(90,155,104,0.4); }
  .tl-mg-day.drip-special .tl-mg-num { color: rgba(90,155,104,0.5); }

  /* Past days — dimmed */
  .tl-mg-day.mg-past { opacity: 0.4; }
  .tl-mg-day.mg-past:hover { opacity: 0.6; }

  /* Today — glowing ring */
  .tl-mg-day.mg-today {
    background: rgba(46,71,51,0.15);
    border-color: rgba(90,155,104,0.5);
    box-shadow: 0 0 12px rgba(90,155,104,0.15), inset 0 0 8px rgba(90,155,104,0.05);
  }
  .tl-mg-day.mg-today .tl-mg-num { color: rgba(255,255,255,0.9); font-weight: 700; }

  /* Week separator */
  .tl-mg-week-sep { grid-column: 1 / -1; height: 1px; background: rgba(255,255,255,0.04); margin: 2px 0; }
  .dc-coin-meta { font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.3); letter-spacing: 0.06em; margin-bottom: 14px; }
  .dc-facts { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
  .dc-fact { display: flex; align-items: center; gap: 8px; }
  .dc-fact-icon { font-size: 13px; line-height: 1; flex-shrink: 0; }
  .dc-fact-label { font-family: 'DM Mono', monospace; font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
  .dc-history { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 12px; }
  .dc-history-label { font-family: 'DM Mono', monospace; font-size: 7px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-bottom: 5px; }
  .dc-history-text { font-size: 11px; color: rgba(255,255,255,0.38); line-height: 1.55; }
  .dc-meter { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 14px; }
  .dc-meter-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .dc-meter-count { font-family: 'DM Mono', monospace; font-size: 9px; color: rgba(255,255,255,0.45); }
  .dc-meter-count span { color: rgba(120,210,120,0.85); font-weight: 500; }
  .dc-meter-next { font-family: 'DM Mono', monospace; font-size: 8px; color: rgba(191,160,90,0.7); }
  .dc-bar-outer { height: 7px; background: rgba(255,255,255,0.08); border-radius: 4px; position: relative; overflow: visible; margin-bottom: 8px; }
  .dc-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(46,71,51,0.9) 0%, rgba(120,210,120,0.7) 100%); width: 52%; position: relative; z-index: 1; }
  .dc-bar-shimmer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%); animation: shimmer 3s ease-in-out infinite; border-radius: 4px; z-index: 2; }
  .dc-node { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
  .dc-node-dot { width: 11px; height: 11px; border-radius: 50%; background: #1a2420; border: 1.5px solid rgba(255,255,255,0.2); transform: translateX(-50%) translateY(-50%); position: relative; top: 50%; left: 50%; }
  .dc-node-dot.reached { border-color: rgba(120,210,120,0.6); background: rgba(120,210,120,0.15); }
  .dc-bar-labels { position: relative; height: 14px; }
  .dc-bar-label { position: absolute; transform: translateX(-50%); font-family: 'DM Mono', monospace; font-size: 7px; color: rgba(255,255,255,0.2); }
  .dc-bar-label.reached { color: rgba(120,210,120,0.5); }
  .dc-tier-pills { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
  .dc-tier { font-family: 'DM Mono', monospace; font-size: 7px; padding: 2px 8px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.3); }
  .dc-tier.on { border-color: rgba(109,191,138,0.45); color: rgba(120,210,120,0.85); background: rgba(109,191,138,0.08); }
  /* ── IRA ELIGIBLE PILL ── */
  .ira-pill {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'DM Mono', monospace; font-size: 7.5px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: rgba(191,160,90,0.85); background: rgba(191,160,90,0.08);
    border: 1px solid rgba(191,160,90,0.2); border-radius: 100px;
    padding: 3px 9px 3px 7px; cursor: pointer;
    transition: all 0.3s ease; white-space: nowrap;
    margin-left: 6px; vertical-align: middle; position: relative; top: -1px;
  }
  .ira-pill:hover, .ira-pill:active { background: rgba(191,160,90,0.14); border-color: rgba(191,160,90,0.35); }
  .ira-pill-icon { font-size: 9px; line-height: 1; }
  .ira-pill-text { line-height: 1; }
  /* Expanded tooltip */
  .ira-tooltip {
    position: absolute; top: calc(100% + 8px); right: 0; transform: none;
    background: #1a2420; border: 1px solid rgba(191,160,90,0.25); border-radius: 10px;
    padding: 12px 14px; width: 260px; z-index: 100;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .ira-pill.expanded .ira-tooltip { opacity: 1; visibility: visible; pointer-events: auto; }
  .ira-tooltip::after {
    content: ''; position: absolute; bottom: 100%; right: 16px;
    border: 6px solid transparent; border-bottom-color: rgba(191,160,90,0.25);
  }
  .ira-tooltip-title {
    font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 600;
    color: rgba(191,160,90,0.9); margin-bottom: 6px; text-transform: none; letter-spacing: 0;
  }
  .ira-tooltip-body {
    font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 300;
    color: rgba(255,255,255,0.55); line-height: 1.5; text-transform: none; letter-spacing: 0;
  }

  #todayDripCard.card { overflow: visible; }
  .drip-card-v2 { overflow: visible; }

  /* ── V2 TODAY'S DRIP CARD ── */

  /* Top bar */
  .drip-v2-top-bar {
    display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
    margin-bottom: 20px;
  }
  .drip-v2-top-left { display: flex; align-items: center; gap: 10px; }
  .drip-v2-heading {
    font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 300;
    color: rgba(255,255,255,0.85); margin-bottom: 1px;
  }
  .drip-v2-subhead {
    font-family: 'DM Mono', monospace; font-size: 8px;
    color: rgba(255,255,255,0.3); letter-spacing: 0.08em; text-transform: uppercase;
  }
  .drip-v2-price-badge {
    font-family: 'DM Mono', monospace; font-size: 18px;
    font-weight: 500; color: rgba(255,255,255,0.9);
    letter-spacing: -0.02em; flex-shrink: 0;
  }
  .drip-v2-price-badge span {
    font-size: 10px; color: rgba(255,255,255,0.35); letter-spacing: 0.04em;
  }

  /* Two-column layout */
  .drip-v2-layout {
    display: grid;
    grid-template-columns: 176px 1fr;
    gap: 28px;
    align-items: start;
  }

  /* Coin column */
  .drip-v2-coin-col {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
  }
  .drip-v2-coin-label {
    font-family: 'DM Mono', monospace; font-size: 8px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.18); text-align: center;
  }

  /* Info column */
  .drip-v2-info-col {
    display: flex; flex-direction: column; gap: 12px;
  }

  /* Facts */
  .drip-v2-facts { display: flex; flex-direction: column; gap: 9px; }
  .drip-v2-fact {
    display: flex; align-items: flex-start; gap: 9px;
  }
  .drip-v2-fact-icon { font-size: 14px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
  .drip-v2-fact-title {
    font-family: 'DM Mono', monospace; font-size: 9px;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255,255,255,0.55); margin-bottom: 2px;
  }
  .drip-v2-fact-body {
    font-family: 'Outfit', sans-serif; font-size: 12px;
    color: rgba(255,255,255,0.38); line-height: 1.45;
  }

  .drip-card-v2 {
    width: 100%;
    background: linear-gradient(145deg, #1a2420 0%, #141c18 100%);
    border: 1px solid rgba(46,71,51,0.4);
    border-radius: 16px;
    padding: 22px 24px 18px;
  }

  /* The aside (name + meter + button) sits right of coin on mobile, hidden on desktop */
  .drip-v2-coin-aside {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
  }
  /* Desktop: name, meta, meter, actions are in info col — hide mobile dupes */
  .drip-v2-name-desktop,
  .drip-v2-meta-desktop,
  .drip-v2-meter-desktop,
  .drip-v2-actions-desktop { display: flex; }
  .drip-v2-header {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 12px;
    margin-bottom: 16px;
  }
  .drip-v2-header-left { display: flex; align-items: center; gap: 12px; flex: 1; }
  .drip-v2-coin-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(154,167,178,0.1);
    border: 1px solid rgba(154,167,178,0.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .drip-v2-coin-icon.gold {
    background: rgba(191,160,90,0.1);
    border-color: rgba(191,160,90,0.25);
  }
  .drip-v2-coin-name {
    font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 300;
    color: rgba(255,255,255,0.92); margin-bottom: 2px; letter-spacing: -0.01em;
  }
  .drip-v2-coin-meta {
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: rgba(255,255,255,0.35); letter-spacing: 0.06em;
  }

  /* Drip meter V2 */
  .drip-v2-meter-wrap { }
  .drip-v2-meter-top {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 6px;
  }
  .drip-v2-meter-count {
    font-family: 'DM Mono', monospace; font-size: 9px;
    color: rgba(255,255,255,0.45); letter-spacing: 0.04em;
  }
  .drip-v2-meter-count span { color: rgba(120,210,120,0.8); font-weight: 500; }
  .drip-v2-meter-next {
    font-family: 'DM Mono', monospace; font-size: 8px;
    color: rgba(191,160,90,0.7); letter-spacing: 0.04em;
  }
  .drip-v2-bar-outer {
    height: 5px; background: rgba(255,255,255,0.08);
    border-radius: 3px; position: relative; overflow: visible;
    margin-bottom: 8px;
  }
  .drip-v2-bar-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, rgba(46,71,51,0.9) 0%, rgba(120,210,120,0.7) 100%);
    transition: width 0.8s ease; position: relative; z-index: 1;
  }
  .drip-v2-bar-shimmer {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    animation: shimmerSlide 3s ease-in-out infinite;
    border-radius: 3px; z-index: 2;
  }
  @keyframes shimmerSlide { 0%,100% { opacity:0; transform:translateX(-100%); } 50% { opacity:1; transform:translateX(100%); } }
  .drip-v2-node {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 3; pointer-events: none;
  }
  .drip-v2-node-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #1a2420; border: 1.5px solid rgba(255,255,255,0.2);
    transform: translateX(-50%) translateY(-50%);
    position: relative; top: 50%; left: 50%;
  }
  .drip-v2-node-dot.reached {
    border-color: rgba(120,210,120,0.6);
    background: rgba(120,210,120,0.15);
  }
  .drip-v2-bar-labels {
    position: relative; height: 12px;
  }
  .drip-v2-bar-label {
    position: absolute; transform: translateX(-50%);
    font-family: 'DM Mono', monospace; font-size: 7px;
    color: rgba(255,255,255,0.2); letter-spacing: 0.06em;
  }
  .drip-v2-bar-label.reached { color: rgba(120,210,120,0.5); }

  /* Bottom row (legacy, kept for safety) */
  .drip-v2-bottom {
    display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
  }
  .drip-v2-feed { display: flex; flex-direction: column; gap: 3px; }
  .drip-v2-feed-item {
    display: flex; align-items: center; gap: 6px;
    font-family: 'DM Mono', monospace; font-size: 8px;
    color: rgba(255,255,255,0.3);
  }
  .drip-v2-feed-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: rgba(120,210,120,0.5); flex-shrink: 0;
    animation: feedPulse 2s ease-in-out infinite;
  }
  .drip-v2-feed-item:not(:first-child) .drip-v2-feed-dot { animation: none; background: rgba(255,255,255,0.15); }
  @keyframes feedPulse { 0%,100%{opacity:0.5} 50%{opacity:1} }
  .drip-v2-feed-text { flex: 1; }
  .drip-v2-feed-time { color: rgba(255,255,255,0.15); flex-shrink: 0; }
  .drip-v2-actions { display: flex; align-items: center; gap: 8px; }
  .drip-v2-qty-wrap {
    display: flex; align-items: center; gap: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden;
  }
  .drip-v2-qty-btn {
    background: none; border: none; color: rgba(255,255,255,0.5);
    font-size: 16px; width: 28px; height: 32px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.15s;
  }
  .drip-v2-qty-btn:hover { color: rgba(255,255,255,0.9); }
  .drip-v2-qty {
    font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500;
    color: rgba(255,255,255,0.85); min-width: 20px; text-align: center;
  }
  .btn-purchase {
    background: var(--accent); border: 1px solid rgba(120,210,120,0.3);
    color: rgba(120,210,120,0.9); font-family: 'DM Mono', monospace;
    font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; padding: 10px 16px; border-radius: 8px;
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
  }
  .btn-purchase:hover { background: #3a5a40; }
  .btn-purchase.purchased {
    background: rgba(120,210,120,0.1); color: rgba(120,210,120,0.7);
    border-color: rgba(120,210,120,0.2);
  }

  /* ── CALENDAR CARD ── */
  .cal-card {
    width: 100%;
    padding: 20px 20px 0;
    margin-bottom: 0;
  }
  .cal-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 16px;
  }
  .cal-header-left { display: flex; align-items: center; gap: 12px; }
  .cal-nav { display: flex; gap: 6px; }
  .cal-nav-btn {
    background: none; border: 1px solid var(--border);
    color: var(--ink-mid); font-size: 14px;
    width: 28px; height: 28px; border-radius: 7px;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: all 0.15s;
  }
  .cal-nav-btn:hover { border-color: var(--ink-mid); color: var(--ink); }

  .cal-day-labels {
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: 4px; margin-bottom: 6px;
  }
  .cal-day-lbl {
    font-family: 'DM Mono', monospace; font-size: 7px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-mid); text-align: center; padding-bottom: 2px;
  }
  .cal-day-lbl.gold-lbl { color: var(--gold); opacity: 0.7; }
  .cal-day-lbl.sat-lbl { color: var(--gold); opacity: 0.5; }

  .cal-grid {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 20px;
  }
  .cal-week { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
  .cal-week-label {
    font-family: 'DM Mono', monospace; font-size: 7px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-soft); margin-bottom: 3px; padding-left: 2px;
  }

  /* ── CALENDAR GOAL PROGRESS STRIP ── */
  .cal-goal-strip {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 2px 14px; border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
  }
  .cal-goal-label {
    font-family: 'DM Mono', monospace; font-size: 7.5px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-mid); white-space: nowrap; flex-shrink: 0;
  }
  .cal-goal-track {
    flex: 1; height: 4px; background: rgba(0,0,0,0.06);
    border-radius: 4px; overflow: hidden; position: relative;
  }
  .cal-goal-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, rgba(120,210,120,0.7), rgba(120,210,120,1));
    transition: width 0.8s cubic-bezier(0.34,1.3,0.64,1);
  }
  .cal-goal-pct {
    font-family: 'DM Mono', monospace; font-size: 8px; font-weight: 700;
    color: rgba(120,210,120,0.9); flex-shrink: 0;
  }
  .cal-goal-target {
    font-family: 'DM Mono', monospace; font-size: 7px;
    color: var(--ink-soft); flex-shrink: 0; white-space: nowrap;
  }

  /* ── FLIP TILE SYSTEM ── */
  /* Each tile is a 3D flip card wrapper */
  .cal-tile {
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    /* perspective for 3D child */
    perspective: 600px;
    /* no overflow — the back face needs to escape for the modal */
  }

  /* The inner that actually flips */
  .cal-tile-inner {
    width: 100%; height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.45,0.05,0.55,0.95);
    border-radius: 8px;
  }
  /* Hover flips on desktop, click flips on touch */
  .cal-tile:hover .cal-tile-inner,
  .cal-tile.flipped .cal-tile-inner {
    transform: rotateY(180deg);
  }
  /* Past tiles don't flip — they just dim */
  .cal-tile.cal-past { opacity: 0.48; pointer-events: none; }
  .cal-tile.cal-past:hover .cal-tile-inner { transform: none; }

  /* ── FRONT FACE ── */
  .cal-face-front {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; overflow: hidden;
    transition: border-color 0.2s;
  }

  /* Front face variants */
  .cal-tile.cal-gold .cal-face-front {
    background: linear-gradient(145deg, #f7f2e4, #f0e8cc);
    border-color: rgba(191,160,90,0.4);
  }
  .cal-tile.cal-saturday .cal-face-front {
    background: linear-gradient(145deg, #faf5e8, #f3e9c8);
    border-color: rgba(191,160,90,0.3);
  }
  .cal-tile.cal-today .cal-face-front {
    border-color: rgba(46,71,51,0.5);
    box-shadow: 0 0 0 1.5px rgba(46,71,51,0.15) inset;
    animation: calTodayPulse 2.5s ease-in-out infinite;
  }
  @keyframes calTodayPulse {
    0%,100% { box-shadow: 0 0 0 1.5px rgba(46,71,51,0.15) inset, 0 0 0 0 rgba(120,210,120,0); }
    50%      { box-shadow: 0 0 0 1.5px rgba(46,71,51,0.15) inset, 0 0 8px 2px rgba(120,210,120,0.15); }
  }
  .cal-tile.cal-reserved .cal-face-front {
    border-color: rgba(120,210,120,0.4);
    background: rgba(120,210,120,0.03);
  }
  .cal-tile.cal-sold-out .cal-face-front {
    background: rgba(220,60,60,0.04);
    border-color: rgba(220,60,60,0.22);
  }
  .cal-tile.cal-tbd .cal-face-front {
    background: repeating-linear-gradient(45deg, var(--bg-card), var(--bg-card) 4px, rgba(0,0,0,0.015) 4px, rgba(0,0,0,0.015) 8px);
  }

  /* Coin image / emoji on front */
  .cal-coin-img {
    width: 32px; height: 32px; border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.12);
    display: block;
    flex-shrink: 0;
  }
  .cal-coin-emoji {
    font-size: 22px; line-height: 1; flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  }
  .cal-tile-date {
    font-family: 'DM Mono', monospace; font-size: 7px;
    color: var(--ink-mid); line-height: 1;
  }
  .cal-tile.cal-gold .cal-tile-date,
  .cal-tile.cal-saturday .cal-tile-date { color: rgba(191,160,90,0.7); }

  /* Front face badges */
  .cal-tile-badge {
    position: absolute; top: 3px; right: 3px;
    font-family: 'DM Mono', monospace; font-size: 5.5px;
    font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 1px 3px; border-radius: 3px;
    z-index: 2;
  }
  .cal-badge-sold    { background: rgba(220,60,60,0.12); color: rgba(200,50,50,0.85); }
  .cal-badge-limited { background: rgba(191,160,90,0.14); color: rgba(140,110,30,0.9); }
  .cal-badge-special { background: rgba(191,160,90,0.15); color: rgba(140,110,30,0.85); }

  /* User reserved check */
  .cal-tile-check {
    position: absolute; bottom: 3px; right: 3px;
    width: 11px; height: 11px; border-radius: 50%;
    background: rgba(46,71,51,0.15); border: 1px solid rgba(120,210,120,0.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 6px; color: rgba(120,210,120,0.9); z-index: 2;
  }

  /* Community count */
  .cal-tile-qty {
    position: absolute; bottom: 3px; left: 3px;
    font-family: 'DM Mono', monospace; font-size: 5.5px;
    color: var(--ink-soft); z-index: 2;
  }

  /* Delivery truck icon */
  .cal-delivery-icon {
    position: absolute; top: 3px; left: 3px;
    font-size: 9px; z-index: 2;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
  }

  /* Goal-relevant glow ring */
  .cal-tile.cal-goal-match .cal-face-front {
    box-shadow: 0 0 0 1.5px rgba(120,210,120,0.35);
  }

  /* Capacity bar at bottom of front face */
  .cal-cap-bar {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: rgba(0,0,0,0.05);
  }
  .cal-cap-fill {
    height: 100%; border-radius: 0 0 0 0;
    transition: width 0.6s ease;
  }
  .cal-cap-fill.silver { background: rgba(154,167,178,0.55); }
  .cal-cap-fill.gold   { background: rgba(191,160,90,0.7); }
  .cal-cap-fill.danger { background: rgba(220,60,60,0.6); }

  /* Saturday mystery treatment */
  .cal-mystery {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
  }
  .cal-mystery-coin {
    width: 26px; height: 26px; border-radius: 50%;
    border: 1.5px dashed rgba(191,160,90,0.35);
    background: linear-gradient(145deg, rgba(191,160,90,0.05), transparent);
    display: flex; align-items: center; justify-content: center;
    animation: mysteryShimmer 3s ease-in-out infinite;
  }
  @keyframes mysteryShimmer {
    0%,100% { border-color: rgba(191,160,90,0.25); box-shadow: none; }
    50%      { border-color: rgba(191,160,90,0.55); box-shadow: 0 0 10px rgba(191,160,90,0.2); }
  }
  .cal-mystery-q {
    font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 700;
    color: rgba(191,160,90,0.4); line-height: 1;
  }
  .cal-mystery-label {
    font-family: 'DM Mono', monospace; font-size: 5.5px; letter-spacing: 0.08em;
    text-transform: uppercase; color: rgba(191,160,90,0.45); text-align: center;
  }

  /* TBD tile */
  .cal-tbd-inner {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
  }
  .cal-tbd-dot {
    width: 16px; height: 16px; border-radius: 50%;
    background: rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.08);
  }

  /* ── BACK FACE (hover drip card) ── */
  .cal-face-back {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(180deg);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.15);
    background: #1a2420;
    overflow: hidden;
    display: flex; flex-direction: column;
    padding: 6px 7px 5px;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    z-index: 10;
  }

  /* Back face: gold drip */
  .cal-tile.cal-gold .cal-face-back {
    background: linear-gradient(160deg, #2a2010, #1e190a);
    border-color: rgba(191,160,90,0.25);
  }
  /* Back face: today */
  .cal-tile.cal-today .cal-face-back {
    border-color: rgba(120,210,120,0.3);
  }

  /* Mini drip card inside back face */
  .cb-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 4px;
  }
  .cb-day-label {
    font-family: 'DM Mono', monospace; font-size: 6px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.3);
  }
  .cb-status-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(120,210,120,0.8);
    animation: pulse 2s infinite;
  }
  .cb-status-dot.upcoming { background: rgba(191,160,90,0.7); animation: none; }
  .cb-status-dot.sold     { background: rgba(220,60,60,0.8); animation: none; }

  .cb-coin-row {
    display: flex; align-items: center; gap: 5px; margin-bottom: 3px;
  }
  .cb-coin-thumb {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
  }
  .cb-coin-emoji-sm {
    font-size: 18px; flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
  }
  .cb-coin-info { flex: 1; min-width: 0; }
  .cb-coin-name {
    font-family: 'Outfit', sans-serif; font-size: 9px; font-weight: 600;
    color: rgba(255,255,255,0.88); line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .cb-coin-sub {
    font-family: 'DM Mono', monospace; font-size: 6px;
    color: rgba(255,255,255,0.28); letter-spacing: 0.04em;
  }
  .cb-price {
    font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500;
    color: rgba(255,255,255,0.88); text-align: right; flex-shrink: 0;
    line-height: 1;
  }
  .cb-price-est {
    font-family: 'DM Mono', monospace; font-size: 5.5px;
    color: rgba(255,255,255,0.22); text-align: right;
    letter-spacing: 0.04em; margin-top: 1px;
  }

  /* Community bar */
  .cb-community {
    display: flex; align-items: center; gap: 5px; margin-bottom: 5px;
  }
  .cb-comm-label {
    font-family: 'DM Mono', monospace; font-size: 5.5px;
    color: rgba(255,255,255,0.25); letter-spacing: 0.06em; flex-shrink: 0;
  }
  .cb-comm-track {
    flex: 1; height: 3px; background: rgba(255,255,255,0.06);
    border-radius: 3px; overflow: hidden;
  }
  .cb-comm-fill {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, rgba(154,167,178,0.5), rgba(154,167,178,0.85));
    transition: width 0.5s ease;
  }
  .cb-comm-fill.gold-fill {
    background: linear-gradient(90deg, rgba(191,160,90,0.5), rgba(191,160,90,0.9));
  }
  .cb-comm-count {
    font-family: 'DM Mono', monospace; font-size: 5.5px; font-weight: 700;
    color: rgba(255,255,255,0.4); flex-shrink: 0;
  }

  /* Goal nudge */
  .cb-goal-nudge {
    display: flex; align-items: center; gap: 4px;
    background: rgba(120,210,120,0.08); border: 1px solid rgba(120,210,120,0.15);
    border-radius: 4px; padding: 3px 5px; margin-bottom: 5px;
  }
  .cb-goal-icon { font-size: 8px; flex-shrink: 0; }
  .cb-goal-text {
    font-family: 'DM Mono', monospace; font-size: 5.5px;
    color: rgba(120,210,120,0.8); letter-spacing: 0.04em; line-height: 1.3;
  }

  /* Delivery expected notice */
  .cb-delivery-row {
    display: flex; align-items: center; gap: 4px;
    background: rgba(100,150,255,0.07); border: 1px solid rgba(100,150,255,0.15);
    border-radius: 4px; padding: 3px 5px; margin-bottom: 5px;
  }
  .cb-delivery-icon { font-size: 9px; flex-shrink: 0; }
  .cb-delivery-text {
    font-family: 'DM Mono', monospace; font-size: 5.5px;
    color: rgba(130,170,255,0.85); letter-spacing: 0.04em;
  }

  /* Substitution row */
  .cb-sub-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 5px;
  }
  .cb-sub-label {
    font-family: 'DM Mono', monospace; font-size: 5.5px;
    color: rgba(255,255,255,0.28); letter-spacing: 0.04em;
  }
  .cb-sub-val {
    font-family: 'DM Mono', monospace; font-size: 5.5px;
    color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06);
    padding: 1px 4px; border-radius: 3px;
  }

  /* Action buttons */
  .cb-actions { display: flex; gap: 4px; margin-top: auto; }
  .cb-btn {
    flex: 1; font-family: 'DM Mono', monospace; font-size: 6.5px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 4px;
    border-radius: 5px; cursor: pointer; border: none;
    text-align: center; transition: all 0.15s;
  }
  .cb-btn-reserve {
    background: #2E4733; color: rgba(120,210,120,0.9);
    border: 1px solid rgba(120,210,120,0.3);
  }
  .cb-btn-reserve:hover { background: #3a5a40; }
  .cb-btn-reserved {
    background: rgba(120,210,120,0.1); color: rgba(120,210,120,0.6);
    border: 1px solid rgba(120,210,120,0.2); cursor: default;
  }
  .cb-btn-sold {
    background: rgba(220,60,60,0.08); color: rgba(200,60,60,0.6);
    border: 1px solid rgba(220,60,60,0.18); cursor: default;
  }
  .cb-btn-view {
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.08); flex: 0 0 auto; padding: 5px 6px;
  }
  .cb-btn-view:hover { background: rgba(255,255,255,0.09); }

  /* Sold-out overlay on front face */
  .cal-sold-x {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(220,60,60,0.06); z-index: 1;
    pointer-events: none;
  }
  .cal-sold-x::before, .cal-sold-x::after {
    content: ''; position: absolute;
    width: 60%; height: 1px; background: rgba(220,60,60,0.25);
    border-radius: 1px;
  }
  .cal-sold-x::before { transform: rotate(30deg); }
  .cal-sold-x::after  { transform: rotate(-30deg); }

  /* Stats */
  .cal-stats { border-top: 1px solid var(--border); padding: 14px 0 18px; }
  .cal-stats-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 10px;
  }
  .cal-stats-label {
    font-family: 'DM Mono', monospace; font-size: 8px;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mid);
  }
  .cal-stats-totals { display: flex; gap: 12px; }
  .cal-stat { font-family: 'DM Mono', monospace; font-size: 8px; }
  .cal-stat-val { color: var(--gold); font-weight: 500; }
  .cal-stat-lbl { color: var(--ink-soft); }

  .cal-bar-chart {
    display: flex; align-items: flex-end; gap: 3px;
    height: 48px; padding-bottom: 14px; position: relative;
  }
  .cal-bar-col {
    display: flex; flex-direction: column;
    align-items: center; gap: 3px; flex: 1;
    position: relative;
  }
  .cal-bar {
    width: 100%; border-radius: 2px 2px 0 0;
    min-height: 2px; transition: height 0.4s ease;
    position: absolute; bottom: 14px;
  }
  .cal-bar.silver { background: rgba(154,167,178,0.35); }
  .cal-bar.silver:hover { background: rgba(154,167,178,0.6); }
  .cal-bar.gold { background: rgba(191,160,90,0.45); }
  .cal-bar.gold:hover { background: rgba(191,160,90,0.7); }
  .cal-bar.today { background: rgba(46,71,51,0.5); border: 1px solid rgba(46,71,51,0.3); }
  .cal-bar.future { background: rgba(0,0,0,0.06); }
  .cal-bar-day {
    font-family: 'DM Mono', monospace; font-size: 6px;
    color: var(--ink-soft); position: absolute; bottom: 0;
    text-transform: uppercase; letter-spacing: 0.06em;
  }


/* ── Drip Card Modal ─────────────────────────────────────── */
.drip-card-modal {
  width: 680px;
  max-width: 96vw;
  padding: 18px 18px 14px;
  border-radius: 22px;
}
.drip-card-modal .modal-close {
  top: 10px; right: 10px;
}
.drip-card-modal .dc-price-block {
  padding-right: 28px;
}
.dcm-reserve-btn { cursor: pointer; }
.dcm-reserve-btn.reserved-btn {
  background: rgba(74,222,128,0.15) !important;
  border: 1px solid rgba(74,222,128,0.3) !important;
  color: #4ade80 !important;
  cursor: default;
}
.dcm-reserve-btn:disabled { opacity: 0.55; cursor: default; }
.dcm-coin-visual img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 50%;
}
.dcm-recap {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.dcm-recap-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dcm-recap-row:last-child { border-bottom: none; }
.dcm-recap-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px; color: var(--ink-mid);
}
.dcm-recap-val {
  font-family: 'DM Mono', monospace;
  font-size: 9px; color: var(--ink);
}

/* ── Gift Modal ── */
.gift-modal {
  padding: 28px 28px 22px;
}
.gift-modal-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.gift-modal-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(191,160,90,0.14), rgba(191,160,90,0.04));
  border: 1px solid rgba(191,160,90,0.2);
  flex-shrink: 0;
}
.gift-section {
  margin-bottom: 18px;
}
.gift-section-label {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.gift-section-num {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 9px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Coin selector */
.gift-coin-select {
  font-size: 14px !important;
  padding: 11px 36px 11px 14px !important;
}
.gift-coin-info {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.gift-coin-info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px 0;
}
.gift-coin-info-detail {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.06em;
  color: var(--ink-mid);
}
.gift-coin-info-price {
  font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
}
.gift-coin-info-basis {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* Quantity row */
.gift-qty-row {
  display: flex; align-items: center; justify-content: space-between;
}
.gift-qty-controls {
  display: flex; align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.gift-qty-btn {
  width: 40px; height: 40px;
  background: none; border: none;
  font-size: 18px; font-weight: 300;
  color: var(--ink-mid);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.gift-qty-btn:hover {
  background: var(--border);
  color: var(--ink);
}
.gift-qty-val {
  font-family: 'DM Mono', monospace;
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  min-width: 32px;
  text-align: center;
}
.gift-qty-total {
  font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
}

/* Delivery calculator */
.gift-delivery-calc {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(46,71,51,0.06);
  border: 1px solid rgba(46,71,51,0.12);
}
.gift-delivery-calc-row {
  display: flex; align-items: center; gap: 8px;
}
.gift-delivery-calc-icon { font-size: 13px; flex-shrink: 0; }
.gift-delivery-calc-text {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1.5;
}
.gift-delivery-calc.warning {
  background: rgba(239,68,68,0.05);
  border-color: rgba(239,68,68,0.15);
}
.gift-delivery-calc.warning .gift-delivery-calc-text {
  color: #b91c1c;
}

/* Note */
.gift-note-input {
  resize: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px !important;
  line-height: 1.5;
}

/* Order summary */
.gift-order-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.gift-order-summary-title {
  font-family: 'DM Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
  color: var(--ink-mid);
  margin-bottom: 10px;
}
.gift-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0;
}
.gift-summary-row + .gift-summary-row {
  border-top: 1px solid var(--border);
}
.gift-summary-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.gift-summary-val {
  font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 400;
  color: var(--ink);
}
.gift-summary-total {
  margin-top: 4px;
  padding-top: 8px !important;
  border-top: 1px solid var(--ink) !important;
}
.gift-summary-total .gift-summary-val {
  font-weight: 600; font-size: 14px;
}

/* Submit button */
.gift-submit-btn {
  background: linear-gradient(135deg, #BFA05A 0%, #A8893D 100%) !important;
  color: #fff !important;
}
.gift-submit-btn:hover {
  background: linear-gradient(135deg, #C8A84B 0%, #B8922A 100%) !important;
  box-shadow: 0 4px 16px rgba(191,160,90,0.25) !important;
}
.gift-submit-btn.sent {
  background: rgba(74,222,128,0.15) !important;
  border: 1px solid rgba(74,222,128,0.3) !important;
  color: #4ade80 !important;
  cursor: default;
  pointer-events: none;
}

.gift-fine-print {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
}

/* ── DripStack Gives Back Modal ── */
.gives-back-modal {
  padding: 28px 28px 22px;
}
.gb-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.gb-header-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(46,71,51,0.12), rgba(46,71,51,0.04));
  border: 1px solid rgba(46,71,51,0.18);
  flex-shrink: 0;
}

/* Charity card */
.gb-charity-card {
  background: linear-gradient(135deg, rgba(46,71,51,0.06) 0%, rgba(46,71,51,0.02) 100%);
  border: 1px solid rgba(46,71,51,0.12);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.gb-charity-quarter {
  font-family: 'DM Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.gb-charity-name {
  font-family: 'Outfit', sans-serif;
  font-size: 18px; font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.gb-charity-mission {
  font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.5;
}

/* Impact grid */
.gb-impact-grid {
  display: flex; align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
  margin-bottom: 18px;
}
.gb-impact-stat {
  flex: 1; text-align: center;
}
.gb-impact-val {
  font-family: 'Outfit', sans-serif;
  font-size: 20px; font-weight: 500;
  color: var(--accent);
}
.gb-impact-label {
  font-family: 'DM Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: 2px;
}
.gb-impact-sub {
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 1px;
}
.gb-impact-divider {
  width: 1px; height: 36px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 4px;
}

/* How it works */
.gb-how {
  margin-bottom: 16px;
}
.gb-how-title {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.gb-how-text {
  font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.6;
}

/* Past quarters */
.gb-past {
  margin-bottom: 18px;
}
.gb-past-title {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.gb-past-empty {
  font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 300;
  color: var(--ink-soft);
  font-style: italic;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.gb-past-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
}
.gb-past-item-name {
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 400;
  color: var(--ink);
}
.gb-past-item-quarter {
  font-family: 'DM Mono', monospace;
  font-size: 8px; color: var(--ink-soft);
}
.gb-past-item-amount {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--accent);
}

/* Suggest a charity */
.gb-suggest {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.gb-suggest-title {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.gb-suggest-row {
  display: flex; gap: 8px;
}
.gb-suggest-row .form-input {
  flex: 1;
  font-size: 14px;
  padding: 10px 14px;
}
.gb-suggest-btn {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none; border-radius: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.gb-suggest-btn:hover {
  background: #1e3526;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46,71,51,0.2);
}
.gb-suggest-thanks {
  font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 300;
  color: var(--accent);
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(46,71,51,0.06);
  border: 1px solid rgba(46,71,51,0.12);
  border-radius: 8px;
}

/* Gives back line in past drip recap */
.dcm-recap-givesback {
  margin-top: 4px;
  padding-top: 8px !important;
  border-top: 1px solid var(--border) !important;
}
.dcm-recap-givesback .dcm-recap-val {
  color: var(--accent);
  font-weight: 500;
}

  /* ── SPLASH / LOADING SCREEN ── */
  #splash-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity 0.45s ease, visibility 0.45s ease;
  }
  #splash-screen.fade-out {
    opacity: 0; visibility: hidden; pointer-events: none;
  }
  .splash-logo {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 32px;
    animation: splashFadeIn 0.6s ease both;
  }
  .splash-logo-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, rgba(200,216,224,0.3), rgba(191,160,90,0.15));
    border: 1px solid rgba(191,160,90,0.2);
    display: flex; align-items: center; justify-content: center;
  }
  .splash-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 26px; font-weight: 300;
    color: var(--ink); letter-spacing: 0.01em;
  }
  .splash-tagline {
    font-family: 'DM Mono', monospace;
    font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink-soft);
    margin-bottom: 40px;
    animation: splashFadeIn 0.6s 0.15s ease both;
  }
  .splash-progress {
    width: 140px; height: 2px;
    background: var(--border); border-radius: 2px;
    overflow: hidden;
    animation: splashFadeIn 0.6s 0.3s ease both;
  }
  .splash-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--silver), var(--gold));
    border-radius: 2px;
    animation: splashLoad 2.4s 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .splash-status {
    font-family: 'DM Mono', monospace;
    font-size: 9px; letter-spacing: 0.06em;
    color: var(--ink-soft); margin-top: 14px;
    animation: splashFadeIn 0.6s 0.4s ease both;
    opacity: 0;
  }
  @keyframes splashFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes splashLoad {
    0%   { width: 0%; }
    20%  { width: 25%; }
    50%  { width: 55%; }
    80%  { width: 80%; }
    100% { width: 95%; }
  }

  /* Hide main app content until splash dismissed */
  #app-root {
    opacity: 0;
    transition: opacity 0.35s ease 0.1s;
  }
  #app-root.app-ready {
    opacity: 1;
  }


/* ── Founding member meter ── */
.wm-meter {
  margin: 20px 0 0;
}
.wm-meter-compact {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0 0;
}
.wm-meter-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.wm-meter-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-light);
}
.wm-meter-compact .wm-meter-count {
  font-size: 20px;
}
.wm-meter-of {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mid);
}
.wm-meter-remaining {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
}
.wm-meter-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.wm-meter-compact .wm-meter-track {
  height: 6px;
  border-radius: 3px;
}
.wm-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #B8C8D4, #C8A84B);
  transition: width 0.6s ease;
}
.wm-meter-status {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  text-align: center;
  margin-top: 8px;
}
.wm-meter-compact .wm-meter-status {
  margin-top: 6px;
}

/* ── Social links row ── */
.bottom-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 12px;
}
.bottom-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink-mid);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  transition: all 0.2s;
}
.bottom-social-link:hover {
  color: var(--ink-light);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

/* ── NCBA member badge ── */
.ncba-badge {
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
}
.ncba-logo {
  width: 56px;
  height: auto;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.ncba-logo:hover {
  opacity: 0.85;
}
