/* ---------- Design tokens ---------- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ink: #0e1023;
  --ink-soft: #1a1d38;
  --paper: #f5f6fb;
  --paper-dim: #ebedf7;

  --signal-blue: #0b5cff;      /* logo blue */
  --signal-blue-soft: #e8f0ff;
  --brand-cyan: #12d0ff;       /* logo cyan */
  --brand-navy: #0a2a78;       /* logo "Hire" navy */
  --brand-gradient: linear-gradient(120deg, #0b4fe8 0%, #0b6dff 55%, #0a8cf0 100%);
  --signal-violet: #7c3aed;
  --signal-violet-soft: #f3ebfe;

  --match: #17c964;
  --match-soft: #e4faec;
  --pass: #ff5a5f;
  --pass-soft: #ffecec;

  --muted: #6b7094;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--signal-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.font-display { font-family: var(--font-display); }

/* ---------- Layout helpers ---------- */
.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 512px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 672px; margin: 0 auto; padding: 0 24px; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; } .mt-16 { margin-top: 64px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-sm { font-size: 14px; } .text-xs { font-size: 12px; }
.text-muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; padding: 12px 24px; font-size: 15px;
  border: none; cursor: pointer; transition: all 0.15s ease; user-select: none;
  font-family: var(--font-sans);
}
.btn:active { transform: scale(0.95); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-gradient {
  background: var(--brand-gradient);
  color: white; box-shadow: 0 8px 20px rgba(11, 92, 255, 0.25);
}
.btn-gradient:hover { filter: brightness(1.1); }
.btn-outline { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-dim); }
.btn-block { width: 100%; }

/* ---------- Form fields ---------- */
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; border: none; border-bottom: 2px solid rgba(14,16,35,0.1);
  background: transparent; padding: 10px 4px; font-size: 15px; outline: none;
  font-family: var(--font-sans); color: var(--ink); transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal-blue); }
