/* ============================================================
   JobMatch AI — Global Stylesheet
   Font: DM Sans (Google Fonts)
   ============================================================ */

/* ── 0. CSS Variables ───────────────────────────────────────── */
:root {
  --blue:        #1a56db;
  --blue-dark:   #1341b0;
  --blue-light:  #dbeafe;
  --navy:        #0a192f;
  --navy-mid:    #112240;
  --green:       #0d9f6e;
  --green-dark:  #097a55;
  --green-light: #d1fae5;
  --gray-900:    #0f172a;
  --gray-800:    #1e293b;
  --gray-700:    #334155;
  --gray-600:    #475569;
  --gray-500:    #64748b;
  --gray-400:    #94a3b8;
  --gray-300:    #cbd5e1;
  --gray-200:    #e2e8f0;
  --gray-100:    #f1f5f9;
  --gray-50:     #f8fafc;
  --white:       #ffffff;

  --red:         #ef4444;
  --red-light:   #fee2e2;
  --yellow:      #f59e0b;
  --yellow-light:#fef3c7;
  --purple:      #7c3aed;
  --purple-light:#ede9fe;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-md:   0 8px 24px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:   0 16px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);

  --transition:  all .2s cubic-bezier(.4,0,.2,1);

  --font:        'DM Sans', system-ui, -apple-system, sans-serif;
  --header-h:    66px;
}

/* ── 1. Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.nav-open { overflow: hidden; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { color: var(--gray-600); }

/* ── 2. Layout Utilities ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.container--sm  { max-width: 680px; }
.container--md  { max-width: 860px; }
.container--xl  { max-width: 1360px; }

main { flex: 1; }

.section { padding-block: 72px; }
.section--sm { padding-block: 48px; }
.section--lg { padding-block: 96px; }

.section-header { margin-bottom: 48px; text-align: center; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 560px; margin-inline: auto; font-size: 1.05rem; }

/* Grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Flex */
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* Text */
.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-muted { color: var(--gray-500); }
.text-blue  { color: var(--blue); }
.text-green { color: var(--green); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.hidden-sm { display: inline; }
.mt-4  { margin-top:  4px; }
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ── 3. Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none !important;
}

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

/* Primary */
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover:not(:disabled) {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26,86,219,.35);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover:not(:disabled) {
  background: var(--blue-light);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* Green */
.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover:not(:disabled) {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13,159,110,.35);
}

