@layer reset, base, components, modules, utilities;

:root {
  /* ─── Obsidian Lens Surface Stack ─── */
  --surface:                  #070d1f;
  --surface-container-lowest: #000000;
  --surface-container-low:    #0c1326;
  --surface-container:        #11192e;
  --surface-container-high:   #161f35;
  --surface-container-highest:#1c253e;
  --surface-bright:           #222b47;
  --surface-variant-glass:    rgba(28, 37, 62, 0.6);

  /* ─── On-Surface Text ─── */
  --on-surface:         #dfe4fe;
  --on-surface-variant: #9ba3c4;

  /* ─── Primary (Context / violet-blue) ─── */
  --primary:            #a3a6ff;
  --primary-container:  #9396ff;
  --on-primary:         #070d1f;

  /* ─── Secondary (Depth / soft lavender) ─── */
  --secondary:              #dae2fd;
  --secondary-container:    #3f465c;
  --on-secondary-container: #dae2fd;

  /* ─── Tertiary (Main Answer / purple) ─── */
  --tertiary: #ac8aff;

  /* ─── Semantic State Colors ─── */
  --error:          #ff6e84;
  --error-container: rgba(255, 110, 132, 0.15);
  --success:        #4ade80;
  --warning:        #facc15;

  /* ─── Outline ─── */
  --outline-variant: rgba(65, 71, 91, 0.15);

  /* ─── Opacity Variants ─── */
  --primary-05:    rgba(163, 166, 255, 0.05);
  --primary-10:    rgba(163, 166, 255, 0.1);
  --primary-20:    rgba(163, 166, 255, 0.2);
  --primary-30:    rgba(163, 166, 255, 0.3);
  --primary-50:    rgba(163, 166, 255, 0.5);
  --tertiary-10:   rgba(172, 138, 255, 0.1);
  --tertiary-20:   rgba(172, 138, 255, 0.2);
  --error-10:      rgba(255, 110, 132, 0.1);
  --error-20:      rgba(255, 110, 132, 0.2);
  --success-10:    rgba(74, 222, 128, 0.1);
  --success-20:    rgba(74, 222, 128, 0.2);
  --warning-10:    rgba(250, 204, 21, 0.1);
  --warning-20:    rgba(250, 204, 21, 0.2);

  /* ─── White / Black Overlays ─── */
  --white:    #ffffff;
  --white-05: rgba(255, 255, 255, 0.05);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-20: rgba(255, 255, 255, 0.2);
  --black:    #000000;
  --black-10: rgba(0, 0, 0, 0.1);
  --black-25: rgba(0, 0, 0, 0.25);
  --black-30: rgba(0, 0, 0, 0.3);
  --black-50: rgba(0, 0, 0, 0.5);
  --black-80: rgba(0, 0, 0, 0.8);

  /* ─── Legacy Gray Aliases (for unconverted feature files) ─── */
  --gray-900: #070d1f;
  --gray-800: #11192e;
  --gray-700: #1c253e;
  --gray-600: #3f465c;
  --gray-500: #9ba3c4;
  --gray-400: #9ba3c4;
  --gray-300: #dfe4fe;
  --gray-100: #dfe4fe;
  --gray-50:  #f0f2ff;

  /* ─── Legacy Indigo Aliases ─── */
  --indigo-400: #a3a6ff;
  --indigo-500: #a3a6ff;
  --indigo-600: #9396ff;
  --indigo-100: rgba(163, 166, 255, 0.15);

  /* ─── Legacy Opacity Aliases ─── */
  --gray-800-75:    rgba(17, 25, 46, 0.75);
  --gray-800-50:    rgba(17, 25, 46, 0.5);
  --indigo-500-50:  rgba(163, 166, 255, 0.5);
  --indigo-500-30:  rgba(163, 166, 255, 0.3);
  --indigo-500-20:  rgba(163, 166, 255, 0.2);
  --indigo-500-15:  rgba(163, 166, 255, 0.15);
  --indigo-500-10:  rgba(163, 166, 255, 0.1);
  --indigo-500-05:  rgba(163, 166, 255, 0.05);

  /* ─── Status Colors (kept as-is for feature files) ─── */
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-900: #064e3b;
  --yellow-400: #facc15;
  --yellow-300: #fde047;
  --yellow-500: #eab308;
  --yellow-900: #713f12;
  --red-200:  #fecaca;
  --red-400:  #f87171;
  --red-500:  #ef4444;
  --red-900:  #7f1d1d;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --orange-500: #f97316;

  --green-900-50:  rgba(6, 78, 59, 0.5);
  --green-500-20:  rgba(34, 197, 94, 0.2);
  --green-500-10:  rgba(34, 197, 94, 0.1);
  --red-900-50:    rgba(127, 29, 29, 0.5);
  --red-900-10:    rgba(127, 29, 29, 0.1);
  --red-500-50:    rgba(239, 68, 68, 0.5);
  --red-500-20:    rgba(239, 68, 68, 0.2);
  --yellow-500-20: rgba(234, 179, 8, 0.2);
  --yellow-500-10: rgba(234, 179, 8, 0.1);
  --blue-500-20:   rgba(59, 130, 246, 0.2);
  --blue-500-10:   rgba(59, 130, 246, 0.1);
  --orange-500-20: rgba(249, 115, 22, 0.2);
  --orange-500-10: rgba(249, 115, 22, 0.1);

  /* ─── Global Semantic Aliases ─── */
  --bg-color:    var(--surface);
  --text-color:  var(--on-surface);
  --border-color: var(--outline-variant);

  /* ─── Typography ─── */
  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

  /* ─── Layout ─── */
  --navbar-height: 4rem;
}
@layer reset {
  * {
    box-sizing: border-box;
  }
}
@layer base {
  body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-family: var(--font-display);
    color: var(--on-surface);
    line-height: 1.2;
  }

  h1 { font-size: 3rem; font-weight: 800; }
  h2 { font-size: 2.25rem; font-weight: 700; }
  h3 { font-size: 1.5rem; font-weight: 600; }

  p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--on-surface-variant);
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  img, picture, svg {
    display: block;
    max-width: 100%;
  }

  button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
  }
}
@layer components {
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    outline: none;
    letter-spacing: 0.01em;
  }

  .btn:focus-visible {
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary);
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: var(--on-primary);
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, #b8baff 0%, var(--primary) 100%);
    box-shadow: 0 4px 24px var(--primary-20);
  }

  .btn-secondary {
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
  }

  .btn-secondary:hover {
    background-color: var(--surface-bright);
    color: var(--on-surface);
  }

  .btn-ghost {
    background: transparent;
    color: var(--primary);
  }

  .btn-ghost:hover {
    background-color: var(--surface-bright);
    color: var(--on-surface);
  }

  .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }

  .btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 700;
  }

  .btn-full {
    width: 100%;
  }

  .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .btn-link {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: var(--primary);
  }

  .btn-link:hover {
    text-decoration: underline;
  }
}
@layer components {
  .card {
    border-radius: 0.75rem;
    background-color: var(--surface-container);
    padding: 1.5rem;
    transition: box-shadow 0.2s, background-color 0.2s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--outline-variant);
  }

  .card:hover {
    background-color: var(--surface-container-high);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(163, 166, 255, 0.12);
  }

  .card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--on-surface);
  }

  .empty-state-card {
    text-align: center;
    padding: 3rem;
    background-color: var(--surface-container);
    border-radius: 0.75rem;
    box-shadow: 0 0 0 1px var(--outline-variant);
  }

  .empty-state-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
  }

  .empty-state-text {
    color: var(--on-surface-variant);
    margin-bottom: 2rem;
  }

  .section-caption {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-surface-variant);
    margin-bottom: 0.5rem;
    margin-left: 1rem;
    font-weight: 600;
  }

  .settings-list {
    display: flex;
    flex-direction: column;
    background-color: var(--surface-container);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--outline-variant);
  }

  .settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: var(--on-surface);
    text-decoration: none;
    transition: background-color 0.2s;
  }

  .settings-item + .settings-item {
    border-top: 1px solid var(--outline-variant);
  }

  .settings-item:hover {
    background-color: var(--surface-container-high);
    color: var(--on-surface);
  }

  .settings-item-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--on-surface-variant);
  }
}
@layer components {
  .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 0.125rem;
    font-size: 0.75rem;
    font-weight: 500;
  }

  .badge-primary {
    background-color: var(--primary-10);
    color: var(--primary);
  }

  /* Legacy alias */
  .badge-indigo {
    background-color: var(--primary-10);
    color: var(--primary);
  }

  .badge-tertiary {
    background-color: var(--tertiary-10);
    color: var(--tertiary);
  }

  .score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 700;
  }

  .score-badge-green  { background-color: var(--success-10);  color: var(--success); }
  .score-badge-yellow { background-color: var(--warning-10);  color: var(--warning); }
  .score-badge-red    { background-color: var(--error-10);    color: var(--error); }
}
@layer components {
  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    margin-bottom: 0.5rem;
  }

  .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 0.5rem;
    color: var(--on-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
  }

  .form-control::placeholder {
    color: var(--on-surface-variant);
    opacity: 0.6;
  }

  .form-control:focus {
    outline: none;
    border-color: var(--primary-30);
    box-shadow: 0 0 0 3px var(--primary-10);
  }

  select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ba3c4' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
  }

  .spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--primary-10);
    border-bottom-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
  }

  @keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Details / Accordion */
  .summary-details summary {
    list-style: none;
  }

  .summary-details summary::marker,
  .summary-details summary::-webkit-details-marker {
    display: none;
  }

  .summary-details[open] summary svg {
    transform: rotate(90deg);
  }

  .rich-text h1, .rich-text h2, .rich-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
  }

  .rich-text p {
    margin-bottom: 1rem;
  }

  .rich-text ul, .rich-text ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
  }

  .rich-text li {
    margin-bottom: 0.5rem;
  }
}
@layer components {
  .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
  }

  .modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(7, 13, 31, 0.85);
    backdrop-filter: blur(8px);
  }

  .modal-dialog {
    position: relative;
    background-color: var(--surface-container);
    border-radius: 1rem;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.32), 0 0 0 1px var(--outline-variant);
    width: 100%;
    max-width: 32rem;
    overflow: hidden;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 9999px;
    background-color: var(--primary-10);
    flex-shrink: 0;
  }

  .modal-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0;
  }

  .modal-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--outline-variant);
    display: flex;
    justify-content: flex-end;
  }

  .share-modal-description {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    margin-top: 0.75rem;
    margin-bottom: 1rem;
  }

  .share-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .share-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 0.75rem;
    color: var(--on-surface);
    font-size: 0.875rem;
  }

  .share-input:focus {
    outline: none;
    border-color: var(--primary-30);
    box-shadow: 0 0 0 3px var(--primary-10);
  }

  .share-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .share-social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: inset 0 0 0 1px var(--outline-variant);
  }

  .share-social-btn.whatsapp {
    box-shadow: inset 0 0 0 1px var(--success-20);
    background-color: var(--success-10);
    color: var(--success);
  }

  .share-social-btn.whatsapp:hover {
    background-color: var(--success-20);
  }

  .share-social-btn.reddit {
    box-shadow: inset 0 0 0 1px var(--orange-500-20);
    background-color: var(--orange-500-10);
    color: var(--orange-500);
  }

  .share-social-btn.reddit:hover {
    background-color: var(--orange-500-20);
  }

  .share-social-btn.linkedin {
    box-shadow: inset 0 0 0 1px var(--blue-500-20);
    background-color: var(--blue-500-10);
    color: var(--blue-500);
  }

  .share-social-btn.linkedin:hover {
    background-color: var(--blue-500-20);
  }

  .share-social-btn svg {
    height: 1.5rem;
    width: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .share-social-label {
    font-size: 0.625rem;
    color: var(--on-surface-variant);
  }

  /* Mobile responsiveness */
  @media (max-width: 479px) {
    .modal-body {
      padding: 1rem;
    }

    .modal-footer {
      padding: 0.75rem 1rem;
    }

    .modal-header {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .share-input-group {
      flex-direction: column;
    }

    .share-input {
      width: 100%;
    }

    .copy-btn {
      width: 100%;
      text-align: center;
    }
  }

  .copy-btn {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: var(--on-primary);
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
  }

  .copy-btn:hover {
    opacity: 0.9;
  }

  .toast {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%) translateY(0.5rem);
    background-color: var(--success);
    color: var(--surface);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    white-space: nowrap;
  }

  .toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@layer components {
  .table-container {
    width: 100%;
    overflow-x: auto;
    background-color: var(--gray-800);
    border-radius: 0.75rem;
    border: 1px solid var(--white-10);
  }

  .table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
  }

  .table th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-400);
    border-bottom: 1px solid var(--white-10);
  }

  .table td {
    padding: 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--white-10);
  }

  .table tr:last-child td {
    border-bottom: none;
  }
}
@layer components {
  .progress-bar-container {
    width: 100%;
    background-color: var(--gray-700);
    border-radius: 9999px;
    height: 0.75rem;
    overflow: hidden;
  }

  .progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background-color: var(--indigo-500);
    transition: width 0.3s ease;
  }
}
@layer components {
  .navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--surface-variant-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--outline-variant);
    height: var(--navbar-height);
    overflow: visible;
  }

  .nav-container {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
  }

  .nav-left {
    display: flex;
    align-items: center;
  }

  .nav-brand-text {
    margin-left: 0.75rem;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--on-surface);
    letter-spacing: -0.025em;
  }

  .nav-logo img {
    height: 2.5rem;
    width: auto;
  }

  .nav-desktop {
    display: none;
  }

  @media (min-width: 1024px) {
    .nav-desktop {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }
  }

  .user-name-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--on-surface-variant);
  }

  .nav-guest-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  @media (min-width: 1024px) {
    .nav-mobile-toggle {
      display: none;
    }
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
  }

  .mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .mobile-user-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-surface);
  }

  .mobile-user-email {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
  }

  .mobile-section-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .footer-logo-link {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }

  .footer-logo-img {
    height: 2rem;
    width: auto;
  }

  .footer-logo-text {
    margin-left: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--on-surface);
  }

  .dropdown-container {
    padding: 0.25rem 0;
  }

  .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    transition: color 0.2s;
  }

  .nav-link:hover {
    color: var(--on-surface);
  }

  .nav-link.active {
    color: var(--primary);
  }

  .user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem;
    padding-right: 0.75rem;
    border-radius: 9999px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .user-profile-btn:hover {
    background-color: var(--surface-container-high);
  }

  .user-avatar {
    height: 2rem;
    width: 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--on-primary);
    outline: 1px solid var(--outline-variant);
  }

  .mobile-avatar {
    height: 2.5rem;
    width: 2.5rem;
  }

  .user-initials-text {
    font-size: 1rem;
  }

  .user-avatar img {
    border-radius: 9999px;
  }

  .dropdown-menu {
    position: absolute;
    right: 0;
    z-index: 10;
    margin-top: 0.5rem;
    width: 12rem;
    background-color: var(--surface-variant-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 0.75rem;
    padding: 0.25rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24), 0 0 0 1px var(--outline-variant);
  }

  .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
    box-sizing: border-box;
  }

  .dropdown-item:hover {
    background-color: var(--surface-container-high);
    color: var(--on-surface);
  }

  .dropdown-item.active {
    color: var(--primary);
    background-color: var(--primary-10);
  }

  /* Mobile Menu */
  .mobile-menu-btn {
    padding: 0.625rem;
    color: var(--on-surface-variant);
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .mobile-menu-btn:hover {
    color: var(--on-surface);
  }

  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-color: var(--black-50);
    backdrop-filter: blur(4px);
  }

  .mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: 80%;
    max-width: 20rem;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--surface-container-low);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4), -1px 0 0 var(--outline-variant);
    padding: 1.5rem;
    overflow-y: auto;
  }

  .nav-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-menu-section {
    padding: 0.75rem 0;
  }

  .mobile-menu-section + .mobile-menu-section {
    border-top: 1px solid var(--outline-variant);
  }

  .mobile-menu-item {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    border-radius: 0.5rem;
    transition: all 0.15s;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
  }

  .mobile-menu-item:hover,
  .mobile-menu-item:active {
    color: var(--on-surface);
    background-color: var(--surface-container-high);
  }

  /* Side Menu */
  .side-menu {
    width: 100%;
    flex-shrink: 0;
  }

  @media (min-width: 1024px) {
    .side-menu {
      width: 16rem;
    }
  }

  .side-menu-sticky {
    position: sticky;
    top: 5rem;
  }

  .side-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .side-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    color: var(--on-surface-variant);
    transition: all 0.2s;
  }

  .side-menu-link:hover {
    color: var(--on-surface);
    background-color: var(--surface-container-high);
  }

  .side-menu-link.active {
    background-color: var(--primary-10);
    color: var(--primary);
    box-shadow: inset 3px 0 0 var(--primary);
  }

  /* Language Selector */
  .language-selector {
    position: relative;
  }

  .language-selector-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--white-05);
    border: 1px solid var(--outline-variant);
    color: var(--on-surface-variant);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }

  .language-selector-btn:hover {
    background-color: var(--surface-container-high);
    color: var(--on-surface);
  }

  .language-selector-btn-footer {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-color: transparent;
    background-color: transparent;
  }

  .language-selector-btn-footer:hover {
    background-color: var(--surface-container-high);
  }

  .language-selector-btn-mobile {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: var(--surface-container);
    font-size: 1rem;
  }

  .flag-icon {
    font-size: 1rem;
    line-height: 1;
  }

  .locale-name-desktop {
    display: none;
  }

  .locale-name-mobile {
    display: inline;
    font-size: 0.75rem;
  }

  @media (min-width: 1024px) {
    .locale-name-desktop { display: inline; }
    .locale-name-mobile { display: none; }
  }

  .dropdown-chevron {
    width: 1rem;
    height: 1rem;
    color: var(--on-surface-variant);
    transition: transform 0.2s;
  }
}
@layer components {
  .tier-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-700);
    background-color: var(--gray-900);
    transition: all 0.3s ease;
  }

  .tier-card:hover {
    border-color: var(--gray-600);
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px var(--black-10);
  }

  .tier-card.highlighted {
    border-color: var(--indigo-500);
    background-color: var(--gray-800);
    box-shadow: 0 20px 25px -5px var(--black-10);
    transform: scale(1.05);
    z-index: 10;
  }

  .tier-card.highlighted:hover {
    transform: scale(1.07) translateY(-4px);
  }

  .tier-card-header {
    margin-bottom: 1rem;
  }

  .tier-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
  }

  .tier-price {
    margin-top: 1rem;
    display: flex;
    align-items: baseline;
    color: var(--white);
  }

  .tier-price-amount {
    font-size: 2.25rem;
    font-weight: 800;
  }

  .tier-features {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
  }

  .tier-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .tier-feature-icon {
    flex-shrink: 0;
    height: 1.5rem;
    width: 1.5rem;
    color: var(--indigo-500);
  }

  .tier-feature-text {
    margin-left: 0.75rem;
    color: var(--gray-300);
  }

  .tier-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .tier-description {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--gray-400);
  }
}
@layer modules {
  .container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
  }

  @media (min-width: 640px) { .container { padding: 0 2rem; } }
  @media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

  .container-sm { max-width: 32rem; margin: 0 auto; }
  .container-md { max-width: 48rem; margin: 0 auto; }
  .container-lg { max-width: 56rem; margin: 0 auto; }
  .container-xl { max-width: 80rem; margin: 0 auto; }

  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--on-surface-variant);
    transition: color 0.2s;
  }

  .back-link:hover {
    color: var(--on-surface);
  }

  .back-link-text {
    font-size: 0.875rem;
    font-weight: 500;
  }

  .page-header {
    text-align: center;
    margin-bottom: 3rem;
  }

  .page-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--on-surface);
  }

  .page-subtitle {
    font-size: 1.25rem;
    color: var(--on-surface-variant);
  }

  .page-title-sm {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--on-surface);
  }

  .page-subtitle-sm {
    font-size: 1rem;
    color: var(--on-surface-variant);
    margin-bottom: 2rem;
  }

  .section-title-xl {
    font-family: var(--font-display);
    font-size: 3.75rem;
    margin-bottom: 1rem;
    color: var(--on-surface);
  }

  .section-title-lg {
    font-family: var(--font-display);
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--on-surface);
  }

  .section-title-md {
    font-family: var(--font-display);
    font-size: 1.875rem;
    margin-bottom: 1rem;
    color: var(--on-surface);
  }

  .section-text-lg {
    font-size: 1.25rem;
    color: var(--on-surface-variant);
  }

  .section-subtitle-lg {
    font-size: 1.25rem;
    color: var(--on-surface-variant);
    margin-bottom: 3rem;
  }

  .section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-surface-variant);
    margin-bottom: 0.5rem;
  }

  .spinner-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .loading-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
  }

  .loading-subtitle {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
  }

  .video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
  }

  .video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
  }

  .actions-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  @media (min-width: 640px) {
    .actions-group {
      flex-direction: row;
    }
  }

  .section {
    padding: 6rem 0;
  }

  .section-alt {
    background-color: var(--surface-container-low);
  }

  .feature-step-description {
    color: var(--on-surface-variant);
    font-size: 1rem;
    line-height: 1.6;
  }

  .list-item-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .hero {
    padding: 6rem 0;
    position: relative;
  }

  .hero-content {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 3rem;
  }

  @media (min-width: 1024px) {
    .hero-content {
      grid-template-columns: 1.2fr 1fr;
      text-align: left;
    }
  }

  .hero-image-wrapper {
    display: flex;
    justify-content: center;
  }

  .hero-image-wrapper img {
    height: auto;
  }

  .hero-title {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
  }

  @media (max-width: 640px) {
    .hero-title { font-size: 2.5rem; }
  }

  .hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    margin-bottom: 2rem;
  }

  /* Dashboard Layout */
  .dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  @media (min-width: 1024px) {
    .dashboard-container {
      flex-direction: row;
    }
  }

  .dashboard-main {
    flex: 1;
    min-width: 0;
  }
}
@layer modules {
  .footer {
    box-shadow: 0 -1px 0 var(--outline-variant);
    background-color: var(--surface-container-low);
    padding: 3rem 0 2rem;
    margin-top: auto;
  }

  .footer-content {
    padding: 0 1rem;
  }

  @media (min-width: 640px) {
    .footer-content { padding: 0 1.5rem; }
  }
  @media (min-width: 1024px) {
    .footer-content { padding: 0 2rem; }
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  @media (min-width: 768px) {
    .footer-grid {
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 3rem;
    }
  }

  .footer-heading {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 0.75rem;
  }

  .footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-link {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    transition: color 0.2s;
  }

  .footer-link:hover {
    color: var(--on-surface);
  }

  .footer-link-active {
    color: var(--on-surface);
  }

  .footer-link-active:hover {
    color: var(--primary);
  }

  .footer-copyright {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    margin-top: 0.75rem;
  }

  .footer-language-selector {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
  }
}
@layer modules {
  .alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
  }

  .alert-warning {
    background-color: var(--warning-10);
    color: var(--warning);
    box-shadow: inset 0 0 0 1px var(--warning-20);
  }

  .alert-error {
    background-color: var(--error-container);
    color: var(--error);
    box-shadow: inset 0 0 0 1px var(--error-20);
  }

  .alert-success {
    background-color: var(--success-10);
    color: var(--success);
    box-shadow: inset 0 0 0 1px var(--success-20);
  }

  .alert-icon {
    flex-shrink: 0;
    height: 1.25rem;
    width: 1.25rem;
  }

  .alert-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
@layer modules {
  .auth-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
  }

  @media (min-width: 640px) { .auth-page-wrapper { padding: 3rem 1.5rem; } }
  @media (min-width: 1024px) { .auth-page-wrapper { padding: 3rem 2rem; } }

  .auth-page-container {
    max-width: 28rem;
    width: 100%;
  }

  .auth-page-header {
    margin-bottom: 2.5rem;
  }

  .auth-page-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--on-surface);
  }

  @media (min-width: 640px) {
    .auth-page-title { font-size: 3rem; }
  }

  .auth-methods-container {
    margin-top: 2.5rem;
    width: 100%;
  }

  .auth-methods-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .auth-btn {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
    cursor: pointer;
    border: none;
  }

  .auth-btn-google {
    background-color: var(--white);
    color: #1a1a1a;
  }

  .auth-btn-google:hover {
    background-color: #f0f0f0;
  }

  .auth-btn-apple {
    background-color: var(--black);
    color: var(--white);
    box-shadow: inset 0 0 0 1px var(--outline-variant);
  }

  .auth-btn-apple:hover {
    background-color: #111111;
  }

  .auth-btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
  }

  .auth-consent-text {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--on-surface-variant);
  }

  .auth-consent-link {
    font-weight: 600;
    color: var(--primary);
  }

  .auth-consent-link:hover {
    color: var(--secondary);
  }

  .auth-success-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface);
    padding: 3rem 0;
    width: 100%;
    min-height: calc(100vh - var(--navbar-height));
  }

  .auth-success-container {
    max-width: 28rem;
    width: 100%;
    margin: 0 1rem;
  }

  .auth-success-content {
    text-align: center;
    margin-bottom: 2rem;
  }

  .auth-success-title {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 2rem;
  }

  .auth-credits-card {
    border-radius: 0.75rem;
    background-color: var(--surface-container);
    box-shadow: 0 0 0 1px var(--outline-variant);
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .auth-credits-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
  }

  .auth-credits-label {
    font-size: 1rem;
    font-weight: 400;
    color: var(--on-surface);
  }

  .auth-success-message {
    color: var(--on-surface-variant);
    font-size: 1.125rem;
  }

  .auth-countdown-container {
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .auth-countdown-alert {
    border-radius: 0.75rem;
    background-color: var(--surface-container);
    padding: 1rem;
    box-shadow: inset 0 0 0 1px var(--primary-20);
  }

  .auth-countdown-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary);
  }

  .auth-countdown-icon {
    width: 1.25rem;
    height: 1.25rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  .auth-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
  }
}
@layer modules {
  .billing-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
  }

  .billing-card-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .billing-card-icon {
    height: 2rem;
    width: 2rem;
    color: var(--indigo-400);
  }

  .billing-section-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .billing-info-label {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 0.25rem;
  }

  .billing-info-value {
    font-size: 1.125rem;
    font-weight: 500;
  }

  .billing-info-note {
    font-size: 0.75rem;
    color: var(--gray-500);
  }

  .billing-actions-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--white-10);
  }

  .billing-actions-description {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
  }

  .billing-actions-buttons {
    display: flex;
    gap: 1rem;
  }
}
@layer modules {
  .credits-label {
    font-size: 1rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
  }

  .credits-value-xl {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
  }

  .credits-value-lg {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
  }

  .credits-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
  }

  .credits-divider {
    border-top: 1px solid var(--white-10);
    margin: 0;
  }

  .credits-usage-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
  }

  .credits-actions {
    padding-top: 1.25rem;
    border-top: 1px solid var(--white-10);
    display: flex;
    gap: 1rem;
  }

  .credits-section-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .credits-progress-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .credits-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .credits-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .credits-info {
    display: flex;
    align-items: center;
  }

  .credits-text {
    display: flex;
    flex-direction: column;
  }

  .credits-value-sm {
    font-weight: 500;
    color: var(--white);
  }

  .credits-breakdown {
    font-size: 0.75rem;
    color: var(--gray-400);
  }
}
@layer modules {
  /* ─── Evaluate / New page ─── */
  .evaluate-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 0 4rem;
  }

  .evaluate-hero {
    text-align: center;
    max-width: 38rem;
    margin-bottom: 2.5rem;
  }

  .evaluate-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--on-surface);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.1;
  }

  @media (max-width: 640px) {
    .evaluate-title { font-size: 2.5rem; }
  }

  .evaluate-subtitle {
    font-size: 1.125rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin: 0;
  }

  .evaluate-form-card {
    width: 100%;
    max-width: 52rem;
    background-color: var(--surface-container);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--outline-variant);
  }

  .evaluate-form-row {
    display: flex;
    gap: 0.625rem;
    align-items: center;
  }

  @media (max-width: 640px) {
    .evaluate-form-row {
      flex-direction: column;
    }
    .evaluate-url-field,
    .evaluate-locale-select,
    .evaluate-submit-btn {
      width: 100%;
    }
  }

  .evaluate-url-field {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .evaluate-url-icon {
    position: absolute;
    left: 0.875rem;
    width: 1.125rem;
    height: 1.125rem;
    color: var(--on-surface-variant);
    flex-shrink: 0;
    pointer-events: none;
  }

  .evaluate-url-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.625rem;
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 0.625rem;
    color: var(--on-surface);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
  }

  .evaluate-url-input::placeholder {
    color: var(--on-surface-variant);
    opacity: 0.5;
  }

  .evaluate-url-input:focus {
    outline: none;
    border-color: var(--primary-30);
    box-shadow: 0 0 0 3px var(--primary-10);
  }

  .evaluate-locale-select {
    padding: 0.875rem 2.25rem 0.875rem 1rem;
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 0.625rem;
    color: var(--on-surface);
    font-size: 0.9375rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ba3c4' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    transition: border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .evaluate-locale-select:focus {
    outline: none;
    border-color: var(--primary-30);
    box-shadow: 0 0 0 3px var(--primary-10);
  }

  .evaluate-submit-btn {
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: var(--on-primary);
    border: none;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s, box-shadow 0.2s;
    font-family: var(--font-display);
  }

  .evaluate-submit-btn:hover {
    opacity: 0.92;
    box-shadow: 0 4px 20px var(--primary-20);
  }

  .evaluate-credits-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1.25rem;
    padding: 0.5rem 1rem 0.5rem 0.875rem;
    background-color: var(--surface-container);
    border-radius: 9999px;
    box-shadow: 0 0 0 1px var(--outline-variant);
    font-size: 0.875rem;
    color: var(--on-surface-variant);
  }

  .evaluate-credits-icon {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    flex-shrink: 0;
  }

  .evaluate-credits-balance strong {
    color: var(--on-surface);
    font-weight: 600;
  }

  .evaluate-credits-divider {
    width: 1px;
    height: 1rem;
    background-color: var(--outline-variant);
    flex-shrink: 0;
  }

  .evaluate-credits-topup {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
    transition: color 0.2s;
  }

  .evaluate-credits-topup:hover {
    color: var(--secondary);
  }

  .evaluate-error {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 52rem;
  }

  /* ─── Show page layout ─── */
  .eval-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .eval-main-top,
  .eval-main-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
  }

  /* Legacy — kept in case still referenced */
  .eval-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
  }

  .eval-chapters-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
  }

  @media (min-width: 1024px) {
    .eval-content--expanded {
      grid-template-columns: 3fr 2fr;
      grid-template-rows: auto 1fr;
      grid-template-areas:
        "top     chapters"
        "bottom  chapters";
    }
    .eval-content--expanded .eval-main-top    { grid-area: top; }
    .eval-content--expanded .eval-chapters-panel { grid-area: chapters; align-self: start; }
    .eval-content--expanded .eval-main-bottom { grid-area: bottom; }
  }

  .eval-video {
    border-radius: 0.75rem;
    overflow: hidden;
  }

  .eval-score-row {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
  }

  .cm-bar {
    display: flex;
    height: 12px;
    border-radius: 9999px;
    overflow: hidden;
    gap: 2px;
    background: var(--surface-container-low);
    margin-bottom: 0.625rem;
  }

  .cm-segment {
    flex-shrink: 0;
    transition: opacity 0.2s;
  }

  .cm-segment:hover {
    opacity: 0.75;
  }

  /* Bar header row */
  .cm-bar-left {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
    min-width: 0;
  }

  .cm-bar-title {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  /* Chevron toggle button */
  .cm-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    background-color: var(--surface-container-high);
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--outline-variant);
    transition: background-color 0.2s, box-shadow 0.2s;
    margin-left: 0.75rem;
  }

  .cm-bar-btn:hover {
    background-color: var(--surface-bright);
    box-shadow: 0 0 0 1px var(--primary-30);
  }

  .cm-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1rem;
  }

  .cm-legend-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
  }

  .cm-legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    flex-shrink: 0;
  }

  .cm-legend-label {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
  }

  .cm-legend-time {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--on-surface-variant);
    opacity: 0.6;
  }


  .cm-chevron {
    flex-shrink: 0;
    color: var(--on-surface-variant);
    transition: transform 0.25s;
    display: flex;
    align-items: center;
  }

  .cm-chevron svg {
    width: 1rem;
    height: 1rem;
    display: block;
  }

  .cm-chevron--expanded {
    transform: rotate(180deg);
  }

  /* Legacy list layout (kept for other uses) */
  .eval-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .eval-title-section {
    margin-bottom: 1.5rem;
    position: relative;
    padding-right: 3rem;
  }

  .eval-share-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem;
    color: var(--on-surface-variant);
    border-radius: 0.5rem;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .eval-share-btn:hover {
    color: var(--on-surface);
    background: var(--surface-container-high);
  }

  .eval-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .eval-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--on-surface);
  }

  .eval-external-link {
    color: var(--primary);
    transition: color 0.2s;
  }

  .eval-external-link:hover {
    color: var(--secondary);
  }

  .eval-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--on-surface-variant);
  }

  .eval-score-big {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--on-surface);
  }

  .eval-score-suffix {
    font-size: 1.25rem;
    opacity: 0.5;
  }

  .eval-score-label {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .transcript-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--outline-variant);
    font-size: 0.875rem;
    max-height: 24rem;
    overflow-y: auto;
    white-space: pre-wrap;
    color: var(--on-surface-variant);
    line-height: 1.6;
  }

  .eval-summary-trigger {
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
  }

  .eval-summary-label {
    display: flex;
    align-items: center;
  }

  .eval-summary-icon {
    height: 1.25rem;
    width: 1.25rem;
    margin-right: 0.5rem;
  }

  .eval-text {
    color: var(--on-surface-variant);
    line-height: 1.6;
  }

  .sticky-summary-header {
    position: sticky;
    top: var(--navbar-height);
    z-index: 20;
    background-color: rgba(7, 13, 31, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--outline-variant);
    padding: 1rem 0;
    margin-bottom: 2rem;
  }

  /* Chapter Map */
  .cm-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }

  .cm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 0.5rem;
  }

  .cm-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .cm-chevron {
    color: var(--on-surface-variant);
    transition: transform 0.2s;
    flex-shrink: 0;
  }

  .cm-chevron svg {
    width: 1rem;
    height: 1rem;
    display: block;
  }

  .cm-chevron--collapsed {
    transform: rotate(-90deg);
  }

  .cm-cards {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }

  .cm-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.125rem;
    background: var(--surface-container);
    border-radius: 0.75rem;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 0 1px var(--outline-variant);
  }

  .cm-card:hover {
    background: var(--surface-container-high);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 0 0 1px var(--primary-20);
  }

  .cm-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .cm-card-timestamp {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--on-surface-variant);
    font-weight: 500;
  }

  .cm-card-dot {
    display: none;
  }

  .cm-card-duration {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--on-surface-variant);
  }

  .cm-card-title {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--on-surface);
    line-height: 1.4;
  }

  .cm-card-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.25rem;
    width: fit-content;
    text-transform: uppercase;
  }

  /* Tabs */
  .tabs-header {
    display: flex;
    background-color: var(--surface-container);
    border-bottom: 1px solid var(--outline-variant);
  }

  .tab-btn {
    flex: 1;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
  }

  .tab-btn:hover {
    color: var(--on-surface);
    background-color: var(--surface-container-high);
  }

  .tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: var(--primary-05);
  }

  /* Transcript Styles */
  .transcript-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    cursor: pointer;
    text-align: left;
    width: 100%;
    background: transparent;
    border: none;
  }

  .transcript-item:hover {
    background-color: var(--surface-container-high);
  }

  .transcript-timestamp {
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    min-width: 3.5rem;
    flex-shrink: 0;
  }

  .transcript-text-content {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
  }

  .transcript-search-wrapper {
    position: sticky;
    top: 0;
    background: var(--surface-container);
    z-index: 5;
    margin-bottom: 0.25rem;
  }

  .transcript-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 0.5rem;
    color: var(--on-surface);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
  }

  .transcript-search-input:focus {
    border-color: var(--primary-30);
    box-shadow: 0 0 0 3px var(--primary-10);
  }

  /* Smaller Video Preview */
  .video-preview-wrapper {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  /* History Page */
  .hc-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }

  .hc-card {
    display: flex;
    align-items: stretch;
    background-color: var(--surface-container);
    border-radius: 0.75rem;
    box-shadow: 0 0 0 1px var(--outline-variant);
    overflow: hidden;
    transition: box-shadow 0.2s, background-color 0.2s;
    min-height: 11rem;
    text-decoration: none;
  }

  .hc-card:hover {
    background-color: var(--surface-container-high);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--primary-20);
  }

  .hc-card:hover .hc-title {
    color: var(--primary);
  }

  /* Thumbnail */
  .hc-thumb-wrap {
    flex-shrink: 0;
    width: 11rem;
    background-color: var(--surface-container-lowest);
    overflow: hidden;
  }

  @media (max-width: 640px) {
    .hc-thumb-wrap { width: 6rem; }
  }

  .hc-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hc-thumb-fallback {
    background-color: var(--surface-container-low);
  }

  /* Body */
  .hc-body {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .hc-date {
    font-size: 0.8125rem;
    color: var(--on-surface-variant);
    letter-spacing: 0.01em;
  }

  .hc-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0;
    line-height: 1.3;
    transition: color 0.2s;
  }

  .hc-summary {
    font-size: 0.9375rem;
    color: var(--on-surface-variant);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Right column: score + share */
  .hc-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    border-left: 1px solid var(--outline-variant);
    min-width: 7rem;
  }

  @media (max-width: 640px) {
    .hc-right { min-width: 5rem; padding: 1rem 0.75rem; }
  }

  .hc-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
  }

  .hc-score-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
  }

  .hc-score-denom {
    font-size: 1rem;
    color: var(--on-surface-variant);
    font-weight: 500;
    align-self: flex-end;
    margin-bottom: 0.25rem;
  }

  .hc-score-num-denom-row {
    display: flex;
    align-items: baseline;
    gap: 0.0625rem;
  }

  .hc-score--green .hc-score-num { color: var(--success); }
  .hc-score--yellow .hc-score-num { color: var(--warning); }
  .hc-score--red .hc-score-num { color: var(--error); }

  .hc-score-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--on-surface-variant);
    margin-top: 0.1875rem;
  }

  .hc-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--surface-container-high);
    border: none;
    border-radius: 0.5rem;
    color: var(--on-surface-variant);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 0 1px var(--outline-variant);
  }

  .hc-action-btn svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  .hc-action-btn:hover {
    background-color: var(--surface-bright);
    color: var(--on-surface);
  }
}
@layer modules {
  .feedback-page-wrapper {
    max-width: 48rem;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
  }

  @media (min-width: 640px) { .feedback-page-wrapper { padding: 4rem 1.5rem; } }
  @media (min-width: 1024px) { .feedback-page-wrapper { padding: 4rem 2rem; } }

  .feedback-card {
    background-color: var(--gray-800-50);
    border: 1px solid var(--gray-700);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 20px 25px -5px var(--black-10), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }

  .feedback-icon-wrapper {
    margin: 0 auto 2rem;
    display: flex;
    height: 5rem;
    width: 5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
  }

  .feedback-icon-success {
    background-color: var(--green-900-50);
  }

  .feedback-icon-error {
    background-color: var(--red-900-50);
  }

  .feedback-icon {
    height: 3rem;
    width: 3rem;
  }

  .feedback-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
  }

  .feedback-message {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
  }

  .feedback-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
  }

  @media (min-width: 640px) {
    .feedback-actions {
      flex-direction: row;
    }
  }
}
@layer modules {
  .hero-cta-wrapper {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  @media (min-width: 1024px) {
    .hero-cta-wrapper {
      align-items: flex-start;
    }
  }

  .hero-cta-note {
    color: var(--gray-400);
  }

  .feature-highlight-section {
    padding: 3rem 0;
  }

  .feature-highlight-text {
    text-align: center;
    font-size: 1.25rem;
    color: var(--gray-300);
    white-space: pre-line;
  }

  .pain-points-grid {
    display: grid;
    gap: 1.25rem;
  }

  @media (min-width: 768px) {
    .pain-points-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .pain-point-card {
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--red-500-20);
    background-color: var(--red-900-10);
  }

  .pain-point-quote {
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
  }

  .pain-point-quote-mark {
    color: var(--gray-400);
  }

  .section-intro {
    text-align: center;
    margin-bottom: 4rem;
  }

  @media (min-width: 1024px) {
    .section-intro-split {
      text-align: left;
    }
  }

  .youtube-skeleton-card {
    padding: 1rem;
    background-color: var(--gray-900);
    border-radius: 1rem;
    border: 1px solid var(--white-10);
  }

  .youtube-skeleton-video {
    position: relative;
    background-color: var(--gray-700);
    border-radius: 0.5rem;
    aspect-ratio: 16/9;
    margin-bottom: 0.75rem;
    overflow: hidden;
  }

  .youtube-skeleton-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .play-icon-bg {
    width: 4rem;
    height: 4rem;
    background-color: var(--red-400);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
  }

  .play-icon-triangle {
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
  }

  .youtube-skeleton-meta {
    display: flex;
    gap: 0.75rem;
  }

  .skeleton-avatar {
    width: 2.25rem;
    height: 2.25rem;
    background-color: var(--gray-700);
    border-radius: 9999px;
    flex-shrink: 0;
  }

  .skeleton-text-line {
    height: 1rem;
    background-color: var(--gray-700);
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .skeleton-text-line.short {
    width: 75%;
  }

  .step-number {
    margin: 0 auto;
    height: 5rem;
    width: 5rem;
    border-radius: 9999px;
    background-color: var(--indigo-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: var(--white);
    font-weight: 700;
  }

  .founder-card {
    padding: 3rem;
    background-color: var(--indigo-500-05);
    border: 1px solid var(--indigo-500-20);
    border-radius: 1rem;
  }

  @media (min-width: 1024px) {
    .founder-card {
      padding: 3rem 4rem;
    }
  }

  .founder-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .founder-avatar-wrapper {
    width: 7rem;
    height: 7rem;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    overflow: hidden;
  }

  .founder-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .founder-quote {
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
  }

  .founder-footer {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
  }

  .founder-mascot {
    width: 8rem;
  }

  .cta-section-content {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
  }

  .solutions-hero {
    padding: 6rem 1.5rem;
  }

  .solutions-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
  }

  @media (min-width: 640px) {
    .solutions-title { font-size: 3rem; }
  }

  .solutions-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
  }

  .solutions-grid-section {
    padding: 6rem 0;
  }

  .solution-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
  }

  .solution-card-text {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .solution-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--indigo-400);
    font-weight: 600;
    transition: color 0.2s;
  }

  .solution-card-link:hover {
    color: var(--indigo-300);
  }

  .transcription-hero {
    padding: 8rem 1.5rem;
  }

  .transcription-hero-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
  }

  .transcription-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
  }

  @media (min-width: 640px) {
    .transcription-hero-title { font-size: 3rem; }
  }

  .transcription-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: 2.5rem;
  }

  .transcription-form-wrapper {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
  }

  .transcription-form-flex {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  @media (min-width: 640px) {
    .transcription-form-flex {
      flex-direction: row;
    }
  }

  .transcription-hero-note {
    font-size: 1.125rem;
    color: var(--gray-300);
  }

  .transcription-section {
    padding: 6rem 0;
  }

  .transcription-steps-grid {
    display: grid;
    gap: 2rem;
  }

  @media (min-width: 768px) {
    .transcription-steps-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .transcription-info-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
  }

  @media (min-width: 1024px) {
    .transcription-info-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .transcription-big-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
  }

  @media (min-width: 640px) {
    .transcription-big-title { font-size: 4.5rem; }
  }

  .transcription-info-text {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .transcription-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .transcription-faq-grid {
    display: grid;
    gap: 3rem;
  }

  @media (min-width: 1024px) {
    .transcription-faq-grid {
      grid-template-columns: 1fr 3fr;
    }
  }
}
@layer modules {
  .legal-page-wrapper {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 2rem 0;
    min-height: 100vh;
  }

  .legal-container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 1rem;
  }

  @media (min-width: 640px) { .legal-container { padding: 2rem 1.5rem; } }
  @media (min-width: 1024px) { .legal-container { padding: 2rem 2rem; } }

  .legal-header {
    margin-bottom: 2rem;
  }

  .legal-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
  }

  @media (min-width: 640px) {
    .legal-title { font-size: 3rem; }
  }

  .legal-content {
    line-height: 1.6;
  }

  .legal-section {
    margin-bottom: 2rem;
  }

  .legal-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
  }

  .legal-subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--white);
  }

  .legal-text {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
  }

  .legal-list {
    list-style-type: disc;
    list-style-position: inside;
    color: var(--gray-300);
    margin-bottom: 1rem;
    margin-left: 1rem;
  }

  .legal-list li {
    margin-bottom: 0.5rem;
  }
}
@layer modules {
  .shared-eval-wrapper {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 1rem;
  }

  @media (min-width: 640px) { .shared-eval-wrapper { padding: 3rem 1.5rem; } }
  @media (min-width: 1024px) { .shared-eval-wrapper { padding: 3rem 2rem; } }

  .shared-eval-header {
    text-align: center;
    margin-bottom: 3rem;
  }

  .shared-eval-logo-link {
    display: inline-block;
    margin-bottom: 2rem;
  }

  .shared-eval-logo {
    height: 3rem;
    width: auto;
    margin: 0 auto;
  }

  .shared-eval-subtitle {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--gray-400);
  }

  .shared-eval-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .shared-eval-cta {
    background-color: var(--indigo-600);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px var(--indigo-500-20);
    margin-top: 2rem;
  }

  .shared-eval-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
  }

  .shared-eval-cta-text {
    color: var(--indigo-100);
    margin-bottom: 2rem;
    font-size: 1.125rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }

  .shared-eval-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
  }

  @media (min-width: 640px) {
    .shared-eval-cta-actions {
      flex-direction: row;
    }
  }
}
@layer modules {
  .faq-grid {
    display: grid;
    gap: 2rem;
  }

  @media (min-width: 768px) {
    .faq-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
  }

  .faq-answer {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.6;
  }

  .top-up-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
  }

  .top-up-label {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}
