/* gpttools2u Studio — single hand-written stylesheet. No frameworks, no CDN. */
:root {
  --bg: #08080d;
  --bg-soft: #0d0d15;
  --surface: #12121c;
  --panel: #171724;
  --panel-2: #1d1d2c;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4fa;
  --muted: #9b9bb0;
  --muted-2: #6f6f85;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --success: #34d399;
  --danger: #fb7185;
  --warning: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(700px 420px at 90% 0%, rgba(34, 211, 238, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--bg-soft); border: 1px solid var(--border); padding: 1rem; border-radius: var(--radius-sm); overflow: auto; }

.page { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; padding: 2.2rem 0 4rem; }
.page-wide { width: min(1440px, calc(100% - 2rem)); }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 13, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto; min-height: 68px;
  display: flex; align-items: center; gap: 1.2rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); font-weight: 700; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff; font-size: 0.8rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset;
}
.brand-logo { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; flex: 1; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); padding: 0.45rem 0.7rem; border-radius: 8px;
  font-size: 0.92rem; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); text-decoration: none; }
.nav-links a.is-active { color: var(--text); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.inline-form { display: inline; margin: 0; }
.credit-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 0.82rem; font-weight: 600;
}
.credit-pill:hover { text-decoration: none; border-color: var(--border-strong); }
.credit-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.72rem 1.15rem; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.94rem;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #5b46e0); color: #fff; box-shadow: 0 10px 30px rgba(124, 92, 255, 0.28); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--panel-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-danger { background: rgba(251, 113, 133, 0.14); color: var(--danger); border-color: rgba(251,113,133,0.3); }
.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.82rem; border-radius: 8px; }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }

/* ---------- Alerts ---------- */
.alert {
  padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  margin: 0 0 1.2rem; font-size: 0.92rem;
}
.alert-success { border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.09); color: #a7f3d0; }
.alert-error { border-color: rgba(251,113,133,0.35); background: rgba(251,113,133,0.09); color: #fecdd3; }
.alert-info { border-color: rgba(34,211,238,0.3); background: rgba(34,211,238,0.08); color: #a5f3fc; }
.alert-warning { border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.09); color: #fde68a; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 3rem; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 1rem;
}
.hero h1 span { background: linear-gradient(120deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-meta { display: flex; gap: 1.4rem; margin-top: 2rem; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.hero-visual { position: relative; }
.phone-frame {
  aspect-ratio: 9 / 16; max-height: 520px; margin-left: auto;
  border-radius: 28px; border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, #1b1636, #0d0d15 60%);
  box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.phone-screen {
  position: absolute; inset: 14px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #2b1d63, #0e0b1f 55%, #062a33);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem;
}
.hero-badge {
  position: absolute; left: -18px; bottom: 42px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.7rem 0.9rem; box-shadow: var(--shadow);
  font-size: 0.8rem; color: var(--muted);
}
.hero-badge strong { display: block; color: var(--text); font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 3.2rem 0; }
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.eyebrow-sm { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }
.card-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2); font-size: 1.15rem; margin-bottom: 1rem;
  border: 1px solid rgba(124,92,255,0.25);
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; counter-reset: step; }
.step { position: relative; padding: 1.4rem 1.4rem 1.4rem 4.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.2rem; top: 1.2rem;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(124,92,255,0.3);
}
.step h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.4rem; position: relative;
}
.price-card.is-featured { border-color: rgba(124,92,255,0.55); box-shadow: 0 0 0 1px rgba(124,92,255,0.25), 0 20px 50px rgba(124,92,255,0.12); }
.price-card .pack-name { font-weight: 700; font-size: 1.05rem; }
.price-card .credits { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.price-card .price { color: var(--muted); font-size: 0.9rem; }
.price-card .price strong { color: var(--text); font-size: 1.1rem; }
.price-card .btn { margin-top: 1rem; }
.badge-featured {
  position: absolute; top: -10px; right: 14px;
  background: linear-gradient(135deg, var(--accent), #4f46e5); color: #fff;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}

/* ---------- Testimonials / lead magnet ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.quote p { font-size: 0.95rem; color: var(--text); }
.quote .who { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.82rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font-weight: 700; color: var(--accent-2); font-size: 0.75rem; }

.lead-band {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center;
  background: linear-gradient(135deg, rgba(124,92,255,0.16), rgba(34,211,238,0.07));
  border: 1px solid rgba(124,92,255,0.3); border-radius: 22px; padding: 2.2rem;
}
.lead-band h2 { margin-bottom: 0.4rem; }
.lead-band p { color: var(--muted); margin-bottom: 0; }
.lead-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.lead-form input[type=email] { flex: 1; min-width: 200px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 0.35rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: 0.7rem 0.8rem;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px;
  font: inherit; font-size: 0.94rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,0.18); }
textarea { min-height: 120px; resize: vertical; }
input[type=color] { width: 100%; height: 40px; padding: 0.2rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 9px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.check input { width: auto; }
.form-note { font-size: 0.8rem; color: var(--muted-2); margin-top: 0.3rem; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 2rem 0; }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.7rem; }
.auth-card .muted { font-size: 0.9rem; }
.auth-foot { text-align: center; margin-top: 1.2rem; font-size: 0.88rem; color: var(--muted); }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.stat .label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); font-weight: 700; }
.stat .value { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 0.2rem; }
.stat .sub { font-size: 0.8rem; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2, .panel-head h3 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 1.2rem; align-items: start; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
td .thumb { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-soft); }
.badge { display: inline-block; padding: 0.18rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-green { background: rgba(52,211,153,0.14); color: #6ee7b7; }
.badge-red { background: rgba(251,113,133,0.14); color: #fda4af; }
.badge-amber { background: rgba(251,191,36,0.14); color: #fcd34d; }
.badge-blue { background: rgba(34,211,238,0.14); color: #67e8f9; }
.badge-grey { background: rgba(255,255,255,0.07); color: var(--muted); }
.empty { padding: 2.4rem 1rem; text-align: center; color: var(--muted); }

/* ---------- Studio ---------- */
.studio-shell { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.studio-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.studio-panel h2 { font-size: 1.05rem; margin-bottom: 0.9rem; }
.studio-panel h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin: 1.3rem 0 0.6rem; }
.studio-panel h3:first-child { margin-top: 0; }
.studio-stage { position: sticky; top: 84px; }
.canvas-wrap {
  background: #05050a; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem; display: grid; place-items: center; min-height: 300px;
}
.canvas-wrap canvas { max-width: 100%; max-height: 68vh; border-radius: 10px; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin-top: 0.9rem; flex-wrap: wrap; }
.stage-meta { font-size: 0.8rem; color: var(--muted); }
.progress { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.15s linear; }
.progress-label { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }
.export-box { margin-top: 1rem; padding: 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-soft); }
.export-box .mime { font-size: 0.8rem; color: var(--muted); }
.export-box .mime strong { color: var(--accent-2); }

.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 0.7rem; }
.upload-item { position: relative; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.upload-item img { width: 100%; height: 64px; object-fit: cover; }
.upload-item .cap { width: 100%; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 0.3rem 0.35rem; font-size: 0.7rem; background: var(--panel); }
.upload-item .tools { display: flex; gap: 2px; padding: 2px; background: var(--panel); }
.upload-item .tools button { flex: 1; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.7rem; padding: 0.2rem; border-radius: 4px; }
.upload-item .tools button:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.upload-item .tools button.del:hover { color: var(--danger); }
.upload-empty { grid-column: 1 / -1; padding: 1rem; text-align: center; color: var(--muted-2); font-size: 0.82rem; border: 1px dashed var(--border); border-radius: 8px; }

.seg { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.seg button {
  flex: 1; min-width: 70px; padding: 0.5rem 0.4rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--muted);
  font: inherit; font-size: 0.78rem; cursor: pointer;
}
.seg button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.seg button:hover { color: var(--text); }

.scene-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 320px; overflow: auto; padding-right: 0.2rem; }
.scene-row { border: 1px solid var(--border); border-radius: 8px; padding: 0.55rem 0.6rem; background: var(--bg-soft); }
.scene-row .scene-text { font-size: 0.8rem; color: var(--text); margin-bottom: 0.35rem; }
.scene-row .scene-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.7rem; color: var(--muted-2); }
.scene-row select { width: auto; padding: 0.25rem 0.4rem; font-size: 0.72rem; }
.scene-warn { color: var(--warning); font-size: 0.82rem; margin-top: 0.5rem; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--bg-soft); border-right: 1px solid var(--border); padding: 1.2rem 0.9rem; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin-side .brand { margin: 0 0.4rem 1.4rem; }
.admin-side nav { display: flex; flex-direction: column; gap: 0.15rem; }
.admin-side nav a { color: var(--muted); padding: 0.55rem 0.7rem; border-radius: 8px; font-size: 0.88rem; font-weight: 500; }
.admin-side nav a:hover { background: rgba(255,255,255,0.05); color: var(--text); text-decoration: none; }
.admin-side nav a.is-active { background: var(--accent-soft); color: var(--text); }
.admin-side .side-foot { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--muted-2); }
.admin-main { padding: 1.6rem 1.8rem 3rem; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.admin-head h1 { font-size: 1.7rem; margin: 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.kpi .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); font-weight: 700; }
.kpi .value { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.kpi .sub { font-size: 0.76rem; color: var(--muted); }
.tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.6rem; }
.tabs a { padding: 0.4rem 0.7rem; border-radius: 8px; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.tabs a.is-active { background: var(--accent-soft); color: var(--text); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.filter-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filter-bar .field { margin: 0; min-width: 150px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.detail-grid .full { grid-column: 1 / -1; }
.payload { max-height: 320px; overflow: auto; font-size: 0.78rem; white-space: pre-wrap; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 2rem; }
.footer-inner { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; padding: 2.6rem 0 1.6rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; max-width: 34ch; margin-top: 0.7rem; }
.footer-col h4 { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 0.7rem; }
.footer-col a { display: block; color: var(--muted); font-size: 0.88rem; padding: 0.18rem 0; }
.footer-col a:hover { color: var(--text); }
.footer-affiliate {
  width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto 1.2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.2rem; border: 1px solid rgba(124,92,255,0.3); border-radius: 12px;
  background: rgba(124,92,255,0.08); font-size: 0.9rem; color: var(--muted);
}
.footer-bottom {
  width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; padding: 1rem 0 2rem;
  border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--muted-2);
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.6rem; } .mb-2 { margin-bottom: 1.2rem; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; } .wrap { flex-wrap: wrap; } .gap { gap: 0.7rem; }
.text-right { text-align: right; } .text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none !important; }
.legal { max-width: 760px; }
.legal h2 { margin-top: 2rem; font-size: 1.3rem; }
.legal p, .legal li { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .studio-shell { grid-template-columns: 1fr; }
  .studio-stage { position: static; }
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero-visual { display: none; }
  .feature-grid, .steps, .quote-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid, .kpi-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-side nav { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; padding: 0.6rem 0; gap: 0.6rem; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav-actions { margin-left: auto; }
  .feature-grid, .steps, .quote-grid, .stat-grid, .kpi-grid, .field-row, .field-row-3, .detail-grid { grid-template-columns: 1fr; }
  .lead-band { grid-template-columns: 1fr; padding: 1.4rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.4rem; }
  .page { width: calc(100% - 1.6rem); }
  .admin-main { padding: 1.2rem 1rem 2rem; }
  .upload-grid { grid-template-columns: repeat(2, 1fr); }
}

/* AI scene rows */
.scene-row { display: flex; gap: 0.6rem; align-items: flex-start; }
.scene-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--border); flex: 0 0 auto; }
.scene-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-body { flex: 1 1 auto; min-width: 0; }
.scene-row .scene-meta { flex-wrap: wrap; justify-content: flex-start; }