.field textarea { resize: none; }
.field-boxed input, .field-boxed textarea {
  border: 1px solid rgba(14,16,35,0.1); border-radius: 12px; padding: 10px 14px;
}
.field-boxed input:focus, .field-boxed textarea:focus { border-color: var(--signal-blue); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.alert { border-radius: 12px; padding: 10px 16px; font-size: 14px; }
.alert-error { background: var(--pass-soft); color: var(--pass); }
.alert-success { background: var(--match-soft); color: var(--match); }
.alert-info { background: var(--paper-dim); color: var(--muted); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 4px 12px; font-size: 14px; font-weight: 500;
}
.badge-blue { background: var(--signal-blue-soft); color: var(--signal-blue); }
.badge-violet { background: var(--signal-violet-soft); color: var(--signal-violet); }
.badge-match { background: var(--match-soft); color: var(--match); }
.badge-pass { background: var(--pass-soft); color: var(--pass); }
.badge-neutral { background: var(--paper-dim); color: var(--muted); }

/* ---------- Cards ---------- */
.card { background: white; border: 1px solid rgba(14,16,35,0.05); border-radius: 16px; padding: 20px; }

/* ---------- Role toggle (sign up) ---------- */
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--paper-dim); border-radius: 16px; padding: 6px; margin-bottom: 28px; }
.role-toggle button {
  border: none; background: transparent; border-radius: 12px; padding: 10px; font-size: 14px;
  font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.15s ease; font-family: var(--font-sans);
}
.role-toggle button.active { background: white; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

/* ---------- Auth split screen ---------- */
.split-screen { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.split-panel {
  display: none; flex-direction: column; justify-content: space-between;
  background: var(--ink); color: var(--paper); padding: 48px;
}
.split-panel-headline { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1.25; }
.split-panel-sub { margin-top: 16px; max-width: 380px; color: rgba(245,246,251,0.6); }
.split-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.split-form-inner { width: 100%; max-width: 380px; }

@media (min-width: 768px) {
  .split-screen { grid-template-columns: 1fr 1fr; }
  .split-panel { display: flex; }
}

/* ---------- Landing ---------- */
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 24px; }
.landing-hero { display: grid; grid-template-columns: 1fr; gap: 64px; padding: 40px 24px 80px; align-items: center; }
.landing-headline { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1.1; }
.landing-sub { margin-top: 24px; max-width: 420px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.landing-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.landing-section { border-top: 1px solid rgba(14,16,35,0.05); border-bottom: 1px solid rgba(14,16,35,0.05); background: white; }
.landing-steps { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
.step-number {
  width: 44px; height: 44px; border-radius: 999px; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.split-panels { display: grid; grid-template-columns: 1fr; border-radius: 32px; overflow: hidden; margin: 64px 0; }
.split-panels > div { padding: 48px 32px; }
.panel-dark { background: var(--ink); color: var(--paper); }
.panel-light { background: var(--signal-blue-soft); }

@media (min-width: 768px) {
  .landing-hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 80px; padding-bottom: 80px; }
  .landing-headline { font-size: 60px; }
  .landing-steps { flex-direction: row; gap: 48px; }
  .split-panels { grid-template-columns: 1fr 1fr; }
}

.hero-card-wrap { position: relative; width: 300px; height: 420px; margin: 0 auto; }
.hero-card-back { position: absolute; inset: 0; border-radius: 28px; background: var(--signal-violet-soft); transform: rotate(6deg); }
.hero-card-front {
  position: absolute; inset: 0; border-radius: 28px; background: white; transform: rotate(-3deg);
  border: 1px solid rgba(14,16,35,0.05); box-shadow: 0 20px 40px rgba(14,16,35,0.1); padding: 24px; display: flex; flex-direction: column;
}
.hero-card-avatar {
  height: 128px; border-radius: 16px; background: linear-gradient(135deg, var(--signal-blue), var(--signal-violet));
  color: white; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 700;
}
.hero-card-match-tag {
  position: absolute; top: -16px; right: -16px; transform: rotate(6deg); background: var(--match); color: white;
  border-radius: 16px; padding: 8px 16px; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ---------- App shell ---------- */
.app-shell { min-height: 100vh; }
.sidebar {
  display: none; width: 256px; flex-direction: column; background: var(--ink); color: var(--paper);
  padding: 24px 20px; position: fixed; top: 0; bottom: 0; left: 0;
}
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.sidebar-logo { display: flex; align-items: center; gap: 8px; }
.sidebar-logo img { width: 32px; height: 32px; }
.sidebar-nav { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 12px 16px;
  font-size: 14px; font-weight: 500; color: rgba(245,246,251,0.6); transition: all 0.15s ease;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.1); color: white; }
.sidebar-signout {
  display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 12px 16px;
  font-size: 14px; font-weight: 500; color: rgba(245,246,251,0.6); background: none; border: none;
  cursor: pointer; font-family: var(--font-sans); text-align: left;
}
.sidebar-signout:hover { background: rgba(255,255,255,0.05); color: white; }

.mobile-topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(14,16,35,0.05); background: rgba(245,246,251,0.8); backdrop-filter: blur(16px);
  padding: calc(var(--safe-top) + 12px) 20px 12px;
}
.mobile-topbar-brand { display: flex; align-items: center; gap: 8px; }
.mobile-topbar-brand img { width: 24px; height: 24px; }
.mobile-topbar button { background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 999px; }
.mobile-topbar button:active { transform: scale(0.9); background: var(--paper-dim); }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-around;
  border-top: 1px solid rgba(14,16,35,0.05); background: rgba(245,246,251,0.8); backdrop-filter: blur(16px);
  padding: 8px 8px calc(var(--safe-bottom) + 8px);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 18px; border-radius: 16px; font-size: 11px; font-weight: 500; color: var(--muted); }
.bottom-nav a.active { color: var(--signal-blue); }
.bottom-nav a:active { transform: scale(0.9); }

.app-main { padding-bottom: calc(var(--safe-bottom) + 72px); }

@media (min-width: 768px) {
  .sidebar { display: flex; }
  .mobile-topbar, .bottom-nav { display: none; }
  .app-main { margin-left: 256px; padding-bottom: 0; }
}

/* ---------- Swipe deck ---------- */
.deck-page { max-width: 448px; margin: 0 auto; padding: 20px 16px 24px; display: flex; flex-direction: column; align-items: center; }
.deck-stack { position: relative; width: 100%; height: 62vh; max-height: 520px; min-height: 380px; }
.swipe-card {
  position: absolute; inset: 0; touch-action: none; user-select: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.swipe-card.dragging { transition: none; }
.swipe-card-inner {
  position: relative; height: 100%; border-radius: 28px; background: white; overflow: hidden;
  border: 1px solid rgba(14,16,35,0.05); box-shadow: 0 24px 48px rgba(14,16,35,0.12); padding: 24px; display: flex; flex-direction: column;
}
.swipe-card-avatar {
  height: 96px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 24px; font-weight: 700;
}
.swipe-card-avatar.talent { background: linear-gradient(135deg, var(--signal-blue), var(--signal-violet)); }
.swipe-card-avatar.job { background: linear-gradient(135deg, var(--signal-violet), var(--signal-blue)); }
.swipe-card-title { margin-top: 20px; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.swipe-card-skills { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chip { background: var(--paper-dim); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; }
.swipe-stamp {
  position: absolute; top: 24px; border-radius: 12px; border: 4px solid; padding: 6px 16px;
  font-family: var(--font-display); font-size: 24px; font-weight: 700; pointer-events: none; opacity: 0;
}
.swipe-color-wash {
  position: absolute; inset: 0; border-radius: 28px; pointer-events: none; z-index: 1;
  transition: background 0.12s ease-out, box-shadow 0.12s ease-out;
}
.dragging .swipe-color-wash { transition: none; }
.swipe-stamp-like { right: 24px; transform: rotate(12deg); border-color: var(--match); color: var(--match); }
.swipe-stamp-pass { left: 24px; transform: rotate(-12deg); border-color: var(--pass); color: var(--pass); }

.deck-actions { margin-top: 24px; display: flex; align-items: center; gap: 24px; }
.deck-action-btn {
  width: 64px; height: 64px; border-radius: 999px; border: 2px solid; display: flex; align-items: center; justify-content: center;
  background: white; cursor: pointer; transition: all 0.15s ease;
}
.deck-action-btn:active { transform: scale(0.95); }
.deck-action-btn.pass { border-color: var(--pass); color: var(--pass); }
.deck-action-btn.like { border-color: var(--match); color: var(--match); }

.empty-state { margin-top: 64px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--muted); }
.empty-state svg { color: var(--muted); }
.empty-state-title { margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }

/* ---------- Match celebration ---------- */
.celebration-overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(14,16,35,0.8); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s ease;
}
.celebration-overlay.visible { opacity: 1; }
.celebration-card {
  margin: 0 24px; width: 100%; max-width: 380px; border-radius: 32px; padding: 40px;
  background: linear-gradient(135deg, var(--signal-blue), var(--signal-violet)); color: white; text-align: center;
  transform: scale(0.6) rotate(-8deg); opacity: 0; transition: all 0.5s ease;
}
.celebration-overlay.visible .celebration-card { transform: scale(1) rotate(0deg); opacity: 1; }
.celebration-icon {
  margin: 0 auto; width: 64px; height: 64px; border-radius: 999px; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}

/* ---------- Job/match list rows ---------- */
.list-row { background: white; border: 1px solid rgba(14,16,35,0.05); border-radius: 16px; padding: 20px; margin-bottom: 12px; }
.list-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Credits page ---------- */
.wallet-card {
  display: flex; align-items: center; gap: 16px; border-radius: 20px; padding: 24px;
  background: linear-gradient(90deg, var(--signal-blue), var(--signal-violet)); color: white;
}
.package-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.package-card {
  position: relative; border-radius: 16px; padding: 16px; text-align: left; border: 2px solid rgba(14,16,35,0.1);
  background: white; cursor: pointer; transition: all 0.15s ease;
}
.package-card:active { transform: scale(0.95); }
.package-card.popular { border-color: var(--signal-blue); background: var(--signal-blue-soft); }
.package-badge {
  position: absolute; top: -10px; right: 12px; background: var(--signal-blue); color: white;
  border-radius: 999px; padding: 2px 8px; font-size: 10px; font-weight: 700;
}
.tx-row { display: flex; align-items: center; justify-content: space-between; border-radius: 12px; border: 1px solid rgba(14,16,35,0.05); background: white; padding: 12px 16px; margin-bottom: 8px; }

/* ---------- Chat ---------- */
.chat-page { max-width: 512px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; height: calc(100vh - 128px); }
.chat-header { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.chat-thread { flex: 1; overflow-y: auto; background: white; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.chat-bubble-row { display: flex; }
.chat-bubble-row.mine { justify-content: flex-end; }
.chat-bubble { max-width: 75%; border-radius: 16px; padding: 8px 16px; font-size: 14px; }
.chat-bubble.theirs { background: var(--paper-dim); color: var(--ink); }
.chat-bubble.mine { background: var(--signal-blue); color: white; }
.chat-input-row { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.chat-input-row input { flex: 1; border-radius: 999px; border: 1px solid rgba(14,16,35,0.1); background: white; padding: 10px 16px; font-size: 14px; outline: none; font-family: var(--font-sans); }
.chat-input-row input:focus { border-color: var(--signal-blue); }
.chat-send-btn {
  width: 40px; height: 40px; border-radius: 999px; background: var(--signal-blue); color: white; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.chat-send-btn:active { transform: scale(0.9); }
.chat-send-btn:disabled { opacity: 0.5; }

/* ---------- Notifications ---------- */
.notif-row { display: flex; align-items: center; gap: 12px; border-radius: 12px; border: 1px solid rgba(14,16,35,0.05); background: white; padding: 16px; margin-bottom: 8px; transition: all 0.15s ease; }
.notif-row:active { transform: scale(0.98); }
.notif-row.unread { border-color: rgba(47,91,255,0.2); background: var(--signal-blue-soft); }
.notif-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--signal-blue); display: inline-block; margin-top: 4px; }

/* ---------- Bell / nav badge ---------- */
.nav-bell { position: relative; }
.nav-bell-badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--pass); color: white; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}


/* ======================================================================
   Stage 3 — priority apply, verified badge, reviews, safety, admin
   ====================================================================== */
:root { --gold: #f5a524; --gold-soft: #fff4e0; }

/* Verified Company badge — used on job cards, company profile, matches */
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 9px 3px 6px;
  background: var(--signal-blue-soft); color: var(--signal-blue); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.tag-featured, .tag-boosted, .tag-priority {
  display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
}
.tag-featured { background: var(--ink); color: white; }
.tag-boosted { background: var(--signal-violet-soft); color: var(--signal-violet); }
.tag-priority { background: var(--gold-soft); color: #b36b00; }
.swipe-card-tags { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; pointer-events: none; }
.swipe-card-company { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }

.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.stars-meta { color: var(--muted); letter-spacing: 0; margin-left: 4px; font-size: 12px; font-weight: 500; }

/* Priority Apply action button (sits between Pass and Like) */
.deck-action-btn.priority { width: 52px; height: 52px; border-color: var(--gold); color: var(--gold); font-size: 22px; }
.deck-action-btn.priority:hover { background: var(--gold-soft); }
.deck-action-hint { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }

/* Toasts */
.toast-host {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-bottom) + 88px); z-index: 60;
  display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none;
}
@media (min-width: 768px) { .toast-host { bottom: 32px; left: calc(50% + 128px); } }
.toast {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: white; border-radius: 16px; padding: 12px 16px; font-size: 14px;
  box-shadow: 0 12px 32px rgba(14,16,35,0.25); opacity: 0; transform: translateY(12px); transition: all 0.25s ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }
.toast a { color: #9db2ff; font-weight: 700; white-space: nowrap; }
.toast-error { background: #3a0d12; }
.toast-success { background: #0b3a22; }

/* Modal / bottom sheet (sheet on phones, dialog on desktop) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 55; background: rgba(14,16,35,0.55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity 0.2s ease;
}
.modal-overlay.visible { opacity: 1; }
.modal-sheet {
  width: 100%; max-width: 480px; background: white; border-radius: 24px 24px 0 0; padding: 24px 24px calc(var(--safe-bottom) + 24px);
  transform: translateY(24px); transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); max-height: 90vh; overflow-y: auto;
}
.modal-overlay.visible .modal-sheet { transform: translateY(0); }
@media (min-width: 768px) {
  .modal-overlay { align-items: center; }
  .modal-sheet { border-radius: 24px; padding-bottom: 24px; }
}
.modal-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

.star-input { display: flex; gap: 6px; margin-top: 12px; }
.star-input button {
  border: none; background: none; font-size: 34px; line-height: 1; cursor: pointer; color: #d7d9e6; padding: 2px; transition: transform 0.1s ease, color 0.1s ease;
}
.star-input button.on { color: var(--gold); }
.star-input button:active { transform: scale(0.85); }

.textarea-boxed, .input-boxed, .select-boxed {
  width: 100%; border: 1px solid rgba(14,16,35,0.12); border-radius: 12px; padding: 10px 14px; font-size: 14px;
  font-family: var(--font-sans); color: var(--ink); background: white; outline: none; resize: vertical;
}
.textarea-boxed:focus, .input-boxed:focus, .select-boxed:focus { border-color: var(--signal-blue); }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-option {
  border: 1.5px solid rgba(14,16,35,0.12); background: white; border-radius: 999px; padding: 8px 14px; font-size: 13px;
  font-weight: 600; cursor: pointer; font-family: var(--font-sans); color: var(--ink);
}
.chip-option.selected { border-color: var(--signal-blue); background: var(--signal-blue-soft); color: var(--signal-blue); }

/* Match rows */
.match-row-head { display: flex; align-items: flex-start; gap: 14px; }
.match-avatar {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; background: linear-gradient(135deg, var(--signal-blue), var(--signal-violet));
}
.match-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.match-sub { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.match-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.link-action { font-size: 14px; font-weight: 600; color: var(--signal-blue); display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; padding: 0; font-family: var(--font-sans); }

/* Chat header menu */
.chat-header { justify-content: space-between; }
.chat-header-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-menu-btn { border: none; background: var(--paper-dim); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: 18px; color: var(--ink); }
.chat-menu-btn:active { transform: scale(0.9); }
.chat-banner { margin-bottom: 10px; }
.chat-bubble-row .report-msg { opacity: 0; border: none; background: none; color: var(--muted); font-size: 11px; cursor: pointer; padding: 0 6px; align-self: center; }
.chat-bubble-row:hover .report-msg, .chat-bubble-row:focus-within .report-msg { opacity: 1; }
@media (hover: none) { .chat-bubble-row .report-msg { opacity: 0.7; } }
.action-list { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.action-list button {
  text-align: left; border: none; background: none; padding: 14px 12px; border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: var(--font-sans); color: var(--ink);
}
.action-list button:hover { background: var(--paper-dim); }
.action-list button.danger { color: var(--pass); }

/* Review cards on profile */
.review-item { border-top: 1px solid rgba(14,16,35,0.06); padding: 12px 0; }
.review-item:first-child { border-top: none; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d7d9e6; border-radius: 999px; transition: background 0.15s ease; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.15s ease; }
.switch input:checked + span { background: var(--match); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--signal-blue); outline-offset: 2px; }

/* ---------- Admin ---------- */
.admin-page { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; }
@media (min-width: 768px) { .admin-page { padding: 32px 32px 48px; } }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.admin-tabs {
  display: flex; gap: 6px; overflow-x: auto; margin: 20px -16px 0; padding: 0 16px 4px; scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a {
  flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: white; border: 1px solid rgba(14,16,35,0.06); display: inline-flex; gap: 6px; align-items: center;
}
.admin-tabs a.active { background: var(--ink); color: white; border-color: var(--ink); }
.tab-count { background: var(--pass); color: white; border-radius: 999px; font-size: 10px; padding: 1px 6px; font-weight: 700; }
@media (min-width: 768px) { .admin-tabs { margin: 24px 0 0; padding: 0; flex-wrap: wrap; } }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: white; border: 1px solid rgba(14,16,35,0.05); border-radius: 18px; padding: 16px 18px; }
.stat-card.dark { background: var(--ink); color: white; border-color: var(--ink); }
.stat-card.dark .stat-label, .stat-card.dark .stat-foot { color: rgba(255,255,255,0.6); }
.stat-card.alert-tone { border-color: rgba(255,90,95,0.35); background: var(--pass-soft); }
.stat-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-foot { font-size: 12px; color: var(--muted); margin-top: 4px; }
a.stat-card:active { transform: scale(0.98); }

.admin-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.admin-toolbar .input-boxed { flex: 1 1 220px; max-width: 360px; }
.admin-toolbar .select-boxed { width: auto; flex: none; }

.admin-table-wrap { margin-top: 16px; background: white; border: 1px solid rgba(14,16,35,0.05); border-radius: 18px; overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; padding: 12px 16px; background: var(--paper); }
.admin-table td { padding: 12px 16px; border-top: 1px solid rgba(14,16,35,0.05); vertical-align: middle; }
.admin-table tr.clickable { cursor: pointer; }
.admin-table tr.clickable:hover td { background: #fafbff; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }
.cell-main { font-weight: 600; }
.cell-sub { font-size: 12px; color: var(--muted); }
/* Tables collapse into stacked cards on phones */
@media (max-width: 767px) {
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { border-top: 1px solid rgba(14,16,35,0.06); padding: 10px 0; }
  .admin-table tr:first-child { border-top: none; }
  .admin-table td { border: none; padding: 4px 16px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .admin-table td::before { content: attr(data-label); font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; text-align: left; flex: none; }
  .admin-table td.num { justify-content: space-between; }
}

.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--muted); }
.status-pill { display: inline-flex; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.status-active, .status-approved, .status-resolved, .status-succeeded, .status-hired, .status-sent { background: var(--match-soft); color: #0e8a44; }
.status-suspended, .status-rejected, .status-revoked, .status-failed, .status-not_hired { background: var(--pass-soft); color: var(--pass); }
.status-pending, .status-open, .status-interested { background: var(--signal-blue-soft); color: var(--signal-blue); }
.status-needs_info, .status-interviewing, .status-offer { background: var(--gold-soft); color: #b36b00; }
.status-closed, .status-dismissed, .status-deleted { background: var(--paper-dim); color: var(--muted); }

.review-card { background: white; border: 1px solid rgba(14,16,35,0.05); border-radius: 18px; padding: 18px; margin-top: 12px; }
.review-card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.info-block { background: var(--paper); border-radius: 12px; padding: 12px 14px; font-size: 14px; white-space: pre-wrap; word-break: break-word; margin-top: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin-top: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.btn-danger { background: var(--pass); color: white; }
.btn-success { background: var(--match); color: white; }
.btn-warn { background: var(--gold); color: white; }

.detail-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.2fr 1fr; } }

/* Deck fits a phone screen without scrolling; actions centred */
.deck-stack { height: clamp(340px, calc(100dvh - 350px), 520px); }
@media (min-width: 768px) { .deck-stack { height: clamp(380px, calc(100vh - 260px), 540px); } }
.deck-actions { justify-content: center; width: 100%; margin-top: 20px; }
.deck-action-btn.pass, .deck-action-btn.like { font-size: 30px; line-height: 1; }

/* ======================================================================
   Brief workflow — filters, detail sheets, applicants, job switcher
   ====================================================================== */
.filter-form { display: flex; flex-direction: column; }
.filter-label { font-size: 13px; font-weight: 700; color: var(--ink); margin: 16px 0 8px; display: block; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.filter-bar { display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 14px; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid rgba(14,16,35,0.12); background: white;
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: var(--font-sans); color: var(--ink);
}
.filter-btn:active { transform: scale(0.95); }
.filter-btn.on { border-color: var(--signal-blue); color: var(--signal-blue); background: var(--signal-blue-soft); }
.filter-count { background: var(--signal-blue); color: white; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.job-switch { flex: 1; min-width: 0; }
.job-switch select { width: 100%; font-weight: 700; }
.deck-head { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }

/* Cards: brief layout + photo */
.swipe-card-photo { height: 96px; width: 100%; border-radius: 16px; object-fit: cover; background: var(--paper-dim); }
.swipe-card-logo { height: 96px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--paper); }
.swipe-card-logo img { max-height: 72px; max-width: 70%; object-fit: contain; }
.card-facts { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.card-facts span::before { content: "•"; color: var(--muted); margin-right: 6px; }
.card-facts span:first-child::before { content: none; }
.card-info-btn {
  position: absolute; bottom: 20px; right: 20px; z-index: 3; width: 36px; height: 36px; border-radius: 999px; border: none;
  background: var(--paper-dim); color: var(--ink); font-weight: 800; cursor: pointer; font-size: 15px; font-family: var(--font-sans);
}
.card-info-btn:active { transform: scale(0.9); }
.tag-interested { background: #ffe8f0; color: #d6245b; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.tag-applied { background: var(--match-soft); color: #0e8a44; display: inline-flex; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; }

/* Detail sheet */
.detail-head { display: flex; gap: 14px; align-items: center; }
.detail-avatar { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; background: var(--paper-dim); }
.detail-avatar-fallback { display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 20px; background: linear-gradient(135deg, var(--signal-blue), var(--signal-violet)); }
.detail-sub { font-size: 13px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fact-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.fact { background: var(--paper); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; }
.detail-section { margin-top: 18px; }
.detail-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.detail-p { font-size: 14px; line-height: 1.55; margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.detail-links { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.detail-link { font-weight: 600; color: var(--signal-blue); font-size: 14px; word-break: break-all; }

/* Applicants + jobs list */
.applicant-row { display: flex; gap: 14px; align-items: flex-start; }
.applicant-photo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; }
.applicant-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn-like { background: var(--match); color: white; }
.btn-pass { background: white; border: 2px solid var(--pass); color: var(--pass); }
.pill-count { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; background: var(--signal-blue-soft); color: var(--signal-blue); }
.pill-count.hot { background: var(--gold-soft); color: #b36b00; }
.job-row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }

/* Upload fields */
.upload-field { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.upload-preview { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: var(--paper-dim); flex: none; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 22px; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form-section-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 8px 0 16px; padding-top: 16px; border-top: 1px solid rgba(14,16,35,0.06); }
.step-indicator { font-size: 12px; font-weight: 700; color: var(--signal-blue); text-transform: uppercase; letter-spacing: 0.06em; }

/* Admin extra */
.metric-list { list-style: none; padding: 0; margin: 0; }
.metric-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(14,16,35,0.06); font-size: 14px; }
.metric-list li:first-child { border-top: none; }
.funnel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 768px) { .funnel { grid-template-columns: repeat(4, 1fr); } }
.bar { height: 6px; border-radius: 999px; background: var(--paper-dim); margin-top: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--signal-blue); border-radius: 999px; }
.panel-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
@media (min-width: 900px) { .panel-grid { grid-template-columns: 1fr 1fr 1fr; } }
/* Deck height accounts for the filter/job-switch row */
.deck-stack { height: clamp(320px, calc(100dvh - 420px), 520px); }
@media (min-width: 768px) { .deck-stack { height: clamp(380px, calc(100vh - 300px), 540px); } }
.deck-page { padding-top: 12px; }
.deck-actions { margin-top: 16px; }

/* Swipe Credits */
.package-card.selected-pkg { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.package-card:disabled { opacity: 0.45; cursor: not-allowed; }
.package-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .package-grid { grid-template-columns: repeat(3, 1fr); } }
.chip-option:disabled { cursor: not-allowed; }
.free-counter {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700;
  background: var(--match-soft); color: #0e8a44; white-space: nowrap;
}
.free-counter.empty { background: var(--gold-soft); color: #b36b00; }
.job-meta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 13px; color: var(--ink-soft); align-items: center; }
.job-meta-row strong { font-weight: 700; }
.expiring { color: #b36b00; font-weight: 700; }
.settings-group { background: white; border: 1px solid rgba(14,16,35,0.05); border-radius: 18px; padding: 18px; margin-top: 14px; }
.settings-group h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.settings-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
@media (min-width: 700px) { .settings-grid { grid-template-columns: 1fr 1fr; } }
.settings-grid label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
.settings-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.mini-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--muted); padding: 6px 4px; }
.mini-table td { padding: 4px; }
.mini-table input { width: 100%; }
.save-bar { position: sticky; bottom: calc(var(--safe-bottom) + 76px); display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
@media (min-width: 768px) { .save-bar { bottom: 16px; } }
.save-bar { background: rgba(245,246,251,0.92); backdrop-filter: blur(12px); padding: 12px; border-radius: 16px; border: 1px solid rgba(14,16,35,0.06); }


/* ======================================================================
   Brand refresh (new logo) + parallax landing
   ====================================================================== */
.wallet-card { background: linear-gradient(120deg, #0b4fe8, #0a8cf0 60%, #12b8ff); }
.celebration-card { background: linear-gradient(135deg, #0b4fe8, #0a8cf0 55%, #12d0ff); }
.swipe-card-avatar.talent, .hero-card-avatar, .match-avatar, .detail-avatar-fallback { background: linear-gradient(135deg, #0b4fe8, #12b8ff); }
.swipe-card-avatar.job { background: linear-gradient(135deg, var(--brand-navy), #0b6dff); }
.sidebar-logo img.wordmark, .mobile-topbar-brand img.wordmark { width: auto; height: 20px; }
.sidebar-logo img.wordmark { height: 22px; }

.lp { position: relative; overflow-x: clip; background: var(--paper); }
.lp-container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.lp-ambient { position: absolute; inset: 0 0 auto 0; height: 160vh; pointer-events: none; z-index: 0; overflow: hidden; }
.lp-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; will-change: transform; }
.lp-blob-1 { width: 520px; height: 520px; background: #12d0ff; top: -120px; right: -120px; opacity: 0.35; }
.lp-blob-2 { width: 460px; height: 460px; background: #0b5cff; top: 260px; left: -180px; opacity: 0.22; }
.lp-blob-3 { width: 300px; height: 300px; background: #7c3aed; top: 560px; right: 18%; opacity: 0.12; }

.lp-nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-top) + 14px) 24px 14px; max-width: 1200px; margin: 0 auto; transition: background .2s ease, box-shadow .2s ease;
}
.lp-nav.scrolled { background: rgba(245,246,251,0.82); backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(14,16,35,0.06); max-width: none; }
.lp-brand { display: flex; align-items: center; gap: 10px; }
.lp-brand img:first-child { width: 36px; height: 36px; }
.lp-wordmark { height: 24px; width: auto; }
.lp-nav-links { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.lp-nav-links a:not(.btn) { color: var(--ink-soft); }
.lp-nav-links a:not(.btn):hover { color: var(--signal-blue); }
@media (max-width: 640px) { .lp-nav-links a[href^="#"] { display: none; } .lp-wordmark { height: 20px; } }

.lp-hero {
  position: relative; z-index: 1; max-width: 1152px; margin: 0 auto; padding: 40px 24px 96px; min-height: calc(100vh - 70px);
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 900px) { .lp-hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 24px; } }
.lp-ghost-s { position: absolute; width: min(70vw, 620px); right: -8%; top: 4%; opacity: 0.07; z-index: -1; pointer-events: none; will-change: transform; filter: saturate(1.2); }
.lp-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-blue); }
.lp-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 8.5vw, 88px); line-height: 0.98; letter-spacing: -0.03em; margin-top: 14px; }
.lp-word { display: block; }
.lp-grad { background: linear-gradient(100deg, #0b5cff 10%, #12d0ff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-grad-bg { background: linear-gradient(135deg, #0b4fe8, #12b8ff); color: white; }
.lp-sub { margin-top: 22px; max-width: 480px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.lp-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.lp-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.lp-stage { position: relative; height: 460px; max-width: 420px; width: 100%; margin: 0 auto; perspective: 1000px; transform-style: preserve-3d; will-change: transform; }
.lp-card {
  position: absolute; width: 280px; border-radius: 28px; background: white; padding: 20px; will-change: transform;
  border: 1px solid rgba(14,16,35,0.05); box-shadow: 0 30px 60px rgba(11, 42, 120, 0.16);
}
.lp-card-back { top: 10px; left: 0; transform: rotate(-6deg); opacity: 0.95; }
.lp-card-front { top: 70px; right: 0; }
.lp-card-logo { height: 70px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; }
.lp-card-photo { height: 120px; border-radius: 18px; background: linear-gradient(135deg, #0b4fe8, #12d0ff); display: flex; align-items: center; justify-content: center; color: white; font-size: 34px; font-weight: 800; }
.lp-card-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; margin-top: 14px; }
.lp-card-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.lp-card-facts { font-size: 13px; font-weight: 700; margin-top: 8px; color: var(--ink-soft); }
.lp-verified { color: var(--signal-blue); font-weight: 700; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lp-chips span { background: var(--paper-dim); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.lp-card-actions { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.lp-act { width: 46px; height: 46px; border-radius: 999px; border: 2px solid; display: flex; align-items: center; justify-content: center; font-size: 18px; background: white; }
.lp-act.pass { border-color: var(--pass); color: var(--pass); }
.lp-act.star { border-color: var(--gold); color: var(--gold); width: 40px; height: 40px; align-self: center; }
.lp-act.like { border-color: var(--match); color: var(--match); }
.lp-match-tag { position: absolute; top: 40px; right: -10px; background: var(--match); color: white; border-radius: 16px; padding: 10px 16px; font-weight: 800; font-size: 14px; transform: rotate(6deg); box-shadow: 0 14px 30px rgba(23,201,100,0.35); will-change: transform; }
.lp-float { position: absolute; border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 800; box-shadow: 0 10px 24px rgba(14,16,35,0.12); will-change: transform; }
.lp-float-1 { bottom: 40px; left: -8px; background: var(--gold-soft); color: #b36b00; }
.lp-float-2 { bottom: 110px; right: -16px; background: var(--ink); color: white; }
@media (max-width: 480px) { .lp-stage { height: 430px; } .lp-card { width: 240px; } .lp-match-tag { right: 0; } .lp-float-2 { right: 0; } .lp-float-1 { left: 0; } }
.lp-scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; border: 2px solid rgba(14,16,35,0.25); border-radius: 999px; transform: translateX(-50%); }
.lp-scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--signal-blue); animation: lp-cue 1.6s ease-in-out infinite; }
@keyframes lp-cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,1,.36,1) var(--d, 0s), transform .7s cubic-bezier(.22,1,.36,1) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.lp-section { position: relative; z-index: 1; padding: 96px 0; }
.lp-h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin-top: 10px; }
.lp-lead { margin-top: 14px; max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.lp-steps { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
@media (min-width: 800px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }
.lp-step { background: white; border-radius: 24px; padding: 28px; border: 1px solid rgba(14,16,35,0.05); box-shadow: 0 10px 30px rgba(11,42,120,0.05); }
.lp-step h3 { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-top: 16px; }
.lp-step p { color: var(--muted); margin-top: 8px; line-height: 1.6; }
.lp-step-num { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-gradient); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }

.lp-demo { position: relative; z-index: 1; height: 260vh; background: var(--ink); color: white; }
.lp-demo-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.lp-demo-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; width: 100%; }
@media (min-width: 900px) { .lp-demo-grid { grid-template-columns: 1fr 1fr; } }
.lp-demo .lp-eyebrow { color: #12d0ff; }
.lp-demo-copy { margin-top: 16px; color: rgba(255,255,255,0.7); font-size: 17px; line-height: 1.6; min-height: 3.2em; }
.lp-demo-deck { position: relative; height: 380px; max-width: 320px; width: 100%; margin: 0 auto; }
.lp-demo-card { position: absolute; inset: 0; border-radius: 28px; background: white; color: var(--ink); padding: 22px; overflow: hidden; will-change: transform, opacity; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.lp-demo-under { transform: scale(0.94) translateY(16px); opacity: 0.8; }
.lp-demo-wash { position: absolute; inset: 0; border-radius: 28px; pointer-events: none; z-index: 2; }
.lp-demo-stamp { position: absolute; top: 22px; right: 22px; z-index: 3; border: 4px solid var(--match); color: var(--match); border-radius: 12px; padding: 4px 14px; font-weight: 900; font-size: 22px; transform: rotate(12deg); opacity: 0; }
.lp-demo-match { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; font-size: 34px;
  background: linear-gradient(135deg, #0b4fe8, #12b8ff); border-radius: 28px; color: white; opacity: 0; transform: scale(0.7) rotate(-6deg); transition: all .45s cubic-bezier(.22,1,.36,1); box-shadow: 0 30px 60px rgba(11,92,255,0.45); }
.lp-demo-match.show { opacity: 1; transform: scale(1) rotate(0); }
.lp-demo-static { height: auto; }
.lp-demo-static .lp-demo-sticky { position: relative; height: auto; padding: 96px 0; }

.lp-split { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 800px) { .lp-split { grid-template-columns: 1fr 1fr; } }
.lp-panel { border-radius: 32px; padding: 40px 32px; overflow: hidden; }
.lp-panel h3 { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-top: 22px; line-height: 1.15; }
.lp-panel p { margin-top: 12px; line-height: 1.6; max-width: 400px; }
.lp-panel-dark { background: var(--ink); color: white; }
.lp-panel-dark p, .lp-panel-dark .lp-list { color: rgba(255,255,255,0.72); }
.lp-panel-light { background: linear-gradient(160deg, #e8f0ff, #dff7ff); }
.lp-panel-light p, .lp-panel-light .lp-list { color: rgba(14,16,35,0.72); }
.lp-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.lp-list li::before { content: "✓"; color: var(--match); font-weight: 900; margin-right: 8px; }
.lp-avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; }

.lp-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
@media (min-width: 900px) { .lp-price-grid { grid-template-columns: repeat(4, 1fr); } }
.lp-price { background: white; border-radius: 22px; padding: 22px; border: 1px solid rgba(14,16,35,0.05); }
.lp-price-k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.lp-price-v { font-family: var(--font-display); font-weight: 800; font-size: 30px; margin-top: 8px; }
.lp-price-s { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

.lp-final { position: relative; z-index: 1; padding: 110px 0; background: radial-gradient(1200px 400px at 50% 0%, #0b5cff 0%, #0a2a78 45%, var(--ink) 100%); color: white; text-align: center; }
.lp-final-inner img { margin: 0 auto 18px; }
.lp-on-dark { color: white; }
.lp-on-dark:hover { background: rgba(255,255,255,0.1); }
.lp-footer { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px 56px; }
.lp-footer-logo { width: 180px; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .lp-scroll-cue span { animation: none; }
}

/* ---- honeypot + auth/legal pages ------------------------------------ */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.link-inline { color: var(--signal-blue); font-weight: 600; }
.lp-footer-links { display: flex; gap: 20px; font-size: 14px; }
.lp-footer-links a { color: var(--ink-muted, #5b6478); }
.lp-footer-links a:hover { color: var(--signal-blue); }
.legal-page { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; line-height: 1.65; }
.legal-page h1 { font-size: 34px; font-weight: 700; margin-bottom: 6px; }
.legal-page h2 { font-size: 20px; font-weight: 700; margin: 32px 0 8px; }
.legal-page p, .legal-page li { color: #3b4356; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page li { margin: 4px 0; }
.legal-head { display: flex; align-items: center; justify-content: space-between; max-width: 760px; margin: 0 auto; padding: 20px; }
.legal-note { background: #fff7e6; border: 1px solid #ffd58a; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-top: 16px; }
.danger-zone { border: 1px solid #ffc9c9; border-radius: 16px; padding: 20px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.img-missing { background: linear-gradient(135deg, #e8eefc, #d7f5ff); }

/* admin settings: keep fields inside the card and let wide tables scroll on phones */
.settings-grid > * { min-width: 0; }
.settings-group input, .settings-group select, .settings-group textarea { box-sizing: border-box; max-width: 100%; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
@media (max-width: 699px) { #pkg-table { min-width: 560px; } #pkg-table input[data-f="credits"], #pkg-table input[data-f="price_php"] { min-width: 76px; } }

/* promo code box */
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.04em; }

/* admin growth dashboard */
.funnel-row { display: grid; grid-template-columns: 1fr auto 52px; gap: 8px; align-items: baseline; font-size: 14px; margin-top: 10px; }
.funnel-row .cell-sub { text-align: right; }
.spark-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .spark-grid { grid-template-columns: 1fr 1fr; } }
.spark { background: white; border: 1px solid rgba(14,16,35,0.05); border-radius: 18px; padding: 16px 18px; }
.spark-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); }
.spark-head strong { color: var(--ink); font-size: 16px; }
.spark-bars { display: flex; align-items: flex-end; gap: 2px; height: 56px; margin-top: 10px; }
.spark-bars span { flex: 1; min-width: 2px; background: var(--signal-blue); border-radius: 3px 3px 0 0; opacity: 0.85; }
.spark-bars span.zero { background: var(--paper-dim); opacity: 1; }
.status-paused, .status-expired, .status-used_up { background: var(--paper-dim); color: var(--muted); }

.promo-chip { display: inline-block; background: var(--match-soft); color: #0e8a44; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 14px; }

@media (min-width: 900px) { .panel-grid.two-col { grid-template-columns: 1fr 1fr; } }

/* confirm-email bar, validation checklist, promo field */
.verify-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff7e6; border-bottom: 1px solid #ffd58a; padding: 10px 20px; font-size: 14px; }
.verify-actions { display: flex; gap: 12px; }
.verify-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.verify-code .input-boxed { width: 120px; padding: 8px 12px; font-size: 16px; letter-spacing: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; text-align: center; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(14,16,35,0.06); font-size: 14px; }
.check-row:first-child { border-top: none; }
.check-row > span:nth-child(2) { flex: 1; }
.check-row.done { color: #0e8a44; }
.code-details { margin-top: 12px; font-size: 14px; }
.code-details summary { cursor: pointer; color: var(--signal-blue); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Paid placement: Normal → Boosted → Featured ------------------------ */
.tag-featured { background: linear-gradient(120deg, #1a1d38, #0e1023); color: #ffd27a; box-shadow: 0 0 0 1px rgba(245,165,36,0.55); }
.swipe-card.is-featured .swipe-card-inner { box-shadow: 0 0 0 3px var(--gold), 0 18px 40px rgba(245,165,36,0.28); }

.featured-wrap { width: 100%; margin: 4px 0 14px; }
.featured-heading { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #b36b00; margin-bottom: 8px; }
.featured-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.featured-tile {
  flex: 0 0 210px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--gold); background: linear-gradient(160deg, #fffaf0, #fff);
  cursor: pointer; font-family: var(--font-sans); color: var(--ink); min-width: 0;
}
.featured-tile:hover { box-shadow: 0 6px 18px rgba(245,165,36,0.25); }
.featured-tile-title { font-weight: 700; font-size: 15px; line-height: 1.25; margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-tile-company { font-size: 13px; font-weight: 600; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.featured-tile-meta { font-size: 12px; color: var(--muted); }

.placement-ladder { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--muted); }
.placement-ladder .arrow { color: var(--muted); }
.paid-option { border: 1px solid rgba(14,16,35,0.1); border-radius: 14px; padding: 12px 14px; margin-top: 6px; }
.paid-option.featured { border-color: var(--gold); background: #fffaf0; }
.paid-option-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.action-list .paid-option .btn { text-align: center; padding: 8px 14px; font-size: 14px; }
.action-list .paid-option .btn-outline { background: white; border: 2px solid var(--ink); }
.action-list .paid-option .btn-outline:hover { background: var(--ink); color: var(--paper); }
.action-list .paid-option .btn-gradient { background: var(--brand-gradient); color: white; }

/* Job closing reason */
.close-reasons { display: flex; flex-direction: column; gap: 6px; }
.close-reason { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(14,16,35,0.1); border-radius: 12px; cursor: pointer; font-size: 15px; }
.close-reason:has(input:checked) { border-color: var(--signal-blue, #0b6dff); background: #f2f7ff; }
.status-refunded, .status-chargeback { background: var(--pass-soft); color: var(--pass); }
.status-disputed, .status-amount_mismatch { background: var(--gold-soft); color: #b36b00; }

/* Admin 2-step login */
.tf-qr svg { width: 200px; height: 200px; background: white; padding: 8px; border-radius: 12px; border: 1px solid rgba(14,16,35,0.1); }
.backup-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 360px; }
.backup-codes span { padding: 8px 10px; border-radius: 10px; background: var(--paper-dim, #f4f5f8); text-align: center; font-size: 15px; letter-spacing: 1px; }

/* Profile picture control on the Profile page */
.photo-control { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.photo-control .upload-btn { position: relative; overflow: hidden; cursor: pointer; }
.photo-control .upload-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-control .link-action { margin-left: 8px; }

/* admin broadcast preview */
.bc-preview { border: 1px solid rgba(14,16,35,0.08); border-radius: 14px; overflow: hidden; background: #f4f4f7; max-height: 60vh; overflow-y: auto; }
.bc-preview-head { background: #ff4d6d; color: #fff; font-weight: 800; padding: 12px 18px; }
.bc-preview-body { background: #fff; padding: 18px; font-size: 14px; line-height: 1.6; }
.bc-preview-body h4 { font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.bc-preview-btn { display: inline-block; background: #ff4d6d; color: #fff; font-weight: 700; border-radius: 999px; padding: 10px 20px; margin-top: 4px; }
.bc-preview-foot { font-size: 11px; color: #9ca3af; padding: 10px 18px; background: #fff; border-top: 1px solid #f0f0f3; }
.status-sending { background: #e8f0ff; color: #1d4ed8; }
.status-cancelled { background: #f3f4f6; color: #6b7280; }
.notif-detail { display: block; font-weight: 400; color: var(--muted, #6b7280); margin-top: 2px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* admin automatic emails */
.auto-group { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b7280); margin: 18px 0 4px; }
.auto-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(14,16,35,0.06); }
.auto-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.auto-count { font-weight: 700; font-size: 14px; white-space: nowrap; text-align: right; }
@media (max-width: 640px) {
  .auto-row { grid-template-columns: auto 1fr; }
  .auto-count { grid-column: 2; text-align: left; }
  .auto-row .btn { grid-column: 2; justify-self: start; }
}

/* help page */
.faq details { border-bottom: 1px solid rgba(14,16,35,0.08); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink, #0e1023); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: #8a90a6; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 8px; }
.help-page .card .field { margin-bottom: 14px; }
.help-page .card .field input, .help-page .card .field select, .help-page .card .field textarea { width: 100%; }
.code-input { letter-spacing: 6px; font-size: 20px; font-family: ui-monospace, Menlo, Consolas, monospace; text-align: center; }
.support-msg { white-space: pre-line; max-width: 420px; max-height: 140px; overflow: auto; font-size: 14px; }
