/* === From index.html === */

    /* ===== CSS RESET & VARIABLES ===== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --primary: #6366f1;
      --primary-dark: #4f46e5;
      --secondary: #8b5cf6;
      --accent: #06b6d4;
      --bg: #0f172a;
      --surface: #1e293b;
      --surface2: #263348;
      --border: #334155;
      --text: #f8fafc;
      --text-muted: #94a3b8;
      --text-dim: #64748b;
      --success: #10b981;
      --warning: #f59e0b;
      
      --radius: 12px;
      --radius-lg: 20px;
      --shadow: 0 4px 24px rgba(0,0,0,0.4);
      --shadow-glow: 0 0 40px rgba(99,102,241,0.25);
      --transition: 0.2s ease;
      --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font);
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      overflow-x: hidden;
    }
    a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
    a:hover { opacity: 0.8; }
    img { max-width: 100%; display: block; }

    /* ===== URGENCY BAR ===== */
    #urgency-bar {
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      text-align: center;
      padding: 10px 20px;
      font-size: 0.875rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      position: relative;
      z-index: 100;
    }
    #urgency-bar .pulse-dot {
      display: inline-block;
      width: 8px; height: 8px;
      background: #fff;
      border-radius: 50%;
      margin-right: 8px;
      animation: pulse 1.5s infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(1.4); }
    }

    /* ===== NAV ===== */
    nav {
      position: sticky; top: 0; z-index: 90;
      background: rgba(15,23,42,0.92);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      padding: 0 24px;
    }
    .nav-inner {
      max-width: 1200px; margin: 0 auto;
      display: flex; align-items: center; justify-content: space-between;
      height: 64px;
    }
    .nav-logo {
      display: flex; align-items: center; gap: 10px;
      font-size: 1.25rem; font-weight: 800;
      color: var(--text); text-decoration: none;
    }
    .nav-logo .logo-mark {
      width: 32px; height: 32px;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.75rem; font-weight: 900; color: #fff;
    }
    .nav-links {
      display: flex; align-items: center; gap: 8px;
      list-style: none;
    }
    .nav-links a {
      color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
      padding: 6px 14px; border-radius: 8px;
      transition: all var(--transition);
    }
    .nav-links a:hover, .nav-links a.active {
      color: var(--text); background: var(--surface);
      opacity: 1;
    }
    .nav-links a.admin-link {
      color: var(--accent); border: 1px solid rgba(6,182,212,0.3);
    }
    .nav-links a.admin-link:hover { background: rgba(6,182,212,0.1); opacity: 1; }
    .nav-cta {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: #fff !important; padding: 8px 18px !important;
      border-radius: 8px; font-weight: 600;
    }
    .nav-cta:hover { opacity: 0.9 !important; transform: translateY(-1px); }
    .hamburger {
      display: none; flex-direction: column; gap: 5px;
      cursor: pointer; padding: 8px;
    }
    .hamburger span {
      width: 22px; height: 2px;
      background: var(--text-muted); border-radius: 2px;
      transition: var(--transition);
    }
    .mobile-nav {
      display: none; flex-direction: column;
      background: var(--surface); border-top: 1px solid var(--border);
      padding: 12px 24px 20px;
    }
    .mobile-nav a {
      color: var(--text-muted); padding: 12px 0;
      border-bottom: 1px solid var(--border); display: block;
      font-weight: 500;
    }
    .mobile-nav a:last-child { border-bottom: none; }

    /* ===== HERO ===== */
    .hero {
      min-height: 100vh;
      display: flex; align-items: center;
      position: relative; overflow: hidden;
      padding: 80px 24px;
    }
    .hero-bg {
      position: absolute; inset: 0; pointer-events: none;
    }
    .hero-glow {
      position: absolute;
      width: 600px; height: 600px;
      border-radius: 50%;
      filter: blur(120px);
      opacity: 0.15;
    }
    .hero-glow-1 {
      background: var(--primary);
      top: -200px; left: -200px;
    }
    .hero-glow-2 {
      background: var(--secondary);
      bottom: -200px; right: -100px;
    }
    .hero-grid {
      position: absolute; inset: 0;
      background-image: linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
                        linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
      background-size: 60px 60px;
    }
    .hero-inner {
      max-width: 1200px; margin: 0 auto; width: 100%;
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 64px; align-items: center;
      position: relative; z-index: 1;
    }
    /* Experiment variant A (default) */
    .hero-variant-a .hero-badge {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3);
      color: #a5b4fc; padding: 6px 14px; border-radius: 100px;
      font-size: 0.8rem; font-weight: 600; margin-bottom: 24px;
    }
    .hero-badge .badge-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
    .hero-variant-a h1 {
      font-size: clamp(2.2rem, 5vw, 3.8rem);
      font-weight: 900; line-height: 1.1;
      letter-spacing: -0.03em;
      margin-bottom: 24px;
    }
    .hero-variant-a h1 .gradient-text {
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero-variant-a .hero-desc {
      font-size: 1.15rem; color: var(--text-muted);
      margin-bottom: 40px; max-width: 480px;
    }
    .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 14px 28px; border-radius: 10px;
      font-size: 1rem; font-weight: 700; cursor: pointer;
      border: none; transition: all 0.2s ease;
      text-decoration: none;
    }
    /* CTA Color Experiment — Variant B: green CTA */
    .btn-cta-green {
      background: #10b981;
      border-color: #10b981;
      color: #fff;
    }
    .btn-cta-green:hover { background: #059669; border-color: #059669; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(16,185,129,0.45); opacity: 1; }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: #fff; box-shadow: 0 8px 24px rgba(99,102,241,0.4);
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99,102,241,0.5); opacity: 1; }
    .btn-secondary {
      background: var(--surface); color: var(--text);
      border: 1px solid var(--border);
    }
    .btn-secondary:hover { background: var(--surface2); border-color: var(--primary); opacity: 1; }
    .btn-sm { padding: 10px 20px; font-size: 0.875rem; }

    /* Experiment variant B */
    .hero-variant-b { display: none; }
    .hero-variant-b h1 {
      font-size: clamp(2rem, 4.5vw, 3.4rem);
      font-weight: 800; line-height: 1.15; margin-bottom: 20px;
      letter-spacing: -0.02em;
    }
    .hero-variant-b .hero-stat-row {
      display: flex; gap: 32px; margin-bottom: 32px; flex-wrap: wrap;
    }
    .hero-stat { text-align: center; }
    .hero-stat .stat-num {
      font-size: 2rem; font-weight: 900;
      background: linear-gradient(135deg, var(--accent), var(--primary));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }
    .hero-stat .stat-label { font-size: 0.8rem; color: var(--text-muted); }

    /* Hero visual */
    .hero-visual {
      position: relative;
    }
    .hero-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 24px;
      box-shadow: var(--shadow), var(--shadow-glow);
    }
    .hero-card-header {
      display: flex; align-items: center; gap: 10px;
      margin-bottom: 20px; padding-bottom: 16px;
      border-bottom: 1px solid var(--border);
    }
    .hero-card-header .dot {
      width: 10px; height: 10px; border-radius: 50%;
    }
    .dot-red { background: #ef4444; }
    .dot-yellow { background: #f59e0b; }
    .dot-green { background: #10b981; }
    .hero-card-title { font-size: 0.8rem; color: var(--text-dim); margin-left: auto; }
    .visitor-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 0; border-bottom: 1px solid rgba(51,65,85,0.5);
    }
    .visitor-row:last-child { border-bottom: none; }
    .visitor-info { display: flex; align-items: center; gap: 10px; }
    .visitor-avatar {
      width: 32px; height: 32px; border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      display: flex; align-items: center; justify-content: center;
      font-size: 0.7rem; font-weight: 700; color: #fff; flex-shrink: 0;
    }
    .visitor-name { font-size: 0.875rem; font-weight: 600; }
    .visitor-meta { font-size: 0.75rem; color: var(--text-muted); }
    .visitor-score {
      font-size: 0.8rem; font-weight: 700; padding: 3px 10px;
      border-radius: 100px;
    }
    .score-high { background: rgba(16,185,129,0.15); color: #10b981; }
    .score-med { background: rgba(245,158,11,0.15); color: #f59e0b; }
    .score-low { background: rgba(99,102,241,0.15); color: #a5b4fc; }
    .mini-chart {
      margin-top: 20px; padding-top: 16px;
      border-top: 1px solid var(--border);
    }
    .mini-chart-label { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 10px; }
    .chart-bars { display: flex; gap: 4px; align-items: flex-end; height: 48px; }
    .chart-bar {
      flex: 1; border-radius: 3px 3px 0 0;
      background: rgba(99,102,241,0.3);
      transition: height 0.5s ease;
    }
    .chart-bar.active { background: var(--primary); }
    .floating-badge {
      position: absolute;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 10px 14px;
      box-shadow: var(--shadow);
      animation: float 3s ease-in-out infinite;
      font-size: 0.8rem;
    }
    .floating-badge-1 { top: -20px; right: -20px; }
    .floating-badge-2 { bottom: -16px; left: -20px; }
    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }
    .badge-icon { font-size: 1.2rem; }

    /* ===== SOCIAL PROOF NOTIFICATIONS ===== */
    #social-proof-container {
      position: fixed; bottom: 24px; left: 24px; z-index: 200;
      display: flex; flex-direction: column; gap: 12px;
      max-width: 320px;
    }
    .social-proof-toast {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 14px 16px;
      display: flex; align-items: center; gap: 14px;
      box-shadow: var(--shadow);
      animation: slideInLeft 0.4s ease, fadeOut 0.4s ease 4.6s forwards;
      cursor: pointer;
    }
    @keyframes slideInLeft {
      from { transform: translateX(-110%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    @keyframes fadeOut {
      from { opacity: 1; transform: translateX(0); }
      to { opacity: 0; transform: translateX(-20px); }
    }
    .toast-avatar {
      width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      display: flex; align-items: center; justify-content: center;
      font-weight: 700; color: #fff; font-size: 0.9rem;
    }
    .toast-content .toast-name { font-weight: 700; font-size: 0.875rem; }
    .toast-content .toast-action { font-size: 0.8rem; color: var(--text-muted); }
    .toast-content .toast-time { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }

    /* ===== FEATURES SECTION ===== */
    .section { padding: 96px 24px; }
    .section-inner { max-width: 1200px; margin: 0 auto; }
    .section-badge {
      display: inline-flex; align-items: center; gap: 8px;
      background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
      color: #a5b4fc; padding: 5px 14px; border-radius: 100px;
      font-size: 0.8rem; font-weight: 600; margin-bottom: 20px;
    }
    .section-title {
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 900; letter-spacing: -0.03em;
      margin-bottom: 16px; line-height: 1.15;
    }
    .section-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; }
    .section-header { margin-bottom: 56px; }
    .section-header.center { text-align: center; }
    .section-header.center .section-desc { margin: 0 auto; }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 24px;
    }
    .feature-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 32px;
      transition: all 0.3s ease;
      position: relative; overflow: hidden;
    }
    .feature-card::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      opacity: 0; transition: opacity 0.3s;
    }
    .feature-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
    .feature-card:hover::before { opacity: 1; }
    .feature-icon {
      width: 52px; height: 52px; border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.5rem; margin-bottom: 20px;
    }
    .icon-purple { background: rgba(99,102,241,0.15); }
    .icon-cyan { background: rgba(6,182,212,0.15); }
    .icon-violet { background: rgba(139,92,246,0.15); }
    .icon-green { background: rgba(16,185,129,0.15); }
    .icon-amber { background: rgba(245,158,11,0.15); }
    .icon-rose { background: rgba(244,63,94,0.15); }
    .feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
    .feature-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
    .feature-tag {
      display: inline-flex; margin-top: 16px;
      background: rgba(99,102,241,0.1); color: #a5b4fc;
      font-size: 0.72rem; font-weight: 700; padding: 3px 10px;
      border-radius: 100px; letter-spacing: 0.05em; text-transform: uppercase;
    }

    /* ===== STATS BANNER ===== */
    .stats-section {
      background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
      padding: 64px 24px;
    }
    .stats-grid {
      max-width: 1200px; margin: 0 auto;
      display: grid; grid-template-columns: repeat(4, 1fr);
      gap: 48px; text-align: center;
    }
    .stat-item .num {
      font-size: 3rem; font-weight: 900;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
      line-height: 1;
    }
    .stat-item .label { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; }

    /* ===== HOW IT WORKS ===== */
    .steps-grid {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 40px; position: relative;
    }
    .steps-grid::before {
      content: '';
      position: absolute; top: 28px; left: 15%; right: 15%;
      height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
    }
    .step-card { text-align: center; }
    .step-number {
      width: 56px; height: 56px; border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      display: flex; align-items: center; justify-content: center;
      font-size: 1.25rem; font-weight: 900; color: #fff;
      margin: 0 auto 24px; position: relative; z-index: 1;
      box-shadow: 0 0 0 8px rgba(99,102,241,0.1);
    }
    .step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
    .step-desc { font-size: 0.9rem; color: var(--text-muted); }

    /* ===== CTA SECTION ===== */
    .cta-section {
      padding: 96px 24px;
      text-align: center;
      position: relative; overflow: hidden;
    }
    .cta-section::before {
      content: '';
      position: absolute; inset: 0;
      background: radial-gradient(ellipse at 50% 50%, rgba(99,102,241,0.12) 0%, transparent 70%);
    }
    .cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
    .cta-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 20px; letter-spacing: -0.03em; }
    .cta-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; }
    .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

    /* ===== EXIT INTENT MODAL ===== */
    .modal-overlay {
      position: fixed; inset: 0; z-index: 1000;
      background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
      display: flex; align-items: center; justify-content: center;
      padding: 24px; opacity: 0; visibility: hidden;
      transition: all 0.3s ease;
    }
    .modal-overlay.active { opacity: 1; visibility: visible; }
    .modal {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-lg); max-width: 480px; width: 100%;
      padding: 40px; position: relative; box-shadow: var(--shadow), var(--shadow-glow);
      transform: scale(0.9); transition: transform 0.3s ease;
    }
    .modal-overlay.active .modal { transform: scale(1); }
    .modal-close {
      position: absolute; top: 16px; right: 16px;
      background: var(--surface2); border: none; color: var(--text-muted);
      width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
      font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
      transition: all var(--transition);
    }
    .modal-close:hover { color: var(--text); background: var(--border); }
    .modal-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(6,182,212,0.15); border: 1px solid rgba(6,182,212,0.3);
      color: var(--accent); padding: 4px 12px; border-radius: 100px;
      font-size: 0.75rem; font-weight: 700; margin-bottom: 16px;
      text-transform: uppercase; letter-spacing: 0.08em;
    }
    .modal h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
    .modal p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.95rem; }
    .modal-form { display: flex; gap: 10px; }
    .modal-input {
      flex: 1; background: var(--bg); border: 1px solid var(--border);
      border-radius: 8px; padding: 12px 16px; color: var(--text);
      font-size: 0.95rem; outline: none; font-family: var(--font);
      transition: border-color var(--transition);
    }
    .modal-input:focus { border-color: var(--primary); }
    .modal-input::placeholder { color: var(--text-dim); }
    .modal-disclaimer { font-size: 0.75rem; color: var(--text-dim); margin-top: 12px; }
    .modal-vela-tag {
      display: flex; align-items: center; gap: 6px;
      margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border);
      font-size: 0.75rem; color: var(--text-dim);
    }
    .modal-vela-tag .vela-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

    /* ===== FOOTER ===== */
    footer {
      background: var(--surface); border-top: 1px solid var(--border);
      padding: 48px 24px 32px;
    }
    .footer-inner {
      max-width: 1200px; margin: 0 auto;
    }
    .footer-top {
      display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 40px; margin-bottom: 40px;
    }
    .footer-brand .brand-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
    .footer-brand p { font-size: 0.875rem; color: var(--text-muted); max-width: 280px; line-height: 1.6; }
    .footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
    .footer-col ul { list-style: none; }
    .footer-col li { margin-bottom: 10px; }
    .footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
    .footer-col a:hover { color: var(--text); opacity: 1; }
    .footer-bottom {
      padding-top: 24px; border-top: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 12px;
    }
    .footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }
    .powered-by {
      display: flex; align-items: center; gap: 8px;
      font-size: 0.8rem; color: var(--text-dim);
    }
    .powered-by a { color: var(--primary); font-weight: 600; }
    .powered-by a:hover { opacity: 0.8; }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 900px) {
      .hero-inner { grid-template-columns: 1fr; gap: 48px; }
      .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
      .steps-grid { grid-template-columns: 1fr; }
      .steps-grid::before { display: none; }
      .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
      .footer-top { grid-template-columns: 1fr 1fr; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .mobile-nav.open { display: flex; }
    }
    @media (max-width: 600px) {
      .features-grid { grid-template-columns: 1fr; }
      .stats-grid { grid-template-columns: 1fr 1fr; }
      .footer-top { grid-template-columns: 1fr; }
      .modal-form { flex-direction: column; }
      .hero-actions { flex-direction: column; }
      .btn { justify-content: center; }
    }

    /* ===== ANIMATIONS ===== */
    .fade-in-up {
      opacity: 0; transform: translateY(24px);
      animation: fadeInUp 0.6s ease forwards;
    }
    @keyframes fadeInUp {
      to { opacity: 1; transform: translateY(0); }
    }
    .delay-1 { animation-delay: 0.1s; }
    .delay-2 { animation-delay: 0.2s; }
    .delay-3 { animation-delay: 0.3s; }

    /* ===== VELA DEBUG PANEL ===== */
    #vela-debug {
      position: fixed; bottom: 24px; right: 24px; z-index: 300;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 12px 16px;
      font-size: 0.75rem; max-width: 220px;
      box-shadow: var(--shadow);
    }
    #vela-debug .debug-title {
      font-weight: 700; color: var(--primary); margin-bottom: 8px;
      display: flex; align-items: center; gap: 6px;
    }
    #vela-debug .debug-item {
      color: var(--text-muted); margin-bottom: 4px;
      display: flex; justify-content: space-between; gap: 8px;
    }
    #vela-debug .debug-item span { color: var(--accent); font-family: monospace; }

    .gradient-text {
      background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }
  

