/* ── helvetiqai - Main Stylesheet ── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #a672fb;
  --primary-h:  #b98dff;
  --primary-s:  #8a5dee;
  --primary-bg: rgba(166,114,251,0.12);
  --primary-bd: rgba(166,114,251,0.32);
  --accent:     #d6c2ff;

  --bg:       #0a0a0b;
  --bg-2:     #0e0e10;
  --s1:       #151518;
  --s2:       #1d1d22;
  --s3:       #27272d;
  --b1:       rgba(255,255,255,0.08);
  --b2:       rgba(255,255,255,0.14);
  --b3:       rgba(255,255,255,0.24);
  --line:     rgba(255,255,255,0.22);

  --text:     #f4f4f6;
  --text-2:   #c7c7cf;
  --muted:    #8a8a94;
  --muted2:   #5b5b65;

  --success:  #4fd6a8;
  --danger:   #e0575a;
  --warning:  #dcb15f;
  --info:     #5b8def;

  --sidebar-w: 248px;
  --topbar-h:  60px;
  --font:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display:   'Manrope', 'Inter', system-ui, sans-serif;
  --serif:     var(--display);
  --gutter:    clamp(24px, 6vw, 110px);
  --r:         6px;
  --rl:        10px;
  --rx:        12px;
  --ease:      cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(166,114,251,0.35); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--s3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--b3); }

/* ── Type ── */
.display, .landing-hero h1, .landing-section-title, .landing-cta h2, .hero-banner h1, .page-header h1,
.doc-section h2, .legal-wrap h1, .legal-header h1, .faq-hero h1, .auth-brand h2, .upload-zone h3,
.output-placeholder h3, .custom-box h3, .lp-slider-box h3, .how-it-works h3, .kyc-card h2,
.contact-info-card h2, .empty-state h3, .settings-title h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
}
.eyebrow, .landing-section-badge, .doc-section-badge, .legal-badge, .faq-hero-badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px; background: none; border: none; padding: 0;
}
.i { width: 1em; height: 1em; flex-shrink: 0; }
.ic { width: 42px; height: 42px; border-radius: 8px; background: rgba(255,255,255,0.07); display: inline-flex; align-items: center; justify-content: center; color: var(--text); flex-shrink: 0; }
.ic svg { width: 18px; height: 18px; }
.ic.sm { width: 34px; height: 34px; } .ic.sm svg { width: 15px; height: 15px; }
.ic.lg { width: 60px; height: 60px; } .ic.lg svg { width: 24px; height: 24px; }
.whitetitle { color: #fff !important; }
.freestart { text-align: left; }

/* ── Clerk overrides ── */
.cl-alternativeMethods .cl-alternativeMethodsBlockButton { background-color: var(--s2); }
.cl-alternativeMethods .cl-alternativeMethodsBlockButton:hover { background-color: var(--s3); }
.cl-alternativeMethods .cl-alternativeMethodsBlockButtonText { color: #fff; }
.cl-socialButtonsRoot, .cl-dividerRow { display: none; }

/* ── App layout ── */
.app-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w); background: var(--bg-2);
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200; transition: transform 0.3s var(--ease);
}
.sb-logo { padding: 24px 22px 18px; }
.sb-logo-text img { display: block; width: 150px; }
.sb-user { margin: 0 12px; padding: 12px; border: 1px solid transparent; border-radius: var(--rl); background: var(--s1); display: flex; align-items: center; gap: 11px; }
.sb-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #6a3fd6); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; flex-shrink: 0; }
.sb-uname { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-ucredits { font-size: 11.5px; color: var(--muted); }
.sb-ucredits span { color: var(--text); font-weight: 600; }
.sb-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r);
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: background 0.15s, color 0.15s; margin-bottom: 2px; border: none; background: transparent;
  width: 100%; cursor: pointer; font-family: var(--font); text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-item.active { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item.logout { justify-content: center; }
.nav-item.logout:hover { color: var(--danger); background: rgba(224,87,90,0.08); }
.sb-bottom { padding: 12px; }
.btn-topup {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  background: #f4f4f6; color: #0a0a0b; font-size: 13px; font-weight: 600; padding: 10px 0;
  border-radius: var(--r); text-decoration: none; transition: background 0.2s; margin-bottom: 6px;
  font-family: var(--font); border: none; cursor: pointer;
}
.btn-topup:hover { background: #fff; color: #000; }

/* ── Main ── */
.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; min-width: 0; background: radial-gradient(70vw 36vw at 75% -8%, rgba(166,114,251,0.09), transparent 60%); }

/* ── Topbar ── */
.topbar {
  height: var(--topbar-h); background: rgba(10,10,11,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; padding: 0 28px; gap: 12px;
  position: sticky; top: 0; z-index: 100;
}
.topbar-nav { display: flex; align-items: center; gap: 2px; }
.topbar-nav-btn { background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 7px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.topbar-nav-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.topbar-nav-btn svg { width: 16px; height: 16px; display: block; }
.topbar-title { font-size: 14px; font-weight: 500; color: var(--text); }
.topbar-spacer { flex: 1; }
.mobile-toggle { display: none; background: transparent; border: none; color: var(--text); cursor: pointer; padding: 6px; }

/* Language selector */
.lang-selector { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.08); border: 1px solid transparent;
  border-radius: 6px; color: var(--text); font-size: 13px; font-weight: 500; padding: 7px 13px;
  cursor: pointer; font-family: var(--font); transition: background 0.15s, border-color 0.15s;
}
.lang-btn:hover { background: rgba(255,255,255,0.12); }
.lang-current-flag, .lang-flag { font-size: 14px; }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; background: var(--s1); border: 1px solid transparent;
  border-radius: var(--rl); padding: 6px; min-width: 170px; z-index: 500; display: none; flex-direction: column; gap: 2px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.lang-dropdown.open { display: flex; }
.lang-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r); background: transparent; border: none;
  color: var(--muted); font-size: 13px; cursor: pointer; font-family: var(--font); text-align: left; width: 100%; transition: background 0.15s, color 0.15s;
}
.lang-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.lang-item.active { color: var(--text); background: rgba(255,255,255,0.08); }
.landing-page .lang-btn { background: rgba(255,255,255,0.08); }
.landing-page .lang-dropdown { background: #121214; }

/* ── Page content ── */
.page-wrap { padding: 36px 40px 48px; flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; }

/* ── Alerts ── */
.alert { padding: 11px 15px; border-radius: var(--r); font-size: 13px; margin-bottom: 16px; }
.alert-error   { background: rgba(224,87,90,0.1);  border: 1px solid rgba(224,87,90,0.3);  color: #f0a0a2; }
.alert-success { background: rgba(79,214,168,0.1); border: 1px solid rgba(79,214,168,0.3); color: #a2ead2; }
.flashes { margin-bottom: 20px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: var(--r);
  font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; text-decoration: none; line-height: 1.2;
}
.btn-primary { background: #f4f4f6; color: #0a0a0b; }
.btn-primary:hover { background: #fff; color: #000; }
.btn-secondary { background: rgba(255,255,255,0.08); color: var(--text); }
.btn-secondary:hover { background: rgba(255,255,255,0.14); }
.btn-danger { background: rgba(224,87,90,0.08); color: var(--danger); border-color: rgba(224,87,90,0.25); }
.btn-danger:hover { background: rgba(224,87,90,0.16); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 7px 13px; font-size: 12px; border-radius: 8px; }

/* ── Forms ── */
input, textarea, select {
  background: var(--s2); border: 1px solid transparent; border-radius: var(--r); color: var(--text);
  font-family: var(--font); font-size: 14px; padding: 11px 14px; outline: none; width: 100%; transition: border-color 0.2s, background 0.2s;
}
input:focus, textarea:focus, select:focus { background: var(--s3); }
input::placeholder, textarea::placeholder { color: var(--muted2); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a94' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
select option { background: var(--s2); }
label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.char-count { font-size: 11px; color: var(--muted2); text-align: right; }

/* ── Cards ── */
.card { background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); padding: 22px; }

/* ── Page header ── */
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 30px; margin-bottom: 6px; }
.page-header p  { font-size: 14px; color: var(--muted); }

/* ── Dashboard hero ── */
.hero-banner {
  position: relative; overflow: hidden; border: 1px solid transparent; border-radius: var(--rx);
  padding: 56px 44px; margin-bottom: 20px; background: var(--s1); isolation: isolate;
}
.hero-banner-media { position: absolute; inset: 0; z-index: -2; }
.hero-banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.hero-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.75) 45%, rgba(10,10,11,0.25) 100%); }
.hero-banner h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 8px; }
.hero-banner h1 em { font-style: normal; color: var(--accent); }
.hero-banner p  { color: var(--text-2); font-size: 15px; margin-bottom: 24px; max-width: 460px; }

