/* FitScore — Extracted Stylesheet
   Extracted from index.html for maintainability.
   Linked via: <link rel="stylesheet" href="style.css">
*/
:root {
      --primary: #4f46e5;
      --green: #22c55e;
      --red: #ef4444;
      --bg: #f8fafc;
      --card: #ffffff;
      --border: #e2e8f0;
      --text: #0f172a;
      --muted: #64748b;
      --success: #dcfce7;
      --danger: #fee2e2;
      --extra: #e0f2fe;

      /* 3D Depth System */
      --perspective: 1200px;
      --depth-soft: 0 10px 25px rgba(0, 0, 0, 0.12);
      --depth-mid: 0 18px 40px rgba(0, 0, 0, 0.18);
      --depth-deep: 0 30px 60px rgba(0, 0, 0, 0.28);
      --tilt-max: 12deg;
    }

    html {
      scroll-behavior: smooth;
    }

    * {
      box-sizing: border-box;
    }

    /* Loading spinner */
    .analysis-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 40px;
      gap: 16px;
    }

    .spinner {
      width: 48px;
      height: 48px;
      border: 4px solid var(--border);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    .skeleton-bar {
      height: 12px;
      background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite;
      border-radius: 6px;
      width: 100%;
    }

    @keyframes shimmer {
      0% {
        background-position: 200% 0;
      }

      100% {
        background-position: -200% 0;
      }
    }

    body {
      margin: 0;
      font-family: Inter, system-ui, -apple-system, sans-serif;
      background: var(--bg);
      color: var(--text);
      /* perspective removed from body - caused full-page blur */
    }

    /* HEADER */
    header {
      background: rgba(255, 255, 255, 0.65);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 1000;
      padding: 16px 0;
      box-shadow: var(--depth-soft);
    }

    .header-inner {
      max-width: 1200px;
      margin: auto;
      padding: 0 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      font-size: 24px;
      font-weight: 800;
      color: var(--primary);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .nav-links {
      display: flex;
      gap: 32px;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--text);
      font-size: 15px;
      font-weight: 500;
      transition: color 0.2s;
    }

    .nav-links a:hover {
      color: var(--primary);
    }

    .cta-btn {
      background: var(--primary);
      color: #fff;
      padding: 10px 20px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      font-size: 14px;
      transition: transform 0.1s;
    }

    .cta-btn:hover {
      transform: translateY(-1px);
    }

    /* HERO */
    .hero {
      background: linear-gradient(135deg, #0d0e21 0%, #1a1756 40%, #1e1b4b 100%);
      color: #fff;
      padding: 100px 24px 80px;
      text-align: center;
      position: relative;
      overflow: hidden;
      perspective: 900px;
    }

    .hero-glow {
      position: absolute;
      inset: -10%;
      background: radial-gradient(circle at center, rgba(0, 200, 255, .25), transparent 60%);
      filter: blur(40px);
      pointer-events: none;
    }

    .hero-bg {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
      pointer-events: none;
    }

    .hero-inner {
      max-width: 700px;
      margin: auto;
      position: relative;
      z-index: 2;
    }

    .hero h1 {
      font-size: 56px;
      line-height: 1.1;
      font-weight: 800;
      margin-bottom: 24px;
      letter-spacing: -1px;
      color: #ffffff;
    }

    .hero p {
      font-size: 20px;
      line-height: 1.6;
      color: #cbd5e1;
      max-width: 700px;
      margin: 0 auto 32px;
    }

    .hero-btns {
      display: flex;
      gap: 16px;
      justify-content: center;
      margin-bottom: 60px;
    }

    .btn {
      padding: 14px 28px;
      border-radius: 8px;
      font-weight: 600;
      text-decoration: none;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
      box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.5) inset,
        0 6px 14px rgba(0, 0, 0, 0.18),
        0 12px 28px rgba(0, 0, 0, 0.12);
    }

    .btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(79, 70, 229, .3);
    }

    .btn:active {
      transform: scale(.97);
      box-shadow: var(--depth-soft);
    }

    .btn-primary {
      background: var(--primary);
      color: #fff;
      border: 1px solid var(--primary);
    }

    .btn-primary:hover {
      background: #4338ca;
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.15);
    }

    /* SECTIONS GENERIC */
    section {
      padding: 80px 24px;
    }

    .section-header {
      text-align: center;
      max-width: 800px;
      margin: 0 auto 50px;
    }

    .section-header h2 {
      font-size: 36px;
      margin-bottom: 16px;
      color: var(--text);
      letter-spacing: -0.5px;
    }

    .section-header p {
      font-size: 18px;
      color: var(--muted);
      line-height: 1.6;
    }

    /* ABOUT / GRID */
    .grid-3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 40px;
      max-width: 1200px;
      margin: auto;
    }

    .feature-card {
      position: relative;
      background: #fff;
      padding: 32px;
      border-radius: 16px;
      border: 1px solid var(--border);
      transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s cubic-bezier(.2, .8, .2, 1);
      box-shadow: var(--depth-soft);
      overflow: hidden;
    }

    .feature-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--depth-mid);
    }

    .feature-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.35), transparent 60%);
      opacity: 0;
      transform: translateX(-120%);
      transition: opacity 0.3s ease, transform 0.6s ease;
      pointer-events: none;
    }

    .feature-card:hover::after {
      opacity: 1;
      transform: translateX(120%);
    }

    .feature-icon {
      width: 48px;
      height: 48px;
      background: var(--extra);
      color: var(--primary);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      margin-bottom: 20px;
    }

    .feature-card h3 {
      font-size: 20px;
      margin-bottom: 12px;
    }

    .feature-card p {
      color: var(--muted);
      line-height: 1.6;
    }

    /* PLATFORM / SIDE-BY-SIDE */
    .split-section {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
      max-width: 1200px;
      margin: auto;
    }

    @media(max-width:900px) {
      .split-section {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .split-section img {
        order: -1;
      }
    }

    /* FOOTER */
    footer {
      background: #0f172a;
      color: #94a3b8;
      padding: 60px 24px;
      font-size: 14px;
    }

    .footer-inner {
      max-width: 1200px;
      margin: auto;
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 40px;
    }

    .footer-col h4 {
      color: #fff;
      margin-bottom: 20px;
    }

    .footer-col ul {
      list-style: none;
      padding: 0;
    }

    .footer-col li {
      margin-bottom: 12px;
    }

    .footer-col a {
      color: #94a3b8;
      text-decoration: none;
    }

    .footer-col a:hover {
      color: #fff;
    }

    /* CONTAINER */
    .container {
      max-width: 1100px;
      margin: 50px auto;
      padding: 0 20px;
    }

    /* CARD */
    .card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 28px;
      margin-bottom: 30px;
    }

    /* INPUT */
    .grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 26px;
    }

    @media(max-width:900px) {
      .grid {
        grid-template-columns: 1fr
      }
    }

    label {
      font-size: 14px;
      font-weight: 600;
      color: var(--muted)
    }

    /* DROP ZONE */
    .drop {
      margin-top: 8px;
      border: 2px dashed var(--border);
      border-radius: 14px;
      padding: 40px;
      text-align: center;
      cursor: pointer;
      transition: .2s;
    }

    .drop.dragover {
      border-color: var(--primary);
      background: #eef2ff
    }

    .drop b {
      display: block;
      margin-bottom: 6px
    }

    .drop span {
      font-size: 13px;
      color: var(--muted)
    }

    .file-info {
      margin-top: 10px;
      font-size: 13px;
      color: var(--green)
    }

    textarea {
      width: 100%;
      margin-top: 8px;
      padding: 14px;
      border-radius: 12px;
      border: 1px solid var(--border);
      resize: vertical;
    }

    button.main {
      background: var(--primary);
      color: #fff;
      border: none;
      padding: 14px 22px;
      border-radius: 12px;
      font-weight: 600;
      margin-top: 20px;
      cursor: pointer;
    }

    /* RESULT */
    .result {
      display: flex;
      gap: 40px;
      align-items: flex-start
    }

    @media(max-width:900px) {
      .result {
        flex-direction: column
      }
    }

    .ring svg {
      transform: rotate(-90deg)
    }

    .ring text {
      transform: rotate(90deg);
      transform-origin: center;
      font-size: 26px;
      font-weight: 800;
      fill: var(--primary);
    }

    .verdict {
      font-weight: 700;
      margin-top: 6px
    }

    .benchmark {
      font-size: 12px;
      color: var(--muted)
    }

    .section {
      margin-bottom: 18px
    }

    .section b {
      display: block;
      margin-bottom: 6px
    }

    .chip {
      display: inline-block;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 13px;
      margin: 4px 6px 0 0;
    }

    .matched {
      background: var(--success)
    }

    .missing {
      background: var(--danger)
    }

    .extra {
      background: var(--extra)
    }

    /* MAP & HISTORY */
    .roadmap-item {
      display: flex;
      flex-direction: column;
      background: var(--bg);
      border-radius: 8px;
      margin-bottom: 8px;
      border-left: 4px solid var(--muted);
      overflow: hidden;
    }

    .roadmap-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 16px;
      width: 100%;
    }

    .roadmap-item.high {
      border-color: var(--red)
    }

    .roadmap-item.med {
      border-color: #f59e0b
    }

    .roadmap-item.low {
      border-color: var(--green)
    }

    .roadmap-info b {
      font-size: 14px;
      color: var(--text)
    }

    .roadmap-info p {
      font-size: 12px;
      margin: 2px 0 0;
      color: var(--muted)
    }

    .time-box {
      font-size: 11px;
      font-weight: 600;
      background: #fff;
      padding: 4px 8px;
      border-radius: 4px;
      border: 1px solid var(--border)
    }

    /* AI PANEL */
    .ai-btn {
      display: block;
      margin-top: 8px;
      font-size: 12px;
      color: var(--primary);
      background: #eef2ff;
      border: 1px solid #c7d2fe;
      padding: 6px 12px;
      border-radius: 6px;
      cursor: pointer;
      text-align: left;
      font-weight: 600;
      width: fit-content;
    }

    .ai-btn:hover {
      background: #e0e7ff
    }

    .ai-panel {
      display: none;
      background: #fff;
      border-top: 1px solid var(--border);
      padding: 16px;
      animation: slideDown 0.2s ease-out;
    }

    .ai-panel.open {
      display: block
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-5px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .ai-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--muted);
      font-weight: 700;
      margin-bottom: 6px;
      display: block;
    }

    .ai-box {
      background: var(--bg);
      padding: 10px;
      border-radius: 6px;
      border-left: 3px solid var(--border);
    }

    .ai-box.suggestion {
      background: #f0fdf4;
      border-color: var(--green);
      color: #166534;
    }

    .ai-why {
      margin-top: 12px;
      font-size: 12px;
      color: var(--text);
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .confidence {
      font-size: 11px;
      background: #dbeafe;
      color: #1e40af;
      padding: 2px 6px;
      border-radius: 4px;
      font-weight: 600;
    }

    /* HISTORY */
    .history-item {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      padding: 10px 0;
      border-bottom: 1px solid var(--border);
      font-size: 13px;
    }

    .history-item:last-child {
      border: none
    }

    .empty {
      font-size: 13px;
      color: var(--muted)
    }

    /* REJECTION REASONS */
    .rejection-box {
      margin-top: 16px;
      margin-bottom: 24px;
    }

    .rejection-item {
      padding: 12px;
      border-radius: 8px;
      margin-bottom: 8px;
      font-size: 13px;
      border-left: 4px solid var(--muted);
      background: #fff;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .rejection-item.high {
      border-color: var(--danger);
      background: #fef2f2;
    }

    .rejection-item.med {
      border-color: #f59e0b;
      background: #fffbeb;
    }

    .rejection-item b {
      color: var(--text);
      font-size: 14px;
    }

    .rejection-badge {
      font-size: 11px;
      text-transform: uppercase;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 4px;
      width: fit-content;
      margin-bottom: 4px;
    }

    .high .rejection-badge {
      color: #dc2626;
      background: #fee2e2;
    }

    .med .rejection-badge {
      color: #d97706;
      background: #fef3c7;
    }

    /* ===== STAT NUMBER COUNTER ===== */
    .count-up {
      display: inline-block;
    }

    
    .score-bucket-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 14px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.4px;
      margin-top: 8px;
    }

    .score-bucket-badge.strong {
      background: #dcfce7;
      color: #166534;
    }

    .score-bucket-badge.border {
      background: #fef9c3;
      color: #854d0e;
    }

    .score-bucket-badge.atrisk {
      background: #fee2e2;
      color: #991b1b;
    }

    .why-score-toggle {
      margin-top: 10px;
      font-size: 12px;
      color: var(--primary);
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      background: none;
      border: none;
      padding: 0;
    }

    .why-score-toggle:hover {
      text-decoration: underline;
    }

    .why-score-panel {
      display: none;
      margin-top: 10px;
      padding: 12px 14px;
      background: #f8faff;
      border-left: 3px solid var(--primary);
      border-radius: 0 8px 8px 0;
      font-size: 13px;
      line-height: 1.7;
      color: var(--text);
    }

    .why-score-panel.open {
      display: block;
      animation: slideDown .2s ease-out;
    }

    .why-score-item {
      display: flex;
      gap: 8px;
      margin-bottom: 4px;
    }

    .why-score-item span:first-child {
      flex-shrink: 0;
    }

    /* ===== GOOGLE ONE-TAP ===== */
    .google-onetap-divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 16px 0;
      color: var(--muted);
      font-size: 13px;
    }

    .google-onetap-divider::before,
    .google-onetap-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    .google-signin-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 11px 16px;
      border-radius: 10px;
      border: 1.5px solid var(--border);
      background: #fff;
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      cursor: pointer;
      transition: box-shadow 0.2s, border-color 0.2s;
      margin-bottom: 4px;
    }

    .google-signin-btn:hover {
      box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
      border-color: #4285F4;
    }

    .google-signin-btn svg {
      flex-shrink: 0;
    }

    #g_id_onload {
      position: absolute;
      top: -9999px;
    }

    /* LOGIN MODAL */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(15, 23, 42, 0.6);
      backdrop-filter: blur(4px);
      z-index: 3000;
      align-items: center;
      justify-content: center;
    }

    .modal-overlay.open {
      display: flex;
    }

    .login-modal {
      background: #fff;
      padding: 32px;
      border-radius: 16px;
      width: 100%;
      max-width: 400px;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      animation: modalSlide 0.3s ease-out;
    }

    @keyframes modalSlide {
      from {
        transform: translateY(20px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .modal-header {
      margin-bottom: 24px;
      text-align: center;
    }

    .modal-header h2 {
      font-size: 24px;
      color: var(--text);
      margin: 0 0 8px 0;
    }

    .form-group {
      margin-bottom: 16px;
    }

    .form-group label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: var(--text);
      margin-bottom: 6px;
    }

    .form-group input {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 14px;
    }

    .role-select {
      display: flex;
      gap: 12px;
      margin-top: 8px;
    }

    .role-option {
      flex: 1;
      position: relative;
    }

    .role-option input {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }

    .role-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
      border: 1px solid var(--border);
      border-radius: 8px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 500;
      color: var(--muted);
      transition: all 0.2s;
    }

    .role-option input:checked+.role-btn {
      background: #eef2ff;
      border-color: var(--primary);
      color: var(--primary);
      font-weight: 600;
    }

    .submit-btn {
      width: 100%;
      background: var(--primary);
      color: #fff;
      border: none;
      padding: 12px;
      border-radius: 8px;
      font-weight: 600;
      margin-top: 8px;
      cursor: pointer;
    }

    .submit-btn:hover {
      background: #4338ca;
    }

    /* DROPDOWN MENU */
    .dropdown {
      position: relative;
      display: inline-block;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      right: 0;
      top: 100%;
      background-color: #fff;
      min-width: 180px;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
      border: 1px solid var(--border);
      border-radius: 8px;
      z-index: 2000;
      margin-top: 8px;
      overflow: hidden;
    }

    .dropdown:hover .dropdown-content {
      display: block;
    }

    .dropdown-item {
      display: flex;
      align-items: center;
      padding: 12px 16px;
      font-size: 13px;
      color: var(--text);
      text-decoration: none;
      border-bottom: 1px solid #f1f5f9;
    }

    .dropdown-item:last-child {
      border-bottom: none;
    }

    .dropdown-item:hover {
      background: #f8fafc;
    }

    .dropdown-item.logout {
      color: #ef4444;
      cursor: pointer;
    }

    /* VIEW TOGGLE */
    .view-toggle {
      display: flex;
      justify-content: center;
      gap: 4px;
      background: #f1f5f9;
      padding: 4px;
      border-radius: 8px;
      width: fit-content;
      margin: 0 auto 24px;
    }

    .toggle-btn {
      padding: 6px 16px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 500;
      border: none;
      cursor: pointer;
      color: #64748b;
      background: transparent;
      transition: all 0.2s;
    }

    .toggle-btn.active {
      background: #fff;
      color: #0f172a;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
      font-weight: 600;
    }

    .toggle-btn.disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    /* DEMO LOCK */
    .demo-locked {
      position: relative;
      pointer-events: none;
      user-select: none;
    }

    .demo-locked .container {
      filter: blur(6px);
      opacity: 0.6;
      transition: all 0.5s;
    }

    .lock-overlay {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 10;
      text-align: center;
      width: 100%;
      display: none;
    }

    .demo-locked .lock-overlay {
      display: block;
      pointer-events: auto;
    }

    .lock-card {
      background: white;
      padding: 32px;
      border-radius: 16px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
      display: inline-block;
    }

    /* Copy button */
    .copy-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: 8px;
      padding: 5px 12px;
      font-size: 12px;
      font-weight: 500;
      color: var(--primary);
      background: #eef2ff;
      border: 1px solid #c7d2fe;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .copy-btn:hover {
      background: #e0e7ff;
    }

    .copy-btn.copied {
      color: #166534;
      background: #dcfce7;
      border-color: #bbf7d0;
    }

    /* Export button */
    .export-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 600;
      color: var(--primary);
      background: #eef2ff;
      border: 1px solid #c7d2fe;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
      margin-top: 12px;
    }

    .export-btn:hover {
      background: #e0e7ff;
    }

    /* Clear history button */
    .clear-btn {
      font-size: 12px;
      color: var(--muted);
      background: none;
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 4px 10px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .clear-btn:hover {
      color: var(--red);
      border-color: var(--red);
    }

    /* Print styles for PDF export */
    @media print {
      body * {
        visibility: hidden !important;
      }

      #printable-report,
      #printable-report * {
        visibility: visible !important;
      }

      #printable-report {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 24px;
      }

      .export-btn,
      .ai-btn,
      .copy-btn,
      .no-print {
        display: none !important;
      }
    }

    /* ========= INTELLIGENCE OUTPUT COMPONENTS ========= */

    /* Confidence-annotated skill chips */
    .chip.matched .conf-dot {
      display: inline-block;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      margin-right: 5px;
      vertical-align: middle;
    }

    .chip.matched .conf-label {
      font-size: 10px;
      color: var(--muted);
      margin-left: 4px;
      font-weight: 400;
    }

    .conf-high {
      background: var(--green);
    }

    .conf-medium {
      background: #f59e0b;
    }

    .conf-low {
      background: var(--red);
    }

    /* Intelligence Summary Card */
    .intel-summary {
      background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      margin-top: 16px;
    }

    .intel-summary-title {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--muted);
      font-weight: 700;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .intel-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    @media(max-width: 600px) {
      .intel-grid {
        grid-template-columns: 1fr;
      }
    }

    .intel-metric {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .intel-metric-label {
      font-size: 11px;
      color: var(--muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .intel-metric-value {
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
    }

    /* Shortlist Probability Meter */
    .probability-meter {
      margin-top: 16px;
      padding: 14px 16px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .probability-meter.strong {
      background: #f0fdf4;
      border: 1px solid #bbf7d0;
    }

    .probability-meter.moderate {
      background: #fffbeb;
      border: 1px solid #fde68a;
    }

    .probability-meter.low {
      background: #fef2f2;
      border: 1px solid #fecaca;
    }

    .probability-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
    }

    .probability-value {
      font-size: 16px;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .probability-value.strong {
      color: #166534;
    }

    .probability-value.moderate {
      color: #92400e;
    }

    .probability-value.low {
      color: #991b1b;
    }

    .probability-bar {
      flex: 1;
      height: 8px;
      background: #e2e8f0;
      border-radius: 4px;
      overflow: hidden;
      min-width: 80px;
    }

    .probability-fill {
      height: 100%;
      border-radius: 4px;
      transition: width 0.6s ease;
    }

    .probability-fill.strong {
      background: var(--green);
    }

    .probability-fill.moderate {
      background: #f59e0b;
    }

    .probability-fill.low {
      background: var(--red);
    }

    /* Core Gap Alert Banner */
    .gap-alert {
      padding: 14px 16px;
      border-radius: 10px;
      margin-top: 12px;
      font-size: 13px;
      line-height: 1.5;
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }

    .gap-alert.critical {
      background: #fef2f2;
      border: 1px solid #fecaca;
      color: #991b1b;
    }

    .gap-alert.warning {
      background: #fffbeb;
      border: 1px solid #fde68a;
      color: #92400e;
    }

    .gap-alert-icon {
      font-size: 18px;
      flex-shrink: 0;
      line-height: 1;
      margin-top: 1px;
    }

    .gap-alert b {
      display: block;
      margin-bottom: 2px;
    }

    /* Signal Dilution Bar */
    .dilution-container {
      margin-top: 10px;
    }

    .dilution-header {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--muted);
      font-weight: 700;
      margin-bottom: 6px;
      display: flex;
      justify-content: space-between;
    }

    .dilution-bar {
      height: 8px;
      background: #e2e8f0;
      border-radius: 4px;
      overflow: hidden;
    }

    .dilution-fill {
      height: 100%;
      border-radius: 4px;
      transition: width 0.6s ease;
    }

    .dilution-fill.good {
      background: var(--green);
    }

    .dilution-fill.moderate {
      background: #f59e0b;
    }

    .dilution-fill.poor {
      background: var(--red);
    }

    /* ========= RADAR CHART ========= */
    .radar-chart-container {
      background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      margin-top: 14px;
    }

    .radar-chart-title {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--muted);
      font-weight: 700;
      margin-bottom: 8px;
    }

    .radar-chart-inner {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .radar-svg {
      width: 100%;
      max-width: 280px;
      height: auto;
    }

    .radar-legend {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 14px;
    }

    .radar-legend-item {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 12px;
    }

    .radar-legend-label {
      width: 110px;
      color: var(--text);
      flex-shrink: 0;
    }

    .radar-legend-label b {
      color: var(--muted);
      font-weight: 600;
    }

    .radar-legend-bar {
      flex: 1;
      height: 6px;
      background: #e2e8f0;
      border-radius: 3px;
      overflow: hidden;
    }

    .radar-legend-fill {
      height: 100%;
      border-radius: 3px;
      transition: width 0.6s ease;
    }

    .radar-legend-score {
      font-size: 11px;
      color: var(--muted);
      font-weight: 600;
      width: 40px;
      text-align: right;
      flex-shrink: 0;
    }

    /* ========= 3D FLOATING BADGE ========= */
    .hero-badge {
      display: inline-block;
      transform: translateZ(28px);
      animation: bob 4s ease-in-out infinite;
    }

    @keyframes bob {

      0%,
      100% {
        transform: translateZ(28px) translateY(0);
      }

      50% {
        transform: translateZ(28px) translateY(-8px);
      }
    }

    /* ========= 3D SCORE RING ========= */
    .ring {
      transform-style: preserve-3d;
      transform: rotateX(10deg);
      transition: transform 0.7s ease;
    }

    .ring.flip-in {
      animation: flipIn 0.8s ease forwards;
    }

    @keyframes flipIn {
      from {
        transform: rotateX(-90deg);
        opacity: 0;
      }

      to {
        transform: rotateX(10deg);
        opacity: 1;
      }
    }

    /* ========= 3D RESULT CARDS ========= */
    .intel-summary,
    .radar-chart-container {
      box-shadow: var(--depth-soft);
    }

    .rejection-item {
      transform: translateZ(6px);
    }

    .rejection-item:nth-child(2) {
      transform: translateZ(12px);
    }

    .rejection-item:nth-child(3) {
      transform: translateZ(18px);
    }

    /* ========= 3D ANALYZE BUTTON ========= */
    button[onclick="analyze()"] {
      box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.5) inset,
        0 6px 14px rgba(0, 0, 0, 0.18),
        0 12px 28px rgba(0, 0, 0, 0.12);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    button[onclick="analyze()"]:hover {
      transform: translateY(-3px);
      box-shadow: var(--depth-mid);
    }

    button[onclick="analyze()"]:active {
      transform: translateZ(-2px) scale(.98);
      box-shadow: var(--depth-soft);
    }

    /* ========= 3D CARD GENERIC ========= */
    .card {
      transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s cubic-bezier(.2, .8, .2, 1);
    }

    /* 3D WRAPPERS */
    .card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s cubic-bezier(.2, .8, .2, 1);
    }

    .feature-card:hover .card-inner {
      transform: rotateY(-5deg) rotateX(3deg) translateZ(20px);
      box-shadow: var(--depth-deep);
    }

    /* Remove transform from parent to avoid conflict */
    .feature-card:hover {
      transform: none !important;
      box-shadow: none !important;
    }

    .feature-card {
      transform: none !important;
      box-shadow: none !important;
      background: transparent !important;
      border: none !important;
      padding: 0 !important;
    }

    /* Re-apply styles to card-inner */
    .card-inner {
      background: #fff;
      padding: 32px;
      border-radius: 16px;
      border: 1px solid var(--border);
      box-shadow: var(--depth-soft);
    }

    /* Shine effect needs to target card-inner */
    .feature-card::after {
      display: none;
    }

    .card-inner::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .2), transparent 70%);
      opacity: 0;
      transition: .4s;
      pointer-events: none;
      transform: translateX(-120%);
    }

    .feature-card:hover .card-inner::after {
      opacity: 1;
      transform: translateX(120%);
    }

    /* Score Container */
    .score-container {
      transform: rotateX(10deg);
      transition: transform 0.7s cubic-bezier(.2, .8, .2, 1);
      opacity: 0;
    }

    .score-container.show {
      animation: flipIn .8s cubic-bezier(.16, 1, .3, 1) forwards;
    }

    /* GUARDRAILS */

    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }

    header {
      /* translateZ removed from header */
    }

    .hero h1 {
      text-shadow:
        0 1px 0 rgba(0, 0, 0, .25),
        0 3px 6px rgba(0, 0, 0, .18),
        0 10px 25px rgba(0, 0, 0, .22) !important;
    }



    @media (max-width: 768px) {
      .feature-card:hover {
        transform: rotateY(-3deg) rotateX(2deg) translateZ(12px) !important;
      }

      .navbar {
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
      }
    }


    /* ===== HEADER AUTH BUTTONS ===== */
    .header-signin-btn {
      padding: 9px 18px;
      font-size: 14px;
      font-weight: 600;
      border-radius: 10px;
      cursor: pointer;
      transition: all .18s ease;
      border: 1.5px solid #4f46e5;
      background: transparent;
      color: #4f46e5;
    }
    .header-signin-btn:hover {
      background: #ede9fe;
    }
    .header-signup-btn {
      padding: 9px 18px;
      font-size: 14px;
      font-weight: 600;
      border-radius: 10px;
      cursor: pointer;
      transition: all .18s ease;
      border: 1.5px solid #4f46e5;
      background: #4f46e5;
      color: #ffffff;
      box-shadow: 0 2px 8px rgba(79,70,229,.3);
    }
    .header-signup-btn:hover {
      background: #4338ca;
      box-shadow: 0 4px 16px rgba(79,70,229,.45);
      transform: translateY(-1px);
    }

    /* ============================================
       PREMIUM UI UPGRADE — Global Enhancements
       ============================================ */

    /* --- Typography --- */
    h1,
    h2,
    h3 {
      letter-spacing: -0.5px;
    }

    h2 {
      font-size: 38px;
      font-weight: 800;
    }

    h3 {
      font-size: 21px;
      font-weight: 700;
    }

    /* --- HEADER: crisper glass --- */
    header {
      background: rgba(255, 255, 255, 0.92) !important;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 4px 20px rgba(0, 0, 0, .04);
    }

    /* --- HERO: force dark background --- */
    .hero {
      background: linear-gradient(135deg, #0d0e21 0%, #1a1756 40%, #1e1b4b 100%) !important;
    }

    /* --- HERO: better h1 --- */
    .hero h1 {
      font-size: clamp(38px, 5.5vw, 62px) !important;
      color: #ffffff !important;
      filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)) !important;
      line-height: 1.08 !important;
    }


    /* --- FEATURE CARDS: premium styling --- */
    .feature-card {
      background: #ffffff;
      border: 1px solid rgba(79, 70, 229, .1);
      border-radius: 20px;
      padding: 36px 32px;
      box-shadow:
        0 1px 3px rgba(0, 0, 0, .04),
        0 8px 24px rgba(79, 70, 229, .08);
      transition: transform .25s ease, box-shadow .25s ease;
    }

    .feature-card:hover {
      transform: translateY(-6px);
      box-shadow:
        0 4px 12px rgba(0, 0, 0, .06),
        0 20px 40px rgba(79, 70, 229, .14);
    }

    .feature-card h3 {
      color: #0f172a;
      margin-bottom: 10px;
    }

    .feature-card p {
      color: #64748b;
      line-height: 1.7;
      font-size: 15px;
    }

    /* --- FEATURE ICONS: premium circles --- */
    .feature-icon {
      width: 52px;
      height: 52px;
      background: linear-gradient(135deg, #ede9fe, #e0e7ff);
      border-radius: 14px;
      font-size: 26px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 22px;
      box-shadow: 0 4px 12px rgba(79, 70, 229, .15);
    }

    /* --- INPUT / DEMO CARDS --- */
    .card {
      box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 8px 32px rgba(0, 0, 0, .06) !important;
      border: 1px solid rgba(0, 0, 0, .05) !important;
      border-radius: 20px !important;
    }

    /* --- DEMO SECTION background --- */
    #demo {
      background: #f1f5f9 !important;
    }

    /* --- ANALYZE BUTTON: premium CTA --- */
    button.main,
    #analyze-btn {
      background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
      width: 100%;
      color: #fff !important;
      border: none !important;
      border-radius: 14px !important;
      padding: 16px 28px !important;
      font-size: 16px !important;
      font-weight: 700 !important;
      letter-spacing: .3px;
      cursor: pointer;
      transition: transform .18s ease, box-shadow .18s ease !important;
      box-shadow: 0 4px 14px rgba(79, 70, 229, .4) !important;
    }

    button.main:hover,
    #analyze-btn:hover {
      transform: translateY(-2px) !important;
      box-shadow: 0 8px 24px rgba(79, 70, 229, .5) !important;
    }

    /* --- BUSINESS VALUE SECTION: keep visible + pop --- */
    #business-value {
      background: linear-gradient(135deg, #4338ca 0%, #4f46e5 60%, #6366f1 100%) !important;
      padding: 100px 24px !important;
    }

    #business-value h2 {
      color: #fff !important;
      font-size: 42px !important;
    }

    #business-value p {
      color: rgba(255, 255, 255, .75) !important;
    }

    /* Business value stat numbers */
    #business-value .count-up,
    #business-value [style*="font-size:48px"] {
      font-size: 56px !important;
      font-weight: 900 !important;
      letter-spacing: -2px;
      color: #ffffff !important;
      display: block;
      line-height: 1;
    }

    #business-value [style*="color:#c7d2fe"] {
      color: rgba(255, 255, 255, .8) !important;
      font-size: 15px !important;
      margin-top: 8px;
    }

    #business-value .grid-3>div {
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(255, 255, 255, .15);
      border-radius: 20px;
      padding: 36px 28px;
      backdrop-filter: blur(8px);
      transition: transform .25s ease, background .25s ease;
    }

    #business-value .grid-3>div:hover {
      background: rgba(255, 255, 255, .16);
      transform: translateY(-4px);
    }

    /* --- CAPABILITIES SECTION: styled cards --- */
    #capabilities {
      background: #f8fafc !important;
    }

    #capabilities .feature-card {
      background: #ffffff;
      cursor: pointer;
    }

    #capabilities .feature-card h3 {
      font-size: 18px;
      color: #1e1b4b;
    }

    /* --- SECTION HEADERS: better spacing --- */
    .section-header {
      margin-bottom: 56px !important;
    }

    .section-header h2 {
      font-size: 40px;
      background: linear-gradient(to right, #1e1b4b, #4f46e5);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* Override for white bg section headers */
    #business-value .section-header h2 {
      background: none !important;
      -webkit-text-fill-color: #fff !important;
      color: #fff !important;
    }

    /* --- SCORE RING: border around card --- */
    .ring svg {
      filter: drop-shadow(0 4px 12px rgba(79, 70, 229, .15));
    }

    /* --- HISTORY CARD: subtle bg --- */
    #history {
      background: #f8fafc;
      border-radius: 10px;
      padding: 12px;
    }

    .history-item {
      border-radius: 6px;
      padding: 8px;
    }

    /* --- VERDICT text --- */
    #verdict {
      font-size: 18px !important;
      letter-spacing: .2px;
    }

    /* --- ROADMAP ITEMS --- */
    .roadmap-item {
      border-radius: 10px !important;
      margin-bottom: 10px !important;
    }

    /* --- FOOTER: slightly warmer dark --- */
    footer {
      background: #0a0f1e !important;
    }

    /* --- DROPDOWN improvements --- */
    .dropdown-content {
      border-radius: 12px !important;
      box-shadow: 0 8px 30px rgba(0, 0, 0, .12) !important;
      border: 1px solid rgba(0, 0, 0, .06) !important;
    }

    /* --- LOGIN MODAL: premium --- */
    .login-modal {
      border-radius: 24px !important;
      box-shadow: 0 24px 80px rgba(0, 0, 0, .2) !important;
    }

    .submit-btn {
      background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
      border-radius: 12px !important;
      font-size: 15px !important;
      letter-spacing: .3px;
    }

    /* --- GOOGLE SIGNIN BTN --- */
    .google-signin-btn {
      border-radius: 12px !important;
      font-size: 14px !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .06) !important;
    }

    .google-signin-btn:hover {
      box-shadow: 0 4px 16px rgba(66, 133, 244, .2) !important;
    }

    /* --- SPECIFIC SECTION backgrounds --- */
    #about {
      background: #fdfcff;
    }

    #platform {
      background: #f8fafc;
    }

    #capabilities {
      background: #f8fafc;
    }

    #use-cases {
      background: #ffffff;
    }

    #integrations {
      background: #f1f5f9;
    }


    /* --- PLATFORM (How It Works) compact visual card --- */
    #platform [style*="background:#fff; padding:40px"] {
      border-radius: 20px !important;
      box-shadow: 0 4px 24px rgba(0, 0, 0, .07) !important;
      border: 1px solid rgba(0, 0, 0, .04) !important;
    }

    /* --- Chip styling improvement --- */
    .chip.matched {
      background: #dcfce7;
      color: #166534;
      font-weight: 600;
    }

    .chip.missing {
      background: #fee2e2;
      color: #991b1b;
      font-weight: 600;
    }

    .chip.extra {
      background: #e0f2fe;
      color: #075985;
      font-weight: 600;
    }

    /* --- SCORE BUCKET BADGE larger --- */
    .score-bucket-badge {
      font-size: 13px !important;
      padding: 6px 16px !important;
    }

    /* --- EXPORT BUTTON --- */
    .export-btn {
      border-radius: 10px !important;
      font-weight: 600 !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .08) !important;
    }

    /* --- Responsive improvements --- */
    @media(max-width: 768px) {
      .hero h1 {
        font-size: 34px !important;
      }

      h2 {
        font-size: 28px !important;
      }

      .grid-3 {
        gap: 24px !important;
      }

      section {
        padding: 60px 20px !important;
      }
    }