/* === From products.html === */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --primary: #6366f1; --primary-dark: #4f46e5; --secondary: #8b5cf6;
      --accent: #06b6d4; --bg: #0f172a; --surface: #1e293b; --surface2: #263348;
      --border: #334155; --text: #f8fafc; --text-muted: #94a3b8; --text-dim: #64748b;
      --success: #10b981; --warning: #f59e0b; 
      --radius: 12px; --radius-lg: 20px; --shadow: 0 4px 24px rgba(0,0,0,0.4);
      --shadow-glow: 0 0 40px rgba(99,102,241,0.25);
      --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    html { scroll-behavior: smooth; }
    body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
    a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
    a:hover { opacity: 0.8; }

    /* NAV */
    #urgency-bar { background: linear-gradient(90deg, var(--primary), var(--secondary)); text-align: center; padding: 10px 20px; font-size: 0.875rem; font-weight: 600; }
    nav { position: sticky; top: 0; z-index: 90; background: rgba(15,23,42,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 0 24px; }
    .nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
    .nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: var(--text); text-decoration: none; }
    .logo-mark { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 900; color: #fff; }
    .nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
    .nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; padding: 6px 14px; border-radius: 8px; transition: all 0.2s; }
    .nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); opacity: 1; }
    .nav-links a.admin-link { color: var(--accent); border: 1px solid rgba(6,182,212,0.3); }
    .nav-links a.admin-link:hover { background: rgba(6,182,212,0.1); opacity: 1; }
    .nav-cta { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff !important; padding: 8px 18px !important; border-radius: 8px; font-weight: 600; }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
    .hamburger span { width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; }
    .mobile-nav { display: none; flex-direction: column; background: var(--surface); border-top: 1px solid var(--border); padding: 12px 24px 20px; }
    .mobile-nav.open { display: flex; }
    .mobile-nav a { color: var(--text-muted); padding: 12px 0; border-bottom: 1px solid var(--border); display: block; font-weight: 500; }
    .mobile-nav a:last-child { border-bottom: none; }

    /* HERO */
    .page-hero { padding: 80px 24px 56px; text-align: center; position: relative; overflow: hidden; }
    .page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 60%); pointer-events: none; }
    .section-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); color: #a5b4fc; padding: 5px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; }
    .page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 16px; }
    .gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
    .page-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 40px; }

    /* BILLING TOGGLE */
    .billing-toggle { display: inline-flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 6px; margin-bottom: 56px; position: relative; z-index: 1; }
    .toggle-btn { padding: 8px 20px; border-radius: 100px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; background: transparent; color: var(--text-muted); transition: all 0.2s; }
    .toggle-btn.active { background: var(--primary); color: #fff; }
    .toggle-save { background: rgba(16,185,129,0.15); color: var(--success); font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; }

    /* PRICING CARDS */
    .pricing-section { padding: 0 24px 80px; }
    .pricing-inner { max-width: 1100px; margin: 0 auto; }
    .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }

    .plan-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-lg); padding: 32px;
      transition: all 0.3s ease; position: relative;
    }
    .plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
    .plan-card.featured {
      border-color: var(--primary);
      box-shadow: var(--shadow-glow);
      transform: scale(1.03);
    }
    .plan-card.featured:hover { transform: scale(1.03) translateY(-4px); }
    .featured-badge {
      position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: #fff; font-size: 0.75rem; font-weight: 800;
      padding: 4px 16px; border-radius: 100px; white-space: nowrap;
      letter-spacing: 0.04em; text-transform: uppercase;
    }
    .plan-name { font-size: 1rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
    .plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
    .price-currency { font-size: 1.5rem; font-weight: 700; color: var(--text); }
    .price-amount { font-size: 3.5rem; font-weight: 900; line-height: 1; color: var(--text); letter-spacing: -0.03em; }
    .price-period { color: var(--text-dim); font-size: 0.9rem; }
    .plan-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); min-height: 48px; }
    .plan-features { list-style: none; margin-bottom: 32px; }
    .plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; padding: 7px 0; color: var(--text-muted); }
    .plan-features li .check { color: var(--success); flex-shrink: 0; font-weight: 700; }
    .plan-features li .cross { color: var(--text-dim); flex-shrink: 0; }
    .plan-features li.included { color: var(--text); }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; width: 100%; }
    .btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: 0 8px 24px rgba(99,102,241,0.4); }
    .btn-primary:hover { transform: translateY(-2px); opacity: 1; }
    .btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
    .btn-secondary:hover { border-color: var(--primary); opacity: 1; }
    .btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
    .btn-outline:hover { border-color: var(--primary); background: rgba(99,102,241,0.05); opacity: 1; }

    /* UPSELL RECOMMENDATION */
    #upsell-banner {
      background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
      border: 1px solid rgba(99,102,241,0.3);
      border-radius: var(--radius-lg); padding: 24px 28px;
      margin: 40px 0; display: flex; align-items: center; gap: 20px;
      display: none;
    }
    #upsell-banner .upsell-icon { font-size: 2rem; flex-shrink: 0; }
    #upsell-banner h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
    #upsell-banner p { font-size: 0.875rem; color: var(--text-muted); }
    #upsell-banner .upsell-cta { margin-left: auto; flex-shrink: 0; }
    .btn-sm { padding: 10px 20px; font-size: 0.875rem; }

    /* COMPARISON TABLE */
    .comparison-section { padding: 0 24px 80px; }
    .comparison-inner { max-width: 1100px; margin: 0 auto; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 12px; }
    .section-desc { font-size: 1rem; color: var(--text-muted); }

    .comparison-table { width: 100%; border-collapse: collapse; }
    .comparison-table th, .comparison-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); }
    .comparison-table th { font-size: 0.8rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface); }
    .comparison-table th:first-child { border-radius: 10px 0 0 0; }
    .comparison-table th:last-child { border-radius: 0 10px 0 0; }
    .comparison-table td { font-size: 0.9rem; color: var(--text-muted); }
    .comparison-table td:first-child { color: var(--text); font-weight: 500; }
    .comparison-table tr:hover td { background: rgba(99,102,241,0.04); }
    .comparison-table .check-cell { color: var(--success); font-weight: 700; text-align: center; }
    .comparison-table .cross-cell { color: var(--text-dim); text-align: center; }
    .comparison-table .plan-col { text-align: center; font-weight: 700; color: var(--text); }
    .comparison-table .featured-col { color: var(--primary); }
    .table-wrapper { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto; }

    /* SEGMENT MODAL */
    .modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: all 0.3s; }
    .modal-overlay.active { opacity: 1; visibility: visible; }
    .modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 500px; width: 100%; padding: 40px; position: relative; box-shadow: var(--shadow), var(--shadow-glow); transform: scale(0.9); transition: transform 0.3s; }
    .modal-overlay.active .modal { transform: scale(1); }
    .modal-close { position: absolute; top: 16px; right: 16px; background: var(--surface2); border: none; color: var(--text-muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
    .modal-close:hover { color: var(--text); }
    .modal-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: var(--success); padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
    .modal h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
    .modal p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.9rem; }
    .modal-features { list-style: none; margin-bottom: 24px; }
    .modal-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid rgba(51,65,85,0.5); }
    .modal-features li:last-child { border-bottom: none; }
    .modal-features li .check { color: var(--success); }
    .modal-vela-tag { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.72rem; color: var(--text-dim); }
    .vela-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

    /* FAQ */
    .faq-section { padding: 0 24px 80px; }
    .faq-inner { max-width: 720px; margin: 0 auto; }
    .faq-item { border-bottom: 1px solid var(--border); }
    .faq-q { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 1rem; gap: 16px; }
    .faq-q:hover { color: var(--primary); }
    .faq-icon { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: all 0.2s; }
    .faq-item.open .faq-icon { background: var(--primary); border-color: var(--primary); color: #fff; transform: rotate(45deg); }
    .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
    .faq-item.open .faq-a { max-height: 200px; padding-bottom: 20px; }

    /* FOOTER */
    footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 24px; }
    .footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
    .footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }
    .powered-by { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-dim); }
    .powered-by a { color: var(--primary); font-weight: 600; }

    /* RESPONSIVE */
    @media (max-width: 900px) {
      .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
      .plan-card.featured { transform: none; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
      #upsell-banner { flex-direction: column; text-align: center; }
      #upsell-banner .upsell-cta { margin-left: 0; }
    }
    @media (max-width: 600px) {
      .billing-toggle { flex-wrap: wrap; justify-content: center; }
    }

    /* ANIMATIONS */
    .fade-in { opacity: 0; animation: fadeIn 0.5s ease forwards; }
    @keyframes fadeIn { to { opacity: 1; } }

    /* A/B VARIANTS */
    .layout-b .pricing-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
    .layout-b .plan-card { display: flex; gap: 24px; align-items: flex-start; }
    .layout-b .plan-card .plan-left { flex: 0 0 200px; }
    .layout-b .plan-card .plan-right { flex: 1; }
  

/* === From assessment.html === */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --primary: #6366f1; --secondary: #8b5cf6; --accent: #06b6d4;
      --bg: #0f172a; --surface: #1e293b; --surface2: #263348; --border: #334155;
      --text: #f8fafc; --text-muted: #94a3b8; --text-dim: #64748b;
      --success: #10b981; --warning: #f59e0b; 
      --radius: 12px; --radius-lg: 20px; --shadow: 0 4px 24px rgba(0,0,0,0.4);
      --shadow-glow: 0 0 40px rgba(99,102,241,0.25);
      --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
    a { color: var(--accent); text-decoration: none; }

    /* NAV */
    nav { position: sticky; top: 0; z-index: 90; background: rgba(15,23,42,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 0 24px; }
    .nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
    .nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: var(--text); }
    .logo-mark { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 900; color: #fff; }
    .nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
    .nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; padding: 6px 14px; border-radius: 8px; transition: all 0.2s; }
    .nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); opacity: 1; }
    .nav-links a.admin-link { color: var(--accent); border: 1px solid rgba(6,182,212,0.3); }
    .nav-links a.admin-link:hover { background: rgba(6,182,212,0.1); opacity: 1; }
    .nav-cta { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff !important; padding: 8px 18px !important; border-radius: 8px; font-weight: 600; }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
    .hamburger span { width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; }
    .mobile-nav { display: none; flex-direction: column; background: var(--surface); border-top: 1px solid var(--border); padding: 12px 24px 20px; }
    .mobile-nav.open { display: flex; }
    .mobile-nav a { color: var(--text-muted); padding: 12px 0; border-bottom: 1px solid var(--border); display: block; font-weight: 500; }
    .mobile-nav a:last-child { border-bottom: none; }

    /* ASSESSMENT WRAPPER */
    .assessment-wrap {
      min-height: calc(100vh - 64px);
      display: flex; align-items: center; justify-content: center;
      padding: 48px 24px; position: relative;
    }
    .assessment-wrap::before {
      content: ''; position: absolute; inset: 0; pointer-events: none;
      background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.08) 0%, transparent 60%),
                  radial-gradient(ellipse at 70% 50%, rgba(139,92,246,0.06) 0%, transparent 60%);
    }

    .assessment-container {
      max-width: 680px; width: 100%; position: relative; z-index: 1;
    }

    /* PROGRESS BAR */
    .progress-bar-wrap {
      margin-bottom: 32px;
    }
    .progress-meta {
      display: flex; justify-content: space-between;
      font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px;
    }
    .progress-track {
      height: 6px; background: var(--surface2); border-radius: 100px; overflow: hidden;
    }
    .progress-fill {
      height: 100%; border-radius: 100px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      transition: width 0.5s ease;
    }

    /* STEP INDICATOR */
    .step-dots {
      display: flex; gap: 8px; justify-content: center; margin-bottom: 40px;
    }
    .step-dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--surface2); border: 1px solid var(--border);
      transition: all 0.3s;
    }
    .step-dot.done { background: var(--primary); border-color: var(--primary); }
    .step-dot.active { background: var(--accent); border-color: var(--accent); transform: scale(1.4); }

    /* QUESTION CARD */
    .question-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-lg); padding: 40px;
      box-shadow: var(--shadow); position: relative;
    }
    .q-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
      color: #a5b4fc; padding: 4px 12px; border-radius: 100px;
      font-size: 0.75rem; font-weight: 700; margin-bottom: 20px;
      text-transform: uppercase; letter-spacing: 0.06em;
    }
    .q-text {
      font-size: 1.3rem; font-weight: 800; line-height: 1.3;
      margin-bottom: 8px; letter-spacing: -0.02em;
    }
    .q-subtext { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 32px; }

    /* MULTIPLE CHOICE */
    .mc-options { display: flex; flex-direction: column; gap: 12px; }
    .mc-option {
      display: flex; align-items: center; gap: 16px;
      background: var(--surface2); border: 2px solid var(--border);
      border-radius: var(--radius); padding: 16px 20px;
      cursor: pointer; transition: all 0.2s; user-select: none;
    }
    .mc-option:hover { border-color: var(--primary); background: rgba(99,102,241,0.06); }
    .mc-option.selected { border-color: var(--primary); background: rgba(99,102,241,0.12); }
    .mc-option .opt-letter {
      width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
      background: var(--border); display: flex; align-items: center; justify-content: center;
      font-size: 0.8rem; font-weight: 700; transition: all 0.2s;
    }
    .mc-option.selected .opt-letter { background: var(--primary); color: #fff; }
    .mc-option .opt-text { font-size: 0.95rem; font-weight: 500; }
    .mc-option .opt-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

    /* RATING SCALE */
    .rating-wrap { padding: 8px 0; }
    .rating-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 16px; }
    .rating-scale { display: flex; gap: 10px; }
    .rating-btn {
      flex: 1; aspect-ratio: 1; border-radius: 10px; border: 2px solid var(--border);
      background: var(--surface2); cursor: pointer; font-weight: 700; font-size: 0.9rem;
      color: var(--text-muted); transition: all 0.2s; display: flex; align-items: center; justify-content: center;
    }
    .rating-btn:hover { border-color: var(--primary); color: var(--text); }
    .rating-btn.selected { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.1); }

    /* FREE TEXT */
    .free-text-wrap textarea {
      width: 100%; background: var(--surface2); border: 2px solid var(--border);
      border-radius: var(--radius); padding: 16px; color: var(--text); font-family: var(--font);
      font-size: 0.95rem; line-height: 1.6; resize: vertical; min-height: 120px;
      outline: none; transition: border-color 0.2s;
    }
    .free-text-wrap textarea:focus { border-color: var(--primary); }
    .free-text-wrap textarea::placeholder { color: var(--text-dim); }
    .char-count { font-size: 0.75rem; color: var(--text-dim); text-align: right; margin-top: 6px; }

    /* NAV BUTTONS */
    .q-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; gap: 16px; }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-size: 0.95rem; font-weight: 700; cursor: pointer; border: none; transition: all 0.2s; font-family: var(--font); }
    .btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
    .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.4); }
    .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
    .btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
    .btn-ghost:hover { color: var(--text); border-color: var(--primary); }
    .btn-full { width: 100%; padding: 16px; font-size: 1.05rem; }

    /* RESULTS CARD */
    #results-screen { display: none; }
    .result-hero { text-align: center; margin-bottom: 40px; }
    .result-emoji { font-size: 4rem; margin-bottom: 16px; }
    .result-title { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 12px; }
    .result-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 460px; margin: 0 auto; }
    .score-ring-wrap { display: flex; justify-content: center; margin: 32px 0; }
    .score-ring {
      width: 160px; height: 160px; position: relative;
      display: flex; align-items: center; justify-content: center;
    }
    .score-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
    .score-ring .ring-bg { fill: none; stroke: var(--surface2); stroke-width: 10; }
    .score-ring .ring-fg { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.5s ease; }
    .score-ring .ring-text { font-size: 2.8rem; font-weight: 900; text-anchor: middle; dominant-baseline: middle; }
    .score-ring .ring-label { font-size: 0.8rem; text-anchor: middle; dominant-baseline: middle; }

    .rec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
    .rec-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
    .rec-card .rec-icon { font-size: 1.5rem; margin-bottom: 10px; }
    .rec-card .rec-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
    .rec-card .rec-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
    .rec-card .rec-tag { display: inline-block; margin-top: 10px; background: rgba(99,102,241,0.1); color: #a5b4fc; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; }

    .milestone-badge {
      background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.15));
      border: 1px solid rgba(99,102,241,0.3); border-radius: var(--radius);
      padding: 16px 20px; display: flex; align-items: center; gap: 14px;
      margin-bottom: 24px;
    }
    .milestone-badge .m-icon { font-size: 1.8rem; }
    .milestone-badge .m-text h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
    .milestone-badge .m-text p { font-size: 0.8rem; color: var(--text-muted); }
    .vela-tag { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--text-dim); margin-top: 16px; justify-content: center; }
    .vela-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

    /* TRANSITION */
    .q-enter { animation: qEnter 0.35s ease; }
    .q-exit { animation: qExit 0.25s ease forwards; }
    @keyframes qEnter { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
    @keyframes qExit { to { opacity: 0; transform: translateX(-30px); } }

    /* FOOTER */
    footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 24px; margin-top: 40px; }
    .footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
    .footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }
    .powered-by { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-dim); }
    .powered-by a { color: var(--primary); font-weight: 600; }
    .gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

    @media (max-width: 768px) {
      .rec-grid { grid-template-columns: 1fr; }
      .question-card { padding: 24px; }
      .rating-scale { gap: 6px; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
    }
  @keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-8px)} 75%{transform:translateX(8px)} }