/* ── Quick action cards ── */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.quick-card {
  background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px; text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.quick-card:hover { border-color: transparent; background: var(--s2); transform: translateY(-2px); }
.quick-card-icon { width: 42px; height: 42px; border-radius: 8px; border: 1px solid transparent; display: flex; align-items: center; justify-content: center; color: var(--text); flex-shrink: 0; background: rgba(255,255,255,0.07); }
.quick-card-icon svg { width: 18px; height: 18px; }
.quick-card-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; color: #fff; }
.quick-card-count { font-size: 12px; color: var(--muted); }

/* ── Section header ── */
.section-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-hdr h2 { font-size: 15px; font-weight: 600; }
.section-hdr a  { font-size: 13px; color: var(--muted); text-decoration: none; }
.section-hdr a:hover { color: var(--text); }

/* ── Image grids ── */
.creations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.creation-thumb { border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--s2); border: 1px solid transparent; transition: transform 0.25s var(--ease), border-color 0.2s; }
.creation-thumb:hover { transform: translateY(-2px); border-color: transparent; }
.creation-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gallery-item { background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); overflow: hidden; transition: border-color 0.2s, transform 0.25s var(--ease); }
.gallery-item:hover { border-color: transparent; transform: translateY(-2px); }
.gallery-img { aspect-ratio: 1; overflow: hidden; background: var(--s2); }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.gallery-item:hover .gallery-img img { transform: scale(1.04); }
.gallery-meta { padding: 12px 14px 14px; }
.gallery-label { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.gallery-prompt { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 10px; }
.gallery-actions { display: flex; gap: 6px; }
.gallery-actions a, .gallery-actions button {
  flex: 1; padding: 6px 0; text-align: center; font-size: 11.5px; font-weight: 600; border-radius: 8px; cursor: pointer;
  font-family: var(--font); text-decoration: none; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s;
}
.btn-dl  { background: rgba(255,255,255,0.08); color: var(--text); }
.btn-dl:hover { background: rgba(255,255,255,0.06); border-color: transparent; }
.btn-del { background: rgba(224,87,90,0.1); color: var(--danger); }
.btn-del:hover { background: rgba(224,87,90,0.12); }
.gallery-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.gallery-tab-btn { padding: 8px 16px; border-radius: 6px; font-size: 12.5px; font-weight: 500; cursor: pointer; border: 1px solid transparent; background: rgba(255,255,255,0.06); color: var(--muted); font-family: var(--font); transition: all 0.15s; }
.gallery-tab-btn:hover { color: var(--text); }
.gallery-tab-btn.active { border-color: #fff; color: #0a0a0b; background: #f4f4f6; }
.gallery-section { display: none; }
.gallery-section.active { display: block; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 72px 20px; color: var(--muted); }
.empty-icon { width: 56px; height: 56px; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--text); background: rgba(255,255,255,0.07); }
.empty-icon svg { width: 22px; height: 22px; }
.empty-state h3 { font-size: 22px; color: var(--text); margin-bottom: 6px; }
.empty-state p  { font-size: 14px; margin-bottom: 20px; }

/* ── Generate page ── */
.gen-layout { display: grid; grid-template-columns: 372px 1fr; gap: 16px; height: calc(100vh - var(--topbar-h) - 84px); min-height: 560px; }
.gen-panel { background: var(--s1); border: 1px solid transparent; border-radius: var(--rx); display: flex; flex-direction: column; overflow: hidden; }
.gen-tabs { display: flex; border-bottom: 1px solid var(--b1); padding: 0 8px; }
.gen-tab { padding: 15px 12px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; background: transparent; border: none; font-family: var(--font); transition: color 0.15s; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.gen-tab.active { color: var(--text); border-bottom-color: #fff; }
.gen-tab:hover:not(.active) { color: var(--text); }
.gen-tab svg { width: 14px; height: 14px; }
.gen-form { padding: 20px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; position: relative; }
.aspect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.aspect-btn { padding: 8px 0; border: 1px solid transparent; border-radius: var(--r); background: var(--s2); color: var(--muted); font-family: var(--font); font-size: 12px; font-weight: 600; cursor: pointer; text-align: center; transition: all 0.15s; }
.aspect-btn:hover, .aspect-btn.active { color: var(--text); background: var(--s3); }
.model-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.model-btn {
  position: relative; padding: 12px 12px 11px; border: 1px solid transparent; border-radius: var(--rl); background: var(--s2); color: #fff;
  font-family: var(--font); cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s, transform 0.15s; display: flex; flex-direction: column; gap: 3px;
}
.model-btn b { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.model-btn small { font-size: 11px; color: var(--muted); font-weight: 500; }
.model-btn:hover:not(:disabled) { background: var(--s3); }
.model-btn.active { background: rgba(255,255,255,0.14); }
.model-btn.active small { color: var(--text-2); }
.model-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.model-btn .soon { position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.08); border-radius: 6px; padding: 2px 6px; }
.model-btn.max.active { background: var(--primary-bg); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-lbl { font-size: 13px; color: var(--text); }
.toggle-sub { font-size: 11px; color: var(--muted); }
.toggle { width: 40px; height: 22px; background: var(--s3); border: 1px solid transparent; border-radius: var(--rl); position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.toggle.on { background: var(--primary); border-color: var(--primary); }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.toggle.on::after { transform: translateX(18px); }
.gen-footer { padding: 14px 20px; display: flex; align-items: center; gap: 10px; background: var(--bg-2); }
.credits-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08); border-radius: 6px; padding: 7px 12px; font-size: 12px; color: var(--text); font-weight: 600; white-space: nowrap; }
.credits-pill svg { width: 12px; height: 12px; color: var(--primary); }
.btn-generate { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; background: #f4f4f6; color: #0a0a0b; font-family: var(--font); font-size: 13.5px; font-weight: 600; border: none; border-radius: var(--rl); cursor: pointer; transition: background 0.2s; }
.btn-generate:hover:not(:disabled) { background: #fff; }
.btn-generate:disabled { opacity: 0.5; cursor: not-allowed; }

.gen-output { background: var(--s1); border: 1px solid transparent; border-radius: var(--rx); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background-image: radial-gradient(circle at 50% 0%, rgba(166,114,251,0.08), transparent 55%); }
.output-placeholder { text-align: center; padding: 32px 20px; color: var(--muted); max-width: 360px; }
.output-placeholder-icon { width: 64px; height: 64px; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--text); background: rgba(255,255,255,0.07); }
.output-placeholder-icon svg { width: 24px; height: 24px; }
.output-placeholder h3 { font-size: 24px; color: var(--text); margin-bottom: 6px; }
.output-placeholder p  { font-size: 14px; line-height: 1.6; }
.spinner-overlay { display: none; position: absolute; inset: 0; background: rgba(10,10,11,0.86); backdrop-filter: blur(6px); flex-direction: column; align-items: center; justify-content: center; gap: 14px; z-index: 10; }
.spinner { width: 40px; height: 40px; border: 2px solid var(--b2); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-text { font-size: 13px; color: var(--muted); }
.output-result { display: none; width: 100%; height: 100%; position: absolute; inset: 0; flex-direction: column; }
.output-result img { width: 100%; height: calc(100% - 56px); object-fit: contain; display: block; background: #000; }
.output-bar { height: 56px; background: var(--bg-2); display: flex; align-items: center; padding: 0 16px; gap: 10px; }
.output-prompt { font-size: 12.5px; color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.err-banner { display: none; position: absolute; bottom: 14px; left: 14px; right: 14px; background: rgba(224,87,90,0.12); border: 1px solid rgba(224,87,90,0.35); border-radius: var(--r); padding: 10px 14px; font-size: 13px; color: #f0a0a2; z-index: 20; backdrop-filter: blur(8px); }

/* Reference photo (MAX only) */
.ref-upload { display: none; }
.ref-upload.on { display: block; }
.ref-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--s2); cursor: pointer; transition: background 0.2s; }
.ref-drop:hover { background: var(--s3); }
.ref-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ref-thumb { width: 44px; height: 44px; border-radius: var(--r); object-fit: cover; background: var(--s3); display: none; }
.ref-drop.has .ref-thumb { display: block; }
.ref-drop.has .ic { display: none; }
.ref-text { font-size: 12.5px; color: var(--text); line-height: 1.4; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-text small { display: block; color: var(--muted); font-size: 11px; white-space: normal; }
.ref-clear { position: relative; z-index: 1; display: none; background: rgba(255,255,255,0.08); border: 0; color: var(--text); border-radius: var(--r); width: 28px; height: 28px; cursor: pointer; font-family: var(--font); }
.ref-drop.has .ref-clear { display: inline-flex; align-items: center; justify-content: center; }
.ref-note { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.ref-note b { color: var(--text-2); font-weight: 600; }

/* ── Remove BG page ── */
.rmbg-layout { max-width: 820px; margin: 0 auto; }
.rmbg-layout .page-header h1 { font-size: 32px; }
.upload-zone { border: 1px dashed var(--line); border-radius: var(--rx); padding: 56px 32px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; background: var(--s1); }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: var(--primary-bg); }
.upload-zone-icon { width: 56px; height: 56px; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--text); background: rgba(255,255,255,0.07); }
.upload-zone-icon svg { width: 22px; height: 22px; }
.upload-zone h3 { font-size: 24px; margin-bottom: 6px; }
.upload-zone p  { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.upload-zone-note { font-size: 11.5px; color: var(--muted2); margin-top: 14px; }
.rmbg-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.rmbg-feature { background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); padding: 20px 16px; text-align: center; }
.rmbg-feature-icon { width: 38px; height: 38px; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; color: var(--text); }
.rmbg-feature-icon svg { width: 16px; height: 16px; }
.rmbg-feature h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.rmbg-feature p  { font-size: 12.5px; color: var(--muted); }
.how-it-works { margin-top: 20px; background: var(--s1); border: 1px solid transparent; border-radius: var(--rx); padding: 32px 28px; text-align: center; }
.how-it-works h3 { font-size: 24px; margin-bottom: 4px; }
.how-it-works > p  { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-it-works .how-step { display: block; text-align: center; }
.how-it-works .how-step-num { width: 36px; height: 36px; border: 1px solid transparent; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text); margin: 0 auto 12px; background: rgba(255,255,255,0.07); }
.how-it-works .how-step h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.how-it-works .how-step p  { font-size: 12.5px; color: var(--muted); }
.rmbg-result { display: none; margin-top: 20px; }
.rmbg-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rmbg-compare-item { background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); overflow: hidden; }
.rmbg-compare-label { padding: 10px 14px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; background: var(--s2); }
.rmbg-compare-img { background: repeating-conic-gradient(var(--s3) 0% 25%, var(--s1) 0% 50%) 0 0 / 20px 20px; }
.rmbg-compare-img img { width: 100%; display: block; max-height: 320px; object-fit: contain; }

/* ── Billing ── */
.billing-wrap { max-width: 900px; margin: 0 auto; }
.balance-card { background: linear-gradient(135deg, rgba(166,114,251,0.14), rgba(166,114,251,0.02) 60%), var(--s1); border: 1px solid transparent; border-radius: var(--rx); padding: 30px 32px; margin-bottom: 28px; display: flex; align-items: center; gap: 20px; position: relative; overflow: hidden; }
.balance-icon { width: 54px; height: 54px; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; background: var(--primary-bg); }
.balance-icon svg { width: 22px; height: 22px; }
.balance-info { flex: 1; }
.balance-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.balance-value { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: 48px; color: #fff; line-height: 1; }
.balance-sub   { font-size: 13px; color: var(--muted); margin-top: 6px; }
.billing-section-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.plan-card { background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); padding: 24px 16px 18px; text-align: center; position: relative; transition: border-color 0.2s, transform 0.2s var(--ease); }
.plan-card:hover { border-color: transparent; transform: translateY(-2px); }
.plan-card.featured { border-color: transparent; background: linear-gradient(180deg, rgba(166,114,251,0.1), transparent 60%), var(--s1); }
.plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: #f4f4f6; color: #0a0a0b; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.plan-credits { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: 34px; color: var(--text); line-height: 1; margin-bottom: 8px; }
.plan-price { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.plan-per { font-size: 11.5px; color: var(--muted); margin-bottom: 18px; }
.custom-box { background: var(--s1); border: 1px solid transparent; border-radius: var(--rx); padding: 32px; margin-bottom: 20px; text-align: center; }
.custom-box h3 { font-size: 24px; margin-bottom: 6px; }
.slider-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
input[type=range] { width: 100%; accent-color: var(--primary); margin-bottom: 24px; cursor: pointer; -webkit-appearance: none; appearance: none; height: 3px; background: var(--b2); border-radius: 2px; outline: none; padding: 0; border: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--primary); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--primary); cursor: pointer; }
.custom-bottom { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.amount-val { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: 32px; color: var(--text); line-height: 1; }
.tokens-val { font-size: 14px; color: var(--muted); }
.tokens-val span { color: var(--primary); font-weight: 700; }
.billing-note { border: 1px solid transparent; border-radius: var(--r); padding: 12px 16px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ── KYC ── */
.kyc-card { max-width: 580px; margin: 40px auto; background: var(--s1); border: 1px solid transparent; border-radius: var(--rx); padding: 36px; text-align: left; }
.kyc-icon { width: 48px; height: 48px; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--text); }
.kyc-icon svg { width: 20px; height: 20px; }
.kyc-card h2 { font-size: 26px; margin-bottom: 12px; }
.kyc-card p  { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }
.kyc-amount-row { background: var(--bg-2); border: 1px solid transparent; border-radius: var(--r); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.kyc-amount-label { font-size: 13px; color: var(--muted); }
.kyc-amount-value { font-size: 15px; font-weight: 600; color: var(--text); }
.kyc-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.kyc-step { display: flex; gap: 12px; align-items: flex-start; }
.kyc-step-num { width: 26px; height: 26px; border: 1px solid transparent; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--text); flex-shrink: 0; margin-top: 1px; }
.kyc-step-text strong { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 2px; }
.kyc-step-text span   { font-size: 12.5px; color: var(--muted); }

/* ── Settings ── */
.settings-title { text-align: center; margin-bottom: 28px; }
.settings-title h1 { font-size: 30px; margin-bottom: 4px; }
.settings-title p { font-size: 14px; color: var(--muted); }
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; max-width: 860px; }
.settings-card { background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); overflow: hidden; margin-bottom: 16px; }
.settings-card-hdr { padding: 18px 22px; background: var(--s2); display: flex; align-items: center; gap: 14px; }
.settings-card-hdr-icon { width: 36px; height: 36px; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text); flex-shrink: 0; }
.settings-card-hdr-icon svg { width: 15px; height: 15px; }
.settings-card-hdr h3 { font-size: 14px; font-weight: 600; }
.settings-card-hdr p  { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.settings-card-body  { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--b1); gap: 16px; }
.settings-row:last-child { border-bottom: none; }
.settings-row-info h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.settings-row-info p  { font-size: 12.5px; color: var(--muted); }
.settings-row-action select { width: auto; min-width: 130px; }
.user-profile-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.user-profile-avatar { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), #6a3fd6); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; color: #fff; flex-shrink: 0; }
.user-profile-info h3 { font-size: 17px; font-weight: 600; }
.user-profile-info p  { font-size: 13px; color: var(--muted); }
.settings-link-row { display: inline-flex; }
.danger-card { border-color: rgba(224,87,90,0.3); }
.danger-card .settings-card-hdr h3 { color: var(--danger); }

/* ── FAQ ── */
.faq-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px clamp(32px, 6vw, 120px); align-items: start; padding: 120px var(--gutter); text-align: left; }
.faq-head { position: sticky; top: 110px; }
.faq-head .landing-section-sub { margin-bottom: 0; }
.faq-hero { text-align: center; margin-bottom: 32px; }
.faq-hero h1 { font-size: 36px; margin-bottom: 8px; }
.faq-hero p  { font-size: 15px; color: var(--muted); }
.faq-items { text-align: left; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--b1); }
.faq-item:last-child { border-bottom: none; }
.faq-item:first-child .faq-q { padding-top: 6px; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 20px 4px; cursor: pointer; font-size: 17px; font-weight: 500; gap: 16px; transition: color 0.15s; }
.faq-q:hover { color: var(--accent); }
.faq-q svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); transition: transform 0.25s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: block; max-height: 0; overflow: hidden; opacity: 0; padding: 0 4px; font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 680px; transform: translateY(-4px); transition: max-height 0.5s var(--ease), opacity 0.35s ease, padding 0.35s ease, transform 0.4s var(--ease); }
.faq-item.open .faq-a { max-height: 480px; opacity: 1; padding-bottom: 24px; transform: none; }
.faq-q { transition: color 0.15s, padding 0.3s var(--ease); }
.faq-contact-box { border: 1px solid transparent; border-radius: var(--rx); padding: 36px; text-align: center; background: var(--s1); }
.faq-contact-box h3 { font-size: 24px; margin-bottom: 6px; }
.faq-contact-box p  { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

/* ── Contact ── */
.contact-page { }
.contact-hero { padding: 20px 0 64px; margin-bottom: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px clamp(32px, 6vw, 120px); align-items: end; }
.contact-hero h1 { font-size: clamp(44px, 6.4vw, 92px); margin: 0; }
.contact-lead { font-size: 17px; color: var(--muted); line-height: 1.65; max-width: 460px; margin: 0 0 6px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px clamp(32px, 6vw, 120px); align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 28px; }
.contact-email { display: inline-block; align-self: flex-start; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(20px, 2.2vw, 30px); color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: border-color 0.2s, color 0.2s; word-break: break-all; }
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-facts { display: flex; flex-direction: column; }
.contact-facts > div { padding: 18px 0; border-bottom: 1px solid var(--b1); display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline; }
.contact-facts > div:last-child { border-bottom: none; }
.contact-facts dt { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-facts dd { font-size: 15px; color: var(--text); margin: 0; }
.contact-topics { font-size: 13px; color: var(--muted2); line-height: 1.8; }
.contact-topics span { color: var(--muted); }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.contact-form .form-group { gap: 8px; }
.contact-form label { font-size: 11px; letter-spacing: 0.1em; }
.contact-form input, .contact-form select, .contact-form textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; font-size: 16px; color: var(--text); transition: border-color 0.2s; }
.contact-form select { background-position: right 0 center; padding-right: 28px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-bottom-color: var(--text); background: transparent; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn-contact { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: auto; align-self: flex-start; padding: 15px 28px; font-size: 15px; border-radius: var(--r); }
.contact-form .btn-contact svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.contact-form .btn-contact:hover svg { transform: translateX(3px); }
.contact-form .contact-success { text-align: left; padding: 24px 0; }
.contact-form .contact-error { display: none; padding: 12px 14px; border-radius: var(--r); background: rgba(239,68,68,0.12); color: #fca5a5; font-size: 14px; line-height: 1.5; }
.contact-form .contact-error.show { display: block; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-form .contact-success-icon { margin: 0 0 16px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.contact-info-card { background: var(--s1); border: 1px solid transparent; border-radius: var(--rx); padding: 30px; }
.contact-info-card h2 { font-size: 28px; margin-bottom: 10px; }
.contact-info-card > p  { font-size: 14px; color: var(--muted); margin-bottom: 26px; line-height: 1.7; }
.contact-items { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-item-icon { width: 36px; height: 36px; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text); }
.contact-item-icon svg { width: 15px; height: 15px; }
.contact-item-label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px; font-weight: 600; }
.contact-item-val { font-size: 14px; color: var(--text); }
.contact-form-card { background: var(--s1); border: 1px solid transparent; border-radius: var(--rx); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.contact-success { display: none; text-align: center; padding: 40px 20px; }
.contact-success-icon { width: 56px; height: 56px; border: 1px solid var(--success); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--success); }
.contact-success-icon svg { width: 22px; height: 22px; }
.contact-success h3 { font-size: 22px; font-family: var(--display); font-weight: 700; margin-bottom: 6px; }
.btn-contact { width: 100%; padding: 13px; background: #f4f4f6; color: #0a0a0b; font-family: var(--font); font-size: 14px; font-weight: 600; border: none; border-radius: var(--r); cursor: pointer; transition: background 0.2s; }
.btn-contact:hover { background: #fff; }

/* ── Legal pages ── */
.legal-wrap { max-width: 780px; margin: 0 auto; }
.legal-wrap h1 { font-size: 40px; margin-bottom: 10px; }
.legal-meta { font-size: 13px; color: var(--muted); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--b1); }
.legal-wrap h2 { font-size: 22px; font-weight: 600; margin-top: 40px; margin-bottom: 12px; color: var(--text); letter-spacing: -0.01em; }
.legal-wrap h3 { font-size: 15px; font-weight: 600; margin-top: 24px; margin-bottom: 8px; color: var(--text-2); }
.legal-wrap p  { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.legal-wrap ul { color: var(--text-2); padding-left: 22px; margin-bottom: 14px; font-size: 15px; }
.legal-wrap ul li { margin-bottom: 6px; line-height: 1.7; }
.legal-wrap a  { color: var(--accent); text-decoration: none; }
.legal-wrap a:hover { text-decoration: underline; }
.legal-divider { border: none; border-top: 1px solid var(--b1); margin: 32px 0; }
.legal-highlight { background: var(--s1); border: 1px solid transparent; border-left: 2px solid var(--primary); border-radius: var(--r); padding: 16px 20px; margin: 18px 0; font-size: 14px; color: var(--text-2); }
.legal-highlight strong { color: var(--text); display: block; margin-bottom: 4px; }
.legal-warning { background: rgba(224,87,90,0.06); border: 1px solid rgba(224,87,90,0.25); border-left: 2px solid var(--danger); border-radius: var(--r); padding: 16px 20px; margin: 18px 0; font-size: 14px; color: var(--text-2); }
.legal-warning strong { color: var(--danger); display: block; margin-bottom: 4px; }
.legal-contact-box { background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); padding: 24px; margin-top: 36px; }
.legal-contact-box h2 { margin-top: 0; }
.legal-page { max-width: 780px; margin: 0 auto; }
.legal-header { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--b1); }
.legal-header h1 { font-size: 40px; margin-bottom: 10px; }
.legal-body h2 { font-size: 22px; font-weight: 600; margin-top: 44px; margin-bottom: 14px; color: var(--text); }
.legal-body h3 { font-size: 15px; font-weight: 600; margin-top: 26px; margin-bottom: 10px; color: var(--text); }
.legal-body p { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.legal-body ul { margin: 0 0 16px 20px; }
.legal-body ul li { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 6px; }
.legal-body a { color: var(--accent); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body pre { background: var(--s2); border: 1px solid transparent; border-radius: var(--r); padding: 14px 18px; font-size: 13px; color: var(--text); overflow-x: auto; margin: 16px 0; }
.legal-body code { font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.legal-table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid transparent; border-radius: var(--r); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal-table th { background: var(--s2); color: var(--text); font-weight: 600; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--b1); }
.legal-table td { padding: 10px 14px; color: var(--text-2); border-bottom: 1px solid var(--b1); vertical-align: top; line-height: 1.6; }
.legal-table tr:last-child td { border-bottom: none; }

/* ── App footer ── */
.page-footer { padding: 18px 28px; border-top: 1px solid var(--b1); display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted2); }
.page-footer a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.page-footer a:hover { color: var(--text); }
.page-footer-sep { color: var(--b2); }

/* ── Landing footer ── */
.landing-footer-full { background: var(--bg-2); }
.lf-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; padding: 88px var(--gutter) 64px; align-items: start; }
.lf-brand { min-width: 0; }
.lf-logo { margin-bottom: 16px; }
.lf-brand p { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 340px; }
.lf-social { display: flex; gap: 10px; margin-top: 18px; }
.lf-social a { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.07); color: var(--text-2); transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.lf-social a:hover { background: rgba(166,114,251,0.2); color: #fff; transform: translateY(-2px); }
.lf-social svg { width: 18px; height: 18px; }
.lf-cols { display: contents; }
.lf-col { display: flex; flex-direction: column; gap: 13px; }
.lf-col-title { font-size: 12px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }
.lf-col a { font-size: 15.5px; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.lf-col a:hover { color: var(--text); }
.lf-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter); font-size: 12px; color: var(--muted2); gap: 12px; flex-wrap: wrap; }
.lf-bottom-links { display: flex; gap: 20px; }
.lf-bottom-links a { color: var(--muted2); text-decoration: none; font-size: 12px; transition: color 0.15s; }
.lf-bottom-links a:hover { color: var(--text); }

/* ── Auth pages ── */
.auth-page { background: var(--bg); min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
/* min-height on the cells, not only the container: a grid row only stretches to
   a definite container height, so without this the row (and the image behind
   it) is as tall as the Clerk widget and jumps when the widget mounts. */
.auth-brand, .auth-form { min-height: 100vh; min-height: 100svh; }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; isolation: isolate; }
.auth-brand img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-brand::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,11,0.35), rgba(10,10,11,0.85)); }
.auth-brand .logo img { width: 150px; display: block; }
.auth-brand h2 { font-size: clamp(32px, 3.6vw, 48px); max-width: 480px; margin-bottom: 14px; }
.auth-brand h2 em { font-style: normal; color: var(--accent); }
.auth-brand p { font-size: 15px; color: var(--text-2); max-width: 400px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form > div { width: 100%; max-width: 420px; }

/* ── Landing page ── */
.landing-page { background: var(--bg); min-height: 100vh; font-family: var(--font); color: var(--text); overflow-x: hidden; position: relative; isolation: isolate; }
/* Ambient colour behind the whole page, plus one soft shape per section so the
   long dark stretches have depth. Shapes sit behind content (z-index -1). */
.landing-page::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(60vw 42vw at 88% 8%, rgba(166,114,251,0.15), transparent 60%),
              radial-gradient(52vw 40vw at 6% 92%, rgba(91,141,239,0.13), transparent 60%); }
.landing-features, .landing-pricing, .model-section, .tier-section, .faq-layout, .landing-footer-full { position: relative; }
/* Four large blurred shapes positioned along the page (percentages of the
   document height), behind every section, so the glow carries across section
   boundaries instead of stopping at them. */
.bg-shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-shapes span { position: absolute; border-radius: 50%; filter: blur(110px); }
.bg-shapes span:nth-child(1) { width: 72vw; height: 72vw; left: -24vw; top: 12%; background: radial-gradient(circle, rgba(166,114,251,0.26), transparent 62%); }
.bg-shapes span:nth-child(2) { width: 62vw; height: 62vw; right: -24vw; top: 33%; background: radial-gradient(circle, rgba(91,141,239,0.2), transparent 62%); }
.bg-shapes span:nth-child(3) { width: 84vw; height: 46vw; left: 8vw; top: 56%; background: radial-gradient(ellipse, rgba(166,114,251,0.2), transparent 62%); }
.bg-shapes span:nth-child(4) { width: 58vw; height: 58vw; right: -16vw; top: 80%; background: radial-gradient(circle, rgba(91,141,239,0.17), transparent 62%); }
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px;
  background: transparent; justify-content: space-between; transition: background 0.35s, padding 0.35s;
}
.landing-nav.scrolled {
  background: rgba(10,10,11,0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding-top: 10px; padding-bottom: 10px;
}
.landing-logo { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.landing-logo img { max-width: 160px; display: block; }
.landing-nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 1 1 0; min-width: 0; }
.landing-hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; width: 40px; height: 40px; background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; gap: 5px; padding: 6px; }
.landing-hamburger span { display: block; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.landing-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.landing-hamburger.open span:nth-child(2) { opacity: 0; }
.landing-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.landing-nav-actions-mobile { display: none; }
.landing-nav-links { display: flex; justify-content: center; gap: 36px; flex: 0 1 auto; }
.landing-nav-links a { position: relative; font-size: 17px; color: var(--muted); text-decoration: none; transition: color 0.15s; padding: 4px 0; }
.landing-nav-links a:hover { color: var(--text); }
.landing-nav-spacer { flex: 1; }
.landing-nav-actions { display: flex; gap: 8px; align-items: center; }

.btn-hero-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #f4f4f6; color: #0a0a0b; padding: 15px 30px; border-radius: 6px; font-size: 15px; font-weight: 600; text-decoration: none; transition: background 0.2s, transform 0.2s var(--ease); border: none; cursor: pointer; font-family: var(--font); white-space: nowrap; }
.btn-hero-primary:hover { background: #fff; color: #000; transform: translateY(-1px); }
.btn-hero-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,0.1); color: var(--text); padding: 15px 30px; border-radius: 6px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent; transition: background 0.2s, border-color 0.2s; white-space: nowrap; }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.16); }
.landing-nav .btn-hero-primary, .landing-nav .btn-hero-secondary { padding: 10px 20px !important; font-size: 14px !important; }