@layer utilities {
  /* Text colors */
  .text-white { color: var(--white); }
  .text-inherit { color: inherit; }
  .text-gray-300 { color: var(--gray-300); }
  .text-gray-400 { color: var(--gray-400); }
  .text-indigo-400 { color: var(--indigo-400); }
  .text-green-400 { color: var(--green-400); }
  .text-yellow-400 { color: var(--yellow-400); }
  .text-red-200 { color: var(--red-200); }
  .text-red-400 { color: var(--red-400); }

  /* Background colors */
  .bg-yellow-500-10 { background-color: var(--yellow-500-10); }
  .bg-yellow-500 { background-color: var(--yellow-500); }
  .bg-gray-900 { background-color: var(--gray-900); }
  .bg-cta-gradient { background: linear-gradient(to right, var(--indigo-500-20), rgba(168, 85, 247, 0.2)); }

  /* Border colors */
  .border-yellow-500-20 { border-color: var(--yellow-500-20); }
  .border-gray-800 { border-color: var(--gray-800); }

  /* Text alignment */
  .text-center { text-align: center; }

  /* Text sizes */
  .text-xs { font-size: 0.75rem; }
  .text-sm { font-size: 0.875rem; }
  .text-base { font-size: 1rem; }
  .text-lg { font-size: 1.125rem; }
  .text-xl { font-size: 1.25rem; }
  .text-2xl { font-size: 1.5rem; }
  .text-3xl { font-size: 1.875rem; }
  .text-4xl { font-size: 2.25rem; }

  /* Font weights */
  .font-medium { font-weight: 500; }
  .font-semibold { font-weight: 600; }
  .font-bold { font-weight: 700; }

  /* Line height */
  .leading-relaxed { line-height: 1.625; }

  /* Margin */
  .m-0 { margin: 0 !important; }
  .mt-0 { margin-top: 0 !important; }
  .mb-0 { margin-bottom: 0 !important; }
  .mx-auto { margin-left: auto; margin-right: auto; }

  /* Margin bottom */
  .mb-1 { margin-bottom: 0.25rem; }
  .mb-2 { margin-bottom: 0.5rem; }
  .mb-4 { margin-bottom: 1rem; }
  .mb-6 { margin-bottom: 1.5rem; }
  .mb-8 { margin-bottom: 2rem; }
  .mb-12 { margin-bottom: 3rem; }

  /* Margin top */
  .mt-2 { margin-top: 0.5rem; }
  .mt-3 { margin-top: 0.75rem; }
  .mt-4 { margin-top: 1rem; }
  .mt-6 { margin-top: 1.5rem; }
  .mt-12 { margin-top: 3rem; }
  .mt-16 { margin-top: 4rem; }

  /* Margin left */
  .ml-2 { margin-left: 0.5rem; }
  .ml-3 { margin-left: 0.75rem; }

  /* Padding */
  .p-0 { padding: 0 !important; }
  .pt-0 { padding-top: 0 !important; }
  .pb-0 { padding-bottom: 0 !important; }
  .p-3 { padding: 0.75rem; }
  .p-4 { padding: 1rem; }
  .p-6 { padding: 1.5rem; }
  .p-8 { padding: 2rem; }

  .py-16 { padding-top: 4rem; padding-bottom: 4rem; }

  /* Gap */
  .gap-2 { gap: 0.5rem; }
  .gap-6 { gap: 1.5rem; }
  .gap-16 { gap: 4rem; }

  /* Width & Height */
  .w-5 { width: 1.25rem; }
  .w-6 { width: 1.5rem; }
  .w-full { width: 100%; }
  .w-auto { width: auto; }

  .h-5 { height: 1.25rem; }
  .h-6 { height: 1.5rem; }
  .h-10 { height: 2.5rem; }

  .min-h-screen { min-height: 100vh; }

  /* Max-width */
  .max-w-4xl { max-width: 56rem; }

  /* Display */
  .flex { display: flex; }
  .grid { display: grid; }
  .hidden { display: none !important; }

  /* Flexbox */
  .flex-col { flex-direction: column; }
  .items-center { align-items: center; }
  .justify-center { justify-content: center; }
  .justify-between { justify-content: space-between; }
  .flex-1 { flex: 1; }
  .flex-grow { flex-grow: 1; }

  /* Position */
  .relative { position: relative; }

  /* Border */
  .border-t { border-top: 1px solid var(--border-color); }

  /* Misc */
  .cursor-pointer { cursor: pointer; }
  .overflow-hidden { overflow: hidden; }
  .list-none { list-style: none; padding: 0; margin: 0; }
  .transition-transform { transition: transform 0.2s; }
  .underline { text-decoration: underline; }
  .white-space-pre-line { white-space: pre-line; }

  /* Icon sizes */
  .icon-inline {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: text-bottom;
  }

  .icon-md {
    width: 1.5rem;
    height: 1.5rem;
  }

  /* Score colors */
  .text-score-green { color: var(--green-400); }
  .text-score-yellow { color: var(--yellow-400); }
  .text-score-red { color: var(--red-400); }

  /* Feedback states */
  .copied {
    color: var(--green-400) !important;
  }

  /* Space utilities */
  .space-y-6 > * + * { margin-top: 1.5rem; }

  /* Accessibility */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  /* Responsive utilities */
  @media (min-width: 768px) {
    .md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (min-width: 1024px) {
    .lg-hidden { display: none !important; }
    .lg-block { display: block !important; }
    .lg-text-left { text-align: left; }
    .lg-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
}
/*


























 */
