/* Lumina Studio - clean, modern, responsive design system */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f4f4f7;
  --border: #e7e7ee;
  --text: #14141a;
  --text-soft: #5b5b66;
  --muted: #8a8a96;
  --brand: #5b4bff;
  --brand-2: #8b5cf6;
  --brand-soft: #efedff;
  --accent: #00c2a8;
  --danger: #e5484d;
  --warning: #f5a524;
  --success: #2faf6a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 26, 0.05);
  --shadow: 0 8px 28px rgba(20, 20, 26, 0.08);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--text-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-tight { padding: 2rem 0; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; }
.hide { display: none !important; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand-dot { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.nav-links { display: flex; align-items: center; gap: .35rem; margin-left: .5rem; }
.nav-links a { color: var(--text-soft); font-weight: 500; font-size: .94rem; padding: .5rem .7rem; border-radius: 8px; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }
.credit-chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .85rem; padding: .35rem .7rem; border-radius: 999px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-family: inherit; font-weight: 600; font-size: .95rem; padding: .65rem 1.15rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: all .15s ease; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #4a3aef; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--surface-2); color: var(--text); }
.btn-soft:hover { background: #ebebf0; }
.btn-block { width: 100%; }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.02rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Pills / chips */
.pill-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); font-size: .85rem; font-weight: 500; cursor: pointer; transition: all .15s ease; }
.pill:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.pill.active { background: var(--text); color: #fff; border-color: var(--text); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--text-soft); background: var(--surface-2); padding: .2rem .55rem; border-radius: 6px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-pad { padding: 1.25rem; }
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Preset card */
.preset-card { display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.preset-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.preset-thumb { aspect-ratio: 4/3; background: var(--surface-2) center/cover no-repeat; position: relative; }
.preset-thumb .badge { position: absolute; top: .6rem; left: .6rem; background: rgba(20,20,26,.72); color: #fff; font-size: .7rem; font-weight: 600; padding: .25rem .55rem; border-radius: 6px; }
.preset-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.preset-title { font-weight: 700; color: var(--text); font-size: 1rem; }
.preset-summary { font-size: .85rem; color: var(--text-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preset-stats { display: flex; gap: .9rem; font-size: .78rem; color: var(--muted); margin-top: auto; padding-top: .4rem; }
.preset-stats span { display: inline-flex; align-items: center; gap: .25rem; }

/* Hero */
.hero { padding: 4.5rem 0 3rem; text-align: center; }
.hero .eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem; }
.hero h1 { max-width: 760px; margin: 0 auto 1rem; }
.hero p.lead { font-size: 1.15rem; max-width: 600px; margin: 0 auto 1.8rem; color: var(--text-soft); }
.hero-cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.gradient-text { background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Section headers */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .2rem 0 0; }

/* Studio layout */
.studio { display: grid; grid-template-columns: 320px 1fr; gap: 1.25rem; align-items: start; padding: 1.5rem 0 3rem; }
.studio-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; position: sticky; top: 80px; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.input, textarea.input, select.input { width: 100%; font-family: inherit; font-size: .95rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .65rem .8rem; outline: none; transition: border .15s ease, box-shadow .15s ease; }
.input:focus, textarea.input:focus, select.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { resize: vertical; min-height: 90px; }
.range { width: 100%; }
.canvas-area { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-height: 520px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.canvas-placeholder { text-align: center; color: var(--muted); padding: 2rem; }
.canvas-img { width: 100%; height: 100%; object-fit: contain; max-height: 70vh; }
.studio-tabs { display: flex; gap: .3rem; background: var(--surface-2); padding: .25rem; border-radius: 10px; margin-bottom: 1rem; }
.studio-tab { flex: 1; text-align: center; padding: .5rem; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--text-soft); cursor: pointer; border: 0; background: transparent; }
.studio-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Chat */
.chat-log { display: flex; flex-direction: column; gap: .7rem; max-height: 340px; overflow-y: auto; padding: .25rem; margin-bottom: .8rem; }
.chat-msg { padding: .6rem .85rem; border-radius: 12px; font-size: .9rem; max-width: 90%; }
.chat-msg.user { align-self: flex-end; background: var(--brand); color: #fff; }
.chat-msg.assistant { align-self: flex-start; background: var(--surface-2); color: var(--text); }

/* Preset chooser strip */
.style-strip { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .4rem; }
.style-chip { flex: 0 0 auto; width: 86px; cursor: pointer; text-align: center; }
.style-chip .thumb { width: 86px; height: 64px; border-radius: 10px; background: var(--surface-2) center/cover; border: 2px solid transparent; }
.style-chip.active .thumb { border-color: var(--brand); }
.style-chip span { font-size: .72rem; color: var(--text-soft); display: block; margin-top: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Pricing */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.plan.popular { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.plan .badge-pop { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }
.plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.3rem; display: flex; flex-direction: column; gap: .55rem; }
.plan ul li { font-size: .9rem; color: var(--text-soft); padding-left: 1.4rem; position: relative; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.billing-toggle { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: .25rem; gap: .25rem; margin: 0 auto 2rem; }
.billing-toggle button { border: 0; background: transparent; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--text-soft); cursor: pointer; }
.billing-toggle button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Reels */
.reels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.reel-card { aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden; position: relative; background: linear-gradient(160deg, #2a2a35, #14141a); display: flex; align-items: end; }
.reel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.reel-card .reel-meta { position: relative; padding: .9rem; color: #fff; z-index: 1; background: linear-gradient(transparent, rgba(0,0,0,.7)); width: 100%; }
.reel-card .reel-meta h4 { color: #fff; font-size: .92rem; margin: 0; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.post-card { display: flex; flex-direction: column; }
.post-card .post-cover { aspect-ratio: 16/9; background: var(--surface-2) center/cover; }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { margin-bottom: .5rem; }
.article .article-body { font-size: 1.06rem; color: #2a2a33; }
.article .article-body h2 { margin-top: 2rem; }
.article .article-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article .article-body ul, .article .article-body ol { color: #2a2a33; }

/* Forms / auth */
.auth-wrap { max-width: 420px; margin: 3rem auto; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }

/* Flash messages */
.flashes { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 100; width: min(92%, 480px); display: flex; flex-direction: column; gap: .5rem; }
.flash { padding: .75rem 1rem; border-radius: 10px; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow); animation: slidein .2s ease; }
.flash.success { background: #e7f7ee; color: #1c7d4d; }
.flash.danger { background: #fdeaea; color: #b42318; }
.flash.warning { background: #fef3e2; color: #9a6700; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 2rem; background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-col h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .7rem; }
.footer-col a { display: block; color: var(--text-soft); font-size: .9rem; padding: .2rem 0; }
.footer-bottom { margin-top: 2rem; font-size: .82rem; color: var(--muted); }

/* Stat blocks */
.stat-row { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat { }
.stat .num { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.stat .lbl { font-size: .82rem; color: var(--muted); }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }

/* Landing page */
.hero-note { font-size: .85rem; margin-top: .9rem; }
.hero-strip-wrap { margin-top: 2.5rem; overflow: hidden; }
.hero-strip { display: flex; gap: .9rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.hero-strip::-webkit-scrollbar { display: none; }
.hero-shot { flex: 0 0 auto; width: 200px; aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); box-shadow: var(--shadow-sm); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }

.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); padding: 1.6rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.trust-grid .num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.trust-grid .lbl { font-size: .85rem; color: var(--muted); }

.section-intro { max-width: 620px; margin: 0 auto 2.4rem; }
.section-intro p { font-size: 1.05rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.feature { padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-ico { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature-ico svg { width: 22px; height: 22px; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: .35rem; }
.feature p { margin: 0; font-size: .92rem; }

.how-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps .step { position: relative; padding: 1.6rem 1.4rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; margin-bottom: .8rem; }
.steps .step h3 { margin-bottom: .3rem; }
.steps .step p { margin: 0; font-size: .92rem; }

.usecases .usecase { display: flex; flex-direction: column; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.usecases .usecase:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.usecases .usecase h3 { color: var(--text); }
.usecases .usecase p { font-size: .92rem; }
.usecase-link { margin-top: auto; color: var(--brand); font-weight: 600; font-size: .9rem; }

.cta-band { }
.cta-inner { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-radius: calc(var(--radius) + 4px); padding: 2.6rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; box-shadow: var(--shadow); }
.cta-inner h2, .cta-inner p { color: #fff; }
.cta-inner h2 { margin-bottom: .5rem; }
.cta-inner p { margin: 0; opacity: .92; max-width: 560px; }
.cta-inner .cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cta-inner .btn-primary { background: #fff; color: var(--brand); }
.cta-inner .btn-primary:hover { background: #f3f1ff; }
.cta-inner .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-inner .btn-ghost:hover { background: rgba(255,255,255,.12); }

.faq-wrap { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 0 1.1rem; }
.faq-item summary { list-style: none; cursor: pointer; font-weight: 600; padding: 1rem 0; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--muted); margin-left: 1rem; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 1rem; font-size: .94rem; }

.final-cta { text-align: center; }
.final-cta .hero-cta { justify-content: center; margin-top: 1.4rem; }

/* Share widget */
.share-widget { margin-top: 1.1rem; }
.share-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .5rem; }
.share-label { font-size: .82rem; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.share-count { font-size: .8rem; color: var(--muted); }
.share-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 38px; min-width: 38px; padding: 0 .6rem; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); cursor: pointer; transition: all .15s ease; font-family: inherit; font-size: .85rem; font-weight: 600; }
.share-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--text); text-decoration: none; transform: translateY(-1px); }
.share-btn svg { width: 18px; height: 18px; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.share-btn-label { white-space: nowrap; }
.gallery-item { position: relative; }
.gallery-item:hover { text-decoration: none; }
.gallery-share { position: absolute; top: .55rem; right: .55rem; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(20,20,26,.6); color: #fff; opacity: 0; transition: opacity .15s ease; }
.gallery-item:hover .gallery-share { opacity: 1; }

/* Checklists (model + preset pages) */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.checklist li { position: relative; padding-left: 1.6rem; color: var(--text-soft); font-size: .95rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft); }
.checklist li::after { content: ""; position: absolute; left: 5px; top: .38rem; width: 5px; height: 8px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Model catalog grid + cards */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.model-card { overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.model-card:hover { transform: translateY(-3px); text-decoration: none; }
.model-cover { aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: var(--surface-2); position: relative; }
.model-cover-lg { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: var(--surface-2); border-radius: var(--radius); position: relative; min-height: 260px; }
.model-badge { position: absolute; top: .7rem; left: .7rem; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(20,20,26,.7); padding: .25rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.model-soon { position: absolute; top: .7rem; right: .7rem; font-size: .72rem; font-weight: 700; color: var(--text); background: rgba(255,255,255,.85); padding: .25rem .6rem; border-radius: 999px; }
.model-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.model-head h3 { margin: 0 0 .25rem; font-size: 1.05rem; }

/* Studio model selector */
.model-select-field { margin-bottom: 1rem; }
.model-select-head { display: flex; align-items: center; justify-content: space-between; }
.model-select-link { font-size: .8rem; }
.model-select { display: flex; gap: .5rem; overflow-x: auto; padding: .15rem 0 .5rem; }
.model-pick { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .55rem .75rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-family: inherit; text-align: left; transition: all .15s ease; }
.model-pick:hover { border-color: var(--brand); }
.model-pick.active { border-color: var(--brand); background: var(--brand-soft); }
.model-pick-name { font-size: .9rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.model-pick-vendor { font-size: .72rem; color: var(--text-soft); }
.model-select-note { font-size: .8rem; color: var(--text-soft); margin: .1rem 0 0; min-height: 1.1em; }
.field-hint { font-size: .78rem; color: var(--text-soft); margin: .35rem 0 0; }
.result-model { font-size: .82rem; }
.model-detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.model-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }

/* App landing + tool */
.app-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; margin-top: .5rem; }
.app-hero-copy h1 { margin: .4rem 0 .6rem; }
.app-tool { position: sticky; top: 80px; }
.app-tool-title { font-size: 1.1rem; margin: 0 0 1rem; }
.app-field .req { color: var(--brand); }
.app-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; }
.app-thumb { width: 64px; height: 64px; border-radius: 8px; background-size: cover; background-position: center; position: relative; border: 1px solid var(--border); }
.app-thumb-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: none; background: #14141a; color: #fff; cursor: pointer; font-size: .7rem; line-height: 1; }
.app-status.danger-text { color: #b42318; }
.app-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1rem; }
.app-results:empty { margin-top: 0; }
.app-result { overflow: hidden; }
.app-result img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }
.app-result-bar { display: flex; gap: .4rem; padding: .5rem; }
.how-step { position: relative; }
.how-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: .6rem; }
.how-step h3 { margin: 0 0 .35rem; font-size: 1.05rem; }

/* Explore sub-nav (unifies Apps / Presets / Filters under one topbar tab) */
.explore-bar { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 64px; z-index: 40; }
.explore-tabs { display: flex; gap: .5rem; overflow-x: auto; padding: .65rem 0; }
.explore-tab { flex: 0 0 auto; display: flex; flex-direction: column; padding: .45rem .9rem; border-radius: 10px; border: 1px solid transparent; color: var(--text); text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.explore-tab:hover { background: var(--surface-2); text-decoration: none; }
.explore-tab.active { border-color: var(--brand); background: var(--brand-soft); }

/* Help center */
.help-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.help-links { display: flex; flex-direction: column; gap: .3rem; margin-top: .8rem; }
.help-links a { font-size: .92rem; font-weight: 600; }
.faq-answer { padding: 0 0 1rem; font-size: .94rem; line-height: 1.6; color: var(--text-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: .55rem; }
.contact-points li { position: relative; padding-left: 1.6rem; color: var(--text-soft); font-size: .95rem; }
.contact-points li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); }
.danger-text { color: #b42318; font-weight: 600; }

/* Sign in with Google */
.oauth-divider { display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0; color: var(--text-soft); font-size: .85rem; }
.oauth-divider::before, .oauth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--border); font-weight: 600; padding: .7rem 1rem; border-radius: 10px; }
.btn-google:hover { background: var(--surface-2); text-decoration: none; }
.btn-google svg { width: 18px; height: 18px; }

/* Email verification banner */
.verify-banner { background: #fff7e6; border-bottom: 1px solid #f3e3bd; color: #6b4e00; }
.verify-banner .container { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; flex-wrap: wrap; font-size: .9rem; }
.verify-banner form { margin: 0; }
.verify-banner .btn { padding: .35rem .8rem; }
.explore-tab-name { font-weight: 700; font-size: .95rem; }
.explore-tab-desc { font-size: .76rem; color: var(--text-soft); }

/* ============================================================
   Upload zone (drag and drop file inputs)
   ============================================================ */
.upload-zone { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 120px; padding: 1.1rem; border: 1.5px dashed var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
/* Hide the native "Choose file" control; the wrapping label still opens it. */
.upload-zone input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.upload-zone:hover { border-color: var(--brand); }
.upload-zone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.upload-zone-inner { display: flex; flex-direction: column; align-items: center; gap: .2rem; pointer-events: none; }
.upload-zone-ico { width: 26px; height: 26px; color: var(--brand); margin-bottom: .25rem; }
.upload-zone-title { font-size: .9rem; font-weight: 600; color: var(--text); }
.upload-zone-title u { color: var(--brand); text-decoration: none; border-bottom: 1px solid currentColor; }
.upload-zone-hint { font-size: .76rem; color: var(--muted); }
.upload-zone-files { font-size: .8rem; color: var(--brand); font-weight: 600; margin-top: .3rem; }

/* ============================================================
   Studio - chat-style surface
   ============================================================ */
.studio-chat { display: flex; flex-direction: column; height: calc(100vh - 64px); height: calc(100dvh - 64px); position: relative; background: var(--bg); }
.stage { flex: 1; overflow-y: auto; position: relative; }
.stage-banner { max-width: 820px; margin: 1rem auto 0; padding: .8rem 1rem; background: var(--brand-soft); color: var(--text); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .92rem; }
.feed { max-width: 820px; margin: 0 auto; padding: 1.5rem 1.25rem 2rem; display: flex; flex-direction: column; gap: 1.2rem; }

.feed-empty { text-align: center; padding: clamp(1.5rem, 9vh, 5rem) 1rem 2rem; }
.feed-empty-mark { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 1.2rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow); }
.feed-empty h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .4rem; }
.feed-empty p { max-width: 460px; margin: 0 auto; }
.suggestion-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.4rem; }
.suggestion { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1rem; font-size: .88rem; color: var(--text); cursor: pointer; font-family: inherit; transition: all .15s ease; }
.suggestion:hover { border-color: var(--brand); color: var(--brand); }

.feed-msg { display: flex; flex-direction: column; }
.feed-msg.user { align-items: flex-end; }
.feed-msg.bot { align-items: flex-start; }
.user-bubble { background: var(--brand); color: #fff; border-radius: 16px 16px 4px 16px; padding: .6rem .9rem; max-width: 80%; display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.user-bubble-thumb { width: 42px; height: 42px; border-radius: 8px; background-size: cover; background-position: center; flex: none; }
.bot-bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 16px 16px 16px 4px; padding: .7rem 1rem; max-width: 85%; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; font-size: .95rem; color: var(--text); }

.gen-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; max-width: 460px; box-shadow: var(--shadow-sm); }
.gen-card img { width: 100%; display: block; }
.gen-card-bar { display: flex; gap: .4rem; padding: .6rem; flex-wrap: wrap; }
.gen-model { display: block; padding: 0 .7rem .6rem; font-size: .76rem; color: var(--muted); }
.gen-caption { max-width: 460px; font-size: .85rem; color: var(--text-soft); margin: .5rem 0 0; }
.gen-card.loading { position: relative; width: 420px; max-width: 100%; aspect-ratio: 1/1; }
.gen-skeleton { position: absolute; inset: 0; background: linear-gradient(110deg, var(--surface-2) 8%, var(--border) 20%, var(--surface-2) 34%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.gen-loading-label { position: absolute; left: 0; right: 0; bottom: 1rem; text-align: center; font-size: .82rem; color: var(--text-soft); padding: 0 1rem; z-index: 1; }
@keyframes shimmer { to { background-position-x: -200%; } }

.drop-overlay { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(91, 75, 255, .08); backdrop-filter: blur(2px); z-index: 5; pointer-events: none; }
.drop-overlay.show { display: flex; }
.drop-overlay-inner { border: 2px dashed var(--brand); color: var(--brand); background: var(--surface); border-radius: 16px; padding: 1.5rem 2.5rem; font-weight: 700; }

/* Composer */
.composer-wrap { flex: none; padding: .4rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; background: linear-gradient(to top, var(--bg) 55%, transparent); }
.composer { width: 100%; max-width: 760px; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: .55rem .55rem .45rem; }
.composer-attach { display: flex; align-items: center; gap: .6rem; padding: .25rem .35rem .5rem; }
.attach-chip { width: 48px; height: 48px; border-radius: 10px; background-size: cover; background-position: center; position: relative; border: 1px solid var(--border); flex: none; }
.attach-chip-x { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; border: none; background: #14141a; color: #fff; cursor: pointer; font-size: .85rem; line-height: 1; }
.attach-label { font-size: .82rem; color: var(--text-soft); }
.composer-main { display: flex; align-items: flex-end; gap: .35rem; }
.composer-input { flex: 1; border: none; resize: none; background: transparent; font-family: inherit; font-size: 1rem; line-height: 1.45; padding: .55rem .4rem; max-height: 200px; outline: none; color: var(--text); }
.composer-attach-btn, .composer-tool, .composer-send { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-soft); cursor: pointer; flex: none; transition: background .15s ease, color .15s ease; }
.composer-attach-btn:hover, .composer-tool:hover { background: var(--surface-2); color: var(--text); }
.composer-attach-btn svg, .composer-tool svg, .composer-send svg { width: 20px; height: 20px; }
.composer-tool.active { background: var(--brand-soft); color: var(--brand); }
.composer-send { background: var(--brand); color: #fff; }
.composer-send:hover { background: #4a3aef; }
.composer-send.busy { opacity: .55; pointer-events: none; }
.composer-meta { display: flex; align-items: center; gap: .4rem; padding: .4rem .3rem 0; flex-wrap: wrap; }
.meta-pill { font-size: .78rem; font-weight: 600; color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .25rem .65rem; cursor: pointer; font-family: inherit; }
.meta-pill:hover { color: var(--text); }
.meta-pill.toggle.active { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.meta-cost { font-size: .76rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: .25rem .6rem; white-space: nowrap; }
.meta-cost:empty { display: none; }
.composer-hint { margin-left: auto; font-size: .72rem; color: var(--muted); }

/* Option (resolution/quality) chips in the settings popover */
.option-strip { display: flex; gap: .5rem; flex-wrap: wrap; }
.option-chip { display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 64px; padding: .4rem .6rem; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text-soft); cursor: pointer; font-family: inherit; }
.option-chip span { font-size: .82rem; font-weight: 600; }
.option-chip small { font-size: .68rem; color: var(--muted); }
.option-chip:hover { color: var(--text); }
.option-chip.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.option-chip.active small { color: var(--brand); }

.settings-popover { position: absolute; left: 0; right: 0; bottom: calc(100% + .6rem); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 1rem 1.1rem; max-height: 62vh; overflow: auto; }
.settings-section { margin-bottom: 1rem; }
.settings-section:last-child { margin-bottom: 0; }
.settings-head { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.settings-link { font-size: .78rem; }
.switch-line { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text); cursor: pointer; }

/* Theme switcher */
.theme-switch { position: relative; }
.theme-switch-btn { display: inline-flex; align-items: center; gap: .4rem; background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: .35rem .7rem; font-family: inherit; font-size: .82rem; font-weight: 600; color: var(--text-soft); cursor: pointer; }
.theme-switch-btn:hover { color: var(--text); }
.theme-dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.theme-menu { position: absolute; right: 0; top: calc(100% + .4rem); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: .3rem; display: none; min-width: 168px; z-index: 60; }
.theme-switch.open .theme-menu { display: block; }
.theme-opt { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 8px; padding: .5rem .7rem; font-family: inherit; font-size: .9rem; color: var(--text); cursor: pointer; }
.theme-opt:hover { background: var(--surface-2); }
.theme-opt.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ============================================================
   Theme: Hand of Adam (Michelangelo / Sistine fresco)
   ============================================================ */
[data-theme="adam"] {
  --bg: #efe6d6;
  --surface: #faf5ea;
  --surface-2: #ece0cc;
  --border: #ddcdb2;
  --text: #3a2c1f;
  --text-soft: #6f5b46;
  --muted: #9b876e;
  --brand: #b8893b;
  --brand-2: #8c5a2b;
  --brand-soft: #f0e2c6;
  --accent: #5b7fa6;
  --shadow-sm: 0 1px 2px rgba(58, 44, 31, .07);
  --shadow: 0 12px 34px rgba(58, 44, 31, .14);
}
[data-theme="adam"] body {
  background:
    radial-gradient(1200px 620px at 78% -12%, rgba(255, 240, 200, .6), transparent 55%),
    radial-gradient(900px 520px at 8% 0%, rgba(140, 90, 43, .1), transparent 52%),
    var(--bg);
  background-attachment: fixed;
}
[data-theme="adam"] h1, [data-theme="adam"] h2, [data-theme="adam"] h3, [data-theme="adam"] h4, [data-theme="adam"] .brand, [data-theme="adam"] .feed-empty h1 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}
[data-theme="adam"] h1 { font-weight: 700; }
[data-theme="adam"] .nav { background: rgba(250, 245, 234, .85); }
[data-theme="adam"] .hero { background: radial-gradient(820px 380px at 50% 0%, rgba(184, 137, 59, .16), transparent 70%); }
[data-theme="adam"] .btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
[data-theme="adam"] .btn-primary:hover { background: linear-gradient(135deg, #c2974a, #7a4f26); }
[data-theme="adam"] .composer-send { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

/* ============================================================
   Theme: Sky World (bright, gamified)
   ============================================================ */
[data-theme="sky"] {
  --bg: #eaf4ff;
  --surface: #ffffff;
  --surface-2: #e3efff;
  --border: #cfe4fb;
  --text: #15324d;
  --text-soft: #3f5f7e;
  --muted: #7892ad;
  --brand: #2e8bff;
  --brand-2: #7c5cff;
  --brand-soft: #d8e9ff;
  --accent: #ffb020;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 6px rgba(46, 139, 255, .1);
  --shadow: 0 14px 36px rgba(46, 139, 255, .18);
}
[data-theme="sky"] body {
  background: linear-gradient(180deg, #cfe8ff 0%, #eaf4ff 45%, #f6fbff 100%);
  background-attachment: fixed;
}
[data-theme="sky"] h1, [data-theme="sky"] h2, [data-theme="sky"] h3, [data-theme="sky"] h4, [data-theme="sky"] .brand, [data-theme="sky"] .feed-empty h1 {
  font-family: "Baloo 2", var(--font);
  letter-spacing: 0;
}
[data-theme="sky"] .nav { background: rgba(234, 244, 255, .8); }
[data-theme="sky"] .hero {
  background:
    radial-gradient(220px 90px at 20% 28%, #fff 60%, transparent 62%),
    radial-gradient(180px 70px at 80% 18%, #fff 60%, transparent 62%),
    radial-gradient(150px 64px at 62% 56%, rgba(255, 255, 255, .9) 60%, transparent 62%);
}
[data-theme="sky"] .btn { border-radius: 999px; }
[data-theme="sky"] .btn-primary, [data-theme="sky"] .composer-send { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
[data-theme="sky"] .card, [data-theme="sky"] .composer, [data-theme="sky"] .gen-card, [data-theme="sky"] .settings-popover { border-radius: 20px; }
[data-theme="sky"] .pill, [data-theme="sky"] .suggestion { border-radius: 999px; }

/* Responsive */
@media (max-width: 980px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .app-hero { grid-template-columns: 1fr; }
  .app-tool { position: static; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .studio { grid-template-columns: 1fr; }
  .studio-panel { position: static; }
}
@media (max-width: 720px) {
  .model-grid { grid-template-columns: 1fr; }
  .model-detail-hero, .model-two-col { grid-template-columns: 1fr; }
  .feature-grid, .steps.grid-3, .usecases { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .cta-inner { padding: 1.8rem; }
  .hero-shot { width: 150px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: .5rem; border-bottom: 1px solid var(--border); gap: .1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .9rem; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-right .btn-text { display: none; }
  .grid-3, .grid-4, .plan-grid, .post-grid { grid-template-columns: 1fr; }
  .reels-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 2.5rem 0; }
  .theme-switch-label { display: none; }
  .composer-hint { display: none; }
  .gen-card, .gen-caption { max-width: 100%; }
  .feed { padding: 1rem .9rem 1.5rem; }
  .composer-wrap { padding: .3rem .9rem .8rem; }
}