/* Hero */
.landing-hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 150px var(--gutter) 110px; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; transform: scale(1.04); animation: heroDrift 24s ease-in-out infinite alternate; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-media img.show { opacity: 1; }
@keyframes heroDrift { to { transform: scale(1.1) translateY(-1.5%); } }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(10,10,11,0.45), rgba(10,10,11,0.8) 72%), linear-gradient(180deg, rgba(10,10,11,0.6) 0%, rgba(10,10,11,0.2) 40%, rgba(10,10,11,0) 100%); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 920px; margin: 0 auto; }
.hero-copy { max-width: none; }
.hero-pixels { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.9; }
.landing-hero-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); color: var(--text-2); font-size: 12px; font-weight: 500; padding: 7px 14px 7px 10px; border-radius: 6px; margin-bottom: 30px; letter-spacing: 0.02em; }
.landing-hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); }
.landing-hero h1 { font-size: clamp(44px, 6.4vw, 92px); margin-bottom: 24px; text-wrap: balance; }
.landing-hero h1 em, .landing-hero h1 span:not(.whitetitle) { font-style: normal; color: var(--accent); }
.landing-hero p  { font-size: clamp(16px, 1.3vw, 18px); color: var(--text-2); max-width: 580px; margin: 0 auto 36px; line-height: 1.65; }
.landing-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Motion: hero intro, scroll reveal (only when JS has added .js to <html>) */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.1s; }
.hero-copy > :nth-child(2) { animation-delay: 0.24s; }
.hero-copy > :nth-child(3) { animation-delay: 0.38s; }
.hero-copy > :nth-child(4) { animation-delay: 0.52s; }

