    :root {
      --bg: #0a0b0f;
      --bg-elevated: #111318;
      --bg-card: #161922;
      --border: rgba(255,255,255,0.06);
      --border-hover: rgba(255,255,255,0.12);
      --text: #f4f4f8;
      --text-muted: #8a8b9a;
      --accent: #6366f1;
      --accent-dim: rgba(99,102,241,0.15);
      --accent-glow: rgba(99,102,241,0.2);
      --success: #10b981;
      --success-dim: rgba(16,185,129,0.12);
      --error: #f43f5e;
      --error-dim: rgba(244,63,94,0.12);
      --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #a855f7 100%);
      --radius: 14px;
      --radius-lg: 20px;
      --radius-xl: 28px;
      --shadow: 0 8px 32px rgba(0,0,0,0.35);
      --shadow-glow: 0 0 60px rgba(99,102,241,0.15);
      --header-bg: rgba(10,11,15,0.85);
      --bg-radial-start: #0f1118;
      --bg-radial-end: #0a0b0f;
      --bg-mesh-1: rgba(99,102,241,0.25);
      --bg-mesh-2: rgba(139,92,246,0.2);
      --bg-mesh-3: rgba(168,85,247,0.15);
      --bg-mesh-4: rgba(99,102,241,0.06);
      --border-overlay: rgba(255,255,255,0.06);
      --border-overlay-hover: rgba(255,255,255,0.12);
      --modal-overlay: rgba(0,0,0,0.7);
    }
    [data-theme="light"] {
      --bg: #f1f5f9;
      --bg-elevated: #ffffff;
      --bg-card: #ffffff;
      --border: rgba(0,0,0,0.08);
      --border-hover: rgba(0,0,0,0.15);
      --text: #0f172a;
      --text-muted: #64748b;
      --accent: #6366f1;
      --accent-dim: rgba(99,102,241,0.12);
      --accent-glow: rgba(99,102,241,0.15);
      --success: #059669;
      --success-dim: rgba(5,150,105,0.12);
      --error: #dc2626;
      --error-dim: rgba(220,38,38,0.12);
      --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #a855f7 100%);
      --shadow: 0 8px 32px rgba(0,0,0,0.08);
      --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
      --header-bg: rgba(241,245,249,0.9);
      --bg-radial-start: #e2e8f0;
      --bg-radial-end: #f1f5f9;
      --bg-mesh-1: rgba(99,102,241,0.12);
      --bg-mesh-2: rgba(139,92,246,0.1);
      --bg-mesh-3: rgba(168,85,247,0.08);
      --bg-mesh-4: rgba(99,102,241,0.04);
      --border-overlay: rgba(0,0,0,0.06);
      --border-overlay-hover: rgba(0,0,0,0.12);
      --modal-overlay: rgba(0,0,0,0.4);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      line-height: 1.6;
      position: relative;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    .bg {
      position: fixed;
      inset: 0;
      z-index: -1;
      overflow: hidden;
      background: radial-gradient(ellipse 90% 80% at 50% -20%, var(--bg-radial-start) 0%, var(--bg-radial-end) 60%);
    }
    .bg-mesh {
      position: absolute;
      inset: -100%;
      background:
        radial-gradient(ellipse 70% 50% at 20% 10%, var(--bg-mesh-1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 90% 20%, var(--bg-mesh-2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 5% 80%, var(--bg-mesh-3) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 50% 50%, var(--bg-mesh-4) 0%, transparent 60%);
      animation: bgFloat 30s ease-in-out infinite;
    }
    .bg-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--border-overlay) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-overlay) 1px, transparent 1px);
      background-size: 64px 64px;
      mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 70%);
    }
    .bg-noise {
      position: absolute;
      inset: 0;
      opacity: 0.015;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }
    .bg-glow {
      position: absolute;
      border-radius: 50%;
      filter: blur(120px);
      pointer-events: none;
    }
    .bg-glow-1 {
      width: 500px; height: 500px;
      top: -200px; right: -100px;
      background: rgba(99,102,241,0.4);
      animation: glowPulse 12s ease-in-out infinite;
    }
    .bg-glow-2 {
      width: 400px; height: 400px;
      bottom: -150px; left: -80px;
      background: rgba(168,85,247,0.35);
      animation: glowPulse 14s ease-in-out infinite 3s;
    }
    [data-theme="light"] .bg-glow-1 { background: rgba(99,102,241,0.2); }
    [data-theme="light"] .bg-glow-2 { background: rgba(168,85,247,0.15); }

    /* Light theme: score details & result cards */
    [data-theme="light"] .score-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.98) 100%);
      box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    }
    [data-theme="light"] .check-item {
      background: rgba(0,0,0,0.02);
    }
    [data-theme="light"] .check-item.pass { border-color: rgba(5,150,105,0.3); background: rgba(5,150,105,0.06); }
    [data-theme="light"] .check-item.fail { border-color: rgba(220,38,38,0.3); background: rgba(220,38,38,0.06); }
    [data-theme="light"] .check-header:hover { background: rgba(0,0,0,0.03); }
    [data-theme="light"] .upgrade-pro-banner {
      background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(139,92,246,0.08) 100%);
      border-color: rgba(99,102,241,0.35);
    }
    [data-theme="light"] .upgrade-pro-btn {
      box-shadow: 0 4px 14px rgba(99,102,241,0.3);
    }
    [data-theme="light"] .prioritized-fixes-section {
      background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.06) 100%);
      border-color: rgba(99,102,241,0.25);
    }
    [data-theme="light"] .compare-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.98) 100%);
      box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    }
    [data-theme="light"] .history-item { background: rgba(0,0,0,0.02); }
    [data-theme="light"] .history-item:hover { background: rgba(0,0,0,0.04); }
    [data-theme="light"] .leaderboard-item { background: rgba(0,0,0,0.02); }
    [data-theme="light"] .leaderboard-item:hover { background: rgba(0,0,0,0.04); }
    [data-theme="light"] .cta-block { background: rgba(0,0,0,0.02); }
    [data-theme="light"] .tabs { background: rgba(0,0,0,0.04); }
    [data-theme="light"] .tab.active { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
    [data-theme="light"] .score-share-btn { background: rgba(0,0,0,0.04); }
    [data-theme="light"] .compare-share-btn { background: rgba(0,0,0,0.04); }
    [data-theme="light"] .history-pagination button { background: rgba(0,0,0,0.04); }
    [data-theme="light"] .history-pagination button:hover:not(:disabled) { background: rgba(0,0,0,0.08); }
    [data-theme="light"] .prioritized-fix-item.clickable:hover { background: rgba(0,0,0,0.04); }
    [data-theme="light"] .user-dropdown a:hover,
    [data-theme="light"] .user-dropdown button:hover { background: rgba(0,0,0,0.06); }
    @keyframes bgFloat {
      0%, 100% { transform: translate(0, 0) scale(1); }
      50% { transform: translate(2%, -1%) scale(1.02); }
    }
    @keyframes glowPulse {
      0%, 100% { opacity: 0.3; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(1.08); }
    }

    .page {
      max-width: 900px;
      margin: 0 auto;
      padding: 2rem 1.5rem 5rem;
      position: relative;
      z-index: 1;
    }

    /* Full-width header bar */
    .header-bar {
      position: sticky;
      top: 0;
      z-index: 100;
      width: 100%;
      background: var(--header-bg);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 0.875rem 2rem;
    }
    .header-bar-inner {
      max-width: 1400px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
    }
    .header-logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
      color: inherit;
    }
    .header-logo:hover .logo { opacity: 0.95; }
    .header-logo .logo-wrap { margin: 0; }
    .logo-wrap {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
    }
    .logo-icon {
      flex-shrink: 0;
      width: 42px;
      height: 42px;
    }
    .logo {
      font-size: 1.9rem;
      font-weight: 700;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      letter-spacing: -0.03em;
    }
    .tagline {
      color: var(--text-muted);
      font-size: 0.9rem;
      font-weight: 500;
      margin-left: 0.25rem;
      letter-spacing: 0.01em;
    }
    .header-nav { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 44px;
      height: 44px;
      padding: 10px;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      cursor: pointer;
      transition: background 0.2s;
    }
    .hamburger:hover { background: rgba(255,255,255,0.08); }
    .hamburger span {
      display: block;
      width: 20px;
      height: 2px;
      background: var(--text-muted);
      border-radius: 1px;
      transition: transform 0.25s, opacity 0.25s;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .score-info-link {
      font-size: 0.8rem;
      color: var(--text-muted);
      cursor: pointer;
      text-decoration: none;
      margin-top: 0.75rem;
      display: inline-block;
      padding: 0.35rem 0.75rem;
      border-radius: 8px;
      background: rgba(255,255,255,0.04);
      transition: color 0.2s, background 0.2s;
    }
    .score-info-link:hover { color: var(--accent); background: var(--accent-dim); }
    .score-label .score-info-link { margin-top: 0; margin-left: 0.35rem; }
    .score-label .score-info-link { padding: 0.2rem 0.5rem; font-size: 0.7rem; }

    .modal-overlay {
      position: fixed;
      inset: 0;
      background: var(--modal-overlay);
      backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 1.5rem;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .modal-overlay.visible { opacity: 1; visibility: visible; }
    /* Auth: full-page overlay for spacious login/signup */
    .auth-modal.visible {
      padding: 2rem 1.5rem;
      align-items: center;
      justify-content: center;
      overflow-y: auto;
    }
    .auth-modal .modal {
      max-width: 440px;
      width: 100%;
      padding: 2.5rem 2.5rem;
      margin: auto;
    }
    .modal {
      position: relative;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      max-width: 500px;
      max-height: 85vh;
      overflow-y: auto;
      padding: 2rem 2.5rem;
      box-shadow: var(--shadow), var(--shadow-glow);
      transform: scale(0.96) translateY(10px);
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .modal-overlay.visible .modal { transform: scale(1) translateY(0); }
    .modal h2 { margin: 0 0 1rem; font-size: 1.15rem; font-weight: 600; }
    .modal-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--border);
      color: var(--text-muted);
      width: 36px;
      height: 36px;
      border-radius: 10px;
      font-size: 1.25rem;
      cursor: pointer;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.2s, background 0.2s;
    }
    .modal-close:hover { color: var(--text); background: rgba(255,255,255,0.08); }
    .score-calc-intro { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.6; }
    .score-calc-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
    .score-calc-table th, .score-calc-table td { padding: 0.5rem 0.6rem; text-align: left; border-bottom: 1px solid var(--border); }
    .score-calc-table th { color: var(--text-muted); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
    .score-calc-table .penalty { text-align: right; color: var(--error); font-family: 'JetBrains Mono', monospace; font-weight: 500; }

    /* Input */
    .input-wrap {
      display: flex;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
    }
    .input-wrap input {
      flex: 1;
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1rem 1.25rem;
      font-size: 1rem;
      font-family: 'JetBrains Mono', monospace;
      color: var(--text);
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .input-wrap input::placeholder { color: var(--text-muted); opacity: 0.8; }
    .input-wrap input:hover { border-color: var(--border-hover); }
    .input-wrap input:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-dim);
    }
    .btn {
      background: var(--gradient);
      color: white;
      border: none;
      border-radius: var(--radius);
      padding: 1rem 1.75rem;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
      white-space: nowrap;
      box-shadow: 0 4px 20px rgba(99,102,241,0.3);
    }
    .btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(99,102,241,0.4); }
    .btn:disabled { opacity: 0.6; cursor: not-allowed; }
    .btn-ghost {
      background: rgba(255,255,255,0.04);
      color: var(--text-muted);
      border: 1px solid var(--border);
    }
    .btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.08); color: var(--text); }

    /* Score card */
    .score-card {
      background: linear-gradient(180deg, rgba(22,25,34,0.9) 0%, rgba(17,19,24,0.95) 100%);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 2.25rem;
      margin-bottom: 1.5rem;
      box-shadow: var(--shadow);
      backdrop-filter: blur(20px);
    }
    .score-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1.25rem;
      margin-bottom: 1.5rem;
    }
    .score-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
    .score-value {
      font-size: 3.5rem;
      font-weight: 700;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      letter-spacing: -0.02em;
    }
    .score-value.perfect { color: var(--success); -webkit-text-fill-color: var(--success); }
    .score-bar {
      height: 10px;
      background: var(--bg-elevated);
      border-radius: 6px;
      overflow: hidden;
      margin: 1rem 0;
    }
    .score-bar-fill {
      height: 100%;
      background: var(--gradient);
      border-radius: 6px;
      transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .score-bar-fill.low { background: linear-gradient(90deg, #f43f5e, #e11d48); }
    .score-bar-fill.mid { background: linear-gradient(90deg, #f59e0b, #eab308); }
    .score-bar-fill.high { background: var(--gradient); }
    .score-bar-fill.perfect { background: var(--success); }
    .stats {
      display: flex;
      gap: 1.75rem;
      flex-wrap: wrap;
      font-size: 0.9rem;
      color: var(--text-muted);
    }
    .stats span { font-family: 'JetBrains Mono', monospace; }
    .stats strong { color: var(--text); font-weight: 600; }

    /* AI Traffic section */
    .ai-traffic-section {
      margin-top: 1.5rem;
      padding: 1.25rem;
      background: rgba(99,102,241,0.06);
      border: 1px solid rgba(99,102,241,0.2);
      border-radius: var(--radius);
    }
    .ai-traffic-header { margin-bottom: 1rem; }
    .ai-traffic-title { font-size: 0.95rem; font-weight: 600; color: var(--text); display: block; }
    .ai-traffic-subtitle { font-size: 0.8rem; color: var(--text-muted); }
    .ai-traffic-numbers { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.95rem; margin-bottom: 0.5rem; }
    .ai-traffic-total { color: var(--text-muted); }
    .ai-traffic-ai { color: var(--accent); font-weight: 600; }
    .ai-traffic-bar-wrap {
      height: 8px;
      background: var(--bg-elevated);
      border-radius: 6px;
      overflow: hidden;
      margin-bottom: 1rem;
    }
    .ai-traffic-bar {
      height: 100%;
      background: var(--gradient);
      border-radius: 6px;
      transition: width 0.5s ease;
    }
    .ai-traffic-sources { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
    .ai-traffic-source-row {
      display: flex;
      justify-content: space-between;
      padding: 0.35rem 0;
      border-bottom: 1px solid var(--border);
    }
    .ai-traffic-source-row:last-child { border-bottom: none; }
    .ai-traffic-source-name { color: var(--text); font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
    .ai-traffic-source-count { color: var(--text-muted); font-weight: 500; }
    .ai-traffic-empty { font-size: 0.9rem; color: var(--text-muted); margin: 0.5rem 0 0; line-height: 1.5; }
    .ai-traffic-connect-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
    .ai-traffic-connect-steps { margin: 0 0 1rem 1.25rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
    .ai-traffic-connect-steps li { margin-bottom: 0.5rem; }
    .ai-traffic-connect-form { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
    .ai-traffic-loading { font-size: 0.9rem; color: var(--text-muted); }
    .ai-traffic-cta .ai-traffic-header { margin-bottom: 0.75rem; }
    .ai-traffic-cta-content { margin-top: 0.5rem; }
    .ai-traffic-cta-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin: 0 0 1rem; }
    .ai-traffic-cta-btn { margin-top: 0.25rem; }

    /* Checks grid */
    .checks-section { margin-top: 1.75rem; }
    .checks-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--text-muted); }
    .check-category { margin-bottom: 1.5rem; }
    .check-category-title { font-size: 0.75rem; font-weight: 600; color: var(--accent); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; }
    .checks-grid {
      display: grid;
      gap: 0.5rem;
    }
    .check-item {
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      transition: border-color 0.2s, background 0.2s;
    }
    .check-item.pass { border-color: rgba(16,185,129,0.25); background: rgba(16,185,129,0.03); }
    .check-item.fail { border-color: rgba(244,63,94,0.25); background: rgba(244,63,94,0.03); }
    .check-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 1.25rem;
      cursor: pointer;
      user-select: none;
      transition: background 0.2s;
    }
    .check-header:hover { background: rgba(255,255,255,0.03); }
    .check-name { font-weight: 500; display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
    .check-right {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      margin-left: auto;
    }
    .check-badge {
      font-size: 0.7rem;
      padding: 0.3rem 0.65rem;
      border-radius: 8px;
      font-weight: 600;
      letter-spacing: 0.02em;
    }
    .check-badge.pass { background: var(--success-dim); color: var(--success); }
    .check-badge.fail { background: var(--error-dim); color: var(--error); }
    .check-arrow {
      color: var(--text-muted);
      transition: transform 0.25s ease;
      font-size: 0.7rem;
    }
    .check-item.expanded .check-arrow { transform: rotate(180deg); }
    .check-body {
      display: none;
      padding: 0 1.25rem 1.25rem;
      border-top: 1px solid var(--border);
    }
    .check-item.expanded .check-body { display: block; }
    .fix-guide {
      margin-top: 1rem;
      padding: 1.25rem;
      background: var(--bg);
      border-radius: var(--radius);
      font-size: 0.9rem;
      line-height: 1.7;
    }
    .fix-guide h4 { font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--accent); font-weight: 600; }
    .fix-guide ol, .fix-guide ul { margin: 0.5rem 0 0 1.25rem; }
    .fix-guide li { margin-bottom: 0.4rem; }
    .fix-guide code {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.8em;
      background: var(--bg-elevated);
      padding: 0.2rem 0.45rem;
      border-radius: 6px;
    }

    /* History */
    .history-section { margin-top: 2.5rem; }
    .history-title {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .history-list { display: flex; flex-direction: column; gap: 0.5rem; }
    .history-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.9rem 1.25rem;
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      font-size: 0.9rem;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s;
    }
    .history-item:hover { background: rgba(255,255,255,0.04); border-color: var(--border-hover); }
    .history-item .url { flex: 1; min-width: 0; text-align: left; font-family: 'JetBrains Mono', monospace; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .history-favicon { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; background: var(--bg-elevated); flex-shrink: 0; }
    .history-item .score { flex-shrink: 0; font-weight: 600; color: var(--accent); }
    .leaderboard-rank { font-weight: 700; color: var(--accent); min-width: 2rem; font-variant-numeric: tabular-nums; }
    .leaderboard-favicon { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; background: var(--bg-elevated); flex-shrink: 0; }
    .leaderboard-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.25rem; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; transition: background 0.2s, border-color 0.2s; }
    .leaderboard-item:hover { background: rgba(255,255,255,0.04); border-color: var(--border-hover); }
    .leaderboard-item .url { flex: 1; min-width: 0; text-align: left; font-family: 'JetBrains Mono', monospace; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .leaderboard-item .score { font-weight: 600; color: var(--accent); min-width: 2.5rem; text-align: right; }
    .leaderboard-view-btn { padding: 0.35rem 0.75rem; font-size: 0.8rem; font-weight: 500; border-radius: 8px; background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(99,102,241,0.3); cursor: pointer; flex-shrink: 0; transition: background 0.2s, color 0.2s; }
    .leaderboard-view-btn:hover { background: var(--accent); color: white; }
    .leaderboard-sort { display: flex; gap: 0.25rem; }
    .leaderboard-sort .tab { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    .history-pagination {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 0.75rem;
      font-size: 0.9rem;
      color: var(--text-muted);
    }
    .history-pagination button {
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      color: var(--text-muted);
      padding: 0.5rem 0.9rem;
      border-radius: var(--radius);
      cursor: pointer;
      font-size: 0.85rem;
      transition: background 0.2s, color 0.2s;
    }
    .history-pagination button:hover:not(:disabled) { background: rgba(255,255,255,0.08); color: var(--text); }
    .history-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

    .fix-guide-links {
      margin-top: 0.75rem;
      padding-top: 0.75rem;
      border-top: 1px solid var(--border);
    }
    .fix-guide-links a {
      display: inline-block;
      margin-right: 0.75rem;
      margin-bottom: 0.35rem;
      color: var(--accent);
      text-decoration: none;
      font-size: 0.85rem;
    }
    .fix-guide-links a:hover { text-decoration: underline; }
    .fix-guide-links a::after { content: ' ↗'; font-size: 0.75em; opacity: 0.8; }

    /* Upgrade to Pro */
    .upgrade-pro-link {
      color: var(--accent) !important;
      font-weight: 600;
      text-decoration: none;
      padding: 0.2rem 0.5rem;
      border-radius: 6px;
      background: var(--accent-dim);
      transition: background 0.2s, color 0.2s;
    }
    .upgrade-pro-link:hover {
      background: var(--accent);
      color: white !important;
    }
    .upgrade-pro-banner {
      margin-top: 1rem;
      margin-bottom: 1.5rem;
      padding: 1.5rem;
      background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.12) 100%);
      border: 1px solid rgba(99,102,241,0.4);
      border-radius: var(--radius);
      box-shadow: 0 0 24px rgba(99,102,241,0.15);
    }
    .upgrade-pro-title { font-weight: 600; font-size: 1rem; color: var(--text); }
    .upgrade-pro-desc { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--text-muted); }
    .upgrade-pro-btn {
      display: inline-block;
      margin-top: 1rem;
      padding: 0.65rem 1.5rem;
      font-weight: 600;
      font-size: 0.95rem;
      color: white !important;
      background: var(--gradient);
      border: none;
      border-radius: var(--radius);
      text-decoration: none;
      box-shadow: 0 4px 14px rgba(99,102,241,0.4);
      transition: transform 0.2s, box-shadow 0.2s;
      cursor: pointer;
      font-family: inherit;
    }
    .upgrade-pro-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(99,102,241,0.5);
    }
    .upgrade-security-note {
      display: block;
      margin-top: 0.5rem;
      font-size: 0.75rem;
      color: var(--text-muted);
      opacity: 0.9;
    }

    /* Prioritized fixes */
    .prioritized-fixes-section {
      margin-bottom: 1.5rem;
      padding: 1.25rem;
      background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.06) 100%);
      border: 1px solid rgba(99,102,241,0.2);
      border-radius: var(--radius);
    }
    .prioritized-fixes-title {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--accent);
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .prioritized-fixes-title::before {
      content: '↑';
      font-size: 1rem;
    }
    .prioritized-fix-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.65rem 0;
      border-bottom: 1px solid var(--border);
      font-size: 0.9rem;
    }
    .prioritized-fix-item:last-child { border-bottom: none; }
    .prioritized-fix-item.clickable {
      cursor: pointer;
      border-radius: 6px;
      transition: background 0.2s;
    }
    .prioritized-fix-item.clickable:hover {
      background: rgba(255,255,255,0.04);
    }
    .prioritized-fix-points {
      font-weight: 600;
      color: var(--success);
      font-size: 0.85rem;
      white-space: nowrap;
    }

    /* Loading / Error */
    .state {
      text-align: center;
      padding: 3.5rem 2rem;
      color: var(--text-muted);
    }
    .state.error { color: var(--error); }
    .spinner {
      width: 36px;
      height: 36px;
      border: 3px solid var(--border);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin: 0 auto 1rem;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* CTA */
    .cta-block {
      margin-top: 1.75rem;
      padding: 1.5rem 1.75rem;
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      text-align: center;
    }
    .cta-block p {
      color: var(--text-muted);
      font-size: 0.9rem;
      margin-bottom: 0.75rem;
    }
    .cta-block .cta-email {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--accent);
      font-size: 0.95rem;
      font-weight: 500;
      font-family: 'JetBrains Mono', monospace;
      text-decoration: none;
      transition: color 0.2s;
    }
    .cta-block .cta-email:hover { color: #818cf8; }
    .cta-block .cta-email svg {
      width: 18px;
      height: 18px;
      opacity: 0.9;
    }

    .score-value-row {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    .scanned-url-row {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 0.5rem;
      word-break: break-all;
      max-width: 100%;
    }
    .score-share-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.4rem 0.65rem;
      color: var(--text-muted);
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      transition: color 0.2s, background 0.2s, border-color 0.2s;
    }
    .score-share-btn:hover { color: var(--accent); background: var(--accent-dim); border-color: rgba(99,102,241,0.3); }
    .score-share-btn svg { width: 16px; height: 16px; }
    .score-share-text { white-space: nowrap; }
    a.score-visit-btn { text-decoration: none; }

    .footer-cta {
      margin-top: 3.5rem;
      padding: 2rem 1rem 2.5rem;
      border-top: 1px solid var(--border);
      text-align: center;
    }
    .footer-cta-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      max-width: 480px;
      margin: 0 auto;
    }
    .footer-cta-docs {
      margin-bottom: 0.75rem;
      font-size: 0.85rem;
    }
    .footer-cta-docs a {
      color: var(--text-muted);
      text-decoration: none;
    }
    .footer-cta-docs a:hover { color: var(--accent); }
    .footer-cta-label {
      color: var(--text-muted);
      font-size: 0.85rem;
      font-weight: 500;
    }
    .footer-cta-links {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 0.75rem 1.25rem;
    }
    .footer-cta a {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--text);
      font-size: 0.95rem;
      font-weight: 500;
      text-decoration: none;
      font-family: 'JetBrains Mono', monospace;
      transition: color 0.2s;
    }
    .footer-cta a:hover { color: var(--accent); }
    .footer-cta .email-icon, .footer-cta .footer-icon {
      width: 16px;
      height: 16px;
      opacity: 0.7;
      flex-shrink: 0;
    }
    .footer-cta-address {
      color: var(--text-muted);
      font-size: 0.875rem;
      line-height: 1.5;
    }
    .footer-cta-address a {
      font-family: inherit;
    }
    /* Tabs */
    .tabs {
      display: flex;
      gap: 0.25rem;
      margin-bottom: 1.25rem;
      background: rgba(255,255,255,0.03);
      padding: 0.35rem;
      border-radius: var(--radius);
      width: fit-content;
    }
    .tab {
      padding: 0.6rem 1.25rem;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      color: var(--text-muted);
      background: transparent;
      border: none;
      transition: color 0.2s, background 0.2s;
    }
    .tab:hover { color: var(--text); }
    .tab.active { color: var(--text); background: var(--bg-elevated); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

    /* Compare form */
    .compare-input-wrap {
      margin-bottom: 1rem;
    }
    .compare-input-wrap textarea {
      width: 100%;
      min-height: 120px;
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1rem 1.25rem;
      font-size: 0.95rem;
      font-family: 'JetBrains Mono', monospace;
      color: var(--text);
      resize: vertical;
      transition: border-color 0.2s;
    }
    .compare-input-wrap textarea::placeholder { color: var(--text-muted); }
    .compare-input-wrap textarea:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-dim);
    }
    .compare-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

    /* Compare table */
    .compare-card {
      background: linear-gradient(180deg, rgba(22,25,34,0.9) 0%, rgba(17,19,24,0.95) 100%);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 2rem;
      margin-bottom: 1.5rem;
      box-shadow: var(--shadow);
      overflow-x: auto;
    }
    .compare-header-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }
    .compare-share-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.4rem 0.65rem;
      color: var(--text-muted);
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      transition: color 0.2s, background 0.2s, border-color 0.2s;
    }
    .compare-share-btn:hover { color: var(--accent); background: var(--accent-dim); border-color: rgba(99,102,241,0.3); }
    .compare-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.9rem;
    }
    .compare-table th, .compare-table td {
      padding: 0.6rem 0.75rem;
      text-align: left;
      border-bottom: 1px solid var(--border);
    }
    .compare-table th {
      color: var(--text-muted);
      font-weight: 500;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .compare-table .check-name { font-weight: 500; }
    .compare-table .cell-lead { background: rgba(16,185,129,0.08); color: var(--success); }
    .compare-table .cell-lag { background: rgba(244,63,94,0.08); color: var(--error); }
    .compare-table .cell-pass { color: var(--success); }
    .compare-table .cell-fail { color: var(--error); }
    .compare-table .score-cell { font-weight: 600; font-family: 'JetBrains Mono', monospace; }
    .compare-table .url-cell { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .turnstile-wrap {
      position: absolute;
      left: -9999px;
      width: 1px;
      height: 1px;
      overflow: hidden;
      margin: 0;
      min-height: 0;
    }

    /* Search hero - full width */
    .search-hero {
      width: 100%;
      padding: 4rem 2rem 4.5rem;
      position: relative;
      z-index: 1;
      border-bottom: 1px solid var(--border);
    }
    .search-hero-inner {
      max-width: 1100px;
      margin: 0 auto;
      width: 100%;
    }
    .search-hero .tabs { margin-bottom: 1.25rem; }
    .search-hero .input-wrap {
      margin-bottom: 0;
    }
    .search-hero .input-wrap input {
      padding: 1.25rem 1.5rem;
      font-size: 1.05rem;
    }
    .search-hero .btn { padding: 1.25rem 2rem; font-size: 1.05rem; }
    .search-hero .compare-input-wrap textarea {
      min-height: 140px;
      padding: 1.25rem 1.5rem;
      font-size: 1rem;
    }
    .aeo-bundle-wrap {
      margin-top: 1rem;
      padding: 1rem;
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border);
      border-radius: var(--radius);
    }
    .aeo-bundle-check {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      cursor: pointer;
      font-size: 0.95rem;
      font-weight: 500;
    }
    .aeo-bundle-check input { accent-color: var(--accent); }
    .aeo-bundle-hint {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin: 0.5rem 0 0;
      line-height: 1.5;
    }
    .aeo-bundle-fields { margin-top: 1rem; }
    .aeo-bundle-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 0.75rem;
    }
    .aeo-bundle-field label {
      display: block;
      font-size: 0.85rem;
      font-weight: 500;
      margin-bottom: 0.25rem;
    }
    .aeo-bundle-field input {
      width: 100%;
      padding: 0.5rem 0.75rem;
      font-size: 0.9rem;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--bg-elevated);
      color: var(--text);
    }
    .aeo-bundle-field input:focus {
      outline: none;
      border-color: var(--accent);
    }
    .aeo-result-cta {
      margin-top: 1.5rem;
      padding: 1rem;
      background: rgba(99,102,241,0.08);
      border: 1px solid rgba(99,102,241,0.2);
      border-radius: var(--radius);
    }
    .aeo-result-cta h4 { font-size: 1rem; margin: 0 0 0.5rem; }
    .aeo-result-cta p { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 0.75rem; }
    .aeo-result-cta .aeo-result-desc { margin-bottom: 1rem; }
    .aeo-partial-scores { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
    .aeo-partial-provider { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
    .aeo-partial-name { min-width: 90px; font-weight: 500; }
    .aeo-partial-bar-wrap { flex: 1; display: flex; align-items: center; gap: 0.5rem; }
    .aeo-partial-bar { height: 6px; background: var(--accent); border-radius: 4px; min-width: 4px; transition: width 0.2s; }
    .aeo-partial-bar.high { background: var(--success); }
    .aeo-partial-bar.mid { background: linear-gradient(90deg, #f59e0b, var(--accent)); }
    .aeo-partial-bar.low { background: var(--error); }
    .aeo-partial-score { font-size: 0.85rem; font-weight: 600; min-width: 2ch; }
    .aeo-partial-trajectory { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 1rem; }
    .aeo-result-cta .btn { font-size: 0.9rem; padding: 0.5rem 1rem; }

    /* Auth */
    .auth-buttons {
      display: flex;
      gap: 0.5rem;
      flex-shrink: 0;
    }
    .auth-btn {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
      font-weight: 500;
      border-radius: var(--radius);
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      color: var(--text-muted);
    }
    .auth-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
    .auth-btn.primary { background: var(--gradient); color: white; border: none; }
    .auth-btn.primary:hover { opacity: 0.95; }
    .auth-btn[href] { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
    .lang-switcher-wrap { position: relative; }
    .lang-switcher-btn {
      width: 36px;
      height: 36px;
      border-radius: var(--radius);
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      line-height: 1;
      padding: 0;
    }
    .lang-switcher-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
    .lang-dropdown {
      display: none;
      position: absolute;
      top: calc(100% + 4px);
      right: 0;
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 0.25rem;
      flex-wrap: wrap;
      gap: 0.2rem;
      z-index: 100;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .lang-dropdown.open { display: flex; }
    .lang-dropdown button {
      width: 32px;
      height: 28px;
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 1rem;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }
    .lang-dropdown button:hover { background: rgba(255,255,255,0.08); }
    .theme-toggle {
      width: 36px;
      height: 36px;
      border-radius: var(--radius);
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      color: var(--text-muted);
      font-size: 1.1rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, color 0.2s;
    }
    .theme-toggle:hover { background: rgba(255,255,255,0.08); color: var(--text); }
    .theme-toggle .theme-icon-light { display: none; }
    [data-theme="light"] .theme-toggle .theme-icon-dark { display: none; }
    [data-theme="light"] .theme-toggle .theme-icon-light { display: inline; }
    .user-badge {
      display: flex;
      align-items: center;
      position: relative;
    }
    .user-avatar-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      font-weight: 600;
      flex-shrink: 0;
      text-transform: uppercase;
      border: none;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .user-avatar-btn:hover { transform: scale(1.05); box-shadow: 0 0 0 2px var(--accent-dim); }
    .user-dropdown {
      position: absolute;
      top: calc(100% + 0.5rem);
      right: 0;
      min-width: 160px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 0.5rem;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-4px);
      transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
      z-index: 200;
    }
    .user-dropdown.open {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    .user-dropdown a,
    .user-dropdown button {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      width: 100%;
      padding: 0.6rem 0.75rem;
      border: none;
      background: none;
      color: var(--text-muted);
      font-size: 0.9rem;
      font-family: inherit;
      cursor: pointer;
      border-radius: 8px;
      text-decoration: none;
      transition: background 0.2s, color 0.2s;
      text-align: left;
    }
    .user-dropdown a:hover,
    .user-dropdown button:hover {
      background: rgba(255,255,255,0.06);
      color: var(--text);
    }
    .auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
    .auth-form input {
      width: 100%;
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1rem 1.25rem;
      font-size: 1rem;
      color: var(--text);
      min-height: 48px;
    }
    .auth-form input:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-dim);
    }
    .auth-form .error-msg { color: var(--error); font-size: 0.85rem; }
    .auth-form .switch-mode {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-top: 0.5rem;
    }
    .auth-form .switch-mode a { color: var(--accent); cursor: pointer; text-decoration: none; }
    .auth-form .switch-mode a:hover { text-decoration: underline; }
    .auth-form .forgot-password { margin-top: -0.5rem; margin-bottom: 0.5rem; }
    .auth-form .forgot-password a { font-size: 0.9rem; color: var(--text-muted); }
    .auth-form .forgot-password a:hover { color: var(--accent); }
    .auth-form-hint { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
    .auth-form .btn { min-height: 48px; padding: 1rem 1.5rem; font-size: 1rem; }
    .auth-divider {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin: 0.5rem 0;
    }
    .auth-divider::before,
    .auth-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }
    .auth-divider span {
      font-size: 0.85rem;
      color: var(--text-muted);
    }
    .auth-form .btn-google {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      min-height: 48px;
      padding: 1rem 1.5rem;
      font-size: 1rem;
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      color: var(--text);
      text-decoration: none;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
    }
    .auth-form .btn-google:hover {
      border-color: var(--border-hover);
      background: rgba(255,255,255,0.06);
    }
    .auth-form .google-icon { flex-shrink: 0; }
    .auth-modal .modal h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
    .auth-modal .modal-close { top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; font-size: 1.5rem; }

    /* Mobile responsive */
    @media (max-width: 768px) {
      .header-bar { padding: 0.75rem 1rem; }
      .header-bar-inner { flex-wrap: wrap; gap: 0; }
      .header-logo { flex: 1; }
      .tagline { display: none; }
      .hamburger { display: flex; }
      .header-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0 0;
        border-top: 1px solid var(--border);
        margin-top: 0.75rem;
      }
      .header-nav.open { display: flex; }
      .header-nav .auth-buttons { flex-direction: column; width: 100%; }
      .header-nav .auth-btn { width: 100%; justify-content: center; min-height: 44px; }
      .header-nav .user-badge { justify-content: center; }
      .header-nav .user-dropdown { left: 50%; right: auto; transform: translate(-50%, -4px); }
      .header-nav .user-dropdown.open { transform: translate(-50%, 0); }
      .search-hero { padding: 2rem 1rem 2.5rem; }
      .page { padding: 1.5rem 1rem 4rem; }
      .auth-btn { min-height: 44px; padding: 0.6rem 1.2rem; }
      .input-wrap { flex-direction: column; gap: 0.75rem; }
      .input-wrap .btn { width: 100%; min-height: 48px; }
      .input-wrap input { min-height: 48px; }
      .score-card { padding: 1.5rem; }
      .score-value { font-size: 2.75rem; }
      .score-header { flex-direction: column; align-items: flex-start; }
      .tabs { flex-wrap: wrap; }
      .tab { min-height: 44px; padding: 0.75rem 1rem; }
      .history-item { flex-wrap: wrap; gap: 0.5rem; }
      .leaderboard-item { flex-wrap: wrap; }
      .auth-modal .modal { padding: 2rem 1.5rem; margin: 1rem; }
    }
    @media (max-width: 480px) {
      .page { padding: 1rem 0.75rem 3rem; }
      .logo { font-size: 1.5rem; }
      .logo-icon { width: 36px; height: 36px; }
      .tagline { font-size: 0.9rem; }
      .auth-buttons { flex-direction: column; }
      .auth-btn { width: 100%; }
      .compare-input-wrap textarea { min-height: 120px; }
      .modal { max-width: 100%; margin: 0.5rem; padding: 1.5rem; }
    }

    /* Animations */
    .result-enter { animation: fadeUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
    .check-category { animation: fadeUp 0.4s ease backwards; }
    .check-category:nth-child(1) { animation-delay: 0.05s; }
    .check-category:nth-child(2) { animation-delay: 0.1s; }
    .check-category:nth-child(3) { animation-delay: 0.15s; }
    .check-category:nth-child(4) { animation-delay: 0.2s; }
    .check-category:nth-child(5) { animation-delay: 0.25s; }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