/* =============================================
   TRACK A: NEW SECTIONS — Pricing, Testimonials,
   Hero Badge, Mobile Nav
   ============================================= */

/* --- SECTION BADGE PILL --- */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* --- HERO: trust badge + social proof --- */
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  color: #e0e7ff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: .3px;
}
.hero-social-proof {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  letter-spacing: .3px;
}
.hero-social-proof strong { color: rgba(255,255,255,.9); }

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: #fff;
  border: 1px solid rgba(79,70,229,.1);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05), 0 8px 32px rgba(79,70,229,.06);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(79,70,229,.14);
}
.testimonial-featured {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(79,70,229,.4);
}
.testimonial-featured .testimonial-quote { color: rgba(255,255,255,.9); }
.testimonial-featured .testimonial-name  { color: #fff; }
.testimonial-featured .testimonial-role  { color: rgba(255,255,255,.6); }

.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  flex: 1;
  position: relative;
  padding-top: 4px;
}
.testimonial-quote::before {
  content: '\201C';
  font-size: 56px;
  line-height: 0;
  color: #4f46e5;
  opacity: .2;
  position: absolute;
  top: 24px;
  left: -8px;
}
.testimonial-featured .testimonial-quote::before { color: #fff; opacity: .25; }

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; color: #0f172a; }
.testimonial-role { font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* --- PRICING --- */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.pricing-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: color .2s;
}
.pricing-toggle-label.active { color: #0f172a; }
.pricing-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.pricing-toggle-switch input { opacity: 0; width: 0; height: 0; }
.pricing-toggle-slider {
  position: absolute;
  inset: 0;
  background: #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s;
}
.pricing-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.pricing-toggle-switch input:checked + .pricing-toggle-slider { background: #4f46e5; }
.pricing-toggle-switch input:checked + .pricing-toggle-slider::before { transform: translateX(20px); }
.pricing-save-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-card {
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.07);
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.09);
}
.pricing-card-featured {
  background: linear-gradient(160deg, #4338ca 0%, #4f46e5 60%, #6366f1 100%);
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(79,70,229,.4);
  transform: scale(1.04);
  color: #fff;
}
.pricing-card-featured:hover { transform: scale(1.04) translateY(-4px); }

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #64748b;
}
.pricing-card-featured .pricing-tier { color: rgba(255,255,255,.7); }
.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  line-height: 1;
}
.pricing-amount {
  font-size: 48px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -2px;
}
.pricing-card-featured .pricing-amount { color: #fff; }
.pricing-period {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 8px;
}
.pricing-card-featured .pricing-period { color: rgba(255,255,255,.6); }
.pricing-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}
.pricing-card-featured .pricing-desc { color: rgba(255,255,255,.75); }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #374151;
  flex: 1;
}
.pricing-dim { color: #94a3b8 !important; }
.pricing-cta {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
  margin-top: 8px;
}
.pricing-cta-ghost {
  background: transparent;
  border: 1.5px solid #4f46e5;
  color: #4f46e5;
}
.pricing-cta-ghost:hover {
  background: #ede9fe;
}
.pricing-cta-white {
  background: #fff;
  border: none;
  color: #4338ca;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.pricing-cta-white:hover {
  background: #f1f5f9;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}

/* --- MOBILE NAV HAMBURGER --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s;
}
.nav-hamburger:hover { background: #f1f5f9; }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: all .25s ease;
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1099;
  opacity: 0;
  transition: opacity .25s;
}
.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100dvh;
  background: #fff;
  z-index: 1100;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  transition: right .3s cubic-bezier(.25,.46,.45,.94);
}
.mobile-nav-drawer.open { right: 0; }
.mobile-nav-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}
.mobile-nav-drawer nav a {
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  border-radius: 10px;
  transition: background .15s;
}
.mobile-nav-drawer nav a:hover { background: #f1f5f9; }
.mobile-nav-close {
  align-self: flex-end;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  transition: background .15s;
}
.mobile-nav-close:hover { background: #e2e8f0; }

@media(max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links     { display: none; }
  #auth-section  { display: none; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .pricing-card-featured { transform: none; }
  .pricing-card-featured:hover { transform: translateY(-4px); }
  .grid-3 { grid-template-columns: 1fr; }
}


/* =============================================
   UX POLISH: Toasts + Dropzone Loading States
   ============================================= */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
  pointer-events: all;
  max-width: 340px;
  line-height: 1.4;
}
.toast-show { opacity: 1; transform: translateY(0) scale(1); }
.toast-hide { opacity: 0; transform: translateY(-8px) scale(0.96); }
.toast-success { background: #065f46; border-left: 3px solid #34d399; }
.toast-error   { background: #7f1d1d; border-left: 3px solid #f87171; }
.toast-warning { background: #7c2d12; border-left: 3px solid #fb923c; }
.toast-info    { background: #1e3a5f; border-left: 3px solid #60a5fa; }
.toast-icon    { font-size: 16px; flex-shrink: 0; }
.toast-msg     { flex: 1; }

@keyframes spin { to { transform: rotate(360deg); } }
#drop.loading { border-color: #6366f1; background: #f0f0ff; }
#drop.loading::after {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  border: 2.5px solid #e0e7ff;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 8px auto 0;
}
#drop.loaded { border-color: #10b981; background: #f0fdf4; }

@media(max-width:640px) {
  #toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast { max-width: 100%; }
}