/* Hero prompt bar: the typed prompt that "generates" the hero background (landing.js) */
.hero-prompt { position: relative; margin: 44px auto 0; max-width: 760px; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; background: rgba(14,14,16,0.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--rl); text-align: left; box-shadow: 0 30px 80px rgba(0,0,0,0.45); overflow: hidden; }
.hp-model { flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 7px 10px; border-radius: var(--r); background: rgba(255,255,255,0.1); color: var(--text); transition: background 0.3s, color 0.3s; }
.hero-prompt.busy .hp-model, .hp-model.max { background: var(--primary-bg); color: var(--accent); }
.hp-text { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.5; color: var(--text); min-height: 1.5em; }
.demo-caret { display: inline-block; width: 1.5px; height: 1em; background: var(--text); vertical-align: -0.15em; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hp-status { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; transition: color 0.3s; }
.hp-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted2); transition: background 0.3s, box-shadow 0.3s; }
.hero-prompt.busy .hp-status { color: var(--accent); }
.hero-prompt.busy .hp-status::before { background: var(--primary); box-shadow: 0 0 10px var(--primary); animation: pulse 0.9s ease-in-out infinite alternate; }
.hero-prompt.done .hp-status { color: var(--text-2); }
.hero-prompt.done .hp-status::before { background: var(--success); }
@keyframes pulse { to { transform: scale(1.5); opacity: 0.5; } }
.hp-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.hero-prompt.busy .hp-progress { animation: demoProgress 1.8s cubic-bezier(.3,.7,.3,1) forwards; }
@keyframes demoProgress { to { width: 100%; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.tier-card, .bento-card, .lp-plan, .quick-card, .gallery-item, .plan-card { will-change: transform; }
.btn-hero-primary svg, .btn-primary svg { transition: transform 0.25s var(--ease); }
.btn-hero-primary:hover svg, .btn-primary:hover svg { transform: translateX(3px); }

/* Proof strip */
.proof-strip { padding: 0 var(--gutter) 24px; margin-top: -48px; position: relative; z-index: 1; }
.proof-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 34px 28px; text-align: center; }
.proof-val { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: 34px; line-height: 1; margin-bottom: 8px; color: var(--text); }
.proof-lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* Marquee gallery */
.flyby-section { margin-top: -96px; padding: 0 0 40px; overflow: hidden; position: relative; z-index: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.flyby-track { display: flex; gap: 14px; animation: flyby 60s linear infinite; width: max-content; }
.flyby-track:hover { animation-play-state: paused; }
.flyby-track-2 { animation-direction: reverse; animation-duration: 75s; }
@keyframes flyby { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.flyby-img { width: 300px; height: 300px; border-radius: var(--rl); overflow: hidden; flex-shrink: 0; background: var(--s2); transition: transform 0.4s var(--ease); }
.flyby-img:hover { transform: scale(1.03); }
.flyby-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flyby-row { margin-bottom: 14px; }

/* Sections */
.landing-features, .landing-pricing, .model-section, .tier-section { padding: 120px var(--gutter); }
.landing-section-title { font-size: clamp(32px, 3.8vw, 54px); margin-bottom: 14px; text-wrap: balance; }
.landing-section-title em { font-style: normal; color: var(--accent); }
.landing-section-sub   { font-size: 17px; color: var(--muted); margin-bottom: 44px; max-width: 600px; line-height: 1.6; }
.section-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px clamp(32px, 6vw, 120px); align-items: end; margin-bottom: 52px; }
.section-head .landing-section-title, .section-head .landing-section-sub { margin-bottom: 0; }
.section-head .landing-section-sub { max-width: 520px; }

/* Model tiers */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier-card { position: relative; background: var(--s1); border: 1px solid transparent; border-radius: var(--rx); padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.2s, transform 0.25s var(--ease); overflow: hidden; }
.tier-card:hover { border-color: transparent; transform: translateY(-3px); }
.tier-card.featured { border-color: transparent; background: linear-gradient(180deg, rgba(166,114,251,0.12), transparent 55%), var(--s1); }
.tier-card.featured::after { content: ''; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(166,114,251,0.35), transparent 70%); pointer-events: none; }
.tier-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier-name { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.03em; }
.tier-price { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; background: rgba(255,255,255,0.08); border-radius: 6px; padding: 5px 11px; white-space: nowrap; color: var(--text); }
.tier-card.featured .tier-price { border-color: transparent; color: var(--accent); background: var(--primary-bg); }
.tier-tagline { font-size: 15px; color: var(--text-2); line-height: 1.6; flex: 1; }
.tier-engine { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; padding-top: 14px; display: flex; align-items: center; gap: 8px; }
.tier-engine .soon-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255,255,255,0.08); border-radius: 6px; padding: 2px 7px; color: var(--muted); }
.tier-card.soon { opacity: 0.72; }