/* === From blog.html === */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --primary: #6366f1; --secondary: #8b5cf6; --accent: #06b6d4;
      --bg: #0f172a; --surface: #1e293b; --surface2: #263348; --border: #334155;
      --text: #f8fafc; --text-muted: #94a3b8; --text-dim: #64748b;
      --success: #10b981; --warning: #f59e0b;
      --radius: 12px; --radius-lg: 20px; --shadow: 0 4px 24px rgba(0,0,0,0.4);
      --shadow-glow: 0 0 40px rgba(99,102,241,0.2);
      --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
    a { color: var(--accent); text-decoration: none; }
    a:hover { opacity: 0.8; }

    /* NAV */
    nav { position: sticky; top: 0; z-index: 90; background: rgba(15,23,42,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 0 24px; }
    .nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
    .nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: var(--text); }
    .logo-mark { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 900; color: #fff; }
    .nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
    .nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; padding: 6px 14px; border-radius: 8px; transition: all 0.2s; }
    .nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); opacity: 1; }
    .nav-links a.admin-link { color: var(--accent); border: 1px solid rgba(6,182,212,0.3); }
    .nav-links a.admin-link:hover { background: rgba(6,182,212,0.1); opacity: 1; }
    .nav-cta { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff !important; padding: 8px 18px !important; border-radius: 8px; font-weight: 600; }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
    .hamburger span { width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; }
    .mobile-nav { display: none; flex-direction: column; background: var(--surface); border-top: 1px solid var(--border); padding: 12px 24px 20px; }
    .mobile-nav.open { display: flex; }
    .mobile-nav a { color: var(--text-muted); padding: 12px 0; border-bottom: 1px solid var(--border); display: block; font-weight: 500; }
    .mobile-nav a:last-child { border-bottom: none; }

    /* READING PROGRESS BAR */
    #reading-progress {
      position: fixed; top: 64px; left: 0; right: 0; z-index: 89;
      height: 3px; background: transparent;
    }
    #reading-progress-fill {
      height: 100%; width: 0;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      transition: width 0.1s linear;
    }

    /* BLOG HERO */
    .blog-hero { padding: 72px 24px 56px; position: relative; overflow: hidden; }
    .blog-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.1) 0%, transparent 60%); pointer-events: none; }
    .blog-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
    .section-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); color: #a5b4fc; padding: 5px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; }
    .blog-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 16px; }
    .gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
    .blog-hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin-bottom: 32px; }
    .blog-tags { display: flex; gap: 10px; flex-wrap: wrap; }
    .blog-tag { background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted); padding: 5px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
    .blog-tag:hover, .blog-tag.active { background: rgba(99,102,241,0.15); border-color: var(--primary); color: #a5b4fc; opacity: 1; }

    /* PERSONALIZATION BANNER */
    #personalization-banner {
      max-width: 1200px; margin: 0 auto 40px; padding: 0 24px;
      display: none;
    }
    .personalized-card {
      background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.08));
      border: 1px solid rgba(99,102,241,0.3); border-radius: var(--radius-lg);
      padding: 20px 24px; display: flex; align-items: center; gap: 16px;
    }
    .personalized-card .p-icon { font-size: 1.8rem; }
    .personalized-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
    .personalized-card p { font-size: 0.8rem; color: var(--text-muted); }
    .personalized-card .p-tag { margin-left: auto; background: rgba(99,102,241,0.15); color: #a5b4fc; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em; }

    /* MAIN LAYOUT */
    .blog-main { max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; display: grid; grid-template-columns: 1fr 340px; gap: 48px; }

    /* ARTICLES */
    .articles-list { }
    .featured-article {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px;
      transition: all 0.3s; cursor: pointer;
    }
    .featured-article:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
    .article-img {
      height: 220px; position: relative; overflow: hidden;
      background: linear-gradient(135deg, var(--surface2), rgba(99,102,241,0.2));
      display: flex; align-items: center; justify-content: center;
      font-size: 4rem;
    }
    .article-img .img-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to bottom, transparent 40%, rgba(15,23,42,0.8));
    }
    .article-body { padding: 28px; }
    .article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
    .article-cat { background: rgba(99,102,241,0.15); color: #a5b4fc; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; }
    .article-cat.cyan { background: rgba(6,182,212,0.12); color: var(--accent); }
    .article-cat.green { background: rgba(16,185,129,0.12); color: var(--success); }
    .article-date { font-size: 0.78rem; color: var(--text-dim); }
    .article-read-time { font-size: 0.78rem; color: var(--text-dim); }
    .article-title { font-size: 1.3rem; font-weight: 800; line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.02em; }
    .article-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
    .article-footer { display: flex; align-items: center; justify-content: space-between; }
    .author-row { display: flex; align-items: center; gap: 10px; }
    .author-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; }
    .author-name { font-size: 0.85rem; font-weight: 600; }
    .read-more { font-size: 0.85rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 6px; }
    .read-more:hover { opacity: 0.8; }

    .article-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
      display: flex; gap: 20px; cursor: pointer; transition: all 0.2s;
    }
    .article-card:hover { border-color: var(--primary); transform: translateX(4px); }
    .article-card .card-emoji { font-size: 2.5rem; flex-shrink: 0; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--surface2); border-radius: var(--radius); }
    .article-card .card-content { flex: 1; }
    .article-card .card-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
    .article-card .card-excerpt { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
    .article-card .card-meta { display: flex; gap: 10px; margin-top: 10px; }

    /* VARIANT TESTING NOTE */
    .variant-note {
      background: rgba(99,102,241,0.06); border: 1px dashed rgba(99,102,241,0.3);
      border-radius: var(--radius); padding: 12px 16px; margin-bottom: 24px;
      font-size: 0.78rem; color: var(--text-dim); display: flex; align-items: center; gap: 8px;
    }

    /* SIDEBAR */
    .sidebar { }
    .sidebar-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
    .sidebar-widget h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

    .related-articles { }
    .related-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(51,65,85,0.5); cursor: pointer; }
    .related-item:last-child { border-bottom: none; padding-bottom: 0; }
    .related-item:hover .related-title { color: var(--primary); }
    .related-emoji { font-size: 1.5rem; flex-shrink: 0; }
    .related-title { font-size: 0.85rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px; transition: color 0.2s; }
    .related-meta { font-size: 0.75rem; color: var(--text-dim); }

    .sidebar-cta { background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1)); border: 1px solid rgba(99,102,241,0.3); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
    .sidebar-cta h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
    .sidebar-cta p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-size: 0.9rem; font-weight: 700; cursor: pointer; border: none; font-family: var(--font); text-decoration: none; transition: all 0.2s; }
    .btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; width: 100%; }
    .btn-primary:hover { transform: translateY(-1px); opacity: 1; }

    .topics-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .topic-tag { background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted); padding: 5px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
    .topic-tag:hover { border-color: var(--primary); color: #a5b4fc; background: rgba(99,102,241,0.1); }

    .stats-mini { }
    .stats-mini .stat { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(51,65,85,0.5); }
    .stats-mini .stat:last-child { border-bottom: none; }
    .stats-mini .stat-label { font-size: 0.85rem; color: var(--text-muted); }
    .stats-mini .stat-value { font-size: 0.85rem; font-weight: 700; color: var(--accent); }

    .personalized-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(99,102,241,0.1); color: #a5b4fc; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; margin-bottom: 12px; }

    /* FOOTER */
    footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 24px; }
    .footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
    .footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }
    .powered-by { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-dim); }
    .powered-by a { color: var(--primary); font-weight: 600; }

    @media (max-width: 900px) {
      .blog-main { grid-template-columns: 1fr; }
      .sidebar { order: -1; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
    }
    @media (max-width: 600px) {
      .article-card { flex-direction: column; }
    }

    .fade-in-up { opacity: 0; animation: fadeInUp 0.5s ease forwards; }
    @keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } from { transform: translateY(20px); } }
  