/* Danger */
.btn-danger {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-danger:hover:not(:disabled) { background: #dc2626; }

/* Sizes */
.btn-sm  { font-size: .8125rem; padding: 7px 16px; border-radius: var(--radius-sm); }
.btn-lg  { font-size: 1.0625rem; padding: 15px 30px; border-radius: var(--radius-lg); }
.btn-xl  { font-size: 1.125rem; padding: 18px 38px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }

/* Icon button */
.btn-icon {
  width: 38px; height: 38px;
  padding: 0;
  border-radius: var(--radius);
  background: transparent;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-icon:hover { background: var(--gray-100); color: var(--gray-900); }

/* ── 4. Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.card--hover:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--shadow {
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card--elevated {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
}

.card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ── 5. Badges & Tags ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-blue    { background: var(--blue-light);   color: var(--blue); }
.badge-green   { background: var(--green-light);  color: var(--green-dark); }
.badge-red     { background: var(--red-light);    color: #b91c1c; }
.badge-yellow  { background: var(--yellow-light); color: #92400e; }
.badge-purple  { background: var(--purple-light); color: var(--purple); }
.badge-gray    { background: var(--gray-100);     color: var(--gray-600); }

/* Plan badges */
.plan-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.plan-badge--pro        { background: var(--blue);   color: var(--white); }
.plan-badge--enterprise { background: var(--purple);  color: var(--white); }

/* PRO nav badge */
.badge-pro {
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, #7c3aed, #1a56db);
  color: white;
  vertical-align: middle;
  margin-left: 3px;
}

/* Tag pills (skills, job types) */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: .8125rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: default;
}

.tag--link { cursor: pointer; }
.tag--link:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }

.tag--blue   { background: var(--blue-light);   color: var(--blue);       border-color: #bfdbfe; }
.tag--green  { background: var(--green-light);  color: var(--green-dark); border-color: #a7f3d0; }
.tag--yellow { background: var(--yellow-light); color: #92400e;           border-color: #fde68a; }

/* ── 6. Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 10px 14px;
  outline: none;
  transition: var(--transition);
  appearance: none;
}

.form-control::placeholder { color: var(--gray-400); }

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

.form-control.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.form-control:disabled { background: var(--gray-50); color: var(--gray-400); cursor: not-allowed; }

.form-hint { font-size: .8125rem; color: var(--gray-500); margin-top: 5px; }
.form-error { font-size: .8125rem; color: var(--red); margin-top: 5px; }

textarea.form-control { resize: vertical; min-height: 100px; line-height: 1.5; }

select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* Checkbox & Radio */
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}

/* Search input with icon */
.input-with-icon { position: relative; }
.input-with-icon .form-control { padding-left: 42px; }
.input-with-icon .input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

/* ── 7. Alert / Flash messages ──────────────────────────────── */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: .9rem;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.alert-success { background: var(--green-light);  border-color: #a7f3d0; color: #065f46; }
.alert-error   { background: var(--red-light);    border-color: #fca5a5; color: #991b1b; }
.alert-info    { background: var(--blue-light);   border-color: #bfdbfe; color: #1e3a8a; }
.alert-warning { background: var(--yellow-light); border-color: #fde68a; color: #78350f; }

/* ── 8. Navigation ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
  transition: box-shadow .2s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-900);
  letter-spacing: -.01em;
}
.logo-text strong { font-weight: 800; color: var(--blue); }

/* Main nav */
.main-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 7px 12px;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: var(--transition);
}

.nav-link:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-link.active { color: var(--blue); background: var(--blue-light); font-weight: 600; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* User avatar */
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gray-200);
}
.user-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  background: var(--blue);
  color: white;
  border: 2px solid transparent;
}

.user-name { font-size: .875rem; font-weight: 600; color: var(--gray-700); }

/* User menu */
.user-menu { position: relative; }

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.user-menu-trigger:hover { background: var(--gray-100); }

.chevron { color: var(--gray-500); transition: transform .2s; }
.user-menu-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 230px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .15s ease;
  z-index: 999;
  overflow: hidden;
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header { padding: 14px 16px 10px; }
.dropdown-name  { font-size: .875rem; font-weight: 600; color: var(--gray-900); }
.dropdown-email { font-size: .78rem; color: var(--gray-500); margin-top: 2px; }

.dropdown-divider { height: 1px; background: var(--gray-100); }

.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none !important;
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--gray-50); color: var(--gray-900); }
.dropdown-item--upgrade { color: var(--blue); font-weight: 600; }
.dropdown-item--upgrade:hover { background: var(--blue-light); }
.dropdown-item--danger { color: var(--red); }
.dropdown-item--danger:hover { background: var(--red-light); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  z-index: 999;
  padding: 24px 0;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-link {
  display: block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none !important;
  transition: var(--transition);
}
.mobile-nav-link:hover { background: var(--gray-50); color: var(--blue); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

/* ── 9. Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  gap: 48px;
  padding-block: 56px;
  flex-wrap: wrap;
}

.footer-brand { flex: 0 0 220px; }
.footer-tagline { font-size: .875rem; margin-top: 12px; color: var(--gray-500); line-height: 1.6; }

.logo--footer .logo-text { color: var(--white); }
.logo--footer .logo-text strong { color: var(--blue-light); }

.footer-links {
  display: flex;
  gap: 48px;
  flex: 1;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: var(--white);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: .875rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-block: 20px;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p { font-size: .8125rem; color: var(--gray-600); }
.footer-powered  { font-size: .78rem; color: var(--gray-700); }

/* ── 10. Match Ring ─────────────────────────────────────────── */
.match-ring {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.match-ring svg { transform: rotate(-90deg); }

.match-ring__track {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 5;
}

.match-ring__fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset .6s cubic-bezier(.4,0,.2,1);
}

.match-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.1;
}

/* Color variants by score */
.match-ring--high  .match-ring__fill { stroke: var(--green); }
.match-ring--high  .match-ring__label { color: var(--green-dark); }
.match-ring--mid   .match-ring__fill { stroke: var(--yellow); }
.match-ring--mid   .match-ring__label { color: #92400e; }
.match-ring--low   .match-ring__fill { stroke: var(--gray-400); }
.match-ring--low   .match-ring__label { color: var(--gray-600); }

/* ── 11. Auth Pages ─────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  padding: 40px 20px;
}

.auth-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 { font-size: 1.625rem; margin-bottom: 6px; }
.auth-card > p { margin-bottom: 28px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: .8125rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-footer { margin-top: 24px; text-align: center; font-size: .875rem; color: var(--gray-500); }
.auth-footer a { color: var(--blue); font-weight: 600; }

/* Google OAuth button */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 20px;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}
.btn-google:hover { background: var(--gray-50); border-color: var(--gray-400); box-shadow: var(--shadow-sm); }

/* ── 12. Hero Section ───────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26,86,219,.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(13,159,110,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,86,219,.2);
  border: 1px solid rgba(26,86,219,.4);
  color: #93c5fd;
  font-size: .8125rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 18px;
  max-width: 700px;
}

.hero h1 span { color: #60a5fa; }

.hero-sub {
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 540px;
}

/* Hero search bar */
.hero-search {
  display: flex;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  max-width: 720px;
}

.hero-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-right: 1px solid var(--gray-200);
}

.hero-search-field:last-of-type { border-right: none; }

.hero-search-field svg { color: var(--gray-400); flex-shrink: 0; }

.hero-search-input {
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--gray-900);
  background: transparent;
  width: 100%;
  padding: 8px 0;
}

.hero-search-input::placeholder { color: var(--gray-400); }

.hero-search .btn { flex-shrink: 0; padding: 12px 28px; border-radius: var(--radius); }

/* ── 13. Stats Row ──────────────────────────────────────────── */
.stats-row {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 12px 40px;
  border-right: 1px solid var(--gray-200);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 500;
}

/* ── 14. Trending Tags ──────────────────────────────────────── */
.trending { padding: 32px 0; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.trending-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trending-label { font-size: .8125rem; font-weight: 600; color: var(--gray-500); white-space: nowrap; }
.trending-tags  { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 15. Steps / How it works ───────────────────────────────── */
.step-card {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 1.125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.75rem;
}

.step-card h3 { margin-bottom: 10px; }

/* ── 16. Pricing teaser ─────────────────────────────────────── */
.pricing-card {
  position: relative;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px;
  background: var(--white);
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured .pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-name { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 8px; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.pricing-price sup { font-size: 1.25rem; font-weight: 600; vertical-align: super; }
.pricing-period { font-size: .875rem; color: var(--gray-500); margin-left: 2px; }
.pricing-desc { font-size: .9rem; color: var(--gray-500); margin: 12px 0 24px; }

.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--gray-700);
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--green); flex-shrink: 0; }
.pricing-features .cross { color: var(--gray-400); flex-shrink: 0; }

/* ── 17. Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 0;
}

.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none !important;
  padding: 0 10px;
}

.page-item:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.page-item.active { background: var(--blue); border-color: var(--blue); color: white; }
.page-item:disabled { opacity: .4; cursor: not-allowed; }

/* ── 18. Loading / Spinner ──────────────────────────────────── */
.spinner {
  width: 24px; height: 24px;
  border: 2.5px solid var(--gray-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer { to { background-position: -200% 0; } }

/* ── 19. Modals ─────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all .2s;
}

.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(.95) translateY(10px);
  transition: transform .2s;
}

.modal-backdrop.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-title { font-size: 1.125rem; font-weight: 700; }

.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  flex-shrink: 0;
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-900); }

.modal-body { padding: 20px 28px 28px; }

/* ── 20. Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hidden-sm { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-search { flex-direction: column; }
  .hero-search-field { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .hero-search-field:last-of-type { border-bottom: none; }
  .hero-search .btn { width: 100%; }
  .stats-grid { gap: 0; }
  .stat-item { padding: 12px 20px; }
  .footer-brand { flex: 0 0 100%; }
}

@media (max-width: 600px) {
  :root { --header-h: 58px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: 48px; }
  .auth-card { padding: 28px 20px; }
  .stat-item { padding: 10px 14px; }
  .footer-links { gap: 32px; }
  .footer-inner { padding-block: 40px; gap: 32px; }
  .hero { padding: 64px 0 56px; }
  .pricing-card { padding: 28px 20px; }
}