/* Features bento */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(300px, auto); gap: 14px; }
.bento-card { position: relative; background: var(--s1); border: 1px solid transparent; border-radius: var(--rx); padding: 28px; transition: border-color 0.2s, transform 0.25s var(--ease); overflow: hidden; isolation: isolate; min-height: 260px; display: flex; flex-direction: column; }
.bento-card:hover { border-color: transparent; transform: translateY(-3px); }
.bento-card.wide { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }
.bento-card.tall .bento-visual { flex: 1; min-height: 300px; }
.bento-card.tall .ba-wrap { position: absolute; inset: 0; aspect-ratio: auto; }
.bento-icon { width: 42px; height: 42px; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text); margin-bottom: 18px; background: rgba(10,10,11,0.4); backdrop-filter: blur(6px); }
.bento-icon svg { width: 18px; height: 18px; }
.bento-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.bento-card p  { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 440px; }
.bento-card.media p { color: var(--text-2); }
.bento-visual { margin-top: 20px; background: var(--s2); border-radius: var(--r); overflow: hidden; position: relative; }
.bento-media { position: absolute; inset: 0; z-index: -2; }
.bento-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.bento-card.media:hover .bento-media img { transform: scale(1.05); }
.bento-card.media::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,11,0.25), rgba(10,10,11,0.9)); }
.bento-card.media { justify-content: flex-end; min-height: 300px; }
.bento-card.media .bento-icon { position: absolute; top: 24px; left: 24px; margin: 0; }
/* Prompt -> result slider: the prompt panel is wiped away to reveal the image */
.ba-wrap { position: relative; width: 100%; aspect-ratio: 16/8; overflow: hidden; cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y; outline: none; }
.ba-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; pointer-events: none; }
.ba-prompt { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; padding-left: 6%; clip-path: inset(0 50% 0 0);
  background: radial-gradient(120% 95% at 18% 12%, #2b1e4a 0%, #17131f 55%, #0e0d12 100%); }
.ba-prompt::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.075) 1px, transparent 1.3px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(90% 80% at 30% 50%, #000 30%, transparent 85%); mask-image: radial-gradient(90% 80% at 30% 50%, #000 30%, transparent 85%); }
.ba-card { position: relative; width: min(42%, 330px); padding: 18px; border-radius: var(--rl);
  background: rgba(255,255,255,0.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08); }
.ba-card-head { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.ba-card-head svg { width: 13px; height: 13px; }
.bento-card .ba-card-text { font-size: 15.5px; line-height: 1.55; font-weight: 500; color: #fff; max-width: none; }
.ba-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -0.15em; background: var(--primary); animation: baCaret 1.1s steps(1) infinite; }
@keyframes baCaret { 50% { opacity: 0; } }
.ba-card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.ba-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; padding: 5px 9px; border-radius: 6px; background: rgba(166,114,251,0.18); color: var(--accent); }
.ba-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.ba-chip.ghost { background: rgba(255,255,255,0.07); color: var(--text-2); letter-spacing: 0.02em; font-weight: 600; }
.ba-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 6px; background: #fff; color: #0a0a0b; }
.ba-go svg { width: 13px; height: 13px; }
.ba-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); z-index: 10; box-shadow: 0 0 18px rgba(166,114,251,0.65); }
.ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; background: #fff; color: #111; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.45); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.ba-handle svg { width: 18px; height: 18px; }
.ba-wrap:hover .ba-handle, .ba-wrap.dragging .ba-handle { transform: translate(-50%,-50%) scale(1.08); }
.ba-wrap:focus-visible .ba-handle { box-shadow: 0 0 0 4px rgba(166,114,251,0.55), 0 6px 20px rgba(0,0,0,0.45); }
.ba-tag { position: absolute; top: 12px; background: rgba(10,10,11,0.6); backdrop-filter: blur(6px); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; z-index: 5; pointer-events: none; letter-spacing: 0.04em; }
.ba-tag.l { left: 12px; } .ba-tag.r { right: 12px; }
@media (max-width: 600px) {
  .ba-prompt { padding-left: 4%; }
  .ba-card { width: 46%; padding: 12px; }
  .ba-card-head { margin-bottom: 7px; font-size: 10px; }
  .bento-card .ba-card-text { font-size: 12.5px; line-height: 1.5; }
  .ba-card-foot { margin-top: 12px; }
  .ba-chip.ghost { display: none; }
  .ba-go { margin-left: 0; padding: 6px 10px; font-size: 11.5px; }
  .ba-handle { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-caret { animation: none; }
}

/* Why section */
.model-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 120px); align-items: center; margin-top: 8px; }
.model-cards { display: flex; flex-direction: column; }
.model-feature-card { padding: 26px 4px; display: flex; gap: 18px; align-items: flex-start; border-bottom: 1px solid var(--b1); }
.model-feature-card:last-child { border-bottom: none; }
.model-feature-card:first-child { padding-top: 8px; }
.mf-icon { width: 40px; height: 40px; border-radius: 8px; border: 1px solid transparent; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text); }
.mf-icon svg { width: 16px; height: 16px; }
.mf-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.mf-desc  { font-size: 14px; color: var(--muted); line-height: 1.7; }
.model-img-side { position: relative; }
.model-img-side img { width: 100%; border-radius: var(--rx); display: block; object-fit: cover; aspect-ratio: 1/1; }
.model-img-badge { position: absolute; bottom: 16px; left: 16px; right: 16px; background: rgba(10,10,11,0.7); backdrop-filter: blur(12px); border: 1px solid transparent; border-radius: var(--r); padding: 12px 16px; font-size: 12px; color: var(--muted); }
.model-img-badge strong { display: block; font-size: 13px; color: var(--text); margin-bottom: 2px; font-weight: 600; }
.model-img-badge > span { display: none; }

