@keyframes spin{to{transform:rotate(360deg)}}
  /* ══════════════════════════════════
     TYVM UI UPGRADE — injected patch
     ══════════════════════════════════ */

  /* ── Google font ── */
  

  :root {
    /* ── PATCH: unified design tokens ── */
    --radius-sm:   6px;
    --radius-md:   8px;
    --radius-lg:  12px;
    --radius-xl:  16px;
    --radius-2xl: 18px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --fw-normal: 400;
    --fw-medium: 500;
    /* typography scale */
    --text-xs:   11px;
    --text-sm:   13px;
    --text-base: 14px;
    --text-md:   15px;
    --text-lg:   18px;
    --text-xl:   22px;
    --text-2xl:  28px;
    --text-3xl:  34px;
    --text-hero: 54px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --black: #0a0a0a;
    --off-white: #f7f6f3;
  }

  body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    background: #f4f3f0;
  }

  /* ── NAV ── */
  .nav {
    padding: 0 2rem;
    height: 52px;
    border-bottom: 0.5px solid #e8e7e3;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .logo-text { font-size: 15px; letter-spacing: -0.4px; }
  .logo-icon { border-radius: 8px; }

  .btn-primary {
    background: var(--black);
    border-radius: var(--radius-md);
    font-size: 13px;
    padding: 8px 16px;
    letter-spacing: -0.2px;
  }
  .btn-primary:hover { background: #1a1a1a; }
  .btn-outline {
    border-radius: var(--radius-md);
    font-size: 13px;
    padding: 8px 16px;
    border-color: #d8d7d3;
    letter-spacing: -0.2px;
  }

  /* ── HERO ── */
  .hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 100%) !important;
    padding: 72px 2rem 60px !important;
    position: relative;
    overflow: visible;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(ellipse at 15% 50%, rgba(255,255,255,0.04) 0%, transparent 55%),
      radial-gradient(ellipse at 85% 10%, rgba(255,255,255,0.025) 0%, transparent 45%);
    pointer-events: none;
  }
  .hero-badge {
    background: rgba(255,255,255,0.08) !important;
    border: 0.5px solid rgba(255,255,255,0.14) !important;
    color: rgba(255,255,255,0.6) !important;
    font-size: 11px !important;
    letter-spacing: 0.2px;
  }
  .hero h1 {
    font-size: 54px !important;
    color: #fff !important;
    letter-spacing: -2px !important;
    line-height: 1.05 !important;
    font-weight: 500 !important;
  }
  .hero h1 em {
    color: transparent !important;
    -webkit-text-stroke: 1px rgba(255,255,255,0.38);
    font-style: normal;
  }
  .hero p {
    color: rgba(255,255,255,0.48) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
  .hero-cta .btn-primary {
    background: #fff !important;
    color: var(--black) !important;
    padding: 13px 24px !important;
    font-size: 14px !important;
    font-weight: 500;
    border-radius: var(--radius-md) !important;
  }
  .hero-cta .btn-primary:hover { background: #f0efec !important; }
  .hero-cta .btn-outline {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.14) !important;
    color: rgba(255,255,255,0.65) !important;
    border-radius: var(--radius-md) !important;
    padding: 13px 24px !important;
    font-size: 14px !important;
  }
  .hero-cta .btn-outline:hover { background: rgba(255,255,255,0.1) !important; }

  /* mockup card inside hero */
  .mockup-card {
    border: 0.5px solid rgba(255,255,255,0.1) !important;
    background: #141414 !important;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5) !important;
    border-radius: var(--radius-2xl) !important;
  }
  .mockup-cover {
    background-image: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
    background-color: #1a1a1a !important;
    position: relative;
    overflow: visible;
  }
  .mockup-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 1px,
      transparent 0,
      transparent 50%
    );
    background-size: 6px 6px;
  }
  .mockup-name { color: #f0f0f0 !important; }
  .mockup-handle { color: #666 !important; }
  .mockup-bio { color: #555 !important; }
  .mockup-tip { background: #1e1e1e !important; border-radius: 10px; }
  .mockup-tip-title { color: #ccc !important; }
  .mockup-amt { background: #222 !important; border-color: #333 !important; color: #888 !important; border-radius: 6px !important; }
  .mockup-amt.active { border-color: #fff !important; background: #2a2a2a !important; color: #fff !important; }
  .mockup-btn { background: #fff !important; color: #0a0a0a !important; border-radius: 7px !important; font-weight: 500 !important; }
  .mockup-notification {
    background: #1a1a1a !important;
    border-color: #333 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
  }
  .mockup-notif-text { color: #f0f0f0 !important; }
  .mockup-notif-text span { color: #666 !important; }
  .mockup-notif-dot { background: #4ade80 !important; }

  /* ── CREATOR STRIP ── */
  .creator-strip {
    background: var(--off-white) !important;
    border-color: #e8e7e3 !important;
    font-size: 12px !important;
    letter-spacing: 0.1px;
    padding: 0.6rem 2rem !important;
  }

  /* ── FEATURES ── */
  .features { background: #f4f3f0; padding: 5rem 2rem !important; }
  .section-label { font-size: var(--text-xs) !important; letter-spacing: 0.8px; text-transform: uppercase; }
  .section-title { font-size: var(--text-2xl) !important; letter-spacing: -0.8px !important; font-weight: 500 !important; }
  .feature-grid { gap: 10px !important; }
  .feature-card {
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    border-color: #e8e7e3 !important;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .feature-card:hover {
    border-color: #ccc !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  }
  .feature-card h3 { font-size: 14px !important; letter-spacing: -0.2px; }
  .feature-card p { font-size: 13px !important; }
  /* accent tops on feature cards */
  .feature-card:nth-child(1) { border-top: 2px solid var(--black) !important; }
  .feature-card:nth-child(2) { border-top: 2px solid #534AB7 !important; }
  .feature-card:nth-child(3) { border-top: 2px solid #3B6D11 !important; }
  .feature-card:nth-child(4) { border-top: 2px solid #185FA5 !important; }
  .feature-card:nth-child(5) { border-top: 2px solid #993556 !important; }
  .feature-card:nth-child(6) { border-top: 2px solid #854F0B !important; }

  /* ── HOW IT WORKS ── */
  .how { background: var(--off-white) !important; border-color: #e8e7e3 !important; }
  .step { border-radius: var(--radius-lg) !important; border-color: #e8e7e3 !important; padding: 1.25rem 1.5rem !important; }
  .step-num {
    background: var(--black) !important;
    border-radius: var(--radius-md) !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }
  .step-body h4 { font-size: 14px !important; letter-spacing: -0.2px; }
  .step-body p { font-size: 13px !important; }

  /* ── PRICING ── */
  .pricing { background: #f4f3f0; }
  .plans { gap: 12px !important; }
  .plan {
    border-radius: var(--radius-xl) !important;
    border-color: #e8e7e3 !important;
    padding: 1.75rem !important;
  }
  .plan.featured {
    background: var(--black) !important;
    border-color: var(--black) !important;
  }
  .plan.featured h3,
  .plan.featured .price,
  .plan.featured p,
  .plan.featured ul li { color: rgba(255,255,255,0.7) !important; }
  .plan.featured .price { color: #fff !important; }
  .plan.featured ul li i { color: #4ade80 !important; }
  .plan.featured .btn-full {
    background: #fff !important;
    color: var(--black) !important;
  }
  .plan h3 { font-size: 15px !important; letter-spacing: -0.2px; }
  .plan .price { font-size: 30px !important; letter-spacing: -1px !important; }
  .plan-badge {
    background: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.7) !important;
    border: none !important;
    font-size: 10px !important;
    letter-spacing: 0.5px;
  }
  .btn-full {
    border-radius: var(--radius-md) !important;
    font-size: 14px !important;
    letter-spacing: -0.2px;
    padding: 12px !important;
  }

  /* ── CTA ── */
  .cta-section { background: linear-gradient(135deg, #0a0a0a 0%, #0d1a2e 100%) !important; padding: 5rem 2rem !important; }
  .cta-section h2 { font-size: 34px !important; letter-spacing: -1px !important; }
  .cta-section p { color: rgba(255,255,255,0.5) !important; }
  .btn-white { border-radius: var(--radius-md) !important; font-size: 14px !important; letter-spacing: -0.2px; }

  /* ── FOOTER ── */
  .footer { background: var(--off-white) !important; border-color: #e8e7e3 !important; }
  .footer-note, .footer-links a { font-size: 12px !important; }

  /* ── WAITLIST BAR ── */
  #waitlist-bar { background: linear-gradient(90deg, #111 0%, #1a1040 100%) !important; }
  #waitlist-bar span { letter-spacing: -0.1px; }
  #waitlist-email { border-radius: 6px !important; font-size: 13px !important; }
  #waitlist-bar button { background: #fff !important; color: var(--black) !important; border-radius: 6px !important; font-size: 13px !important; }

  /* ── AUTH SCREENS ── */
  .auth-left { background: var(--black) !important; }
  .auth-title { font-size: 20px !important; letter-spacing: -0.4px !important; }
  .auth-sub { font-size: 13px !important; }
  .social-btn { border-radius: 8px !important; font-size: 13px !important; border-color: #e8e7e3 !important; }
  .social-btn:hover { background: #f7f6f3 !important; }
  .input-group input, .input-group textarea {
    border-radius: 8px !important;
    font-size: 14px !important;
    border-color: #e0dfdb !important;
    background: linear-gradient(145deg, #ffffff 0%, #fafaf8 100%) !important;
    padding: 11px 12px !important;
  }
  .input-group input:focus, .input-group textarea:focus { border-color: var(--black) !important; }
  .input-prefix { border-color: #e0dfdb !important; border-radius: 8px !important; }
  .input-prefix span { background: #f7f6f3 !important; font-size: 12px !important; }
  .cat-btn { border-radius: var(--radius-md) !important; font-size: 12px !important; border-color: #e0dfdb !important; }
  .cat-btn.selected { background: var(--black) !important; color: #fff !important; border-color: var(--black) !important; }
  .dot.active { background: var(--black) !important; }

  /* ── DASHBOARD ── */
  .dashboard { background: #f4f3f0 !important; }
  .dash-nav {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: #e8e7e3 !important;
    height: 52px;
    padding: 0 2rem !important;
  }
  .dash-greeting { font-size: 20px !important; letter-spacing: -0.5px !important; }
  .stat-card { border-radius: var(--radius-lg) !important; border-color: #e8e7e3 !important; padding: 1.25rem !important; }
  .stat-label { font-size: 11px !important; letter-spacing: 0.5px; }
  .stat-value { font-size: 26px !important; letter-spacing: -1px !important; }
  .dash-card { border-radius: var(--radius-lg) !important; border-color: #e8e7e3 !important; }
  .dash-card h3 { font-size: 14px !important; letter-spacing: -0.2px; }
  .quick-link { border-radius: var(--radius-md) !important; border-color: #e8e7e3 !important; }
  .quick-link:hover { background: #f7f6f3 !important; }
  .quick-link-text { font-size: 13px !important; }

  /* ── CREATOR PAGE ── */
  .creator-page { background: #F0F7F1 !important; }
  .creator-cover {
    background-color: var(--black) !important;
    position: relative;
    overflow: visible;
  }
  .creator-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.025) 0,
      rgba(255,255,255,0.025) 1px,
      transparent 0,
      transparent 50%
    );
    background-size: 8px 8px;
    pointer-events: none;
  }
  .creator-avatar { background: var(--black) !important; }
  .creator-name { font-size: 20px !important; letter-spacing: -0.5px !important; }
  .tip-card { border-radius: var(--radius-lg) !important; border-color: #e8e7e3 !important; }
  .tip-card h3 { font-size: 15px !important; letter-spacing: -0.3px; }
  .tip-amt { border-radius: var(--radius-md) !important; border-color: #e0dfdb !important; font-size: 13px !important; }
  .tip-amt:hover, .tip-amt.selected { border-color: var(--black) !important; background: #f0f0ed !important; color: var(--black) !important; }
  .post-card { border-radius: var(--radius-lg) !important; border-color: #e8e7e3 !important; }
  .post-card h4 { font-size: 14px !important; letter-spacing: -0.2px; }
  .post-card p { font-size: 13px !important; }

  /* ── MODALS ── */
  .modal, .edit-modal, .qr-modal, .tip-amounts-modal {
    border-radius: var(--radius-2xl) !important;
    border: 0.5px solid #e8e7e3;
  }
  .modal-header h3, .edit-modal h3 { font-size: 15px !important; letter-spacing: -0.3px; }
  .modal-close { border-radius: 50% !important; }
  .modal-amt { border-radius: var(--radius-md) !important; border-color: #e0dfdb !important; font-size: 14px !important; }
  .modal-amt.selected { border-color: var(--black) !important; background: #f0f0ed !important; color: var(--black) !important; }
  .modal-pay-btn { border-radius: var(--radius-md) !important; font-size: 14px !important; letter-spacing: -0.2px; background: var(--black) !important; }
  .modal-footer { background: #f7f6f3 !important; border-color: #e8e7e3 !important; }
  .modal-success-icon { background: #EAF3DE !important; }

  /* ── PAYOUT BANNER ── */
  .payout-banner {
    background: var(--black) !important;
    border-color: var(--black) !important;
    border-radius: var(--radius-lg) !important;
  }
  .payout-banner p, .payout-banner strong { color: rgba(255,255,255,0.7) !important; }
  .payout-banner strong { color: #fff !important; }
  .payout-banner .btn-primary { background: #fff !important; color: var(--black) !important; }

  /* ── SETUP BANNER ── */
  .setup-banner { background: #f0efec !important; border-color: #e0dfdb !important; }
  .setup-step { background: #fff !important; border-color: #e0dfdb !important; font-size: 11px !important; }
  .setup-step.done { background: var(--black) !important; border-color: var(--black) !important; color: #fff !important; }

  /* ── MEMBERSHIP TIERS ── */
  .membership-tier-card { border-radius: var(--radius-lg) !important; border-color: #e8e7e3 !important; }
  .membership-tier-card.featured-tier { border: 2px solid var(--black) !important; }
  .tier-name { font-size: 14px !important; letter-spacing: -0.2px; }
  .tier-price { font-size: 18px !important; letter-spacing: -0.5px; }

  /* ── DARK MODE PATCHES ── */
  body.dark { background: #111 !important; }
  body.dark .hero { background: #050505 !important; }
  body.dark .features { background: #111 !important; }
  body.dark .how { background: #161616 !important; }
  body.dark .pricing { background: #111 !important; }
  body.dark .creator-page { background: #111 !important; }
  body.dark .dashboard { background: #111 !important; }
  body.dark .feature-card { border-color: #222 !important; }
  body.dark .step { border-color: #222 !important; }
  body.dark .stat-card { border-color: #222 !important; }
  body.dark .dash-card { border-color: #222 !important; }
  body.dark .plan { border-color: #222 !important; }
  body.dark .plan.featured { background: #fff !important; }
  body.dark .plan.featured h3,
  body.dark .plan.featured p,
  body.dark .plan.featured ul li { color: #444 !important; }
  body.dark .plan.featured .price { color: var(--black) !important; }
  body.dark .plan.featured .plan-badge { background: #f0f0ed !important; color: #555 !important; }
  body.dark .plan.featured .btn-full { background: var(--black) !important; color: #fff !important; }
  body.dark .tip-card { border-color: #222 !important; }
  body.dark .post-card { border-color: #222 !important; }
  body.dark .modal { background: #161616 !important; border-color: #222 !important; }
  body.dark .edit-modal { background: #161616 !important; border-color: #222 !important; }
  body.dark .modal-footer { background: #111 !important; border-color: #222 !important; }
  body.dark .nav { background: rgba(17,17,17,0.92) !important; border-color: #222 !important; }
  body.dark .dash-nav { background: rgba(17,17,17,0.92) !important; border-color: #222 !important; }
  body.dark .footer { background: #161616 !important; border-color: #222 !important; }
  body.dark .payout-banner { background: #1a1a1a !important; border-color: #333 !important; }
  body.dark .creator-cover { background-color: #0a0a0a !important; }

  
  /* ── PATCH: creator strip alignment ── */
  .creator-strip {
    background: #f4f3f0 !important;
    border-color: #e8e7e3 !important;
    color: var(--color-text-secondary) !important;
    letter-spacing: 0.05px !important;
  }
  .creator-strip strong { color: var(--color-text-primary) !important; }

  /* ── PATCH: nav + inputs ── */
  .nav, .dash-nav { height: 52px !important; }
  .input-group input,
  .input-group textarea,
  .modal-custom,
  .modal-message,
  .tip-message {
    border-radius: var(--radius-md) !important;
    font-size: var(--text-base) !important;
  }
  .input-prefix { border-radius: var(--radius-md) !important; }
  /* plan badge uniform */
  .plan-badge { border-radius: 999px !important; font-size: var(--text-xs) !important; }
  /* social btn */
  .social-btn { border-radius: var(--radius-md) !important; font-size: var(--text-sm) !important; }
  /* hero badge */
  .hero-badge { font-size: var(--text-xs) !important; }
  /* step-num circle (not rounded-square) */
  .step-num { border-radius: 50% !important; width: 28px !important; height: 28px !important; }
  /* mockup notification */
  .mockup-notification { border-radius: var(--radius-lg) !important; }
  /* modal close button */
  .modal-close { border-radius: 50% !important; }
  /* back-link */
  .back-link { font-size: var(--text-sm) !important; }

  
  /* ── PATCH 3: creator page layout ── */
  @media (max-width: 768px) {
    .creator-body { grid-template-columns: 1fr !important; }
    .tip-card { position: static !important; }
    .posts-area { margin-top: 0 !important; }
  }
  @media (max-width: 640px) {
    #creator-features-grid { grid-template-columns: 1fr !important; }
    #products-shoutout-grid { grid-template-columns: 1fr !important; }
  }
  /* posts-area card matches tip-card visually */
  .posts-area {
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
  }
  body.dark .posts-area {
    background: #242424;
    border-color: #2e2e2e;
  }
  /* analytics sidebar link badge */
  #nav-analytics .dash-sidebar-label::after {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: #1d9bf0;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
  }

  
  /* ── THANK YOU OVERLAY ── */
  .thankyou-overlay {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .thankyou-overlay.open {
    opacity: 1;
    pointer-events: all;
  }
  .thankyou-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
  }
  .thankyou-confetti {
    position: absolute;
    top: -60px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    animation: confettiFall 1s ease forwards;
    pointer-events: none;
  }
  @keyframes confettiFall {
    from { transform: translateY(-40px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
  }
  .thankyou-title {
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.8px;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .thankyou-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    text-align: center;
    line-height: 1.6;
    max-width: 360px;
    margin-bottom: 2rem;
  }
  .thankyou-amount-badge {
    background: rgba(255,255,255,0.1);
    border: 0.5px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: -0.3px;
  }
  .thankyou-share-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  .thankyou-close {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 8px 16px;
    border: none;
    background: none;
    font-family: var(--font-sans);
  }
  .thankyou-close:hover { color: rgba(255,255,255,0.7); }

  .thankyou-continue-btn {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border: 0.5px solid rgba(255,255,255,0.15);
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0px;
    overflow: hidden;
  }
  .thankyou-continue-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transform: translateY(-1px);
    gap: 8px;
    padding-right: 18px;
  }
  .thankyou-continue-btn::after {
    content: '→';
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.2s ease;
    font-size: 16px;
  }
  .thankyou-continue-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
  }
  .thankyou-continue-btn:active {
    transform: translateY(0);
    box-shadow: none;
  }



  /* ── GOAL METER ── */
  .goal-meter-wrap {
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: var(--radius-lg, 12px);
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  .goal-meter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
  }
  .goal-meter-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
  }
  .goal-meter-pct {
    font-size: 13px;
    font-weight: 600;
    color: #3B6D11;
  }
  .goal-meter-track {
    height: 8px;
    background: var(--color-background-tertiary, #f0f0ed);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
  }
  .tyvm-av-0{background:#E8F4FD;color:#1A6FA8}
  .tyvm-av-1{background:#EAF3DE;color:#3B6D11}
  .tyvm-av-2{background:#EEEDFE;color:#534AB7}
  .tyvm-av-3{background:#FBEAF0;color:#993556}
  .tyvm-av-4{background:#FFF3E0;color:#854F0B}
  .tyvm-av-5{background:#F0FDF4;color:#166534}
  .tyvm-av-6{background:#FEF3C7;color:#92400E}
  .tyvm-av-7{background:#F3E8FF;color:#7C3AED}

  .goal-meter-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3B6D11 0%, #5a9e1a 100%);
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 4px;
  }
  .goal-meter-fill.complete {
    background: #3B6D11;
  }
  .goal-meter-sub {
    font-size: 12px;
    color: var(--color-text-secondary);
  }
  body.dark .goal-meter-wrap {
    background: #242424;
    border-color: #2e2e2e;
  }
  body.dark .goal-meter-track {
    background: #333;
  }
  body.dark .goal-meter-fill {
    background: #fff;
  }



  /* ── VERIFIED BADGE ── */
  .verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 5px;
    vertical-align: middle;
    flex-shrink: 0;
    position: relative;
    top: -1px;
  }
  .verified-badge svg {
    width: 18px;
    height: 18px;
  }
  /* Larger on creator name */
  .creator-name .verified-badge {
    width: 22px;
    height: 22px;
    top: -2px;
  }
  .creator-name .verified-badge svg {
    width: 22px;
    height: 22px;
  }
  /* Tooltip */
  .verified-badge::after {
    content: 'Verified creator';
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #0a0a0a;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    font-family: var(--font-sans);
  }
  .verified-badge:hover::after {
    opacity: 1;
  }



  /* ── EMERALD CREATOR PAGE THEME ── */
  .creator-page .btn-full { background: #2E7D32 !important; }
  .creator-page .btn-full:hover { background: #1B5E20 !important; }
  .creator-page .modal-pay-btn { background: #2E7D32 !important; }
  .creator-page .modal-pay-btn:hover { background: #1B5E20 !important; }
  .creator-page .tip-amt:hover,
  .creator-page .tip-amt.selected { border-color: #2E7D32 !important; color: #2E7D32 !important; background: #EBF5EC !important; }
  .creator-page .goal-meter-pct { color: #2E7D32 !important; }
/* END UPGRADE */



  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { overflow-x: hidden; max-width: 100%; }
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #F5F5F3; --color-background-primary: #fff; --color-background-secondary: #F5F5F3; --color-background-tertiary: #EFEFED; --color-text-primary: #1a1a1a; --color-text-secondary: #6b6b6b; --color-border-secondary: #e0e0e0; --color-border-tertiary: #ebebeb; --border-radius-md: 8px; --border-radius-lg: 12px; --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

  .nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; background: var(--color-background-primary); border-bottom: 0.5px solid var(--color-border-tertiary); position: sticky; top: 0; z-index: 10; gap: 8px; }
  .logo-mark { display: flex; align-items: center; gap: 10px; }
  .logo-icon { width: 36px; height: 36px; background: #111111; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .logo-icon svg { width: 22px; height: 22px; }
  .logo-text { font-size: 18px; font-weight: 500; color: var(--color-text-primary); letter-spacing: -0.3px; }
  .logo-text span { color: #111111; }
  .nav-links { display: flex; gap: 1.5rem; align-items: center; }
  .nav-links a { font-size: 14px; color: var(--color-text-secondary); text-decoration: none; }
  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { width: 22px; height: 2px; background: var(--color-text-primary); border-radius: 2px; transition: all 0.2s; display: block; }
.mobile-menu { display: none; position: fixed; inset: 0; background: #fff; z-index: 50; flex-direction: column; padding: 1.5rem 2rem; gap: 1rem; }
.mobile-menu.open { display: flex; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mobile-menu a { font-size: 18px; color: var(--color-text-primary); text-decoration: none; padding: 0.75rem 0; border-bottom: 0.5px solid var(--color-border-tertiary); }
  .nav-links a:hover { color: var(--color-text-primary); }
  .btn-primary { background: #111111; color: #fff; border: none; padding: 8px 18px; border-radius: var(--border-radius-md); font-size: 14px; cursor: pointer; font-family: var(--font-sans); }
  .btn-primary:hover { background: #333333; }
  .btn-outline { background: transparent; color: var(--color-text-primary); border: 0.5px solid var(--color-border-secondary); padding: 8px 18px; border-radius: var(--border-radius-md); font-size: 14px; cursor: pointer; font-family: var(--font-sans); }
  .btn-outline:hover { background: var(--color-background-secondary); }

   .hero { padding: 5rem 2rem 4rem; text-align: left; background: var(--color-background-primary); overflow: visible; }
   .hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 420px; gap: 4rem; align-items: center; min-height: 520px; overflow: visible; }
  .hero-badge { display: inline-flex; }
  .hero-mockup { position: relative; padding-top: 30px; }
  .mockup-card { background: #fff; border: 0.5px solid var(--color-border-tertiary); border-radius: 16px; overflow: visible; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
  .mockup-cover { height: 80px; background: linear-gradient(135deg, #111111 0%, #555555 100%); overflow: visible; position: relative; z-index: 0; }
  .mockup-profile { padding: 0 1.25rem 1.25rem; position: relative; z-index: 1; }
  .mockup-avatar { width: 52px; height: 52px; border-radius: 50%; background: #111111; border: 3px solid #fff; margin-top: -26px; overflow: visible; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; font-weight: 500; margin-bottom: 0.5rem; }
  .mockup-name { font-size: 15px; font-weight: 500; color: #1a1a1a; }
  .mockup-handle { font-size: 11px; color: #6b6b6b; margin-bottom: 0.4rem; }
  .mockup-bio { font-size: 11px; color: #6b6b6b; line-height: 1.5; margin-bottom: 1rem; }
  .mockup-tip { background: #F5F5F3; border-radius: 10px; padding: 1rem; }
  .mockup-tip-title { font-size: 12px; font-weight: 500; color: #1a1a1a; margin-bottom: 0.6rem; }
  .mockup-amounts { display: flex; gap: 6px; margin-bottom: 0.75rem; }
  .mockup-amt { flex: 1; padding: 6px; border: 0.5px solid #e0e0e0; border-radius: 6px; text-align: center; font-size: 11px; color: #6b6b6b; background: #fff; }
  .mockup-amt.active { border-color: #111111; background: #f5f5f5; color: #111111; }
  .mockup-btn { width: 100%; padding: 8px; background: #111111; color: #fff; border: none; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; }
  .mockup-notification { position: absolute; bottom: -16px; right: -16px; background: #fff; border: 0.5px solid var(--color-border-tertiary); border-radius: 10px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); min-width: 200px; animation: floatIn 0.6s ease forwards, floatBob 3s ease-in-out 0.6s infinite; }
@keyframes floatIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
  .mockup-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #3B6D11; flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }
  .mockup-notif-text { font-size: 12px; color: #1a1a1a; transition: opacity 0.3s; }
  .mockup-notif-text span { color: #6b6b6b; font-size: 11px; display: block; }
  @media (max-width: 768px) {
    .hero { text-align: center; }
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-badge { display: inline-flex; }
    .hero-mockup { display: none; }
  }
  .hero-badge { display: inline-flex; align-items: center; gap: 6px; background: #f5f5f5; color: #111111; font-size: 12px; padding: 4px 12px; border-radius: 999px; margin-bottom: 1.5rem; border: 0.5px solid #cccccc; }
  .hero h1 { font-size: 52px; font-weight: 500; color: var(--color-text-primary); line-height: 1.15; letter-spacing: -1px; max-width: 700px; margin: 0 0 1rem; }
  .hero h1 em { color: #111111; font-style: normal; }
  .hero p { font-size: 18px; color: var(--color-text-secondary); max-width: 520px; margin: 0 0 2rem; line-height: 1.6; }
  .hero-cta { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
  .btn-big { padding: 13px 28px; font-size: 15px; border-radius: var(--border-radius-md); cursor: pointer; font-family: var(--font-sans); font-weight: 500; }

  .creator-strip { background: var(--color-background-secondary); border-top: 0.5px solid var(--color-border-tertiary); border-bottom: 0.5px solid var(--color-border-tertiary); padding: 0.75rem 2rem; text-align: center; font-size: 13px; color: var(--color-text-secondary); }
  .creator-strip strong { color: var(--color-text-primary); }

  .features { padding: 4rem 2rem; max-width: 960px; margin: 0 auto; }
  .section-label { font-size: 12px; color: #111111; font-weight: 500; letter-spacing: 0.5px; margin-bottom: 0.5rem; text-align: center; }
  .section-title { font-size: 30px; font-weight: 500; color: var(--color-text-primary); text-align: center; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
  .section-sub { font-size: 16px; color: var(--color-text-secondary); text-align: center; margin-bottom: 2.5rem; }
  .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
  .feature-card { background: var(--color-background-primary); border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); padding: 1.5rem; }
  .feature-icon { width: 40px; height: 40px; border-radius: var(--border-radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 20px; }
  .feature-icon.orange { background: #f5f5f5; color: #111111; }
  .feature-icon.green { background: #EAF3DE; color: #3B6D11; }
  .feature-icon.purple { background: #EEEDFE; color: #534AB7; }
  .feature-icon.blue { background: #E6F1FB; color: #185FA5; }
  .feature-icon.pink { background: #FBEAF0; color: #993556; }
  .feature-icon.amber { background: #f5f5f5; color: #333333; }
  .feature-card h3 { font-size: 15px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 0.4rem; }
  .feature-card p { font-size: 13px; color: var(--color-text-secondary); line-height: 1.6; }

  .how { padding: 4rem 2rem; background: var(--color-background-secondary); border-top: 0.5px solid var(--color-border-tertiary); }
  .how-inner { max-width: 720px; margin: 0 auto; }
  .steps { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
  .step { display: flex; gap: 1.25rem; align-items: flex-start; background: var(--color-background-primary); border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); padding: 1.25rem; }
  .step-num { width: 32px; height: 32px; border-radius: 50%; background: #111111; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; flex-shrink: 0; }
  .step-body h4 { font-size: 15px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 3px; }
  .step-body p { font-size: 13px; color: var(--color-text-secondary); line-height: 1.6; }

  .pricing { padding: 4rem 2rem; max-width: 860px; margin: 0 auto; }
  .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 2rem; }
  .plan { background: var(--color-background-primary); border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); padding: 1.5rem; }
  .plan.featured { border: 2px solid #111111; }
  .plan-badge { display: inline-block; background: #f5f5f5; color: #111111; font-size: 11px; padding: 3px 10px; border-radius: 999px; margin-bottom: 0.75rem; border: 0.5px solid #cccccc; }
  .plan h3 { font-size: 16px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 0.25rem; }
  .plan .price { font-size: 28px; font-weight: 500; color: var(--color-text-primary); margin: 0.75rem 0; }
  .plan .price span { font-size: 14px; font-weight: 400; color: var(--color-text-secondary); }
  .plan p { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 1rem; line-height: 1.6; }
  .plan ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .plan ul li { font-size: 13px; color: var(--color-text-secondary); display: flex; gap: 8px; align-items: flex-start; }
  .plan ul li i { color: #3B6D11; margin-top: 2px; flex-shrink: 0; }

  .cta-section { background: #111111; padding: 4rem 2rem; text-align: center; }
  .cta-section h2 { font-size: 32px; font-weight: 500; color: #fff; margin-bottom: 0.75rem; letter-spacing: -0.5px; }
  .cta-section p { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
  .btn-white { background: #fff; color: #111111; border: none; padding: 13px 28px; border-radius: var(--border-radius-md); font-size: 15px; font-weight: 500; cursor: pointer; font-family: var(--font-sans); }
  .btn-white:hover { background: #f5f5f5; }

  .footer { background: var(--color-background-primary); border-top: 0.5px solid var(--color-border-tertiary); padding: 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
  .footer-note { font-size: 12px; color: var(--color-text-secondary); }
  .footer-links { display: flex; gap: 1.25rem; }
  .footer-links a { font-size: 12px; color: var(--color-text-secondary); text-decoration: none; }

  /* ── Dark mode ── */
  body.dark { --color-background-primary: #1a1a1a; --color-background-secondary: #242424; --color-background-tertiary: #2a2a2a; --color-text-primary: #f0f0f0; --color-text-secondary: #999; --color-border-secondary: #333; --color-border-tertiary: #2e2e2e; background: #1a1a1a; }
  body.dark .nav { background: #1a1a1a; }
  body.dark .mockup-card { background: #242424; }
  body.dark .mockup-name { color: #f0f0f0; }
  body.dark .auth-wrap { background: #1a1a1a; }
  body.dark .auth-card { background: #1a1a1a; }
  body.dark .auth-right { background: #1a1a1a !important; }
  body.dark .modal { background: #1a1a1a; }
  body.dark .edit-modal { background: #1a1a1a; }
  body.dark .qr-modal { background: #1a1a1a; }
  body.dark .mobile-menu { background: #1a1a1a; }
  body.dark .plan { background: #242424; }
  body.dark .feature-card { background: #242424; }
  body.dark .step { background: #242424; }
  body.dark .tip-card { background: #242424; }
  body.dark .dash-card { background: #242424; }
  body.dark .stat-card { background: #242424; }
  body.dark .footer { background: #1a1a1a; }
  body.dark .creator-header { background: #1a1a1a; }
  body.dark input, body.dark textarea { background: #242424 !important; color: #f0f0f0 !important; border-color: #333 !important; }
  .dark-toggle { display:flex; align-items:center; gap:8px; cursor:pointer; font-size:13px; color:var(--color-text-secondary); }
  .dark-toggle-track { width:36px; height:20px; background:#e0e0e0; border-radius:999px; position:relative; transition:background 0.2s; flex-shrink:0; }
  .dark-toggle-track.on { background:#111111; }
  .dark-toggle-thumb { width:16px; height:16px; background:#fff; border-radius:50%; position:absolute; top:2px; left:2px; transition:left 0.2s; }
  .dark-toggle-track.on .dark-toggle-thumb { left:18px; }
  /* ── Screen manager ── */
  .screen { display: none; opacity: 0; }
  .screen.active { display: block; animation: fadeIn 0.2s ease forwards; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

  /* ── Signup flow ── */
  .auth-wrap { min-height: 100vh; display: flex; flex-direction: row; align-items: stretch; padding: 0; background: #fff; }
  .auth-card { background: #fff; border: none; border-radius: 0; padding: 0; width: 100%; max-width: 380px; }
  .auth-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 2rem; }
  .auth-logo .logo-icon { width: 32px; height: 32px; border-radius: 9px; }
  .auth-title { font-size: 22px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 0.4rem; letter-spacing: -0.4px; }
  .auth-sub { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 1.75rem; line-height: 1.5; }
  .social-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); background: var(--color-background-primary); font-size: 14px; color: var(--color-text-primary); cursor: pointer; font-family: var(--font-sans); margin-bottom: 10px; transition: background 0.15s; }
  .social-btn:hover { background: var(--color-background-secondary); }
  .social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
  .divider { display: flex; align-items: center; gap: 10px; margin: 1rem 0; }
  .divider::before, .divider::after { content: ''; flex: 1; height: 0.5px; background: var(--color-border-tertiary); }
  .divider span { font-size: 12px; color: var(--color-text-secondary); }
  .input-group { margin-bottom: 1rem; }
  .input-group label { display: block; font-size: 13px; color: var(--color-text-secondary); margin-bottom: 6px; }
  .input-group input, .input-group textarea { width: 100%; padding: 10px 12px; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); background: var(--color-background-primary); color: var(--color-text-primary); font-size: 14px; font-family: var(--font-sans); outline: none; }
  .input-group input:focus, .input-group textarea:focus { border-color: #111111; }
  .input-group textarea { resize: none; height: 80px; }
  .input-prefix { display: flex; align-items: center; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); overflow: hidden; }
  .input-prefix span { padding: 10px 12px; background: var(--color-background-secondary); font-size: 13px; color: var(--color-text-secondary); border-right: 0.5px solid var(--color-border-secondary); white-space: nowrap; }
  .input-prefix input { border: none; border-radius: 0; flex: 1; }
  .username-preview { font-size: 12px; color: #3B6D11; margin-top: 6px; }
  .username-preview.taken { color: #C0392B; }
  .category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1rem; }
  .cat-btn { padding: 10px; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); background: var(--color-background-primary); font-size: 13px; color: var(--color-text-secondary); cursor: pointer; font-family: var(--font-sans); text-align: center; transition: all 0.15s; }
  .cat-btn:hover { border-color: #111111; color: #111111; }
  .cat-btn.selected { border-color: #111111; background: #f5f5f5; color: #111111; }
  .btn-full { width: 100%; padding: 12px; background: #111111; color: #fff; border: none; border-radius: var(--border-radius-md); font-size: 15px; font-weight: 500; cursor: pointer; font-family: var(--font-sans); }
  .btn-full:hover { background: #333333; }
  .back-link { font-size: 13px; color: var(--color-text-secondary); cursor: pointer; margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: 4px; }
  .back-link:hover { color: var(--color-text-primary); }
  .step-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 2rem; }
  .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-border-secondary); }
  .dot.active { background: #111111; width: 18px; border-radius: 3px; }

  /* ── Creator page ── */
  .creator-page { min-height: 100vh; background: var(--color-background-tertiary); }
  .setup-banner { background: #f5f5f5; border-bottom: 0.5px solid #cccccc; padding: 0.6rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  .setup-banner p { font-size: 13px; color: #111111; }
  .setup-steps { display: flex; gap: 12px; flex-wrap: wrap; }
  .setup-step { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 0.5px solid #cccccc; color: #111111; cursor: pointer; background: #fff; }
  .setup-step.done { background: #3B6D11; color: #fff; border-color: #3B6D11; }
  .creator-header { background: var(--color-background-primary); border-bottom: 0.5px solid var(--color-border-tertiary); overflow: visible; }
  .creator-cover { height: 140px; background: linear-gradient(135deg, #111111 0%, #555555 100%); overflow: visible; }
  .creator-info { padding: 0 2rem 1.5rem; position: relative; z-index: 2; }
  .creator-avatar { width: 110px; height: 110px; border-radius: 20px; background: #111111; border: 3px solid var(--color-background-primary); margin-top: -55px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; font-weight: 500; margin-bottom: 0.75rem; }
  .creator-name { font-size: 22px; font-weight: 500; color: var(--color-text-primary); letter-spacing: -0.4px; }
  .creator-handle { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 0.5rem; }
  .creator-bio { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; max-width: 500px; }
  .creator-body { max-width: 860px; margin: 2rem auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
  .tip-card { background: var(--color-background-primary); border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); padding: 1.5rem; position: sticky; top: 80px; }
  .tip-card h3 { font-size: 16px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 1rem; }
  .tip-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 1rem; }
  .tip-amt { padding: 10px; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); text-align: center; cursor: pointer; font-size: 14px; color: var(--color-text-secondary); font-family: var(--font-sans); background: var(--color-background-primary); }
  .tip-amt:hover, .tip-amt.selected { border-color: #111111; background: #f5f5f5; color: #111111; }
  .tip-message { width: 100%; padding: 10px 12px; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); background: var(--color-background-primary); color: var(--color-text-primary); font-size: 14px; font-family: var(--font-sans); outline: none; resize: none; height: 70px; margin-bottom: 1rem; display: block; }
  .tip-message:focus { border-color: #111111; }
  .posts-area h3 { font-size: 15px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 1rem; }
  /* ── Dashboard ── */
  .dashboard { min-height: 100vh; background: var(--color-background-tertiary); }
  .dash-nav { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 2rem; background: #fff; border-bottom: 0.5px solid var(--color-border-tertiary); position: sticky; top: 0; z-index: 10; }
  .dash-nav-left { display: flex; align-items: center; gap: 1.5rem; }
  .dash-body { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem; }
  .dash-greeting { font-size: 22px; font-weight: 500; color: var(--color-text-primary); letter-spacing: -0.4px; margin-bottom: 0.25rem; }
  .dash-sub { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 2rem; }
  .dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
  .stat-card { background: #fff; border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); padding: 1.25rem; min-width: 0; overflow: hidden; }
  .stat-label { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 0.5rem; letter-spacing: 0.3px; }
  .stat-value { font-size: 28px; font-weight: 500; color: var(--color-text-primary); letter-spacing: -0.5px; }
  .stat-value span { font-size: 14px; font-weight: 400; color: var(--color-text-secondary); }
  .stat-delta { font-size: 12px; color: #2d8a3e; margin-top: 4px; }
  .dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .dash-card { background: #fff; border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; min-width: 0; overflow: hidden; }
  .dash-card h3 { font-size: 15px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 1.25rem; }
  .supporter-row { display: flex; align-items: center; gap: 12px; padding: 0.75rem 0; border-bottom: 0.5px solid var(--color-border-tertiary); min-width: 0; overflow: hidden; }
  .supporter-row:last-child { border-bottom: none; }
  .supporter-avatar { width: 36px; height: 36px; border-radius: 50%; background: #f5f5f5; color: #111111; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; flex-shrink: 0; }
  .supporter-info { flex: 1; min-width: 0; overflow: hidden; }
  .supporter-name { font-size: 14px; color: var(--color-text-primary); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
  .supporter-time { font-size: 12px; color: var(--color-text-secondary); }
  .supporter-amount { font-size: 14px; font-weight: 500; color: #111111; }
  .quick-link { display: flex; align-items: center; gap: 10px; padding: 0.875rem; border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-md); margin-bottom: 8px; cursor: pointer; transition: background 0.15s; text-decoration: none; }
  .quick-link:hover { background: var(--color-background-secondary); }
  .quick-link-icon { width: 32px; height: 32px; border-radius: var(--border-radius-md); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
  .quick-link-icon.orange { background: #f5f5f5; color: #111111; }
  .quick-link-icon.blue { background: #E6F1FB; color: #185FA5; }
  .quick-link-icon.green { background: #EAF3DE; color: #3B6D11; }
  .quick-link-icon.purple { background: #EEEDFE; color: #534AB7; }
  .quick-link-text { font-size: 14px; color: var(--color-text-primary); }
  .quick-link-arrow { margin-left: auto; font-size: 14px; color: var(--color-text-secondary); }
  .payout-banner { background: #f5f5f5; border: 0.5px solid #cccccc; border-radius: var(--border-radius-lg); padding: 1.25rem; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .payout-banner p { font-size: 13px; color: #111111; line-height: 1.5; }
  .payout-banner strong { display: block; font-size: 14px; margin-bottom: 2px; }
  @media (max-width: 768px) {
    .dash-grid { grid-template-columns: 1fr; }
    .dash-nav { padding: 0 0.75rem; overflow: visible; flex-wrap: nowrap; height: 52px; }
.dash-nav-left { gap: 0.5rem; }
    .dash-body { padding: 1.5rem 1rem; }
    .dash-stats { grid-template-columns: 1fr; }
    .analytics-grid { grid-template-columns: 1fr 1fr; }
    .dash-nav-left { gap: 0.75rem; overflow-x: auto; }
    .analytics-bar-wrap { overflow-x: auto; }
    .dark-toggle > span { display: none; }
    #dark-label { display: none; }
    .bar-chart { min-width: 320px; }
  }
  /* ── QR Modal ── */
  .qr-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .qr-modal-overlay.open { opacity: 1; pointer-events: all; }
  .qr-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 340px; overflow: hidden; transform: translateY(16px); transition: transform 0.2s; }
  .qr-modal-overlay.open .qr-modal { transform: translateY(0); }
  /* ── Edit page modal ── */
  .edit-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .edit-modal-overlay.open { opacity: 1; pointer-events: all; }
  .edit-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 480px; overflow: hidden; transform: translateY(16px); transition: transform 0.2s; max-height: 90vh; overflow-y: auto; }
  .edit-modal-overlay.open .edit-modal { transform: translateY(0); }
  /* ── Tip payment modal ── */
  .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .modal-overlay.open { opacity: 1; pointer-events: all; }
  .modal { background: #fff; border-radius: 16px; width: 100%; max-width: 420px; overflow-y: auto; max-height: 90vh; transform: translateY(16px); transition: transform 0.2s; }
  .modal-overlay.open .modal { transform: translateY(0); }
  .modal-header { padding: 1.25rem 1.5rem; border-bottom: 0.5px solid var(--color-border-tertiary); display: flex; align-items: center; justify-content: space-between; }
  .modal-header h3 { font-size: 16px; font-weight: 500; color: var(--color-text-primary); }
  .modal-close { width: 28px; height: 28px; border-radius: 50%; background: var(--color-background-secondary); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--color-text-secondary); }
  .modal-body { padding: 1.5rem; }
  .modal-creator { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 0.5px solid var(--color-border-tertiary); }
  .modal-creator-avatar { width: 44px; height: 44px; border-radius: 50%; background: #111111; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 500; flex-shrink: 0; }
  .modal-creator-name { font-size: 15px; font-weight: 500; color: var(--color-text-primary); }
  .modal-creator-handle { font-size: 12px; color: var(--color-text-secondary); }
  .modal-amount-label { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 8px; }
  .modal-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
  .modal-amt { padding: 12px 8px; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); text-align: center; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--color-text-secondary); background: #fff; font-family: var(--font-sans); transition: all 0.15s; }
  .modal-amt:hover { border-color: #111111; }
  .modal-amt.selected { border-color: #111111; background: #f5f5f5; color: #111111; }
  .modal-custom { width: 100%; padding: 10px 12px; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); font-size: 14px; font-family: var(--font-sans); color: var(--color-text-primary); outline: none; margin-bottom: 1rem; }
  .modal-custom:focus { border-color: #111111; }
  .modal-message { width: 100%; padding: 10px 12px; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); font-size: 14px; font-family: var(--font-sans); color: var(--color-text-primary); outline: none; resize: none; height: 72px; margin-bottom: 1rem; display: block; }
  .modal-message:focus { border-color: #111111; }
  .modal-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1rem; }
  .modal-name-row input { width: 100%; padding: 10px 12px; border: 0.5px solid var(--color-border-secondary); border-radius: var(--border-radius-md); font-size: 14px; font-family: var(--font-sans); color: var(--color-text-primary); outline: none; }
  .modal-name-row input:focus { border-color: #111111; }
  .modal-footer { padding: 1rem 1.5rem; border-top: 0.5px solid var(--color-border-tertiary); background: var(--color-background-secondary); }
  .modal-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
  .modal-total-label { font-size: 13px; color: var(--color-text-secondary); }
  .modal-total-amount { font-size: 18px; font-weight: 500; color: var(--color-text-primary); }
  .modal-pay-btn { width: 100%; padding: 13px; background: #111111; color: #fff; border: none; border-radius: var(--border-radius-md); font-size: 15px; font-weight: 500; cursor: pointer; font-family: var(--font-sans); }
  .modal-pay-btn:hover { background: #333333; }
  .modal-secure { text-align: center; font-size: 11px; color: var(--color-text-secondary); margin-top: 8px; }

  /* ── Success state ── */
  .modal-success { padding: 2.5rem 1.5rem; text-align: center; }
  .modal-success-icon { width: 56px; height: 56px; border-radius: 50%; background: #EAF3DE; color: #3B6D11; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 1rem; }
  .modal-success h3 { font-size: 18px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 0.5rem; }
  .modal-success p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }
  /* ── Posts ── */
.post-card { background: var(--color-background-primary); border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); padding: 1.5rem; margin-bottom: 1rem; }
.post-card h4 { font-size: 15px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 0.5rem; }
.post-card p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }
.post-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.post-card-date { font-size: 12px; color: var(--color-text-secondary); }
.post-actions { display: flex; gap: 8px; }
/* ── Fan messages ── */
.message-row { display: flex; gap: 12px; padding: 1rem 0; border-bottom: 0.5px solid var(--color-border-tertiary); }
.message-row:last-child { border-bottom: none; }
.message-avatar { width: 36px; height: 36px; border-radius: 50%; background: #f5f5f5; color: #111111; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; flex-shrink: 0; }
.message-body { flex: 1; }
.message-name { font-size: 14px; font-weight: 500; color: var(--color-text-primary); }
.message-text { font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; margin-top: 2px; }
.message-meta { font-size: 12px; color: var(--color-text-secondary); margin-top: 4px; }
/* ── Tip amounts modal ── */
.tip-amounts-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 400px; overflow: hidden; transform: translateY(16px); transition: transform 0.2s; }
.tip-amounts-overlay.open .tip-amounts-modal { transform: translateY(0); }
.tip-amounts-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.tip-amounts-overlay.open { opacity: 1; pointer-events: all; }
body.dark .post-card { background: #242424; }
body.dark .tip-amounts-modal { background: #1a1a1a; }
body.dark #payout-modal .edit-modal { background: #1a1a1a; }
body.dark #membership-modal .edit-modal { background: #1a1a1a; }
body.dark #products-modal .edit-modal { background: #1a1a1a; }
body.dark #shoutouts-modal .edit-modal { background: #1a1a1a; }
body.dark #post-modal .edit-modal { background: #1a1a1a; }
body.dark #payout-upi-fields input,
body.dark #payout-bank-fields input { background: #242424 !important; color: #f0f0f0 !important; border-color: #333 !important; }
body.dark #tier-editor-list input { background: #242424 !important; color: #f0f0f0 !important; border-color: #333 !important; }
body.dark #tier-editor-list > div { background: #2a2a2a !important; border-color: #333 !important; }
body.dark #products-list-editor > div,
body.dark #products-purchases-list > div { background: #2a2a2a !important; border-color: #333 !important; }
body.dark #shoutout-queue-list > div { background: #2a2a2a !important; border-color: #333 !important; }
/* ── Memberships ── */
.membership-tiers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1rem; }
.membership-tier-card { background: var(--color-background-primary); border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.membership-tier-card.featured-tier { border: 2px solid #111111; }
.tier-info { flex: 1; }
.tier-name { font-size: 15px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 3px; }
.tier-desc { font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; }
.tier-price { font-size: 20px; font-weight: 500; color: #111111; white-space: nowrap; }
.tier-price span { font-size: 12px; font-weight: 400; color: var(--color-text-secondary); }
body.dark .membership-tier-card { background: #242424; }
/* ── Analytics ── */
.analytics-section { margin-top: 0; }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.analytics-chart-wrap { background: #fff; border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.analytics-chart-wrap h3 { font-size: 15px; font-weight: 500; color: var(--color-text-primary); margin-bottom: 0.25rem; }
.chart-canvas-wrap { position: relative; width: 100%; height: 200px; margin-top: 1.25rem; }
.chart-canvas-wrap canvas { width: 100% !important; height: 100% !important; }
.chart-empty-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; pointer-events: none; }
.chart-empty-state .chart-empty-icon { font-size: 28px; opacity: 0.4; }
.chart-empty-state p { font-size: 13px; color: var(--color-text-secondary); text-align: center; }
.chart-legend { display: flex; gap: 1rem; margin-top: 0.75rem; flex-wrap: wrap; }
.chart-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-text-secondary); }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
body.dark .analytics-chart-wrap { background: #242424; }
  .empty-posts { background: var(--color-background-primary); border: 0.5px solid var(--color-border-tertiary); border-radius: var(--border-radius-lg); padding: 3rem; text-align: center; color: var(--color-text-secondary); font-size: 14px; }
 @media (max-width: 768px) {
    /* Waitlist bar */
    #waitlist-bar { padding: 0.75rem 1rem; flex-direction: column; gap: 0.5rem; }
    #waitlist-form-inline { width: 100%; }
    #waitlist-email { width: 100% !important; min-width: 0 !important; }
    #waitlist-form-inline button { flex-shrink: 0; }
    /* Nav */
    .nav-links a { display: none; }
.nav-links .btn-primary, .nav-links .btn-outline { display: none; }
.hamburger { display: flex; }
    .nav { padding: 0.75rem 1rem; }

    /* Hero */
    .hero { padding: 3rem 1.25rem 2.5rem; }
    .hero h1 { font-size: 32px; letter-spacing: -0.5px; }
    .hero-cta { justify-content: center; }
    .modal-name-row { grid-template-columns: 1fr; }
    #analytics-period button { padding: 8px 14px !important; min-height: 36px; }
    .hero p { font-size: 16px; }
    .btn-big { padding: 11px 20px; font-size: 14px; }

    /* Features */
    .features { padding: 2.5rem 1.25rem; }
    .feature-grid { grid-template-columns: 1fr; }

    /* How it works */
    .how { padding: 2.5rem 1.25rem; }

    /* Pricing */
    .pricing { padding: 2.5rem 1.25rem; }
    .plans { grid-template-columns: 1fr; }

    /* CTA */
    .cta-section { padding: 2.5rem 1.25rem; }
    .cta-section h2 { font-size: 24px; }

    /* Footer */
    .footer { flex-direction: column; gap: 1rem; text-align: center; }

    /* Creator page */
    .creator-body { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    .creator-info { padding: 0 1rem 1.25rem; }

    .btn-primary, .btn-outline { padding: 7px 12px; font-size: 13px; white-space: nowrap; }
.logo-text { font-size: 14px; }

    /* Split screen signup — hide left panel on mobile */
    .auth-left { display: none !important; }
.auth-right { width: 100% !important; min-width: 0 !important; padding: 2rem 1.25rem !important; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
  }

  /* ════════════════════════════════════════
     DASHBOARD SIDEBAR LAYOUT (X-style)
  ════════════════════════════════════════ */
  .dash-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 52px);
    max-width: 1100px;
    margin: 0 auto;
  }
  .dash-sidebar {
    padding: 1.5rem 1rem 1.5rem 0;
    position: sticky;
    top: 52px;
    height: calc(100vh - 52px);
    overflow-y: auto;
    border-right: 0.5px solid var(--color-border-tertiary);
  }
  .dash-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 15px;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
    font-weight: 400;
    margin-bottom: 2px;
  }
  .dash-sidebar-link:hover { background: var(--color-background-secondary); }
  .dash-sidebar-link.active {
    background: var(--color-background-secondary);
    font-weight: 500;
  }
  .dash-sidebar-link i { font-size: 20px; flex-shrink: 0; width: 24px; }
  .dash-sidebar-label { flex: 1; }
  .dash-sidebar-section {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.6px;
    color: var(--color-text-secondary);
    padding: 0.75rem 14px 0.25rem;
    margin-top: 0.5rem;
  }
  .dash-sidebar-upgrade {
    margin: 1rem 0;
    background: #111111;
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
  }
  .dash-sidebar-upgrade p { font-size: 12px; color: rgba(255,255,255,0.65); margin-bottom: 0.75rem; line-height: 1.5; }
  .dash-sidebar-upgrade button {
    width: 100%;
    background: #fff;
    color: #111111;
    border: none;
    border-radius: 8px;
    padding: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-sans);
  }
  .dash-tab-panel {
    animation: dashTabIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes dashTabIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .dash-tab-panel { animation: none; }
  }
  .dash-main { padding: 2rem 1.5rem 2rem 2rem; min-width: 0; }
  /* Hide old dash-body padding when sidebar is active */
  .dash-layout .dash-body { padding: 0; max-width: none; }
  /* Mobile: collapse sidebar to bottom tab bar */
  @media (max-width: 768px) {
    .dash-layout { grid-template-columns: 1fr; overflow: hidden; width: 100%; }
    .dash-sidebar {
      position: fixed;
      top: 0; left: -280px;
      width: 260px;
      height: 100vh;
      background: var(--color-background-primary);
      border-right: 0.5px solid var(--color-border-tertiary);
      padding: 1.25rem 0.75rem;
      z-index: 200;
      transition: left 0.25s ease;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }
    .dash-sidebar.open { left: 0; }
    body.dark .dash-sidebar { background: #1a1a1a; }
    .dash-sidebar-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.4);
      z-index: 199;
    }
    .dash-sidebar-overlay.open { display: block; }
    .dash-sidebar-link { flex-direction: row; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; flex: unset; justify-content: flex-start; margin-bottom: 2px; }
    .dash-sidebar-link i { font-size: 20px; }
    .dash-sidebar-label { display: block; font-size: 14px; }
    .dash-sidebar-section { display: block; }
    .dash-sidebar-upgrade { display: block; }
    .dash-main { padding: 0.75rem; max-width: 100%; overflow: hidden; box-sizing: border-box; }
    .dash-layout .dash-body { padding: 0; }
    .dash-mobile-menu-btn { display: flex !important; }
  }

@media (min-width: 769px) {
    .dash-sidebar-overlay { display: none !important; }
    .dash-mobile-menu-btn { display: none !important; }
    .dash-sidebar { position: sticky; top: 52px; left: auto; width: auto; height: calc(100vh - 52px); transition: none; padding: 1.5rem 1rem 1.5rem 0; }
  }
  body.dark .dash-sidebar { border-color: #222; }
  body.dark .dash-sidebar-link:hover { background: #242424; }
  body.dark .dash-sidebar-link.active { background: #242424; }


  body.dark #avatar-dropdown {
    background: #1a1a1a !important;
    border-color: #333 !important;
  }
  body.dark #avatar-dropdown div {
    color: #f0f0f0 !important;
    border-color: #2e2e2e !important;
  }
  body.dark #avatar-dropdown div:last-child {
    color: #e05555 !important;
  }

  @media (max-width: 768px) {
    #screen-dashboard * { box-sizing: border-box; max-width: 100vw; }
    .dash-card, .stat-card, .dash-stats, .dash-grid, .dash-body, .dash-main { max-width: 100% !important; }
    .supporter-row, .quick-link { max-width: 100% !important; }
  }


  /* ── FIX: dash card page-url row overflow (mobile) ── */
  @media (max-width: 768px) {
    /* The flex row inside "Your page" card */
    .dash-card > div[style*="justify-content:space-between"][style*="background:var(--color-background-secondary)"],
    .dash-card > div > div[style*="justify-content:space-between"][style*="background:var(--color-background-secondary)"] {
      overflow: hidden !important;
      min-width: 0 !important;
    }
    /* The text portion */
    #dash-page-url {
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      display: block !important;
      max-width: 100% !important;
    }
  }





body {
  --color-background-primary: #FBF8F1;
  --color-background-secondary: #F6F1E7;
  --color-background-tertiary: #F1E7D2;
  --color-text-primary: #241F1A;
  --color-text-secondary: #8A8175;
  --color-border-secondary: #DCD2BA;
  --color-border-tertiary: #E7DFCE;
  background: #F6F1E7 !important;
}
body.dark {
  --color-background-primary: #241C18;
  --color-background-secondary: #1C1613;
  --color-background-tertiary: #2A211C;
  --color-text-primary: #F3ECDF;
  --color-text-secondary: #B8A98F;
  --color-border-secondary: #3D322A;
  --color-border-tertiary: #332920;
  background: #1C1613 !important;
}
:root, body { --black: #6E2E2E !important; --off-white: #F6F1E7 !important; }

.nav, .dash-nav { background: rgba(251,248,241,0.92) !important; border-color: #E7DFCE !important; }
body.dark .nav, body.dark .dash-nav { background: rgba(28,22,19,0.92) !important; border-color: #332920 !important; }
.logo-icon { background: #6E2E2E !important; }
.logo-text span { color: #6E2E2E !important; }
.logo-text { font-family: 'Cormorant Garamond', serif !important; font-weight: 700 !important; letter-spacing: 0.02em !important; font-size: 28px !important; }

.btn-primary { background: #6E2E2E !important; }
.btn-primary:hover { background: #5A2424 !important; }
.btn-outline { border-color: #DCD2BA !important; color: #241F1A !important; }
.btn-outline:hover { background: #F1E7D2 !important; }

.hero { background: #F6F1E7 !important; }
.hero::before { display: none !important; }
.hero-text { position: relative; }
.hero h1::before {
  content: "thank you,";
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 40px;
  color: #6E2E2E;
  line-height: 1;
  margin-bottom: 4px;
  font-weight: 600;
}
.hero-badge { background: #F1E4DC !important; border: 0.5px solid #E3CFC2 !important; color: #6E2E2E !important; }
.hero h1 { color: #241F1A !important; }
.hero h1 em { color: #6E2E2E !important; -webkit-text-stroke: 0 !important; font-style: normal !important; }
.hero p { color: #6B6459 !important; }
.hero-cta .btn-primary { background: #6E2E2E !important; color: #F6F1E7 !important; }
.hero-cta .btn-primary:hover { background: #5A2424 !important; }
.hero-cta .btn-outline { background: transparent !important; border-color: #DCD2BA !important; color: #241F1A !important; }
.hero-cta .btn-outline:hover { background: #F1E7D2 !important; }

.hero-mockup { position: relative; }
.hero-mockup::before {
  content: '';
  position: absolute;
  top: -14px;
  right: 18px;
  width: 46px;
  height: 58px;
  background: #FBF8F1;
  border: 1.5px dashed #C7BBA3;
  transform: rotate(6deg);
  z-index: 5;
}
.hero-mockup::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 36px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6E2E2E;
  z-index: 6;
  transform: rotate(6deg);
}

.mockup-card { background: #FBF8F1 !important; border: 1px solid #E7DFCE !important; box-shadow: 0 12px 32px rgba(110,46,46,0.1) !important; }
.mockup-cover { background-image: linear-gradient(135deg, #6E2E2E 0%, #8C4646 100%) !important; background-color: #6E2E2E !important; }
.mockup-cover::after { display: none !important; }
.mockup-name { color: #241F1A !important; }
.mockup-handle, .mockup-bio { color: #8A8175 !important; }
.mockup-tip { background: #F6F1E7 !important; }
.mockup-tip-title { color: #241F1A !important; }
.mockup-amt { background: #FBF8F1 !important; border-color: #E7DFCE !important; color: #8A8175 !important; }
.mockup-amt.active { border-color: #6E2E2E !important; background: #F1E4DC !important; color: #6E2E2E !important; }
.mockup-btn { background: #6E2E2E !important; color: #F6F1E7 !important; }
.mockup-notification { background: #FBF8F1 !important; border-color: #E7DFCE !important; box-shadow: 0 8px 24px rgba(110,46,46,0.14) !important; }
.mockup-notif-text { color: #241F1A !important; }
.mockup-notif-text span { color: #8A8175 !important; }
.mockup-notif-dot { background: #6E2E2E !important; }
body.dark .mockup-card { background: #241C18 !important; }
body.dark .mockup-name { color: #F3ECDF !important; }

.creator-strip { background: #F1E7D2 !important; border-color: #E7DFCE !important; color: #8A8175 !important; }
.creator-strip strong { color: #241F1A !important; }

.features, .pricing { background: #F6F1E7 !important; }
.section-label { color: #6E2E2E !important; }
.feature-card { border-color: #E7DFCE !important; }
.feature-card:hover { border-color: #C7BBA3 !important; box-shadow: 0 4px 20px rgba(110,46,46,0.07) !important; }
.feature-card:nth-child(1) { border-top: 2px solid #6E2E2E !important; }
.feature-card:nth-child(2) { border-top: 2px solid #854F0B !important; }
.feature-card:nth-child(3) { border-top: 2px solid #4B7051 !important; }
.feature-card:nth-child(4) { border-top: 2px solid #185FA5 !important; }
.feature-card:nth-child(5) { border-top: 2px solid #993556 !important; }
.feature-card:nth-child(6) { border-top: 2px solid #6E2E2E !important; }
.feature-icon.orange, .feature-icon.amber { background: #F1E4DC !important; color: #6E2E2E !important; }

.how { background: #F1E7D2 !important; border-color: #E7DFCE !important; }
.step { background: #FBF8F1 !important; border-color: #E7DFCE !important; }
.step-num { background: #6E2E2E !important; }

.plan { background: #FBF8F1 !important; border-color: #E7DFCE !important; }
.plan.featured { background: #6E2E2E !important; border-color: #6E2E2E !important; }
.plan.featured h3, .plan.featured p, .plan.featured ul li { color: rgba(246,241,231,0.7) !important; }
.plan.featured .price { color: #F6F1E7 !important; }
.plan.featured ul li i { color: #E8C87A !important; }
.plan.featured .btn-full { background: #F6F1E7 !important; color: #6E2E2E !important; }
.plan-badge { background: #F1E4DC !important; color: #6E2E2E !important; border-color: #E3CFC2 !important; }

.cta-section { background: #6E2E2E !important; }
.cta-section h2 { color: #F6F1E7 !important; }
.cta-section p { color: rgba(246,241,231,0.75) !important; }
.btn-white { background: #F6F1E7 !important; color: #6E2E2E !important; }
.btn-white:hover { background: #EDE4D0 !important; }

.footer { background: #F1E7D2 !important; border-color: #E7DFCE !important; }
#waitlist-bar { background: #6E2E2E !important; }
#waitlist-bar button { background: #F6F1E7 !important; color: #6E2E2E !important; }

.auth-left { background: #6E2E2E !important; }
.social-btn:hover { background: #F1E7D2 !important; }
.input-prefix span { background: #F1E7D2 !important; }
.input-group input:focus, .input-group textarea:focus { border-color: #6E2E2E !important; }
.cat-btn:hover { border-color: #6E2E2E !important; color: #6E2E2E !important; }
.cat-btn.selected { background: #6E2E2E !important; border-color: #6E2E2E !important; }
.dot.active { background: #6E2E2E !important; }
.username-preview { color: #4B7051 !important; }

.dash-sidebar-link.active, .dash-sidebar-link:hover { background: #F1E7D2 !important; }
.dash-sidebar-upgrade { background: #6E2E2E !important; }
.dash-sidebar-upgrade button { background: #F6F1E7 !important; color: #6E2E2E !important; }
.stat-card, .dash-card { background: #FBF8F1 !important; border-color: #E7DFCE !important; }
.supporter-amount { color: #6E2E2E !important; }
.quick-link:hover { background: #F1E7D2 !important; }
.quick-link-icon.orange { background: #F1E4DC !important; color: #6E2E2E !important; }
.payout-banner { background: #6E2E2E !important; border-color: #6E2E2E !important; }
.payout-banner p { color: rgba(246,241,231,0.75) !important; }
.payout-banner strong { color: #F6F1E7 !important; }
.payout-banner .btn-primary { background: #F6F1E7 !important; color: #6E2E2E !important; }

.setup-banner { background: #F1E7D2 !important; border-color: #DCD2BA !important; }
.setup-banner p { color: #6E2E2E !important; }
.setup-step { border-color: #DCD2BA !important; color: #6E2E2E !important; background: #FBF8F1 !important; }
.setup-step.done { background: #4B7051 !important; border-color: #4B7051 !important; color: #fff !important; }

.creator-page { background: #F1E7D2 !important; }
.creator-cover { background-color: #6E2E2E !important; }
.creator-avatar { background: #6E2E2E !important; }
.tip-card, .post-card, .posts-area, .membership-tier-card { border-color: #E7DFCE !important; }
.tip-amt:hover, .tip-amt.selected { border-color: #6E2E2E !important; background: #F1E4DC !important; color: #6E2E2E !important; }
.creator-page .btn-full, .creator-page .modal-pay-btn { background: #6E2E2E !important; }
.creator-page .btn-full:hover, .creator-page .modal-pay-btn:hover { background: #5A2424 !important; }
.creator-page .tip-amt:hover, .creator-page .tip-amt.selected { border-color: #6E2E2E !important; color: #6E2E2E !important; background: #F1E4DC !important; }
.creator-page .goal-meter-pct { color: #6E2E2E !important; }
.membership-tier-card.featured-tier { border-color: #6E2E2E !important; }
.tier-price { color: #6E2E2E !important; }

.modal, .edit-modal, .qr-modal, .tip-amounts-modal { border-color: #E7DFCE !important; }
.modal-amt.selected { border-color: #6E2E2E !important; background: #F1E4DC !important; color: #6E2E2E !important; }
.modal-pay-btn { background: #6E2E2E !important; }
.modal-pay-btn:hover { background: #5A2424 !important; }
.modal-footer { background: #F1E7D2 !important; border-color: #E7DFCE !important; }
.modal-success-icon { background: #E8F0E4 !important; color: #4B7051 !important; }

.goal-meter-fill { background: linear-gradient(90deg, #6E2E2E 0%, #8C4646 100%) !important; }

body.dark .hero, body.dark .features, body.dark .pricing, body.dark .creator-page, body.dark .dashboard { background: #1C1613 !important; }
body.dark .how { background: #241C18 !important; }
body.dark .feature-card, body.dark .step, body.dark .stat-card, body.dark .dash-card, body.dark .plan, body.dark .tip-card, body.dark .post-card, body.dark .modal, body.dark .edit-modal, body.dark .modal-footer, body.dark .membership-tier-card {
  border-color: #332920 !important;
  background: #241C18 !important;
}
body.dark .footer { background: #241C18 !important; border-color: #332920 !important; }
body.dark .payout-banner { background: #2A1F1F !important; border-color: #4A2E2E !important; }
body.dark .creator-cover { background-color: #241C18 !important; }
body.dark .goal-meter-wrap { background: #241C18 !important; border-color: #332920 !important; }
body.dark .goal-meter-track { background: #332920 !important; }
body.dark input, body.dark textarea { background: #241C18 !important; color: #F3ECDF !important; border-color: #332920 !important; }

.thankyou-overlay { background: rgba(36,28,24,0.92) !important; }
.thankyou-postcard {
  background: #FBF8F1;
  border: 1px solid #E7DFCE;
  border-radius: 4px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  overflow: hidden;
  font-family: var(--font-sans);
}
.thankyou-postcard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px dashed #DCD2BA;
}
.thankyou-postcard-addr { font-size: 12px; color: #8A8175; line-height: 1.8; }
.thankyou-postcard-addr b { color: #241F1A; font-weight: 500; }
.thankyou-postcard-stamp {
  width: 54px;
  height: 66px;
  border: 1.5px dashed #C7BBA3;
  background: #F1E7D2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(4deg);
}
.thankyou-postcard-stamp-amt {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #6E2E2E;
  text-align: center;
  line-height: 1.3;
}
.thankyou-postcard-body { padding: 1.5rem; }
.thankyou-postcard-greeting {
  font-family: 'Caveat', cursive;
  font-size: 34px;
  color: #6E2E2E;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.thankyou-postcard-msg {
  font-size: 14px;
  color: #241F1A;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.thankyou-postcard-note {
  background: #F1E7D2;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 13px;
  color: #6B6459;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.thankyou-postcard-actions { display: flex; gap: 10px; }
.thankyou-postcard-actions button { flex: 1; }
.thankyou-postcard-btn-primary {
  background: #6E2E2E; color: #FBF8F1; border: none; padding: 11px 16px;
  border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
}
.thankyou-postcard-btn-secondary {
  background: transparent; color: #6E2E2E; border: 1px solid #DCD2BA; padding: 11px 16px;
  border-radius: 6px; font-size: 14px; cursor: pointer; font-family: inherit;
}
body.dark .thankyou-postcard { background: #241C18; border-color: #332920; }
body.dark .thankyou-postcard-top { border-color: #3D322A; }
body.dark .thankyou-postcard-addr { color: #B8A98F; }
body.dark .thankyou-postcard-addr b { color: #F3ECDF; }
body.dark .thankyou-postcard-stamp { background: #2A211C; border-color: #4A3B30; }
body.dark .thankyou-postcard-msg { color: #F3ECDF; }
body.dark .thankyou-postcard-note { background: #2A211C; color: #B8A98F; }

.creator-info { text-align: center !important; }
.creator-avatar { margin-left: auto !important; margin-right: auto !important; }
#creator-socials { justify-content: center !important; }
.creator-bio { margin-left: auto !important; margin-right: auto !important; }
.tyvm-social-icon { width: 36px; height: 36px; border-radius: 50%; background: #F1E4DC; color: #6E2E2E; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background 0.15s, color 0.15s; }
.tyvm-social-icon:hover { background: #6E2E2E; color: #FBF8F1; }
.tyvm-social-icon i { font-size: 18px; }
body.dark .tyvm-social-icon { background: #2A211C; color: #E8C87A; }
body.dark .tyvm-social-icon:hover { background: #6E2E2E; color: #FBF8F1; }
#supporter-count-badge { text-align: center !important; }

.tip-card h3 { font-size: 19px !important; }
.tip-amt { font-size: 15px !important; padding: 12px !important; }
.tip-message { font-size: 15px !important; }
.tip-card .btn-full { font-size: 16px !important; padding: 14px !important; }


/* ── PWA install banner ── */
#pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
  font-family: 'Inter', sans-serif;
}
#pwa-install-banner.show { display: flex; }
#pwa-install-banner .pwa-text {
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
}
#pwa-install-banner .pwa-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
#pwa-install-banner .pwa-actions { display: flex; gap: 8px; flex-shrink: 0; }
#pwa-install-btn {
  background: #fff;
  color: #0a0a0a;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
#pwa-dismiss-btn {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: none;
  padding: 9px 10px;
  font-size: 14px;
  cursor: pointer;
}
@media (max-width: 480px) {
  #pwa-install-banner { flex-direction: column; align-items: stretch; text-align: center; }
  #pwa-install-banner .pwa-actions { justify-content: center; }
}
