*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #080808; color: #fff;
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
textarea, input { font-family: inherit; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 8px; border: 2px solid #080808; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ── Ambient ──────────────────────────────────────────────── */
.ambient { pointer-events: none; position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.b1 { position:absolute; width:700px; height:700px; top:-200px; left:-200px; background:rgba(16,185,129,.08); border-radius:50%; filter:blur(120px); }
.b2 { position:absolute; width:600px; height:600px; top:30%; right:-200px; background:rgba(249,115,22,.06); border-radius:50%; filter:blur(120px); }
.b3 { position:absolute; width:500px; height:500px; bottom:0; left:33%; background:rgba(20,184,166,.05); border-radius:50%; filter:blur(120px); }

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(8,8,8,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.nav-in {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 24px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text { font-family: 'Courier New', monospace; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.logo-div { width: 1px; height: 14px; background: rgba(255,255,255,.15); margin: 0 2px; }

/* Logo subtitle dropdown */
.logo-sub-wrap { position: relative; }
.logo-sub {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: rgba(255,255,255,.4); letter-spacing: .05em;
  cursor: pointer; padding: 3px 7px; border-radius: 7px; margin-left: -7px;
  transition: color .15s, background .15s; user-select: none;
}
.logo-sub-wrap:hover .logo-sub { color: rgba(255,255,255,.75); background: rgba(255,255,255,.07); }
.logo-sub .chevron-sm { opacity: .4; transition: transform .2s; flex-shrink: 0; }
.logo-sub-wrap:hover .logo-sub .chevron-sm { transform: rotate(180deg); opacity: .7; }
.logo-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 195px; background: #1c1c1c; border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 6px; z-index: 200;
  box-shadow: 0 16px 48px rgba(0,0,0,.7);
}
.logo-sub-wrap:hover .logo-dropdown { display: block; }
/* Invisible bridge that fills the gap so hover doesn't break */
.logo-sub-wrap::before {
  content: ''; position: absolute; top: 100%; left: 0;
  width: 100%; height: 12px;
}
.logo-drop-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border-radius: 8px; font-size: 13px; color: rgba(255,255,255,.55);
  text-decoration: none; transition: background .12s, color .12s;
}
.logo-drop-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.logo-drop-item.active { color: rgba(255,255,255,.9); font-weight: 600; }
.logo-drop-sep { height: 1px; background: rgba(255,255,255,.08); margin: 4px 0; }
.logo-drop-all { color: rgba(255,255,255,.35); font-size: 12px; }
.logo-drop-all:hover { color: rgba(255,255,255,.65); background: rgba(255,255,255,.04); }
.nav-mid { display: flex; gap: 28px; }
.nav-mid a { font-size: 14px; color: rgba(255,255,255,.45); transition: color .15s; }
.nav-mid a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-user { display: none; align-items: center; gap: 8px; }
.nav-user.on { display: flex; }
.cred-pill {
  display: flex; align-items: center; gap: 5px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 5px 12px; font-size: 13px; color: rgba(255,255,255,.55);
  transition: border-color .15s, background .15s;
}
.cred-pill:hover { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.06); color: #fbbf24; }
.cred-pill b { color: #fbbf24; font-weight: 600; }

/* Model cross-link pill */
.model-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.4); transition: all .15s; white-space: nowrap; text-decoration: none;
}
.model-link:hover { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); }

/* Avatar + dropdown */
.avatar-wrap { position: relative; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, #d946ef, #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; transition: opacity .15s;
  overflow: hidden;
}
.avatar:hover { opacity: .85; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.user-menu {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  width: 220px; background: #1c1c1c; border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  z-index: 200;
}
.user-menu.open { display: block; }
.um-head { padding: 14px 16px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.um-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.um-email { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 2px; word-break: break-all; }
.um-items { padding: 6px; }
.um-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 10px; font-size: 13px;
  color: rgba(255,255,255,.6); transition: background .12s, color .12s;
  text-decoration: none; background: none; border: none; cursor: pointer; text-align: left;
}
.um-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.um-item.cr-row { justify-content: space-between; }
.um-item.cr-row .cr-val { color: #fbbf24; font-weight: 600; font-size: 12px; }
.um-sep { height: 1px; background: rgba(255,255,255,.06); margin: 4px 0; }
.um-item.danger { color: rgba(255,80,80,.7); }
.um-item.danger:hover { color: #f87171; background: rgba(248,113,113,.07); }

/* Language switcher */
.lang-sw { display: flex; gap: 2px; background: rgba(255,255,255,.05); border-radius: 8px; padding: 2px; }
.lang-btn {
  padding: 4px 9px; border-radius: 6px; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.35); border: none; background: none; cursor: pointer; transition: all .15s;
  letter-spacing: .04em;
}
.lang-btn.active { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }

.btn-sm {
  padding: 7px 16px; border-radius: 10px; font-size: 13px; font-weight: 500;
  background: transparent; border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.55); transition: all .15s;
}
.btn-sm:hover { border-color: rgba(255,255,255,.25); color: #fff; }
.btn-white {
  padding: 8px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: #fff; color: #000; transition: background .15s;
}
.btn-white:hover { background: rgba(255,255,255,.9); }
.ham { display: none; background: none; border: none; color: rgba(255,255,255,.6); padding: 8px; }
.mob-menu { display: none; border-top: 1px solid rgba(255,255,255,.06); padding: 16px 24px 20px; }
.mob-menu.open { display: block; }
.mob-menu a, .mob-menu button { display: block; width: 100%; text-align: left; padding: 10px 0; font-size: 14px; color: rgba(255,255,255,.55); border: none; background: none; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.04); }
.mob-menu a:hover, .mob-menu button:hover { color: #fff; }

/* ── Billing Modal ──────────────────────────────────────── */
#billing-ov {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
}
#billing-ov.on { display: flex; }
@media(min-width:640px){ #billing-ov { align-items: center; } }
.billing-modal {
  position: relative; z-index: 10; width: 100%; max-width: 440px;
  background: #141414; border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px 28px 0 0; padding: 24px;
  max-height: 90vh; overflow-y: auto;
}
@media(min-width:640px){ .billing-modal { border-radius: 28px; } }
.bm-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.bm-title { font-size: 18px; font-weight: 700; }
.bm-email { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 2px; }
.bm-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.1); border: none; color: rgba(255,255,255,.6); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; flex-shrink:0; }
.bm-close:hover { background: rgba(255,255,255,.18); color: #fff; }
.bm-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.bm-preset {
  position: relative; border-radius: 16px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); padding: 14px; text-align: left;
  cursor: pointer; transition: all .15s;
}
.bm-preset:hover { border-color: rgba(255,255,255,.2); }
.bm-preset.sel { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }
.bm-bonus { position: absolute; top: 8px; right: 8px; background: #10b981; border-radius: 20px; padding: 2px 8px; font-size: 10px; font-weight: 700; color: #fff; }
.bm-rub { font-size: 15px; font-weight: 700; color: #fff; }
.bm-cr { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 3px; display: flex; align-items: center; gap: 3px; }
.bm-cr-zap { color: #fbbf24; }
.bm-custom-btn { width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); padding: 12px; font-size: 13px; color: rgba(255,255,255,.55); cursor: pointer; transition: all .15s; margin-bottom: 10px; }
.bm-custom-btn:hover { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); }
.bm-custom-input { display: flex; align-items: center; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); margin-bottom: 6px; }
.bm-custom-input input { flex: 1; background: none; border: none; padding: 12px 14px; font-size: 14px; color: #fff; outline: none; }
.bm-custom-input input::placeholder { color: rgba(255,255,255,.25); }
.bm-custom-input span { padding-right: 14px; font-size: 13px; color: rgba(255,255,255,.4); }
.bm-back { font-size: 11px; color: rgba(255,255,255,.35); cursor: pointer; background: none; border: none; margin-bottom: 10px; }
.bm-back:hover { color: rgba(255,255,255,.6); }
.bm-summary { border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); padding: 14px; margin: 12px 0; }
.bm-sum-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.bm-sum-row.total { border-top: 1px solid rgba(255,255,255,.1); padding-top: 8px; margin-top: 6px; font-weight: 600; color: #fff; }
.bm-sum-lbl { color: rgba(255,255,255,.45); }
.bm-sum-bonus { color: #10b981; }
.bm-providers { margin: 12px 0; }
.bm-providers-lbl { font-size: 11px; color: rgba(255,255,255,.35); margin-bottom: 6px; }
.bm-prov-btn { display: flex; align-items: center; gap: 10px; width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); padding: 12px 14px; margin-bottom: 6px; cursor: pointer; transition: all .15s; }
.bm-prov-btn:hover { border-color: rgba(255,255,255,.2); }
.bm-prov-btn.sel { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }
.bm-prov-name { flex: 1; font-size: 13px; color: rgba(255,255,255,.8); text-align: left; }
.bm-pay-btn { width: 100%; border-radius: 16px; background: #fff; color: #000; font-size: 14px; font-weight: 700; padding: 14px; cursor: pointer; transition: background .15s; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bm-pay-btn:hover:not(:disabled) { background: rgba(255,255,255,.88); }
.bm-pay-btn:disabled { opacity: .4; cursor: not-allowed; }
.bm-footer-note { text-align: center; font-size: 11px; color: rgba(255,255,255,.2); margin-top: 10px; }
.bm-err { margin-top: 8px; border-radius: 10px; background: rgba(239,68,68,.1); padding: 8px 12px; font-size: 12px; color: #fca5a5; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  text-align: center; padding: 72px 24px 52px;
  display: flex; flex-direction: column; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 28px;
  animation: fadeDown .8s ease both;
}
.dot-pulse { width:6px; height:6px; border-radius:50%; background:#4ade80; animation: pulse 2s infinite; }
.hero-badge span { font-size: 12px; color: rgba(255,255,255,.55); }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.hero h1 {
  font-size: clamp(34px, 5.5vw, 62px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1.5px;
  max-width: 780px; margin-bottom: 18px;
  animation: fadeUp .9s ease .1s both;
}
.grad { background: linear-gradient(135deg,#10b981,#14b8a6 50%,#f97316 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.hero p { font-size: 16px; color: rgba(255,255,255,.45); max-width: 520px; line-height: 1.7; margin-bottom: 36px; animation: fadeUp .9s ease .2s both; }

/* ── Generator ─────────────────────────────────────────────── */
#gen-section { position: relative; z-index: 20; max-width: 800px; margin: 0 auto; padding: 0 24px 64px; }

.gen-box {
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1);
  transition: box-shadow .2s;
  overflow: visible;
}
.gen-box:focus-within {
  box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}

.gen-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 2px; gap: 8px; flex-wrap: wrap;
}
.model-sel {
  position: relative; display: inline-flex; align-items: center;
}
.model-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 5px 10px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.model-btn:hover { background: rgba(255,255,255,.1); }
.model-btn .cost { color: #fbbf24; font-size: 11px; }
.model-btn .chevron { color: rgba(255,255,255,.3); font-size: 10px; }
.model-drop {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 500;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 6px; min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.model-drop.open { display: block; }
.model-opt {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  transition: background .12s;
}
.model-opt:hover { background: rgba(255,255,255,.06); }
.model-opt.selected { background: rgba(251,191,36,.08); }
.model-opt-name { font-size: 13px; font-weight: 600; color: #fff; }
.model-opt-meta { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 1px; }
.model-opt-cost { font-size: 11px; font-weight: 700; color: #fbbf24; flex-shrink: 0; }

.aspect-pills { display: flex; gap: 3px; }
.ap {
  display: flex; flex-direction: row; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 8px; font-size: 11px; font-weight: 500;
  background: transparent; border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.35); cursor: pointer; transition: all .12s;
}
.ap:hover { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.7); }
.ap.on { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.ap.on .ap-rect { border-color: rgba(255,255,255,.8); }
.ap-rect {
  display: block; border: 1.5px solid rgba(255,255,255,.3); border-radius: 2px;
  transition: border-color .12s;
}

.gen-prompt-row {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 6px 14px 10px;
}
textarea.pt {
  flex: 1; background: transparent; border: none; outline: none; resize: none;
  color: #fff; font-size: 15px; line-height: 1.55; min-height: 52px; max-height: 160px;
  padding: 4px 0;
}
textarea.pt::placeholder { color: rgba(255,255,255,.2); }

.gen-submit {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center;
  transition: background .15s; margin-bottom: 2px; position: relative;
}
.gen-submit:hover:not(:disabled) { background: #fff; }
.gen-submit:disabled { background: rgba(255,255,255,.15); cursor: not-allowed; }
.gen-submit svg { color: #000; }
.gen-submit .btn-spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.15); border-top-color: #000;
  animation: spin .6s linear infinite;
}
.gen-submit.loading svg { display: none; }
.gen-submit.loading .btn-spinner { display: block; }
@keyframes spin { to{transform:rotate(360deg)} }

.gen-err {
  display: none; margin: 0 14px 10px;
  padding: 9px 12px; border-radius: 10px;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2);
  color: #f87171; font-size: 13px; gap: 8px; align-items: flex-start;
}
.gen-err.on { display: flex; }

/* ── Feed ─────────────────────────────────────────────────── */
#feed-section { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }
#feed-title { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,.2); margin-bottom: 16px; }

.feed-empty {
  border: 1px dashed rgba(255,255,255,.07); border-radius: 16px;
  padding: 48px 24px; text-align: center; color: rgba(255,255,255,.2); font-size: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.feed-empty svg { opacity: .15; }

.feed-list { columns: 2; column-gap: 12px; }
@media(min-width:640px) { .feed-list { columns: 3; } }
@media(min-width:960px) { .feed-list { columns: 4; } }

.feed-item {
  break-inside: avoid; margin-bottom: 12px;
  border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,.04);
  cursor: pointer; position: relative; display: block;
}
.feed-item.new-in { animation: fadeUp .35s ease both; }

.feed-img-wrap { position: relative; }
.feed-img-wrap img { width: 100%; display: block; }

.feed-hover {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.3) 40%, transparent 70%);
  opacity: 0; transition: opacity .2s; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
}
.feed-item:hover .feed-hover { opacity: 1; }
.feed-hover-model { font-size: 10px; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.feed-hover-prompt { font-size: 11px; color: rgba(255,255,255,.85); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.feed-skeleton {
  height: 260px; background: rgba(255,255,255,.03);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; border-radius: 16px;
}
.sk-spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.08); border-top-color: rgba(255,255,255,.5); animation: spin .75s linear infinite; }
.sk-label { font-size: 13px; color: rgba(255,255,255,.3); text-align: center; }
.sk-model { color: #fbbf24; font-weight: 600; }

/* ── Info sections ─────────────────────────────────────────── */
.sec { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 24px 72px; }
.sec-h { font-size: clamp(20px,3vw,28px); font-weight: 800; letter-spacing: -.3px; margin-bottom: 8px; text-align: center; }
.sec-sub { font-size: 14px; color: rgba(255,255,255,.35); margin-bottom: 32px; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 14px; }
.card {
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 22px; transition: border-color .2s;
}
.card:hover { border-color: rgba(255,255,255,.1); }
.card-ic { font-size: 20px; margin-bottom: 12px; display: block; }
.card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.6; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 4px; }
details { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; overflow: hidden; }
details[open] { border-color: rgba(255,255,255,.1); }
summary { padding: 15px 18px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content:"+"; font-size:18px; color:rgba(255,255,255,.25); flex-shrink:0; transition:transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 18px 14px; font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.7; }

/* CTA */
.cta { position: relative; z-index: 1; text-align: center; padding: 72px 24px 96px; background: radial-gradient(ellipse 60% 40% at 50% 100%,rgba(251,191,36,.04),transparent); }
.cta h2 { font-size: clamp(26px,4vw,40px); font-weight: 800; margin-bottom: 14px; }
.cta p { font-size: 15px; color: rgba(255,255,255,.4); margin-bottom: 28px; }
.free-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.2); color: #4ade80; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; }

/* Footer */
footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.06); padding: 24px; }
.foot-in { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer p, footer a { font-size: 12px; color: rgba(255,255,255,.25); }
footer a:hover { color: rgba(255,255,255,.6); }
.foot-links { display: flex; gap: 20px; }

/* ── Auth Modal ─────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.8); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.on { opacity: 1; pointer-events: auto; }
.modal { background: #111; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 30px; width: 100%; max-width: 390px; position: relative; transform: translateY(12px); transition: transform .2s; }
.overlay.on .modal { transform: translateY(0); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.06); color: rgba(255,255,255,.4); font-size: 15px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .12s; }
.modal-x:hover { background: rgba(255,255,255,.12); color: #fff; }
.modal h2 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.modal > p { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 22px; line-height: 1.6; }
label { display: block; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.35); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
input[type="email"], input[type="text"] { width: 100%; padding: 11px 13px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; margin-bottom: 14px; }
input:focus { border-color: rgba(251,191,36,.4); }
.m-err { font-size: 12px; color: #f87171; margin-top: -8px; margin-bottom: 12px; }
.m-hint { font-size: 12px; color: rgba(255,255,255,.25); margin-top: 11px; text-align: center; }
.m-hint a { color: rgba(251,191,36,.7); }
.btn-modal { width: 100%; padding: 11px; border-radius: 10px; background: #fff; color: #000; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background .15s; border: none; }
.btn-modal:hover:not(:disabled) { background: rgba(255,255,255,.9); }
.btn-modal:disabled { background: rgba(255,255,255,.18); color: rgba(0,0,0,.4); cursor: not-allowed; }

/* 4-cell OTP input */
.otp-fields { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.otp-cell {
  width: 58px; height: 68px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-size: 26px; font-weight: 700; text-align: center;
  outline: none; transition: all .15s; font-family: inherit; caret-color: transparent;
}
.otp-cell:focus { border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 2px rgba(255,255,255,.08); background: rgba(255,255,255,.07); }
.otp-cell.filled { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }

/* ── Gallery Viewer ─────────────────────────────────────────── */
.viewer {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.96); backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.viewer.on { opacity: 1; pointer-events: auto; }
.viewer-head {
  display: flex; align-items: center; justify-content: flex-end;
  height: 56px; padding: 0 16px; flex-shrink: 0;
}
.viewer-head button {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7); font-size: 20px; display: flex; align-items: center;
  justify-content: center; transition: all .15s;
}
.viewer-head button:hover { background: rgba(255,255,255,.2); color: #fff; }
.viewer-body { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 0 64px; }
.viewer-body img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.viewer-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
  color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center;
  transition: all .15s; border: 1px solid rgba(255,255,255,.1);
}
.viewer-arrow:hover { background: rgba(0,0,0,.8); }
.viewer-arrow:disabled { opacity: 0; pointer-events: none; }
.viewer-arrow.left { left: 12px; }
.viewer-arrow.right { right: 12px; }
.viewer-footer {
  flex-shrink: 0; border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.5); padding: 16px 24px;
}
.viewer-footer-in { max-width: 960px; margin: 0 auto; display: flex; gap: 20px; align-items: flex-end; }
.viewer-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.viewer-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.v-badge {
  font-size: 11px; font-family: monospace; padding: 3px 8px; border-radius: 6px;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); white-space: nowrap;
}
.viewer-prompt-box {
  background: rgba(255,255,255,.05); border-radius: 10px;
  padding: 10px 40px 10px 12px; position: relative; max-height: 80px; overflow-y: auto;
}
.viewer-prompt-box p { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.5; }
.v-copy-btn {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center; transition: all .12s;
}
.v-copy-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.viewer-btns { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.btn-remix {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff; font-size: 14px; font-weight: 700;
  transition: all .15s; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(245,158,11,.3);
}
.btn-remix:hover { transform: scale(1.04); box-shadow: 0 6px 24px rgba(245,158,11,.4); }
.btn-dl-viewer {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  font-size: 13px; transition: all .12s; white-space: nowrap;
}
.btn-dl-viewer:hover { background: rgba(255,255,255,.15); color: #fff; }

@media (max-width: 768px) {
  .nav-mid, .btn-white.hm { display: none; }
  .ham { display: flex; }
  .cards { grid-template-columns: 1fr 1fr; }
  .model-link { display: none; }
}
@media (max-width: 500px) {
  .cards { grid-template-columns: 1fr; }
  .aspect-pills .ap { padding: 4px 8px; font-size: 10px; }
}