/* Pricing */
.landing-pricing { text-align: left; max-width: 1240px; margin: 0 auto; }
.lp-free { border: 1px solid transparent; background: var(--s1); border-radius: var(--rl); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 14px; text-align: left; }
.lp-free-left { display: flex; align-items: center; gap: 14px; }
.lp-free-title { font-size: 14.5px; font-weight: 600; }
.lp-free-sub { font-size: 12.5px; color: var(--muted); }
.lp-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lp-plan { background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); padding: 28px 18px 20px; text-align: center; position: relative; transition: border-color 0.2s, transform 0.25s var(--ease); }
.lp-plan:hover { border-color: transparent; transform: translateY(-3px); }
.lp-plan.pop { border-color: transparent; background: linear-gradient(180deg, rgba(166,114,251,0.12), transparent 60%), var(--s1); }
.lp-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: #f4f4f6; color: #0a0a0b; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.lp-credits { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: 36px; line-height: 1; color: var(--text); margin-bottom: 8px; }
.lp-credits small { font-family: var(--font); font-size: 12px; color: var(--muted); display: block; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.1em; }
.lp-price   { font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.lp-per     { font-size: 11.5px; color: var(--muted); margin-bottom: 18px; }
.lp-slider-box { background: var(--s1); border: 1px solid transparent; border-radius: var(--rx); padding: 36px 32px; margin-top: 16px; text-align: center; }
.lp-slider-box h3 { font-size: 26px; margin-bottom: 6px; }
.lp-slider-box > p { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.lp-slider-wrap { max-width: 640px; margin: 0 auto; }
.lp-slider-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.lp-slider-wrap input[type=range] { margin-bottom: 26px; }
.lp-slider-bottom { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.lp-slider-credits { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--text); min-width: 150px; text-align: right; }
.lp-slider-eq { font-size: 22px; color: var(--muted2); }
.lp-slider-price { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--accent); min-width: 110px; text-align: left; }
.lp-slider-note { font-size: 11.5px; color: var(--muted2); margin-top: 8px; }
.lp-foot { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 18px; }

/* CTA */
.landing-cta { position: relative; padding: 150px var(--gutter); text-align: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--b1); border-bottom: 1px solid var(--b1); }
.landing-cta .hero-media img { opacity: 1; object-position: center 30%; animation: none; transform: none; }
.landing-cta .hero-scrim { background: linear-gradient(180deg, var(--bg) 0%, rgba(10,10,11,0.55) 35%, rgba(10,10,11,0.55) 65%, var(--bg) 100%); }
.landing-cta h2 { font-size: clamp(36px, 5vw, 72px); margin-bottom: 14px; text-wrap: balance; }
.landing-cta p  { font-size: 17px; color: var(--text-2); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Legacy landing footer (kept for templates that still use it) */
.landing-footer { padding: 32px 48px; border-top: 1px solid var(--b1); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.landing-footer-links { display: flex; gap: 20px; }
.landing-footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.landing-footer-copy { font-size: 12px; color: var(--muted2); }

/* Frontend pages (docs, contact, legal) */
.page-content { position: relative; max-width: 1320px; margin: 0 auto; padding: 136px var(--gutter) 96px; }

/* ── Lightbox ── */
.lightbox-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.9); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.lightbox-overlay.open { display: flex; }
.lightbox-box { background: var(--s1); border: 1px solid transparent; border-radius: var(--rx); max-width: 920px; width: 95vw; max-height: 90vh; display: flex; overflow: hidden; }
.lightbox-img-side { flex: 1; background: #000; min-width: 0; display: flex; align-items: center; justify-content: center; }
.lightbox-img-side img { max-width: 100%; max-height: 80vh; object-fit: contain; display: block; }
.lightbox-info-side { width: 270px; flex-shrink: 0; display: flex; flex-direction: column; padding: 22px; gap: 16px; overflow-y: auto; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; background: rgba(255,255,255,0.06); border: 1px solid transparent; border-radius: 8px; color: var(--text); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1001; }
.lightbox-close:hover { background: rgba(255,255,255,0.12); }
.lb-label { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.lb-value { font-size: 13.5px; color: var(--text); line-height: 1.55; word-break: break-word; }
.lb-type  { display: inline-block; background: rgba(255,255,255,0.08); color: var(--text); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.lb-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }

/* ── Docs ── */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.doc-sidebar { position: sticky; top: 100px; }
.doc-nav { display: flex; flex-direction: column; gap: 1px; }
.doc-nav-section { font-size: 10px; font-weight: 600; color: var(--muted2); text-transform: uppercase; letter-spacing: 0.12em; padding: 14px 12px 6px; }
.doc-nav-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r); color: var(--muted); font-size: 13.5px; text-decoration: none; transition: background 0.15s, color 0.15s; }
.doc-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.doc-nav-item.active { color: var(--text); background: rgba(255,255,255,0.07); }
.doc-content { min-width: 0; }
.doc-section { margin-bottom: 56px; scroll-margin-top: 110px; }
.doc-section h2 { font-size: 32px; margin-bottom: 12px; }
.doc-section > p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 22px; }
.doc-divider { border: none; border-top: 1px solid var(--b1); margin: 48px 0; }
.doc-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid transparent; border-radius: var(--rl); overflow: hidden; background: var(--s1); }
.doc-stat { padding: 20px; text-align: center; border-right: 1px solid var(--b1); }
.doc-stat:last-child { border-right: none; }
.doc-stat b { display: block; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: 30px; line-height: 1; margin-bottom: 6px; }
.doc-stat span { font-size: 12px; color: var(--muted); }
.tool-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 32px; }
.tool-card { background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); padding: 22px; }
.tool-card-icon { width: 40px; height: 40px; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--text); }
.tool-card-icon svg { width: 16px; height: 16px; }
.tool-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.tool-card p  { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.tool-card-tag { display: inline-block; background: rgba(255,255,255,0.08); color: var(--text-2); font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; margin-top: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.how-card { background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); overflow: hidden; margin-bottom: 14px; }
.how-card-header { padding: 18px 22px; display: flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.how-card.open .how-card-header { background: var(--s2); }
.how-card-header-icon { width: 32px; height: 32px; border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text); flex-shrink: 0; }
.how-card-header-icon svg { width: 14px; height: 14px; }
.how-card-header h3 { font-size: 15px; font-weight: 600; flex: 1; }
.how-card-header svg { color: var(--muted); transition: transform 0.2s; flex-shrink: 0; }
.how-card.open .how-card-header > svg { transform: rotate(180deg); }
.how-card-body { display: none; padding: 22px; }
.how-card.open .how-card-body { display: block; }
.how-steps-list { display: flex; flex-direction: column; gap: 16px; }
.how-step { display: flex; gap: 14px; align-items: flex-start; text-align: left; }
.how-step-num { width: 28px; height: 28px; border: 1px solid transparent; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--text); flex-shrink: 0; margin-top: 1px; }
.how-step-content { width: 100%; }
.how-step-content h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.how-step-content p  { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.how-tip { border: 1px solid transparent; background: var(--primary-bg); border-radius: var(--r); padding: 13px 16px; font-size: 13.5px; color: var(--text-2); line-height: 1.65; margin-top: 16px; }
.how-tip strong { color: var(--accent); }
.styles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.style-item { background: var(--s1); border: 1px solid transparent; border-radius: var(--r); padding: 14px 16px; display: flex; align-items: flex-start; gap: 14px; }
.style-emoji { font-family: var(--display); font-weight: 700; font-size: 15px; padding-top: 2px; color: var(--muted); flex-shrink: 0; width: 30px; line-height: 1.1; }
.style-name { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.style-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.practice-cards { display: grid; gap: 10px; }
.practice-card { background: var(--s1); border: 1px solid transparent; border-radius: var(--r); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.practice-icon { width: 34px; height: 34px; border-radius: 8px; border: 1px solid transparent; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; font-family: var(--display); font-weight: 700; color: var(--text); }
.practice-icon.green { color: var(--success); border-color: rgba(79,214,168,0.35); }
.practice-icon.purple { color: var(--accent); border-color: transparent; }
.practice-icon.yellow { color: var(--warning); border-color: rgba(220,177,95,0.35); }
.practice-icon.red { color: var(--danger); border-color: rgba(224,87,90,0.35); }
.practice-card h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.practice-card p  { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.prompt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.prompt-table th { text-align: left; padding: 11px 14px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid var(--b1); }
.prompt-table td { padding: 12px 14px; border-bottom: 1px solid var(--b1); vertical-align: top; line-height: 1.6; }
.prompt-table tr:last-child td { border-bottom: none; }
.prompt-table td:first-child { color: var(--danger); font-family: ui-monospace, monospace; font-size: 12px; }
.prompt-table td:last-child  { color: var(--success); font-family: ui-monospace, monospace; font-size: 12px; }
.prompt-table td:nth-child(2) { color: var(--muted); font-family: inherit; font-size: 13px; }
.prompt-table-wrap { background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); overflow: hidden; }
.credits-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.credits-table th { text-align: left; padding: 11px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--s2); }
.credits-table td { padding: 13px 16px; border-bottom: 1px solid var(--b1); }
.credits-table tr:last-child td { border-bottom: none; }
.credits-table-wrap { background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); overflow: hidden; margin-bottom: 20px; }
.credit-cost { display: inline-block; background: rgba(255,255,255,0.08); color: var(--text); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.doc-cta { border: 1px solid transparent; background: var(--s1); border-radius: var(--rx); padding: 40px 32px; text-align: center; }
.doc-cta h2 { font-size: 28px; margin-bottom: 8px; }
.doc-cta p { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.doc-cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.doc-note { background: var(--s1); border: 1px solid transparent; border-radius: var(--rl); padding: 20px 24px; margin-top: 16px; }
.doc-note h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.doc-note-body { font-size: 13.5px; color: var(--muted); line-height: 2; }
.doc-note-body strong { color: var(--text); }
.placeholder-img { background: var(--s2); aspect-ratio: 1; border-radius: var(--r); overflow: hidden; }
.placeholder-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Responsive ── */
@media (max-width: 1500px) {
  .landing-nav-links { gap: 22px; }
  .landing-nav-links a { font-size: 15px; }
  .landing-nav .btn-hero-primary, .landing-nav .btn-hero-secondary { padding: 9px 16px !important; font-size: 13px !important; }
}
/* Below this the centred links cannot fit between the logo and the buttons, so
   the nav collapses to the hamburger menu here rather than at phone width. */
@media (max-width: 1300px) {
  .landing-nav-links { display: none; position: fixed; top: 69px; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; padding: 8px 0 20px; z-index: 99; box-shadow: 0 30px 60px rgba(0,0,0,0.6); }
  .landing-nav-links.open { display: flex; }
  .landing-nav-links a { padding: 14px 24px; font-size: 16px; border-bottom: 1px solid var(--b1); }
  .landing-nav-actions { display: none; }
  .landing-nav-actions-mobile { display: flex; flex-direction: column; gap: 10px; padding: 16px 24px 4px; }
  .landing-nav-actions-mobile a { text-align: center; justify-content: center; }
  .landing-hamburger { display: flex; }
}
@media (max-width: 1100px) {
  .gen-layout { grid-template-columns: 340px 1fr; }
  .bento-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .bento-card.tall { grid-row: span 1; }
  .bento-card.tall .bento-visual { min-height: 360px; }
  .section-head, .faq-layout { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .landing-hero h1 { font-size: clamp(40px, 6vw, 72px); }
  .tier-grid { grid-template-columns: 1fr 1fr; }
  .tier-grid .tier-card:last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 0 100vw rgba(0,0,0,0.5); }
  .main-content { margin-left: 0; }
  .mobile-toggle { display: flex; }
  .topbar { padding: 0 16px; }
  .page-wrap { padding: 20px 16px 32px; }
  .page-header h1 { font-size: 30px; }
  .hero-banner { padding: 36px 24px; }
  .gen-layout { grid-template-columns: 1fr; height: auto; }
  .gen-output { min-height: 340px; }
  .plans-grid, .lp-plans { grid-template-columns: repeat(2, 1fr); }
  .settings-layout, .contact-layout, .quick-grid, .rmbg-features, .how-steps, .tool-cards, .styles-grid, .model-grid, .tier-grid, .bento-grid { grid-template-columns: 1fr; }
  .tier-grid .tier-card:last-child, .bento-card.wide { grid-column: span 1; }
  .bento-card.tall { grid-row: span 1; }
  .model-img-side { order: -1; }
  .model-img-side img { aspect-ratio: 4/3; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { display: none; }
  .doc-stats { grid-template-columns: 1fr 1fr; }
  .doc-stat:nth-child(2) { border-right: none; }
  .doc-stat:nth-child(-n+2) { border-bottom: 1px solid var(--b1); }
  .landing-nav { padding: 12px 16px; }
  .landing-nav-links { display: none; position: fixed; top: 69px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--b1); flex-direction: column; gap: 0; padding: 8px 0 20px; z-index: 99; box-shadow: 0 30px 60px rgba(0,0,0,0.6); }
  .landing-nav-links.open { display: flex; }
  .landing-nav-links a { padding: 14px 24px; font-size: 15px; border-bottom: 1px solid var(--b1); }
  .landing-nav-actions { display: none; }
  .landing-nav-actions-mobile { display: flex; flex-direction: column; gap: 10px; padding: 16px 24px 4px; }
  .landing-nav-actions-mobile a { text-align: center; justify-content: center; }
  .landing-hamburger { display: flex; }
  .landing-hero { padding: 120px 20px 96px; min-height: 100svh; }
  .hero-media img { object-position: center 30%; }
  .hero-prompt { flex-wrap: wrap; margin-top: 32px; }
  .hp-text { flex-basis: 100%; order: 3; }
  .contact-hero, .contact-grid { grid-template-columns: 1fr; }
  .contact-hero { padding-bottom: 40px; margin-bottom: 40px; }
  .contact-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .landing-features, .landing-pricing, .model-section, .tier-section { padding: 72px 20px; }
  .faq-layout { padding: 72px 20px; gap: 24px; }
  .section-head { margin-bottom: 32px; }
  .landing-cta { padding: 90px 20px; }
  .proof-strip { padding: 0 20px 8px; margin-top: -24px; }
  .proof-strip-inner { grid-template-columns: 1fr 1fr; }
  .proof-item { padding: 20px 16px; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--b1); }
  .proof-val { font-size: 30px; }
  .flyby-section { margin-top: -48px; padding: 0 0 24px; }
  .flyby-img { width: 190px; height: 190px; }
  .lf-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding: 56px 20px 40px; }
  .lf-brand { grid-column: span 2; }
  .lf-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 18px 20px; }
  .page-content { padding: 110px 20px 64px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .lightbox-box { flex-direction: column; }
  .lightbox-info-side { width: 100%; border-left: none; border-top: 1px solid var(--b1); }
  .rmbg-compare { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img, .flyby-track, .hero-copy > *, .demo-caret, .hp-status::before, .hp-progress { animation: none; }
  .hero-pixels { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 600px) {
  .plans-grid, .lp-plans { grid-template-columns: 1fr 1fr; }
  .lp-slider-bottom { gap: 12px; }
  .lp-slider-credits, .lp-slider-price { min-width: auto; text-align: center; }
  .model-pick { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .landing-hero h1 { font-size: 46px; }
  .landing-hero-actions a { width: 100%; }
}

/* Analytics notice (dismiss-only) */
.cookie-notice { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 500; display: flex; justify-content: center; pointer-events: none; }
.cookie-notice[hidden] { display: none; }
.cookie-notice-card { pointer-events: auto; width: 100%; max-width: 760px; display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 18px; background: var(--s2); border-radius: var(--rl); box-shadow: 0 24px 60px rgba(0,0,0,0.55); transform: translateY(24px); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.35s; }
.cookie-notice.show .cookie-notice-card { transform: none; opacity: 1; }
.cookie-notice-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; background: rgba(166,114,251,0.16); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.cookie-notice-icon svg { width: 17px; height: 17px; }
.cookie-notice-text { flex: 1; margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.cookie-notice-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cookie-notice-btn { flex: 0 0 auto; font-family: inherit; font-size: 13px; font-weight: 600; padding: 9px 18px; border: 0; border-radius: 6px; background: #fff; color: #0a0a0b; cursor: pointer; transition: opacity 0.2s; }
.cookie-notice-btn:hover { opacity: 0.88; }
@media (max-width: 600px) {
  .cookie-notice { left: 12px; right: 12px; bottom: 12px; }
  .cookie-notice-card { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .cookie-notice-icon { display: none; }
  .cookie-notice-text { flex-basis: 100%; }
  .cookie-notice-btn { width: 100%; padding: 11px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-notice-card { transition: none; }
}
.gallery-count { font-size: 13px; color: var(--muted); font-weight: 500; }

/* Billing: Stripe checkout additions */
.billing-banner { padding: 12px 16px; border-radius: var(--r); background: rgba(255,255,255,0.06); color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.billing-banner.ok { background: rgba(74,222,128,0.12); color: #bbf7d0; }
.billing-error { display: none; padding: 12px 16px; border-radius: var(--r); background: rgba(239,68,68,0.12); color: #fca5a5; font-size: 14px; margin-bottom: 18px; }
.billing-error.show { display: block; }
.plan-card button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.history-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 24px; background: var(--s1); border-radius: var(--rl); overflow: hidden; }
.history-table th, .history-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--b1); }
.history-table th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.history-table tr:last-child td { border-bottom: 0; }
.order-status { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,0.08); color: var(--text-2); }
.order-status.paid { background: rgba(74,222,128,0.14); color: #86efac; }
.billing-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(10,10,11,0.85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); font-size: 14px; }
.billing-overlay .spinner { width: 44px; height: 44px; border: 3px solid rgba(255,255,255,0.12); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
.contact-captcha { margin: 4px 0 2px; }
.contact-captcha .cf-turnstile { min-height: 65px; }

/* Footer payment badges */
.lf-pay { display: inline-flex; align-items: center; gap: 8px; }
.lf-pay-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted2); margin-right: 4px; }
.lf-pay-badge { display: inline-flex; width: 40px; height: 25px; border-radius: 4px; overflow: hidden; opacity: 0.85; transition: opacity 0.2s; }
.lf-pay-badge:hover { opacity: 1; }
.lf-pay-badge svg { width: 100%; height: 100%; display: block; }
@media (max-width: 600px) { .lf-pay { justify-content: center; flex-wrap: wrap; } }

/* Billing history: all statuses + invoice button */
.order-ref { font-size: 11px; color: var(--muted2); margin-left: 6px; letter-spacing: 0.04em; }
.order-status.pending { background: rgba(255,255,255,0.08); color: var(--text-2); }
.order-status.expired, .order-status.cancelled { background: rgba(255,255,255,0.05); color: var(--muted); }
.order-status.failed { background: rgba(239,68,68,0.14); color: #fca5a5; }
.history-table tr.order-expired td, .history-table tr.order-cancelled td { color: var(--muted); }
.order-action { text-align: right; white-space: nowrap; }
.order-action .btn-sm { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px; }
.order-action svg { width: 13px; height: 13px; }
@media (max-width: 600px) { .history-table { font-size: 12px; } .history-table th:nth-child(3), .history-table td:nth-child(3), .order-ref { display: none; } .history-table th, .history-table td { padding: 10px 8px; } .history-table td:first-child { white-space: nowrap; } .order-action .btn-sm span { display: none; } .order-action .btn-sm { padding: 6px 8px; } }
