/* ── VideoZ Front Office — CSS ────────────────────────────────────────────────
   Aesthetic: Precision Dark / Cinematic SaaS
   Fonts: Syne (display) · Outfit (body) · JetBrains Mono (code/urls)
   Palette: deep void + electric cyan + coral heat
   ─────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Outfit:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --bg:          #07070e;
  --bg-2:        #0d0d1c;
  --bg-3:        #141428;
  --surface:     rgba(255,255,255,0.035);
  --surface-h:   rgba(255,255,255,0.06);
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(255,255,255,0.14);

  --cyan:        #3df0ff;
  --cyan-dim:    rgba(61,240,255,0.15);
  --cyan-glow:   rgba(61,240,255,0.25);
  --coral:       #ff4d6d;
  --coral-dim:   rgba(255,77,109,0.15);
  --amber:       #ffb347;

  --text-1:      #eeeef8;
  --text-2:      #9090b0;
  --text-3:      #505070;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --transition:  0.2s ease;
  --shadow-lg:   0 24px 80px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(61,240,255,0.12);
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.75; }
img, svg { display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Noise overlay ──────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Grid background ────────────────────────────────────────────────────────── */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(61,240,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,240,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide { max-width: 1280px; }
.container--narrow { max-width: 680px; }

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7,7,14,0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 62px;
  gap: 32px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-1);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .logo-z {
  display: inline-block;
  color: var(--cyan);
  text-shadow: 0 0 16px var(--cyan-glow);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--text-1);
  background: var(--surface);
  opacity: 1;
}
.nav-links a.active {
  color: var(--cyan);
}
.nav-sep { width: 1px; height: 20px; background: var(--border); margin: 0 6px; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1) !important;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}
.nav-btn:hover {
  background: var(--surface-h);
  border-color: var(--border-h);
  opacity: 1 !important;
}
.nav-btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #07070e !important;
  font-weight: 600;
}
.nav-btn--primary:hover {
  background: #72f6ff;
  border-color: #72f6ff;
  box-shadow: 0 0 24px var(--cyan-glow);
}
.lang-switch {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3) !important;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.lang-switch:hover {
  color: var(--cyan) !important;
  border-color: var(--cyan);
  opacity: 1 !important;
}

/* Mobile nav toggle */
.nav-hamburger { display: none; }

/* ── Hero Section ───────────────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(61,240,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(61,240,255,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 40px var(--cyan-glow);
}
.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 48px;
  font-weight: 300;
  line-height: 1.7;
}
.platforms-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.platforms-hint span {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  padding: 3px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* ── Resolver Box ───────────────────────────────────────────────────────────── */
.resolver-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: border-color var(--transition);
}
.resolver-box:focus-within {
  border-color: rgba(61,240,255,0.25);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(61,240,255,0.15);
}

.url-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.url-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-1);
  transition: all var(--transition);
  outline: none;
}
.url-input::placeholder { color: var(--text-3); }
.url-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
.btn-analyze {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--cyan);
  color: #07070e;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-analyze:hover {
  background: #72f6ff;
  box-shadow: 0 0 28px var(--cyan-glow);
  transform: translateY(-1px);
}
.btn-analyze:active { transform: translateY(0); }
.btn-analyze svg { width: 16px; height: 16px; }