/* === From account.html === */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --primary: #6366f1; --secondary: #8b5cf6; --accent: #06b6d4;
      --bg: #0f172a; --surface: #1e293b; --surface2: #263348; --border: #334155;
      --text: #f8fafc; --text-muted: #94a3b8; --text-dim: #64748b;
      --success: #10b981; --warning: #f59e0b; 
      --radius: 12px; --radius-lg: 20px; --shadow: 0 4px 24px rgba(0,0,0,0.4);
      --shadow-glow: 0 0 40px rgba(99,102,241,0.25);
      --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
    a { color: var(--accent); text-decoration: none; }
    a:hover { opacity: 0.8; }

    /* NAV */
    nav { position: sticky; top: 0; z-index: 90; background: rgba(15,23,42,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 0 24px; }
    .nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
    .nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: var(--text); }
    .logo-mark { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 900; color: #fff; }
    .nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
    .nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; padding: 6px 14px; border-radius: 8px; transition: all 0.2s; }
    .nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); opacity: 1; }
    .nav-links a.admin-link { color: var(--accent); border: 1px solid rgba(6,182,212,0.3); }
    .nav-links a.admin-link:hover { background: rgba(6,182,212,0.1); opacity: 1; }
    .nav-cta { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff !important; padding: 8px 18px !important; border-radius: 8px; font-weight: 600; }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
    .hamburger span { width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; }
    .mobile-nav { display: none; flex-direction: column; background: var(--surface); border-top: 1px solid var(--border); padding: 12px 24px 20px; }
    .mobile-nav.open { display: flex; }
    .mobile-nav a { color: var(--text-muted); padding: 12px 0; border-bottom: 1px solid var(--border); display: block; font-weight: 500; }
    .mobile-nav a:last-child { border-bottom: none; }

    /* PAGE LAYOUT */
    .page-wrapper { max-width: 1200px; margin: 0 auto; padding: 48px 24px 80px; }
    .page-header { margin-bottom: 40px; }
    .section-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); color: #a5b4fc; padding: 5px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; margin-bottom: 16px; }
    .page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 10px; }
    .gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
    .page-header p { color: var(--text-muted); font-size: 1rem; }

    /* IDENTITY CARD */
    .identity-section { margin-bottom: 32px; }
    .identity-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-lg); padding: 32px;
      display: flex; align-items: center; gap: 28px;
      position: relative; overflow: hidden;
    }
    .identity-card::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
    }
    .id-avatar {
      width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      display: flex; align-items: center; justify-content: center;
      font-size: 2rem; font-weight: 900; color: #fff;
      position: relative;
    }
    .id-avatar .avatar-ring {
      position: absolute; inset: -4px; border-radius: 50%;
      border: 2px solid var(--primary); opacity: 0.4;
      animation: ringPulse 2s ease-in-out infinite;
    }
    @keyframes ringPulse {
      0%, 100% { transform: scale(1); opacity: 0.4; }
      50% { transform: scale(1.08); opacity: 0.1; }
    }
    .id-info { flex: 1; }
    .id-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; }
    .id-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
    .id-badge { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
    .badge-returning { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
    .badge-segment { background: rgba(16,185,129,0.12); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
    .badge-new { background: rgba(6,182,212,0.12); color: var(--accent); border: 1px solid rgba(6,182,212,0.3); }
    .id-meta { display: flex; gap: 24px; flex-wrap: wrap; }
    .id-meta-item { font-size: 0.82rem; color: var(--text-muted); }
    .id-meta-item strong { color: var(--text); }
    .id-score-display { text-align: center; flex-shrink: 0; }
    .score-circle {
      width: 100px; height: 100px; border-radius: 50%;
      background: conic-gradient(var(--primary) calc(var(--score-pct) * 1%), var(--surface2) 0);
      display: flex; align-items: center; justify-content: center;
      position: relative;
    }
    .score-circle-inner {
      width: 80px; height: 80px; border-radius: 50%;
      background: var(--surface); display: flex; flex-direction: column;
      align-items: center; justify-content: center;
    }
    .score-num { font-size: 1.6rem; font-weight: 900; line-height: 1; }
    .score-label { font-size: 0.65rem; color: var(--text-muted); }

    /* PROFILE GRID */
    .profile-grid {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 20px; margin-bottom: 32px;
    }
    .stat-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 20px; text-align: center;
    }
    .stat-card .stat-icon { font-size: 1.8rem; margin-bottom: 8px; }
    .stat-card .stat-value { font-size: 1.8rem; font-weight: 900; line-height: 1; margin-bottom: 6px; }
    .stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); }

    /* TWO-COLUMN LAYOUT */
    .profile-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }

    /* SCORE BREAKDOWN */
    .widget-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
    .widget-title { font-size: 1rem; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
    .score-breakdown { }
    .score-row { margin-bottom: 16px; }
    .score-row-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; margin-bottom: 6px; }
    .score-row-label { color: var(--text-muted); }
    .score-row-value { font-weight: 700; }
    .score-bar-track { height: 8px; background: var(--surface2); border-radius: 100px; overflow: hidden; }
    .score-bar-fill { height: 100%; border-radius: 100px; transition: width 1s ease; }
    .fill-primary { background: linear-gradient(90deg, var(--primary), var(--secondary)); }
    .fill-accent { background: linear-gradient(90deg, var(--accent), var(--primary)); }
    .fill-green { background: linear-gradient(90deg, var(--success), var(--accent)); }
    .fill-amber { background: linear-gradient(90deg, var(--warning), var(--success)); }
    .total-score-row {
      display: flex; justify-content: space-between; align-items: center;
      padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--border);
      font-weight: 800; font-size: 1rem;
    }
    .total-score-row .total-val { font-size: 1.5rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

    /* SEGMENTS */
    .segments-grid { display: flex; flex-direction: column; gap: 12px; }
    .segment-pill {
      display: flex; align-items: center; gap: 12px;
      background: var(--surface2); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 14px 16px;
    }
    .segment-pill.active { border-color: var(--primary); background: rgba(99,102,241,0.08); }
    .segment-pill .seg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
    .dot-active { background: var(--success); box-shadow: 0 0 6px var(--success); animation: dotPulse 1.5s infinite; }
    @keyframes dotPulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
    .dot-inactive { background: var(--text-dim); }
    .seg-name { font-size: 0.9rem; font-weight: 700; flex: 1; }
    .seg-meta { font-size: 0.78rem; color: var(--text-muted); }
    .seg-status { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
    .status-member { background: rgba(16,185,129,0.12); color: var(--success); }
    .status-eligible { background: rgba(99,102,241,0.1); color: #a5b4fc; }
    .status-not { background: rgba(100,116,139,0.1); color: var(--text-dim); }

    /* JOURNEY TIMELINE */
    .journey-section { margin-bottom: 24px; }
    .timeline { position: relative; padding-left: 32px; }
    .timeline::before {
      content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px;
      width: 2px; background: var(--border);
    }
    .timeline-item { position: relative; margin-bottom: 20px; }
    .timeline-dot {
      position: absolute; left: -28px; top: 8px;
      width: 20px; height: 20px; border-radius: 50%;
      background: var(--primary); border: 3px solid var(--bg);
      display: flex; align-items: center; justify-content: center;
      font-size: 0.6rem;
    }
    .timeline-dot.milestone { background: var(--accent); box-shadow: 0 0 10px rgba(6,182,212,0.4); }
    .timeline-dot.event { background: var(--surface2); border-color: var(--border); }
    .timeline-content { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
    .timeline-content.milestone-card { border-color: rgba(6,182,212,0.3); background: rgba(6,182,212,0.06); }
    .timeline-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
    .timeline-title { font-size: 0.9rem; font-weight: 700; }
    .timeline-time { font-size: 0.72rem; color: var(--text-dim); white-space: nowrap; margin-left: 8px; }
    .timeline-desc { font-size: 0.8rem; color: var(--text-muted); }
    .milestone-tag { display: inline-flex; align-items: center; gap: 4px; background: rgba(6,182,212,0.12); color: var(--accent); font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.05em; }

    /* EVENT HISTORY TABLE */
    .event-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
    .event-table th { text-align: left; padding: 10px 14px; font-size: 0.75rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); background: var(--surface2); }
    .event-table td { padding: 10px 14px; border-bottom: 1px solid rgba(51,65,85,0.4); color: var(--text-muted); }
    .event-table tr:hover td { background: rgba(99,102,241,0.04); }
    .event-table tr:last-child td { border-bottom: none; }
    .event-name { font-weight: 600; color: var(--text); }
    .event-type { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
    .type-pageview { background: rgba(99,102,241,0.12); color: #a5b4fc; }
    .type-action { background: rgba(16,185,129,0.12); color: var(--success); }
    .type-milestone { background: rgba(6,182,212,0.12); color: var(--accent); }
    .type-experiment { background: rgba(245,158,11,0.12); color: var(--warning); }

    /* KNOWN SIGNALS */
    .signals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .signal-item { display: flex; align-items: flex-start; gap: 10px; }
    .signal-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
    .signal-key { font-size: 0.78rem; color: var(--text-dim); }
    .signal-value { font-size: 0.9rem; font-weight: 600; }

    /* RESET BUTTON */
    .reset-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
    .reset-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--danger); }
    .reset-section p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; max-width: 400px; margin-left: auto; margin-right: auto; }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-size: 0.9rem; font-weight: 700; cursor: pointer; border: none; font-family: var(--font); text-decoration: none; transition: all 0.2s; }
    .btn-danger { background: rgba(239,68,68,0.12); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
    .btn-danger:hover { background: rgba(239,68,68,0.2); border-color: var(--danger); opacity: 1; }
    .btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
    .btn-sm { padding: 8px 16px; font-size: 0.8rem; }

    /* TOAST */
    .toast { position: fixed; top: 80px; right: 24px; z-index: 500; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; font-size: 0.875rem; font-weight: 600; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; transform: translateX(110%); transition: transform 0.3s ease; }
    .toast.show { transform: translateX(0); }
    .toast.success { border-color: var(--success); color: var(--success); }
    .toast.danger { border-color: var(--danger); color: var(--danger); }

    /* CONFIRM DIALOG */
    .modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: all 0.3s; }
    .modal-overlay.active { opacity: 1; visibility: visible; }
    .modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 420px; width: 100%; padding: 36px; position: relative; box-shadow: var(--shadow); transform: scale(0.9); transition: transform 0.3s; text-align: center; }
    .modal-overlay.active .modal { transform: scale(1); }
    .modal h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
    .modal p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.9rem; }
    .modal-buttons { display: flex; gap: 12px; justify-content: center; }

    /* FOOTER */
    footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 24px; }
    .footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
    .footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }
    .powered-by { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-dim); }
    .powered-by a { color: var(--primary); font-weight: 600; }

    @media (max-width: 900px) {
      .profile-grid { grid-template-columns: repeat(2, 1fr); }
      .profile-cols { grid-template-columns: 1fr; }
      .signals-grid { grid-template-columns: 1fr; }
      .identity-card { flex-direction: column; text-align: center; }
      .id-meta { justify-content: center; }
      .id-badges { justify-content: center; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
    }
    @media (max-width: 600px) {
      .profile-grid { grid-template-columns: 1fr; }
    }

    .fade-in { opacity: 0; animation: fadeIn 0.5s ease forwards; }
    @keyframes fadeIn { to { opacity: 1; } }
  
/* === Account page — visitor profile specific === */
.segment-badge { cursor: default; transition: all 0.3s; }
.segment-badge:hover { opacity: 0.9 !important; }
.timeline-item { transition: opacity 0.3s; }
.profile-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.p-stat-label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.p-stat-value { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.tab-btn { padding: 14px 20px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 0.875rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s; font-family: var(--font); }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { animation: fadeIn 0.3s ease; }
.settings-section-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.form-input { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: 0.9rem; font-family: var(--font); outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: var(--primary); }

/* === Data reset danger styles === */

.modal-input { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; color: var(--text); font-size: 0.95rem; font-family: var(--font); margin-bottom: 12px; outline: none; }
.modal-input:focus { border-color: var(--primary); }
.modal-disclaimer { font-size: 0.78rem; color: var(--text-dim); margin-top: 12px; }
.modal-form { margin-bottom: 0; }

/* === Reading progress bar === */
#reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 9999; background: rgba(99,102,241,0.1); }
#reading-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.1s; }
