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

    /* ── Theme Variables (default: Chai / warm terracotta) ─────────────── */
    :root {
      --accent:        #b86d52;
      --accent-hover:  #9c553d;
      --accent-light:  #f9ede8;
      --accent-mid:    #e8c4b4;
      --accent-rgb:    184,109,82;
      --bg:            #ffffff;
      --panel:         #f9f9f9;
      --border:        #ebebeb;
      --text:          #1a1a1a;
      --text-muted:    #6b7280;
      --success:       #16a34a;
      --error:         #dc2626;
      --radius:        14px;
      --radius-sm:     8px;
      --shadow:        0 2px 16px rgba(0,0,0,0.07);
      --shadow-lg:     0 8px 40px rgba(0,0,0,0.10);
      --banner-grad:   linear-gradient(135deg, #b86d52 0%, #d4895e 60%, #e8c4a0 100%);
    }
    /* Theme: Ocean */
    [data-theme="ocean"] {
      --accent:        #0284c7;
      --accent-hover:  #0369a1;
      --accent-light:  #e0f2fe;
      --accent-mid:    #bae6fd;
      --accent-rgb:    2,132,199;
      --banner-grad:   linear-gradient(135deg, #0284c7 0%, #38bdf8 60%, #bae6fd 100%);
    }
    /* Theme: Forest */
    [data-theme="forest"] {
      --accent:        #15803d;
      --accent-hover:  #166534;
      --accent-light:  #dcfce7;
      --accent-mid:    #bbf7d0;
      --accent-rgb:    21,128,61;
      --banner-grad:   linear-gradient(135deg, #15803d 0%, #22c55e 60%, #bbf7d0 100%);
    }
    /* Theme: Violet */
    [data-theme="violet"] {
      --accent:        #7c3aed;
      --accent-hover:  #6d28d9;
      --accent-light:  #ede9fe;
      --accent-mid:    #ddd6fe;
      --accent-rgb:    124,58,237;
      --banner-grad:   linear-gradient(135deg, #7c3aed 0%, #a78bfa 60%, #ddd6fe 100%);
    }
    /* Theme: Rose */
    [data-theme="rose"] {
      --accent:        #e11d48;
      --accent-hover:  #be123c;
      --accent-light:  #ffe4e6;
      --accent-mid:    #fecdd3;
      --accent-rgb:    225,29,72;
      --banner-grad:   linear-gradient(135deg, #e11d48 0%, #fb7185 60%, #fecdd3 100%);
    }
    /* Theme: Midnight */
    [data-theme="midnight"] {
      --accent:        #f59e0b;
      --accent-hover:  #d97706;
      --accent-light:  #fef3c7;
      --accent-mid:    #fde68a;
      --accent-rgb:    245,158,11;
      --bg:            #0f172a;
      --panel:         #1e293b;
      --border:        #334155;
      --text:          #f1f5f9;
      --text-muted:    #94a3b8;
      --banner-grad:   linear-gradient(135deg, #1e293b 0%, #334155 60%, #475569 100%);
    }

    html { scroll-behavior: smooth; }
    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      transition: background 0.3s, color 0.3s;
    }
    h1, h2, h3, .logo-text, .creator-name { font-family: 'Comfortaa', sans-serif; }
    a { color: inherit; text-decoration: none; }
    .hidden { display: none !important; }

    /* ── Ambient animated background mesh ───────────────────────────────── */
    .bg-mesh {
      position: fixed; inset: -10%; z-index: 0; pointer-events: none;
      background:
        radial-gradient(ellipse 60% 50% at 15% 20%, rgba(var(--accent-rgb),0.16) 0%, rgba(var(--accent-rgb),0) 60%),
        radial-gradient(ellipse 55% 50% at 85% 75%, rgba(var(--accent-rgb),0.14) 0%, rgba(var(--accent-rgb),0) 60%),
        radial-gradient(ellipse 50% 45% at 75% 15%, rgba(var(--accent-rgb),0.10) 0%, rgba(var(--accent-rgb),0) 60%);
      background-size: 140% 140%;
      animation: meshDrift 40s ease-in-out infinite alternate;
      will-change: background-position;
    }
    @keyframes meshDrift {
      0%   { background-position: 0% 0%, 100% 100%, 100% 0%; }
      50%  { background-position: 12% 8%, 88% 92%, 92% 10%; }
      100% { background-position: 0% 14%, 100% 86%, 86% 0%; }
    }
    [data-theme="midnight"] .bg-mesh { opacity: 0.6; }
    @media (prefers-reduced-motion: reduce) {
      .bg-mesh { animation: none; }
    }

    /* ── Hero steam cup ──────────────────────────────────────────────────── */
    .hero-cup {
      position: relative; width: fit-content; margin: 0 auto 8px; font-size: 38px;
      line-height: 1; user-select: none;
    }
    .hero-cup .steam {
      position: absolute; bottom: 100%; opacity: 0; font-size: 18px;
      filter: blur(0.5px); color: var(--accent);
      animation: steamRise 3.2s ease-in infinite;
    }
    .hero-cup .steam.s1 { left: 28%; animation-delay: 0s; }
    .hero-cup .steam.s2 { left: 50%; animation-delay: 1.05s; font-size: 15px; }
    .hero-cup .steam.s3 { left: 70%; animation-delay: 2.1s; }
    @keyframes steamRise {
      0%   { transform: translateY(0) translateX(0) scale(0.8) rotate(0deg); opacity: 0; }
      20%  { opacity: 0.55; }
      100% { transform: translateY(-46px) translateX(8px) scale(1.3) rotate(12deg); opacity: 0; }
    }
    @media (max-width: 640px) {
      .glow-blob { filter: blur(50px); }
      .glow-blob.b1, .glow-blob.b2, .glow-blob.b3 { width: 260px; height: 260px; }
    }

    /* ── Buttons ─────────────────────────────────────────────────────────── */
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 12px 22px; border-radius: var(--radius-sm);
      font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
      cursor: pointer; border: none;
      transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
      white-space: nowrap; position: relative; z-index: 1;
    }
    .btn:active { transform: scale(0.97); }
    .btn-primary { background: var(--accent); color: #fff; }
    .btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(var(--accent-rgb),0.30); }
    .btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
    .btn-outline:hover { background: var(--accent-light); }
    .btn-ghost {
      background: var(--panel); color: var(--text-muted);
      border: 1px solid var(--border); font-size: 13px; padding: 8px 14px;
    }
    .btn-ghost:hover { background: var(--border); color: var(--text); }
    .btn-danger { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; font-size: 13px; padding: 8px 14px; }
    .btn-danger:hover { background: #fee2e2; }
    .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

    /* ── Navbar ──────────────────────────────────────────────────────────── */
    .navbar {
      position: sticky; top: 0; z-index: 100;
      background: rgba(255,255,255,0.95); backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      padding: 0 24px; height: 64px;
      display: flex; align-items: center; justify-content: space-between;
      transition: background 0.3s;
    }
    [data-theme="midnight"] .navbar { background: rgba(15,23,42,0.95); }
    .logo {
      display: flex; align-items: center; gap: 10px;
      font-family: 'Comfortaa', sans-serif; font-size: 20px; font-weight: 700; color: var(--accent);
      flex-shrink: 0;
    }
    .logo-icon {
      width: 34px; height: 34px; background: var(--accent); border-radius: 10px;
      display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
      flex-shrink: 0;
    }
    .nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
    .nav-user {
      display: flex; align-items: center; gap: 8px;
      font-size: 14px; font-weight: 600; color: var(--text);
    }
    .nav-avatar {
      width: 32px; height: 32px; border-radius: 50%;
      background: var(--accent); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 700; font-family: 'Comfortaa', sans-serif;
      overflow: hidden; flex-shrink: 0;
    }
    .nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

    /* ── Pages ───────────────────────────────────────────────────────────── */
    #page-landing, #page-profile, #page-dashboard, #page-auth { flex: 1; position: relative; z-index: 1; }

    /* ── Landing ─────────────────────────────────────────────────────────── */
    .hero {
      max-width: 720px; margin: 72px auto 0; padding: 0 20px; text-align: center;
    }
    .hero-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--accent-light); color: var(--accent); border-radius: 100px;
      padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 24px;
    }
    .hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; margin-bottom: 18px; }
    .hero h1 span { color: var(--accent); }
    .hero p { font-size: 17px; color: var(--text-muted); line-height: 1.7; max-width: 520px; margin: 0 auto 36px; }
    .hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

    .stats { display: flex; justify-content: center; gap: 32px; margin: 60px auto; padding: 28px 20px; max-width: 600px; flex-wrap: wrap; }
    .stat-item { text-align: center; }
    .stat-number { font-family: 'Comfortaa', sans-serif; font-size: 28px; font-weight: 700; color: var(--accent); }
    .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

    .section { max-width: 860px; margin: 0 auto; padding: 0 20px 72px; }
    .section-title { text-align: center; font-size: 1.6rem; margin-bottom: 40px; }
    .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
    .step-card {
      background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 28px 24px; transition: box-shadow 0.18s, transform 0.18s;
    }
    .step-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
    .step-icon {
      width: 44px; height: 44px; background: var(--accent-light); border-radius: 12px;
      display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 16px;
    }
    .step-card h3 { font-size: 15px; margin-bottom: 8px; }
    .step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
    .divider { border: none; border-top: 1px solid var(--border); margin: 0 20px; }

    /* ── Features / Why Choose Us ───────────────────────────────────────── */
    .section-sub { text-align: center; font-size: 15px; color: var(--text-muted); margin-top: -24px; margin-bottom: 40px; }
    .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
    .feature-card {
      background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 28px 24px; transition: box-shadow 0.18s, transform 0.18s;
    }
    .feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
    .feature-icon {
      width: 44px; height: 44px; border-radius: 50%; background: var(--accent-light);
      color: var(--accent); display: flex; align-items: center; justify-content: center;
      margin-bottom: 16px;
    }
    .feature-card h3 { font-size: 15px; margin-bottom: 8px; }
    .feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
    .feature-card.highlight {
      background: var(--accent-light); border: 1.5px solid var(--accent);
    }
    .feature-compare {
      margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--accent-mid);
      display: flex; flex-direction: column; gap: 6px;
    }
    .feature-compare-row { display: flex; justify-content: space-between; font-size: 13px; }
    .feature-compare-row span:first-child { color: var(--text-muted); }
    .feature-compare-row.us span:last-child { color: var(--accent); font-weight: 700; }
    .feature-compare-row.them span:last-child { color: var(--text); font-weight: 600; }

    /* ── FAQ ─────────────────────────────────────────────────────────────── */
    .faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
    .faq-card {
      background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--accent);
      border-radius: var(--radius); padding: 22px 24px;
    }
    .faq-card h3 { font-size: 15px; margin-bottom: 8px; }
    .faq-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

    /* ── Auth Page ───────────────────────────────────────────────────────── */
    #page-auth {
      display: flex; flex-direction: column; align-items: center;
      justify-content: center; padding: 48px 16px 80px; min-height: 70vh;
      background: linear-gradient(160deg, var(--accent-light) 0%, var(--bg) 60%);
    }
    .auth-logo-mark {
      display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; gap: 8px;
    }
    .auth-logo-mark .auth-icon {
      width: 54px; height: 54px; background: var(--accent); border-radius: 16px;
      display: flex; align-items: center; justify-content: center;
      font-size: 28px; box-shadow: 0 6px 20px rgba(var(--accent-rgb),0.35);
    }
    .auth-logo-mark span {
      font-family: 'Comfortaa', sans-serif; font-size: 18px; font-weight: 700; color: var(--accent);
    }
    .auth-card {
      background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
      padding: 36px 32px; box-shadow: 0 8px 40px rgba(0,0,0,0.10); width: 100%; max-width: 460px;
    }
    .auth-tabs {
      display: flex; background: var(--panel); border-radius: 10px; padding: 4px; margin-bottom: 28px; gap: 4px;
    }
    .auth-tab {
      flex: 1; padding: 9px 16px; background: none; border: none; border-radius: 8px;
      font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
      color: var(--text-muted); cursor: pointer; transition: all 0.18s;
    }
    .auth-tab.active {
      background: var(--bg); color: var(--accent);
      box-shadow: 0 1px 6px rgba(0,0,0,0.10);
    }
    .auth-tab:hover:not(.active) { color: var(--text); background: rgba(0,0,0,0.04); }

    /* ── Form Elements ───────────────────────────────────────────────────── */
    .field { margin-bottom: 20px; }
    .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
    .field-hint { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
    .input-wrap { position: relative; }
    .input-prefix {
      position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
      color: var(--text-muted); font-size: 14px; pointer-events: none; font-weight: 500;
    }
    input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea {
      width: 100%; background: var(--bg); border: 1.5px solid var(--border);
      border-radius: var(--radius-sm); padding: 12px 14px;
      font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text);
      transition: border-color 0.16s, box-shadow 0.16s; outline: none;
    }
    input:focus, textarea:focus {
      border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.14);
    }
    .field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text); letter-spacing: 0.01em; }
    input.has-prefix { padding-left: 30px; }
    textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
    .bio-wrap { position: relative; }
    .bio-dice-btn {
      position: absolute; right: 10px; top: 10px;
      background: var(--accent-light); color: var(--accent); border: none;
      border-radius: var(--radius-sm); padding: 5px 9px; cursor: pointer;
      font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px;
      transition: background 0.15s; line-height: 1; z-index: 2;
    }
    .bio-dice-btn:hover { background: var(--accent-mid); }
    .field-error { font-size: 12px; color: var(--error); margin-top: 5px; display: none; }
    .field-error.visible { display: block; }
    .pw-toggle-btn {
      position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
      background: none; border: none; cursor: pointer;
      color: var(--text-muted); padding: 4px; border-radius: 4px;
      display: flex; align-items: center; transition: color 0.15s;
    }
    .pw-toggle-btn:hover { color: var(--accent); }
    .username-suggestions-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
    .username-suggestion-chips { display: flex; flex-wrap: wrap; gap: 6px; }
    .username-chip {
      background: var(--accent-light); color: var(--accent); border: 1.5px solid var(--accent-mid);
      border-radius: 100px; padding: 4px 12px; font-size: 12px; font-weight: 600;
      cursor: pointer; transition: background 0.14s; font-family: 'Inter', sans-serif;
    }
    .username-chip:hover { background: var(--accent-mid); }
    .form-msg { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-top: 16px; display: none; }
    .form-msg.success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; display: block; }
    .form-msg.error   { background: #fef2f2; color: var(--error);   border: 1px solid #fecaca; display: block; }

    /* ── Avatar Upload ───────────────────────────────────────────────────── */
    .avatar-upload-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
    .avatar-preview {
      width: 80px; height: 80px; border-radius: 50%;
      background: var(--accent); border: 3px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-family: 'Comfortaa', sans-serif; font-size: 26px; font-weight: 700;
      overflow: hidden; flex-shrink: 0; cursor: pointer; position: relative;
    }
    .avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
    .avatar-preview-overlay {
      position: absolute; inset: 0; background: rgba(0,0,0,0.45);
      display: flex; align-items: center; justify-content: center;
      color: #fff; opacity: 0; transition: opacity 0.15s; border-radius: 50%;
    }
    .avatar-preview:hover .avatar-preview-overlay { opacity: 1; }
    .avatar-upload-info { flex: 1; min-width: 0; }
    .avatar-upload-info p { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
    #avatar-file-input, #edit-avatar-file-input { display: none; }

    /* ── Generated avatar canvas ─────────────────────────────────────────── */
    .avatar-preview canvas { width: 100%; height: 100%; border-radius: 50%; }

    /* ── Social Links ────────────────────────────────────────────────────── */
    .social-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
    .social-row { display: flex; align-items: center; gap: 10px; }
    .social-icon {
      width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center;
      justify-content: center; flex-shrink: 0; font-size: 16px;
    }
    .social-icon.ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
    .social-icon.tw { background: #000; color: #fff; }
    .social-icon.fb { background: #1877f2; color: #fff; }
    .social-row input { flex: 1; min-width: 0; }

    /* ── Theme Picker ────────────────────────────────────────────────────── */
    .theme-picker { margin-bottom: 20px; }
    .theme-picker label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
    .theme-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
    .theme-swatch {
      width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
      border: 3px solid transparent; transition: transform 0.15s, border-color 0.15s;
      position: relative;
    }
    .theme-swatch:hover { transform: scale(1.15); }
    .theme-swatch.active { border-color: var(--text); }
    .theme-swatch[data-t="chai"]     { background: #b86d52; }
    .theme-swatch[data-t="ocean"]    { background: #0284c7; }
    .theme-swatch[data-t="forest"]   { background: #15803d; }
    .theme-swatch[data-t="violet"]   { background: #7c3aed; }
    .theme-swatch[data-t="rose"]     { background: #e11d48; }
    .theme-swatch[data-t="midnight"] { background: #0f172a; border: 2px solid #475569; }

    /* ── Dashboard ───────────────────────────────────────────────────────── */
    #page-dashboard { max-width: 600px; margin: 0 auto; padding: 40px 16px 80px; }
    .dashboard-header {
      display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
      background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
      padding: 20px; box-shadow: var(--shadow);
    }
    .dashboard-avatar {
      width: 64px; height: 64px; border-radius: 50%;
      background: var(--accent); border: 3px solid var(--accent-light);
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-family: 'Comfortaa', sans-serif; font-size: 22px; font-weight: 700;
      overflow: hidden; flex-shrink: 0;
    }
    .dashboard-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .dashboard-header-info h2 { font-size: 1.2rem; margin-bottom: 4px; }
    .dashboard-header-info p { font-size: 13px; color: var(--text-muted); }
    .dashboard-section {
      background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
      padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow);
    }
    .dashboard-section-title {
      font-size: 11px; font-weight: 700; color: var(--text-muted);
      text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
    }
    .qr-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; }
    .qr-link { font-size: 14px; font-weight: 600; color: var(--accent); word-break: break-all; text-align: center; }
    .page-link-strip {
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
      background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
      padding: 10px 14px; font-size: 14px; color: var(--text-muted);
    }
    .page-link-strip strong { color: var(--text); }
    .embed-box {
      background: #1a1a1a; border-radius: var(--radius-sm); padding: 14px 16px;
      font-family: monospace; font-size: 12px; color: #a3e635; overflow-x: auto;
      white-space: pre; margin-top: 12px; line-height: 1.6;
    }
    .share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
    .share-btn-item {
      display: flex; align-items: center; gap: 8px;
      padding: 11px 14px; border-radius: var(--radius-sm);
      border: 1.5px solid var(--border); background: var(--bg);
      font-size: 13px; font-weight: 600; cursor: pointer;
      transition: background 0.15s, border-color 0.15s; color: var(--text);
    }
    .share-btn-item:hover { background: var(--accent-light); border-color: var(--accent-mid); color: var(--accent); }
    .share-btn-item .sbi-icon { font-size: 16px; width: 20px; text-align: center; }

    /* ── Dashboard layout + side menu ───────────────────────────────────── */
    .dashboard-layout { display: flex; gap: 20px; align-items: flex-start; }
    .dashboard-menu-toggle {
      display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    }
    .dashboard-sidebar {
      flex-shrink: 0; width: 168px; position: sticky; top: 80px;
      display: flex; flex-direction: column; gap: 4px;
    }
    .dashboard-sidebar.hidden { display: none; }
    .dashboard-sidebar a {
      display: flex; align-items: center; gap: 10px; padding: 9px 12px;
      border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
      color: var(--text-muted); transition: background 0.15s, color 0.15s;
    }
    .dashboard-sidebar a:hover { background: var(--accent-light); color: var(--accent); }
    .dashboard-content { flex: 1; min-width: 0; }
    @media (max-width: 720px) {
      #page-dashboard { max-width: 600px; padding: 24px 14px 80px; }
      .dashboard-menu-toggle { width: 100%; justify-content: center; }
      .dashboard-layout { flex-direction: column; }
      .dashboard-sidebar {
        width: 100%; position: static; flex-direction: row; flex-wrap: wrap; gap: 6px;
        background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 8px;
        margin-bottom: 4px;
      }
      .dashboard-sidebar a { flex: 1 1 auto; justify-content: center; text-align: center; font-size: 12.5px; padding: 9px 8px; }
    }

    /* ── Buttons & Graphics ──────────────────────────────────────────────── */
    .bg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
    .bg-card {
      background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 18px; text-align: center;
    }
    .bg-preview {
      background: var(--accent-light); border-radius: var(--radius-sm);
      padding: 28px 12px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center;
      min-height: 90px;
    }
    .bg-card h3 { font-size: 14px; margin-bottom: 6px; }
    .bg-card p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; min-height: 54px; }
    .bg-sample-btn {
      display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff;
      padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 700; font-family: 'Comfortaa', sans-serif;
    }
    .bg-sample-widget {
      width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff;
      display: flex; align-items: center; justify-content: center; font-size: 18px;
      box-shadow: 0 4px 14px rgba(var(--accent-rgb),0.4);
    }

    /* ── Profile Page ────────────────────────────────────────────────────── */
    #page-profile {
      display: flex; flex-direction: column; align-items: center;
      padding: 32px 16px 80px; min-height: 80vh;
      background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg) 40%);
    }
    .profile-loader { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 80px; color: var(--text-muted); }
    .spinner {
      width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent);
      border-radius: 50%; animation: spin 0.7s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .profile-not-found { text-align: center; margin-top: 80px; max-width: 360px; }
    .profile-not-found .nf-icon { font-size: 52px; margin-bottom: 16px; }
    .profile-not-found h2 { font-size: 1.4rem; margin-bottom: 10px; }
    .profile-not-found p { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }

    /* ── Profile Card ────────────────────────────────────────────────────── */
    #profile-card-wrap { width: 100%; max-width: 440px; }

    .profile-card {
      background: var(--bg); border: 1px solid var(--border); border-radius: 24px;
      box-shadow: 0 8px 40px rgba(0,0,0,0.13); width: 100%; overflow: hidden;
    }
    .profile-card-banner {
      height: 120px; background: var(--banner-grad); position: relative; overflow: hidden;
    }
    .profile-card-banner-pattern {
      position: absolute; inset: 0; opacity: 0.15;
      background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px);
      background-size: 20px 20px;
    }
    /* Wavy bottom edge on banner */
    .profile-card-banner::after {
      content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 28px;
      background: var(--bg);
      clip-path: ellipse(55% 100% at 50% 100%);
    }

    .profile-card-body { padding: 0 22px 28px; }

    .profile-avatar-wrap {
      display: flex; justify-content: center;
      margin-top: -52px; margin-bottom: 14px; position: relative; z-index: 2;
    }
    .profile-avatar {
      width: 96px; height: 96px; border-radius: 50%;
      background: var(--accent); border: 5px solid var(--bg);
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-family: 'Comfortaa', sans-serif;
      font-size: 32px; font-weight: 700; text-transform: uppercase;
      box-shadow: 0 6px 24px rgba(0,0,0,0.18); overflow: hidden; flex-shrink: 0;
    }
    .profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
    .profile-avatar canvas { width: 100%; height: 100%; border-radius: 50%; }
    .profile-badge { display: none; }
    .creator-name, .creator-username, .creator-bio { text-align: center; }
    .creator-name { font-size: 1.3rem; margin-bottom: 3px; }
    .creator-username { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
    .creator-bio { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 22px; }

    /* Social links on profile */
    .profile-social {
      display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; justify-content: center;
    }
    .social-link-pill {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 600;
      transition: opacity 0.15s, transform 0.15s; text-decoration: none;
    }
    .social-link-pill:hover { opacity: 0.85; transform: translateY(-1px); }
    .social-link-pill.ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
    .social-link-pill.tw { background: #000; color: #fff; }
    .social-link-pill.fb { background: #1877f2; color: #fff; }

    /* ── Tip Section ─────────────────────────────────────────────────────── */
    .tip-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px; }
    .tip-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
    .tip-preset {
      padding: 11px 8px;
      border: 2px solid var(--border); border-radius: var(--radius-sm);
      background: var(--panel); font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif;
      cursor: pointer; transition: all 0.15s; text-align: center; color: var(--text);
    }
    .tip-preset:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
    .tip-preset.active { border-color: var(--accent); background: var(--accent); color: #fff; }
    .tip-custom-row { margin-bottom: 16px; }
    .tip-custom-input-wrap { position: relative; }
    .tip-rupee { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--text-muted); font-size: 15px; pointer-events: none; }
    #tip-custom { width: 100%; padding: 11px 12px 11px 28px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); outline: none; transition: border-color 0.16s; }
    #tip-custom:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.12); }
    .tip-message-wrap { margin-bottom: 18px; }
    .tip-message-wrap label { font-size: 13px; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 7px; }
    #tip-message { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); resize: none; min-height: 70px; outline: none; transition: border-color 0.16s; line-height: 1.5; }
    #tip-message:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.12); }
    .pay-btn {
      width: 100%; padding: 15px; font-size: 16px; border-radius: 12px;
      background: var(--accent); color: #fff; font-family: 'Comfortaa', sans-serif; font-weight: 700;
      border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
      transition: background 0.18s, box-shadow 0.18s, transform 0.1s; text-decoration: none;
    }
    .pay-btn:hover { background: var(--accent-hover); box-shadow: 0 4px 20px rgba(var(--accent-rgb),0.32); }
    .pay-btn:active { transform: scale(0.98); }

    .profile-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
    .profile-edit-btn { margin-top: 12px; width: auto; justify-content: center; }

    /* ── Modals ──────────────────────────────────────────────────────────── */
    .modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
      z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
      animation: fadeIn 0.18s ease;
    }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    .modal {
      background: var(--bg); border-radius: var(--radius); padding: 32px 28px;
      max-width: 380px; width: 100%; box-shadow: var(--shadow-lg);
      animation: slideUp 0.2s ease; position: relative; max-height: 90vh; overflow-y: auto;
    }
    @keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
    .modal-close {
      position: absolute; top: 14px; right: 14px; background: var(--panel); border: none;
      border-radius: 8px; width: 32px; height: 32px; display: flex; align-items: center;
      justify-content: center; cursor: pointer; color: var(--text-muted); transition: background 0.15s;
    }
    .modal-close:hover { background: var(--border); color: var(--text); }
    .modal h3 { font-size: 1.1rem; margin-bottom: 4px; }
    .modal-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
    .qr-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
    .qr-wrap canvas { border-radius: 12px; border: 6px solid var(--accent-light); width: 190px; height: 190px; display: block; }
    .upi-id-display { text-align: center; font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
    .upi-id-display span { font-weight: 600; color: var(--text); }
    .modal-actions { display: flex; flex-direction: column; gap: 10px; }
    #profile-qr-modal .modal { max-width: 340px; text-align: center; }
    #profile-qr-modal .qr-wrap canvas { width: 200px; height: 200px; }

    /* ── Animation Toggle ────────────────────────────────────────────────── */
    .anim-toggle {
      width: 44px; height: 24px; background: var(--border); border-radius: 100px;
      position: relative; cursor: pointer; transition: background 0.25s; flex-shrink: 0;
    }
    .anim-toggle.on { background: var(--accent); }
    .anim-toggle-knob {
      position: absolute; top: 3px; left: 3px;
      width: 18px; height: 18px; border-radius: 50%; background: #fff;
      box-shadow: 0 1px 4px rgba(0,0,0,0.2);
      transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    }
    .anim-toggle.on .anim-toggle-knob { transform: translateX(20px); }

    /* ── Animation Style Grid ────────────────────────────────────────────── */
    .anim-style-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    }
    .anim-style-card {
      border: 2px solid var(--border); border-radius: var(--radius-sm);
      padding: 12px 8px; text-align: center; cursor: pointer;
      transition: all 0.15s; background: var(--bg);
    }
    .anim-style-card:hover { border-color: var(--accent); background: var(--accent-light); }
    .anim-style-card.active { border-color: var(--accent); background: var(--accent-light); box-shadow: 0 0 0 2px rgba(var(--accent-rgb),0.2); }
    .anim-style-preview { font-size: 22px; margin-bottom: 4px; display:flex; align-items:center; justify-content:center; height:40px; }
    .anim-preview-canvas { display:block; border-radius:6px; background: var(--panel); width:54px; height:38px; }
    .anim-style-name { font-size: 11px; font-weight: 600; color: var(--text-muted); }
    .anim-style-card.active .anim-style-name { color: var(--accent); }

    /* ── Profile Page Animations Canvas ─────────────────────────────────── */
    #profile-anim-canvas { position:fixed;inset:0;pointer-events:none;z-index:0; }

    /* ── Footer ──────────────────────────────────────────────────────────── */
    footer { text-align: center; padding: 24px 16px; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: auto; position: relative; z-index: 1; }
    footer a { color: var(--accent); font-weight: 600; }
    footer a:hover { text-decoration: underline; }

    /* ── Toast ───────────────────────────────────────────────────────────── */
    #toast {
      position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
      background: #1a1a1a; color: #fff; padding: 12px 22px; border-radius: 100px;
      font-size: 14px; font-weight: 500; z-index: 300;
      transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
      opacity: 0; pointer-events: none; white-space: nowrap;
    }
    #toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

    /* ── Responsive ──────────────────────────────────────────────────────── */
    @media (max-width: 600px) {
      .navbar { padding: 0 14px; }
      .navbar .logo-text { display: none; }
      .hero { margin-top: 40px; }
      .hero h1 { font-size: 1.75rem; }
      .hero p { font-size: 15px; }
      .auth-card { padding: 24px 18px; }
      #page-profile { padding: 20px 12px 80px; }
      .profile-card { border-radius: 20px; }
      .profile-card-body { padding: 0 16px 24px; }
      .profile-card-banner { height: 100px; }
      .profile-avatar { width: 84px; height: 84px; font-size: 28px; }
      .profile-avatar-wrap { margin-top: -46px; }
      .stats { gap: 24px; padding: 20px 16px; }
      .modal { padding: 24px 18px; }
      #page-dashboard { padding: 24px 12px 60px; }
      .share-grid { grid-template-columns: 1fr; }
      .hero-cta { gap: 10px; }
      .hero-cta .btn { width: 100%; justify-content: center; }
      .profile-actions { gap: 6px; }
      .profile-actions .btn { font-size: 12px; padding: 8px 10px; }
      .avatar-upload-wrap { gap: 12px; }
      .avatar-preview { width: 64px; height: 64px; font-size: 22px; }
      .auth-card { max-width: 100%; }
    }

    @media (max-width: 380px) {
      .share-grid { grid-template-columns: 1fr; }
    }

    @media (prefers-reduced-motion: reduce) {
      .particle { display: none; }
      * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    }

    /* ── Support Banner Widget preview ──────────────────────────────────── */

/* Dashboard preview bg — vibrant gradient so glass pops */
.bg-preview:has(.banner-widget-preview) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 45%, #f093fb 100%);
  min-height: 100px;
  position: relative;
}

/* ── The pill ── */
.banner-widget-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  white-space: nowrap;
  padding: 13px 24px 13px 16px;
  border-radius: 999px;
  position: relative;
  overflow: visible;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top:    1px solid rgba(255,255,255,0.70);
  border-left:   1px solid rgba(255,255,255,0.50);
  border-right:  1px solid rgba(255,255,255,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.22),
    0  2px  8px rgba(0,0,0,0.12),
    inset 0  1px 0 rgba(255,255,255,0.60),
    inset 0 -1px 0 rgba(0,0,0,0.06);
}

/* Sheen sweep */
.banner-widget-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.30) 0%,
    rgba(255,255,255,0.07) 55%,
    rgba(255,255,255,0.00) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Cup wrapper — steam lives here ── */
.bwp-cup-wrap {
  position: relative;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  z-index: 2;
}

.bwp-cup {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.28));
}

/* Steam wisps — same style as hero cup */
.bwp-steam {
  position: absolute;
  bottom: 100%;
  font-size: 11px;
  opacity: 0;
  color: rgba(255,255,255,0.85);
  filter: blur(0.6px);
  animation: bwpSteamRise 3.2s ease-in infinite;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}
.bwp-steam.s1 { left: 10%; animation-delay: 0s; }
.bwp-steam.s2 { left: 40%; animation-delay: 1.05s; font-size: 9px; }
.bwp-steam.s3 { left: 68%; animation-delay: 2.1s; }

@keyframes bwpSteamRise {
  0%   { transform: translateY(0) translateX(0) scale(0.8) rotate(0deg); opacity: 0; }
  20%  { opacity: 0.60; }
  100% { transform: translateY(-28px) translateX(5px) scale(1.3) rotate(12deg); opacity: 0; }
}

.bwp-text {
  position: relative;
  z-index: 2;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.97);
  text-shadow: 0 1px 5px rgba(0,0,0,0.35);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