/* Status bar */
.status-bar {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.status-bar.visible { display: flex; }
.status-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status-text {
  font-size: 13px;
  color: var(--text-2);
  font-family: var(--font-mono);
}
.progress-track {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #72f6ff);
  border-radius: 100px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px var(--cyan);
  width: 0;
}

/* Error alert */
.alert {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
}
.alert.visible { display: flex; }
.alert--error {
  background: rgba(255,77,109,0.1);
  border: 1px solid rgba(255,77,109,0.25);
  color: #ff8fa3;
}
.alert--success {
  background: rgba(61,240,255,0.08);
  border: 1px solid rgba(61,240,255,0.2);
  color: var(--cyan);
}
.alert--warn {
  background: rgba(255,179,71,0.08);
  border: 1px solid rgba(255,179,71,0.2);
  color: var(--amber);
}

/* ── Format Picker ──────────────────────────────────────────────────────────── */
.format-section {
  display: none;
  margin-top: 24px;
  animation: fadeUp 0.3s ease;
}
.format-section.visible { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Format tabs */
.format-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.fmt-tab {
  padding: 7px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.fmt-tab:hover { border-color: var(--border-h); color: var(--text-1); }
.fmt-tab.active { background: var(--cyan-dim); border-color: var(--cyan); color: var(--cyan); }

.format-section h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.video-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.video-thumb {
  width: 64px; height: 36px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-2);
  flex-shrink: 0;
}
.video-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-meta {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.format-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.format-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.format-card:hover {
  border-color: var(--border-h);
  background: var(--bg-2);
}
.format-card.selected {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}
.format-card input[type="radio"] { display: none; }
.format-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  min-width: 52px;
  text-align: center;
}
.format-card.selected .format-badge {
  background: var(--cyan);
  color: #07070e;
  border-color: var(--cyan);
}
.format-label { flex: 1; }
.format-res {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.format-detail {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.format-size {
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--font-mono);
  text-align: right;
}
.format-lock {
  color: var(--text-3);
  font-size: 14px;
}
.format-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.btn-download {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--cyan);
  color: #07070e;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-download:hover {
  background: #72f6ff;
  box-shadow: 0 0 28px var(--cyan-glow);
}
.btn-download:disabled {
  background: var(--surface);
  color: var(--text-3);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-ghost {
  padding: 13px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost:hover {
  border-color: var(--border-h);
  color: var(--text-1);
}

/* Audio-only toggle */
.audio-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.toggle-switch {
  position: relative;
  width: 36px; height: 20px;
  background: var(--border);
  border-radius: 100px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  background: var(--text-3);
  border-radius: 50%;
  transition: all var(--transition);
}
input[type="checkbox"]:checked + label .toggle-switch {
  background: var(--cyan);
}
input[type="checkbox"]:checked + label .toggle-switch::after {
  left: 19px;
  background: #07070e;
}
input[type="checkbox"] { display: none; }

/* Guest CTA */
.guest-cta {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-2);
}
.guest-cta a { font-weight: 600; }

/* ── Feature strip ──────────────────────────────────────────────────────────── */
.features-strip {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.feature-item {
  padding: 32px 28px;
  background: var(--surface);
  transition: background var(--transition);
}
.feature-item:hover { background: var(--surface-h); }
.feature-item:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.feature-item:last-child  { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.feature-icon {
  width: 40px; height: 40px;
  background: var(--cyan-dim);
  border: 1px solid rgba(61,240,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--cyan);
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-item h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-item p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Forms (Login / Register) ───────────────────────────────────────────────── */
.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.auth-subtitle {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 32px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 15px;
  font-size: 14px;
  color: var(--text-1);
  transition: all var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
.form-input.error { border-color: var(--coral); }
.form-input::placeholder { color: var(--text-3); }
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  display: inline;
  accent-color: var(--cyan);
  width: 14px; height: 14px;
  cursor: pointer;
}
.form-link {
  font-size: 13px;
  color: var(--text-2);
}
.form-link a { color: var(--cyan); }
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--cyan);
  color: #07070e;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 20px;
}
.btn-submit:hover {
  background: #72f6ff;
  box-shadow: 0 0 28px var(--cyan-glow);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
}
.auth-terms {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 16px;
}
.auth-terms a { color: var(--text-2); }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-3);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Pricing ────────────────────────────────────────────────────────────────── */
.pricing-page { flex: 1; padding: 80px 0 100px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-header p { font-size: 16px; color: var(--text-2); max-width: 500px; margin: 0 auto; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.plan-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}
.plan-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.plan-card--featured {
  border-color: var(--cyan);
  background: linear-gradient(160deg, rgba(61,240,255,0.06) 0%, var(--bg-2) 60%);
  box-shadow: 0 0 40px rgba(61,240,255,0.1);
}
.plan-card--featured:hover {
  box-shadow: 0 0 60px rgba(61,240,255,0.18);
}
.plan-featured-badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: #07070e;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 100px;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-1);
}
.plan-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-1);
  margin: 12px 0 4px;
  letter-spacing: -0.5px;
}
.plan-price--free { color: var(--cyan); }
.plan-period {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-bottom: 20px;
}
.plan-features {
  flex: 1;
  margin-bottom: 20px;
}
.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 12.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.plan-feature:last-child { border-bottom: none; }
.plan-feature .check { color: var(--cyan); flex-shrink: 0; margin-top: 1px; }
.plan-feature .cross { color: var(--text-3); flex-shrink: 0; margin-top: 1px; }
.plan-feature.disabled { opacity: 0.45; }
.btn-plan {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  display: block;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-1);
}
.btn-plan:hover {
  border-color: var(--border-h);
  background: var(--surface-h);
  opacity: 1;
}
.btn-plan--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #07070e;
}
.btn-plan--primary:hover {
  background: #72f6ff;
  box-shadow: 0 0 20px var(--cyan-glow);
}
.btn-plan--current {
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
  cursor: default;
}

/* ── Profile page ───────────────────────────────────────────────────────────── */
.profile-page { flex: 1; padding: 60px 0 100px; }
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  background: var(--cyan-dim);
  border: 1px solid rgba(61,240,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--cyan);
  flex-shrink: 0;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-email {
  font-size: 13px;
  color: var(--text-2);
  font-family: var(--font-mono);
}
.profile-plan-badge {
  margin-top: 8px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--cyan-dim);
  border: 1px solid rgba(61,240,255,0.2);
  color: var(--cyan);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.stat-card {
  padding: 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--cyan);
}
.stat-label {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.section-block { margin-bottom: 36px; }
.section-block h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.api-key-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.api-key-value {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  word-break: break-all;
}
.btn-xs {
  padding: 5px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-xs:hover { border-color: var(--border-h); color: var(--text-1); }
.btn-xs--danger:hover { border-color: var(--coral); color: var(--coral); }

/* Jobs table */
.jobs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.jobs-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border);
}
.jobs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}
.jobs-table tr:last-child td { border-bottom: none; }
.jobs-table .url-cell {
  font-family: var(--font-mono);
  font-size: 11.5px;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.status-pill--done    { background: rgba(61,240,255,0.1);  color: var(--cyan);  }
.status-pill--pending { background: rgba(255,179,71,0.1);  color: var(--amber); }
.status-pill--error   { background: rgba(255,77,109,0.1);  color: var(--coral); }

/* ── Legal page ─────────────────────────────────────────────────────────────── */
.legal-page { flex: 1; padding: 60px 0 100px; }
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.legal-date { font-size: 13px; color: var(--text-3); font-family: var(--font-mono); margin-bottom: 48px; }
.legal-toc {
  padding: 20px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
}
.legal-toc h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}
.legal-toc a {
  display: block;
  font-size: 13.5px;
  color: var(--text-2);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.legal-toc a:last-child { border-bottom: none; }
.legal-toc a:hover { color: var(--cyan); opacity: 1; }
.legal-section { margin-bottom: 48px; }
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--cyan);
}
.legal-section p, .legal-section li {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-section ul { list-style: disc; padding-left: 24px; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-2);
}
.footer-logo span { color: var(--cyan); }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-3);
}
.footer-links a:hover { color: var(--text-2); opacity: 1; }
.footer-copy { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }

/* ── Flash messages ─────────────────────────────────────────────────────────── */
.flash {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash--success { background: rgba(61,240,255,0.08); border: 1px solid rgba(61,240,255,0.2); color: var(--cyan); }
.flash--error   { background: rgba(255,77,109,0.08); border: 1px solid rgba(255,77,109,0.2); color: #ff8fa3; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .feature-item:last-child  { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 60px 0 50px; }
  .resolver-box { padding: 20px; border-radius: var(--radius-lg); }
  .url-row { flex-direction: column; }
  .btn-analyze { justify-content: center; }
  .plans-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .auth-card { padding: 28px 20px; }
  .profile-header { flex-direction: column; }
}

/* ── Utilities ──────────────────────────────────────────────────────────────── */
.text-cyan  { color: var(--cyan); }
.text-coral { color: var(--coral); }
.text-muted { color: var(--text-2); }
.text-mono  { font-family: var(--font-mono); }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.hidden { display: none; }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.font-display { font-family: var(--font-display); }

/* ── Page transitions ───────────────────────────────────────────────────────── */
.page-enter {
  animation: pageEnter 0.3s ease;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
