/* ALN Hub — design system for the commercial site, auth, checkout, dashboard and admin. */
@font-face { font-family: 'Sora'; src: url('/assets/fonts/sora.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #07070c; --bg-2: #0c0c14; --surface: #11111b; --surface-2: #171724; --surface-3: #1f1f2f;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #f4f4f8; --muted: #a6a6bb; --faint: #6f6f86;
  --lime: #dafa73; --lime-ink: #10120a; --violet: #7655f6; --violet-2: #a18bff; --pink: #ff7eb6; --cyan: #5ee7ff;
  --series-1: #7a9e1e; --series-2: #8466f5; --ok: #4ade80; --warn: #fbbf24; --danger: #ff6b6b;
  --radius: 20px; --radius-sm: 12px; --radius-lg: 28px;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 72px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body.app-body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.025em; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--violet); color: #fff; }
.ui-icon { width: 20px; height: 20px; flex: none; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nojs-note { margin: 0; padding: 12px; text-align: center; background: var(--surface); color: var(--muted); }
.grad { background: linear-gradient(100deg, var(--lime) 0%, #b5f0a0 30%, var(--violet-2) 70%, var(--pink) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; max-width: 62ch; }
.fineprint { color: var(--faint); font-size: 13px; margin-top: 16px; }
.center { text-align: center; margin-inline: auto; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .ui-icon { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease; -webkit-tap-highlight-color: transparent; }
.btn .ui-icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 30px rgba(218,250,115,.22), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(218,250,115,.32), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-violet { background: var(--violet); color: #fff; box-shadow: 0 10px 30px rgba(118,85,246,.35); }
.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); }
.btn-dark { background: var(--surface-3); color: var(--text); border-color: var(--line); }
.btn-danger { background: rgba(255,107,107,.12); color: #ffb4b4; border-color: rgba(255,107,107,.35); }
.btn-danger:hover { background: rgba(255,107,107,.2); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn-xs { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 9px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; border-radius: 12px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--lime-ink) transparent var(--lime-ink) transparent; animation: spin .8s linear infinite; }
.btn-ghost.is-loading::after, .btn-dark.is-loading::after { border-color: #fff transparent #fff transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: rgba(7,7,12,.72); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-bottom: 1px solid var(--line); }
.header-row { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--violet), var(--lime)); box-shadow: 0 6px 18px rgba(118,85,246,.35); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-word { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.brand-word b { color: var(--lime); }
.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-nav > a:not(.btn) { padding: 10px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: color .15s, background .15s; }
.primary-nav > a:not(.btn):hover, .primary-nav > a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.05); }
.primary-nav .btn { margin-left: 8px; min-height: 42px; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.locale-switch { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.locale-option { width: 34px; height: 28px; display: grid; place-items: center; border-radius: 8px; opacity: .5; transition: opacity .15s, background .15s; }
.locale-option.is-active, .locale-option:hover { opacity: 1; background: rgba(255,255,255,.08); }
.country-flag { width: 22px; height: 16px; display: block; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .header-tools { margin-left: auto; }
  .primary-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 16px 32px; background: rgba(7,7,12,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease, visibility .22s; overflow-y: auto; }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav > a:not(.btn) { font-size: 20px; font-family: var(--font-display); padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); }
  .primary-nav .btn { margin: 18px 0 0; min-height: 54px; font-size: 16px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero, .page-hero, .error-page { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(118,85,246,.28), transparent 70%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%); }
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: drift 22s ease-in-out infinite alternate; }
.hero-bg i:nth-child(1) { width: 520px; height: 520px; left: -160px; top: -120px; background: var(--violet); }
.hero-bg i:nth-child(2) { width: 420px; height: 420px; right: -120px; top: 80px; background: #2b7fff; opacity: .28; animation-delay: -7s; }
.hero-bg i:nth-child(3) { width: 360px; height: 360px; left: 40%; bottom: -220px; background: var(--lime); opacity: .14; animation-delay: -14s; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.hero-lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .ui-icon { width: 18px; height: 18px; color: var(--lime); }
.pill-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--text); }
.pill-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(218,250,115,.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(218,250,115,0); } }

/* ---------- Device + playground ---------- */
.device { position: relative; width: 300px; aspect-ratio: 9 / 19; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2a2a3a, #0d0d14 40%, #22222f); box-shadow: 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.05), 0 40px 100px rgba(0,0,0,.6), 0 0 120px rgba(118,85,246,.18); flex: none; }
.device-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; transform: translateZ(0); }
.device-screen > .hp { position: absolute; inset: 0; }
.device-notch { position: absolute; z-index: 3; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; }
.device-hero { width: min(330px, 78vw); }
.device-sm { width: 236px; border-radius: 38px; padding: 9px; }
.device-sm .device-screen { border-radius: 30px; }
.device-sm .device-notch { width: 70px; height: 20px; top: 16px; }
.playground { display: grid; justify-items: center; gap: 22px; }
.playground-stage { position: relative; display: grid; place-items: center; padding: 10px 40px; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(23,23,36,.78); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite; }
.float-card .ui-icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(218,250,115,.14); color: var(--lime); }
.float-card span { display: grid; line-height: 1.2; }
.float-card b { font-family: var(--font-display); font-size: 15px; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-a { left: -10px; top: 22%; }
.float-b { right: -14px; bottom: 18%; animation-delay: -3s; }
.float-b .ui-icon { background: rgba(118,85,246,.2); color: var(--violet-2); }
@keyframes bob { 50% { transform: translateY(-10px); } }
.playground-controls { width: min(440px, 100%); display: grid; gap: 12px; padding: 16px; border-radius: var(--radius); background: rgba(17,17,27,.75); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.playground-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--text); }
.playground-title .ui-icon { color: var(--lime); width: 18px; height: 18px; }
.pg-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; }
.pg-row > span { font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.pg-swatches, .pg-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.pg-swatches::-webkit-scrollbar, .pg-chips::-webkit-scrollbar { display: none; }
.pg-swatch { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; background: conic-gradient(var(--b) 0 33%, var(--c) 0 66%, var(--a) 0); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); transition: transform .15s; }
.pg-swatch:hover { transform: scale(1.08); }
.pg-swatch[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 3px rgba(218,250,115,.35); }
.pg-chip { flex: none; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pg-chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--faint); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-dark { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { justify-items: center; text-align: center; margin-inline: auto; }
.section-head h2, .page-hero h1 + .lead { }
.section h2 { font-size: clamp(30px, 4.2vw, 52px); }
.card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bento-card { position: relative; overflow: hidden; display: grid; align-content: start; gap: 10px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .25s ease, border-color .25s ease; }
.bento-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.bento-card h3 { font-size: 20px; }
.bento-card p { color: var(--muted); font-size: 15px; }
.bento-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(218,250,115,.1); color: var(--lime); border: 1px solid rgba(218,250,115,.2); }
.bento-icon .ui-icon { width: 22px; height: 22px; }
.bento-icon.wa { background: rgba(37,211,102,.12); color: #25d366; border-color: rgba(37,211,102,.25); }
.bento-wide { grid-column: span 2; }
.bento-violet { background: radial-gradient(120% 120% at 100% 0%, rgba(118,85,246,.45), transparent 60%), var(--surface); }
.bento-violet .bento-icon { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.bento-lime { background: radial-gradient(120% 120% at 100% 0%, rgba(218,250,115,.22), transparent 60%), var(--surface); }
.bento-dark { background: radial-gradient(120% 120% at 0% 100%, rgba(94,231,255,.18), transparent 60%), var(--surface); }
.showcase-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.showcase-item { margin: 0; display: grid; justify-items: center; gap: 14px; }
.showcase-item:nth-child(even) { transform: translateY(36px); }
.showcase-item figcaption { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: 14px; }
.steps-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-n { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--lime); }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--muted); }
.compare { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.compare-table { border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 600; }
.compare-row:last-child { border-bottom: 0; }
.compare-headrow { font-family: var(--font-display); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.02); }
.compare-row .them { color: var(--faint); font-size: 14px; }
.compare-row .them .ui-icon { color: var(--danger); }
.compare-row .us { color: var(--lime); font-family: var(--font-display); font-weight: 800; }
.compare-headrow .us { color: var(--lime); }
.price-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: radial-gradient(120% 140% at 0% 0%, rgba(118,85,246,.3), transparent 55%), var(--surface); border: 1px solid var(--line); }
.price-teaser h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 10px 0; }
.price-teaser-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mini-plan { display: grid; gap: 2px; padding: 18px 14px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); text-decoration: none; text-align: center; transition: transform .2s, border-color .2s; }
.mini-plan:hover { transform: translateY(-3px); border-color: var(--line-2); }
.mini-plan span { font-weight: 700; color: var(--muted); font-size: 13px; }
.mini-plan strong { font-family: var(--font-display); font-size: 20px; }
.mini-plan small { color: var(--faint); font-size: 12px; }
.mini-plan.is-featured { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.mini-plan.is-featured span, .mini-plan.is-featured small { color: rgba(16,18,10,.7); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.faq-grid h2 { margin: 12px 0; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq-list details[open] { border-color: var(--line-2); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.06); transition: transform .25s, background .25s; }
.faq-icon .ui-icon { width: 16px; height: 16px; }
details[open] .faq-icon { transform: rotate(45deg); background: var(--lime); color: var(--lime-ink); }
.faq-list details p { padding: 0 22px 22px; color: var(--muted); }
.cta-band { padding: 0 0 clamp(56px, 8vw, 110px); }
.cta-inner { position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; text-align: center; gap: 16px; padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px); border-radius: 36px; background: linear-gradient(135deg, #1b1340, #0f0f1a 60%); border: 1px solid var(--line-2); }
.cta-inner h2 { font-size: clamp(30px, 4.6vw, 56px); max-width: 18ch; }
.cta-inner p { color: var(--muted); }
.cta-glow { position: absolute; z-index: -1; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(ellipse at center, rgba(218,250,115,.25), transparent 60%); }

/* ---------- Page hero / pricing ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-hero .container { display: grid; gap: 18px; justify-items: start; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; letter-spacing: -.04em; max-width: 16ch; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.badges .ui-icon { width: 16px; height: 16px; color: var(--lime); }
.plans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; padding-bottom: 24px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.plan h2 { font-size: 26px; }
.plan-stage { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.plan-ribbon { position: absolute; top: -14px; left: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.plan-ribbon .ui-icon { width: 14px; height: 14px; }
.plan-summary { color: var(--muted); font-size: 15px; min-height: 3.2em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.04em; }
.plan-price span { color: var(--muted); font-weight: 600; }
.terms { display: grid; gap: 6px; }
.terms-2 { grid-template-columns: 1fr 1fr; }
.terms-3 { grid-template-columns: 1fr 1fr 1fr; }
.term { display: grid; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.term small { font-size: 11px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.term b { font-family: var(--font-display); font-size: 15px; }
.term em { font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.plan-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.plan-actions .btn { min-height: 44px; padding: 0 10px; font-size: 14px; }
.plan-intro { font-weight: 800; font-size: 13px; color: var(--text); margin-top: 6px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; color: #d7d7e4; line-height: 1.45; }
.checklist .ui-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--lime); }
.plan-featured { background: radial-gradient(140% 80% at 50% 0%, rgba(118,85,246,.35), transparent 60%), var(--surface-2); border-color: rgba(161,139,255,.5); box-shadow: 0 30px 80px rgba(118,85,246,.2); }
.plan-premium { background: radial-gradient(140% 80% at 50% 0%, rgba(218,250,115,.12), transparent 60%), var(--surface); }
.trial-chip { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(218,250,115,.08); border: 1px solid rgba(218,250,115,.2); }
.trial-chip b { font-family: var(--font-display); font-size: 30px; color: var(--lime); }
.trial-chip span { font-size: 13px; color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.plan-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14.5px; }
.plan-table th, .plan-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.plan-table thead th { position: sticky; top: 0; background: var(--surface-2); font-family: var(--font-display); font-size: 15px; }
.plan-table tbody th { text-align: left; font-weight: 600; color: #d7d7e4; }
.plan-table tbody tr:hover { background: rgba(255,255,255,.02); }
.plan-table .is-featured { background: rgba(118,85,246,.08); }
.plan-table .ok { color: var(--lime); display: inline-grid; }
.plan-table .no { color: var(--faint); }
.installment { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.installment h2 { margin: 12px 0; font-size: clamp(26px, 3.4vw, 40px); }
.equation { display: grid; justify-items: center; gap: 4px; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.equation b { font-family: var(--font-display); font-size: 22px; color: var(--muted); }
.equation span { color: var(--faint); font-weight: 700; }
.equation strong { font-family: var(--font-display); font-size: clamp(36px, 5vw, 52px); color: var(--lime); }
.equation small { font-size: 16px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { display: grid; gap: 16px; padding: clamp(22px, 4vw, 34px); }
.form-card h2 { font-size: 24px; }
.field { display: grid; gap: 7px; font-size: 14px; font-weight: 700; color: #d7d7e4; min-width: 0; }
.field small, .field-hint { font-weight: 500; font-size: 12.5px; color: var(--faint); }
.field input, .field select, .field textarea, .input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.035); color: var(--text); font-size: 16px; font-weight: 500; transition: border-color .15s, background .15s, box-shadow .15s; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--surface-2); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.22); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--lime); background: rgba(218,250,115,.04); box-shadow: 0 0 0 4px rgba(218,250,115,.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: .5; cursor: not-allowed; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 52px; }
.reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.reveal:hover { color: var(--text); background: rgba(255,255,255,.06); }
.pw-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-items: center; }
.pw-meter span { height: 5px; border-radius: 5px; background: rgba(255,255,255,.1); transition: background .2s; }
.pw-meter small { grid-column: 1 / -1; color: var(--faint); font-size: 12.5px; }
.pw-meter[data-score="1"] span:nth-child(-n+1), .pw-meter[data-score="2"] span:nth-child(-n+2) { background: var(--danger); }
.pw-meter[data-score="3"] span:nth-child(-n+3), .pw-meter[data-score="4"] span:nth-child(-n+4) { background: var(--warn); }
.pw-meter[data-score="5"] span { background: var(--ok); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lime); }
.check a { color: var(--lime); }
.form-message { min-height: 0; font-size: 14px; font-weight: 700; border-radius: 12px; }
.form-message:not(:empty) { padding: 12px 14px; }
.form-message.success { background: rgba(74,222,128,.1); color: #9ff0bd; border: 1px solid rgba(74,222,128,.25); }
.form-message.error { background: rgba(255,107,107,.1); color: #ffb4b4; border: 1px solid rgba(255,107,107,.3); }
.form-note { text-align: center; color: var(--faint); font-size: 13px; }
.form-alt { text-align: center; color: var(--muted); font-size: 14px; }
.form-alt a { color: var(--lime); font-weight: 700; }
.trial-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.trial-copy { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.trial-copy h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -.04em; }
.trial-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.trial-points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.trial-points .ui-icon { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: rgba(218,250,115,.1); color: var(--lime); }
.trial-points b { display: block; font-family: var(--font-display); }
.trial-points span { color: var(--muted); font-size: 14px; }

/* ---------- Features / trust / contact ---------- */
.feature-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-group { display: grid; gap: 12px; align-content: start; padding: 28px; }
.feature-group h2 { font-size: 24px; }
.feature-group > p { color: var(--muted); }
.editor-promo { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 48px; align-items: center; }
.editor-promo > div { display: grid; gap: 16px; justify-items: start; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust-card { display: grid; gap: 12px; align-content: start; padding: 26px; }
.trust-card h2 { font-size: 20px; }
.trust-card p { color: var(--muted); font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card { display: grid; gap: 12px; padding: 30px; text-decoration: none; transition: transform .2s, border-color .2s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.contact-card h2 { font-size: 24px; }
.contact-card p { color: var(--muted); }
.contact-card strong { font-family: var(--font-display); font-size: 20px; }
.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; flex-wrap: wrap; }
.contact-strip h2 { font-size: 24px; }
.contact-strip p { color: var(--muted); }
.error-page { min-height: 70vh; display: grid; align-items: center; padding: 80px 0; }
.error-inner { display: grid; gap: 18px; justify-items: start; }
.error-inner h1 { font-size: clamp(34px, 5vw, 58px); }
.error-code { font-family: var(--font-display); font-size: clamp(90px, 16vw, 180px); font-weight: 800; line-height: .9; letter-spacing: -.06em; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.02)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); transition: color .15s, border-color .15s; }
.footer-social a:hover { color: var(--lime); border-color: var(--line-2); }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col strong { font-family: var(--font-display); font-size: 14px; margin-bottom: 4px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 14.5px; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--text); }
.footer-col .ui-icon { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.footer-bottom a { color: var(--muted); }

/* ---------- Auth & checkout ---------- */
.auth-page { min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); display: grid; align-items: center; padding: 40px 0 64px; position: relative; isolation: isolate; overflow: hidden; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 6vw, 80px); align-items: center; }
.auth-copy { display: grid; gap: 18px; }
.auth-copy h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.04em; }
.auth-perks { display: grid; gap: 10px; margin-top: 6px; }
.auth-perks div { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.auth-perks .ui-icon { color: var(--lime); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.auth-links a { color: var(--muted); }
.auth-links a:hover { color: var(--lime); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(28px, 5vw, 64px); align-items: start; padding: 48px 0 80px; }
.checkout-summary { display: grid; gap: 18px; }
.checkout-summary h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.04em; }
.summary-card { display: grid; gap: 14px; padding: 24px; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.summary-total strong { font-family: var(--font-display); font-size: 40px; letter-spacing: -.03em; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.segmented a, .segmented button { display: grid; place-items: center; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; text-align: center; }
.segmented .is-active, .segmented [aria-pressed="true"], .segmented [aria-selected="true"] { background: var(--lime); color: var(--lime-ink); }
.plan-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan-pill { display: grid; gap: 2px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); text-decoration: none; }
.plan-pill.is-active { border-color: var(--lime); background: rgba(218,250,115,.08); }
.plan-pill span { font-weight: 800; }
.plan-pill small { color: var(--muted); }
.secure-note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13.5px; }
.secure-note .ui-icon { color: var(--lime); margin-top: 2px; }
.success-card { max-width: 640px; margin: 64px auto; display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(28px, 5vw, 48px); }
.success-orb { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 12px rgba(218,250,115,.12); }
.success-orb .ui-icon { width: 40px; height: 40px; }
.success-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.success-steps div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.success-steps b { display: block; font-family: var(--font-display); color: var(--lime); }

/* ---------- Toast / modal / update ---------- */
.toast-stack { position: fixed; z-index: 90; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #1d1d2c; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; animation: toast-in .3s cubic-bezier(.2,.8,.2,1); pointer-events: auto; }
.toast .ui-icon { color: var(--ok); }
.toast.is-error .ui-icon { color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(4,4,8,.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: grid; gap: 16px; padding: clamp(22px, 4vw, 30px); border-radius: 24px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop .28s cubic-bezier(.2,.8,.2,1); }
.modal-wide { width: min(760px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal h2 { font-size: 22px; }
.modal p { color: var(--muted); }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.update-notice { position: fixed; z-index: 95; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; }

/* ---------- Crop ---------- */
.crop-stage { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin: 0 auto; border-radius: 20px; overflow: hidden; background: #0c0c10; touch-action: none; cursor: grab; }
.crop-stage canvas { width: 100%; height: 100%; display: block; }
.crop-stage.is-dragging { cursor: grabbing; }
.crop-mask { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 9999px rgba(0,0,0,.0); }
.crop-mask::after { content: ''; position: absolute; inset: 8%; border-radius: 22%; box-shadow: 0 0 0 9999px rgba(7,7,12,.55); border: 2px solid rgba(255,255,255,.85); }
.crop-mask.is-round::after { border-radius: 50%; }
.crop-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.crop-controls input[type=range] { width: 100%; accent-color: var(--lime); }

/* ======================================================================
   App shell (dashboard + admin)
   ====================================================================== */
.app-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--bg-2); overflow-y: auto; }
.sidebar .brand { padding: 4px 8px; }
.workspace-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.workspace-chip img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; background: var(--surface-3); }
.workspace-chip div { min-width: 0; display: grid; line-height: 1.25; }
.workspace-chip strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-chip small { color: var(--muted); font-size: 12px; }
.side-nav { display: grid; gap: 2px; }
.side-label { padding: 12px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.side-link { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 11px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; border: 0; background: transparent; cursor: pointer; text-align: left; width: 100%; transition: background .15s, color .15s; }
.side-link:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side-link.is-active { background: rgba(218,250,115,.1); color: var(--lime); }
.side-link .ui-icon { width: 19px; height: 19px; }
.side-link .count { margin-left: auto; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); }
.side-bottom { margin-top: auto; display: grid; gap: 8px; }
.plan-card-mini { padding: 14px; border-radius: 16px; background: radial-gradient(120% 120% at 100% 0%, rgba(118,85,246,.4), transparent 60%), var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.plan-card-mini strong { font-family: var(--font-display); }
.plan-card-mini small { color: var(--muted); font-size: 12.5px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px clamp(16px, 3vw, 32px); background: rgba(7,7,12,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 20px; font-weight: 800; }
.topbar-title { display: grid; min-width: 0; }
.topbar-title small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(74,222,128,.1); color: #9ff0bd; border: 1px solid rgba(74,222,128,.25); white-space: nowrap; }
.status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-dot.is-draft { background: rgba(251,191,36,.1); color: #fcd34d; border-color: rgba(251,191,36,.3); }
.app-content { padding: clamp(16px, 3vw, 32px); display: grid; gap: 20px; align-content: start; }
.admin-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, rgba(118,85,246,.25), rgba(118,85,246,.08)); border: 1px solid rgba(161,139,255,.4); font-weight: 700; font-size: 14px; }
.admin-banner .ui-icon { color: var(--violet-2); }
.admin-banner .btn { margin-left: auto; }
.notice { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; background: rgba(218,250,115,.07); border: 1px solid rgba(218,250,115,.22); }
.notice.is-warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.3); }
.notice div { flex: 1; min-width: 200px; display: grid; }
.notice strong { font-family: var(--font-display); }
.notice small { color: var(--muted); }
.panel { padding: clamp(18px, 2.4vw, 26px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; align-content: start; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 18px; }
.panel-head p { color: var(--muted); font-size: 14px; }
.panel-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.kpi-top .ui-icon { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: rgba(255,255,255,.05); color: var(--lime); }
.kpi strong { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; line-height: 1.15; }
.kpi small { color: var(--faint); font-size: 12.5px; }
.kpi .delta-up { color: var(--ok); }
.kpi .delta-down { color: var(--danger); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; background: rgba(255,255,255,.07); color: var(--muted); white-space: nowrap; }
.badge-free { background: rgba(255,255,255,.08); color: #d7d7e4; }
.badge-essencial { background: rgba(94,231,255,.12); color: #9eefff; }
.badge-pro { background: rgba(161,139,255,.18); color: #c9bcff; }
.badge-premium { background: rgba(218,250,115,.16); color: var(--lime); }
.badge-ok { background: rgba(74,222,128,.12); color: #9ff0bd; }
.badge-warn { background: rgba(251,191,36,.12); color: #fcd34d; }
.badge-danger { background: rgba(255,107,107,.12); color: #ffb4b4; }
.lock-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; background: rgba(218,250,115,.14); color: var(--lime); text-transform: uppercase; letter-spacing: .04em; }
.lock-tag .ui-icon { width: 11px; height: 11px; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 32px 16px; text-align: center; color: var(--muted); }
.empty .ui-icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.05); color: var(--faint); }

/* Charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.chart .axis-label { fill: var(--faint); font-size: 11px; font-family: var(--font-body); }
.chart .area-views { fill: url(#gv); }
.chart .line-views { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-clicks { fill: none; stroke: var(--series-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .hover-dot { r: 4; stroke: var(--surface); stroke-width: 2; }
.chart-tooltip { position: absolute; pointer-events: none; z-index: 2; padding: 8px 10px; border-radius: 10px; background: #23233a; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow); transform: translate(-50%, -110%); }
.chart-tooltip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 600; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; }
.bars-list { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bar-row b { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--series-1); }
.bar-track.violet i { background: var(--series-2); }
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 120px; height: 120px; flex: none; }

/* Editor */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.editor-preview { position: sticky; top: 88px; display: grid; justify-items: center; gap: 14px; }
.editor-preview .device { width: 330px; }
.preview-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: 76px; z-index: 5; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.tab .ui-icon { width: 17px; height: 17px; }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tab-panel { display: grid; gap: 16px; }
.tab-panel[hidden] { display: none; }
.avatar-editor { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.avatar-big { position: relative; width: 112px; height: 112px; border-radius: 30px; padding: 3px; background: conic-gradient(from 210deg, var(--lime), var(--violet), var(--lime)); }
.avatar-big.is-round, .avatar-big.is-round img { border-radius: 50%; }
.avatar-big img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; border: 3px solid var(--surface); background: var(--surface-3); }
.avatar-actions { display: grid; gap: 10px; }
.avatar-actions .row { display: flex; gap: 8px; flex-wrap: wrap; }
.preset-avatars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.preset-avatar { aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; transition: transform .15s; }
.preset-avatar:hover { transform: scale(1.05); }
.preset-avatar img { width: 100%; height: 100%; display: block; }
.preset-avatar[aria-pressed="true"] { border-color: var(--lime); }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.option-grid.small { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.option { position: relative; display: grid; gap: 8px; padding: 8px; border-radius: 16px; border: 1.5px solid var(--line); background: rgba(255,255,255,.02); cursor: pointer; text-align: left; color: var(--text); transition: border-color .15s, transform .15s, background .15s; }
.option:hover:not(:disabled) { border-color: var(--line-2); transform: translateY(-1px); }
.option[aria-pressed="true"] { border-color: var(--lime); background: rgba(218,250,115,.06); }
.option:disabled { cursor: not-allowed; }
.option:disabled .option-art { filter: grayscale(.6) brightness(.6); }
.option-art { position: relative; height: 70px; border-radius: 11px; overflow: hidden; background: #000; }
.option-art .hp { min-height: 0; height: 100%; position: absolute; inset: 0; }
.option-art .hp-bg { position: absolute; }
.option-name { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.option .lock-tag { position: absolute; top: 12px; right: 12px; }
.swatch-option .option-art { display: grid; grid-template-columns: 1.4fr 1fr 1fr; height: 44px; }
.btn-style-art { display: grid; place-items: center; height: 54px; border-radius: 11px; background: #1a1a28; padding: 0 10px; }
.btn-style-art span { width: 100%; height: 24px; border-radius: 8px; }
.color-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.color-field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.color-field span { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
.color-field input[type=color] { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.color-field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.color-field code { font-size: 12px; color: var(--text); }
.subsection { display: grid; gap: 12px; padding-top: 6px; }
.subsection + .subsection { border-top: 1px solid var(--line); padding-top: 18px; }
.subsection-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.subsection-head h3 { font-size: 15px; }
.subsection-head small { color: var(--faint); font-size: 12.5px; }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { width: 44px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.12); position: relative; transition: background .2s; flex: none; }
.toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.toggle input:checked + .toggle-track { background: var(--lime); }
.toggle input:checked + .toggle-track::after { transform: translateX(18px); background: var(--lime-ink); }
.toggle input:focus-visible + .toggle-track { outline: 3px solid var(--lime); outline-offset: 2px; }
.toggle input:disabled + .toggle-track { opacity: .4; }
.add-block-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.add-block { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; border: 1px dashed var(--line-2); background: rgba(255,255,255,.02); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.add-block:hover:not(:disabled) { border-color: var(--lime); background: rgba(218,250,115,.05); }
.add-block:disabled { opacity: .45; cursor: not-allowed; }
.add-block .ui-icon { width: 22px; height: 22px; color: var(--lime); }
.blocks-list { display: grid; gap: 10px; }
.block-item { border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s, opacity .15s; }
.block-item.is-open { border-color: var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.block-item.is-disabled { opacity: .6; }
.block-item.is-dragging { opacity: .4; }
.block-item.drop-before { box-shadow: 0 -3px 0 var(--lime); }
.block-item.drop-after { box-shadow: 0 3px 0 var(--lime); }
.block-row { display: grid; grid-template-columns: auto 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px 10px 6px; }
.drag-handle { width: 30px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--faint); cursor: grab; touch-action: none; border-radius: 8px; }
.drag-handle:active { cursor: grabbing; }
.block-thumb { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--muted); }
.block-thumb img { width: 100%; height: 100%; object-fit: cover; }
.block-thumb .ui-icon, .block-thumb .hp-mark { width: 20px; height: 20px; }
.block-main { min-width: 0; display: grid; gap: 2px; cursor: pointer; background: none; border: 0; text-align: left; padding: 4px 0; color: var(--text); }
.block-main strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-main small { color: var(--faint); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-tools { display: flex; align-items: center; gap: 4px; }
.block-tools .clicks { font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 6px; white-space: nowrap; }
.block-body { display: grid; gap: 12px; padding: 4px 14px 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.block-body[hidden] { display: none; }
.block-body .field-row { grid-template-columns: 1fr 1fr; }
.block-advanced { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.block-advanced legend { padding: 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.social-field { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; }
.social-field .hp-mark { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.05); color: var(--text); }
.social-field input { min-height: 44px; }
.savebar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px clamp(16px, 3vw, 32px) max(12px, env(safe-area-inset-bottom)); background: rgba(12,12,20,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.savebar .save-state { color: var(--muted); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.savebar .save-state.is-dirty { color: #fcd34d; }
.savebar .actions { margin-left: auto; display: flex; gap: 8px; }
.share-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.share-card .qr-box { width: 148px; padding: 10px; border-radius: 18px; background: #fff; }
.share-card .qr-box svg { display: block; width: 100%; height: auto; }
.url-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); min-width: 0; }
.url-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--lime); }
.checklist-onboard { display: grid; gap: 8px; }
.checklist-onboard a, .checklist-onboard div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; }
.checklist-onboard .done { color: var(--muted); text-decoration: line-through; }
.checklist-onboard .tick { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-2); }
.checklist-onboard .done .tick { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.checklist-onboard .tick .ui-icon { width: 14px; height: 14px; }
.progress { height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--lime)); border-radius: 8px; transition: width .4s; }

/* Tables & admin */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.data-table th { text-align: left; padding: 12px 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: rgba(255,255,255,.02); border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(255,255,255,.02); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-display); font-weight: 700; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--surface-3); flex: none; }
.person div { display: grid; min-width: 0; line-height: 1.3; }
.person strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person small { color: var(--faint); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { position: relative; flex: 1; min-width: 200px; }
.search .ui-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 18px; height: 18px; }
.search input { padding-left: 42px; }
.filter-select { min-height: 48px; padding: 0 36px 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.035); color: var(--text); font-weight: 600; }
.filter-select option { background: var(--surface-2); }
.profile-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.profile-card { display: grid; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.profile-card:hover { border-color: var(--line-2); }
.profile-card .person img { width: 48px; height: 48px; border-radius: 14px; }
.profile-card .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.profile-card .metrics div { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); display: grid; text-align: center; }
.profile-card .metrics b { font-family: var(--font-display); font-size: 17px; }
.profile-card .metrics small { color: var(--faint); font-size: 11.5px; }
.profile-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-card .actions .btn { flex: 1; }
.audit-list { display: grid; gap: 2px; }
.audit-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.audit-item .ui-icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.04); color: var(--muted); }
.audit-item small { color: var(--faint); white-space: nowrap; font-size: 12px; }
.audit-item code { color: var(--lime); font-size: 12.5px; }
.mobile-tabbar { display: none; }
.app-loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.app-loading span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--lime); animation: spin .8s linear infinite; }
.mobile-preview-fab { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .editor-layout { grid-template-columns: minmax(0, 1fr); }
  .editor-preview { display: none; }
  .mobile-preview-fab { display: inline-flex; position: fixed; z-index: 35; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); }
  .preview-sheet { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; background: rgba(4,4,8,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .preview-sheet .device { width: min(330px, 86vw); max-height: calc(100dvh - 110px); aspect-ratio: auto; height: min(690px, calc(100dvh - 110px)); }
}
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid, .steps-grid, .compare, .price-teaser, .faq-grid, .installment, .trial-grid, .auth-grid, .checkout-grid, .editor-promo { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { justify-items: center; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-proof { justify-content: center; }
  .trial-copy { position: static; }
  .editor-promo .device { margin: 0 auto; }
  .showcase-item:nth-child(even) { transform: none; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .mobile-tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); background: rgba(12,12,20,.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .mobile-tabbar a, .mobile-tabbar button { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; color: var(--faint); text-decoration: none; font-size: 11px; font-weight: 700; border: 0; background: none; cursor: pointer; }
  .mobile-tabbar .is-active { color: var(--lime); }
  .mobile-tabbar .ui-icon { width: 22px; height: 22px; }
  .app-main { padding-bottom: 76px; }
  .savebar { bottom: calc(66px + env(safe-area-inset-bottom)); }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .tabs { top: 68px; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .container { width: min(1200px, 100% - 32px); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-wide { grid-column: auto; }
  .plans-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-ribbon { left: 50%; transform: translateX(-50%); }
  .price-teaser-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-groups, .trust-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .field-row, .block-body .field-row { grid-template-columns: minmax(0, 1fr); }
  .compare-row { grid-template-columns: 1.3fr .8fr .7fr; padding: 14px; font-size: 14px; }
  .float-a { left: -6px; top: 10%; }
  .float-b { right: -6px; }
  .float-card { padding: 8px 10px; }
  .float-card .ui-icon { width: 28px; height: 28px; padding: 6px; }
  .playground-stage { padding: 6px 12px; }
  .pg-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .showcase-row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 6px 16px 18px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .showcase-row::-webkit-scrollbar { display: none; }
  .showcase-item { scroll-snap-align: center; }
  .steps li { grid-template-columns: 48px 1fr; padding: 18px; }
  .terms-3 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .color-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .add-block-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preset-avatars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .avatar-editor { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .avatar-actions .row { justify-content: center; }
  .social-grid { grid-template-columns: minmax(0, 1fr); }
  .share-card { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .success-steps { grid-template-columns: minmax(0, 1fr); }
  .plan-pills { grid-template-columns: minmax(0, 1fr); }
  .topbar h1 { font-size: 17px; }
  .topbar .hide-sm { display: none; }
  .block-tools .clicks { display: none; }
  .savebar .actions { width: 100%; margin-left: 0; }
  .savebar .actions .btn { flex: 1; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; border-radius: 24px 24px 0 0; max-height: 92dvh; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 36px; }
  .btn-lg { padding: 0 18px; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .add-block-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-row { gap: 10px; }
  .locale-option { width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
.chart-table { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Refinements after visual QA */
.terms-3 { grid-template-columns: minmax(0, 1fr); }
.terms-3 .term { grid-template-columns: auto 1fr; grid-template-areas: "s b" "e e"; align-items: baseline; column-gap: 10px; padding: 8px 12px; }
.terms-3 .term small { grid-area: s; }
.terms-3 .term b { grid-area: b; text-align: right; }
.terms-3 .term em { grid-area: e; }
.plan-premium .plan-actions { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.plan-premium .plan-actions .btn:last-child { grid-column: 1 / -1; order: -1; }
.float-a { left: -46px; top: 4%; }
.float-b { right: -40px; bottom: 6%; }
@media (max-width: 720px) { .float-a { left: -4px; top: 2%; } .float-b { right: -4px; bottom: 4%; } }
.grid-2-wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.editor-layout > *, .tab-panel > *, .app-content > *, .grid-2 > *, .grid-3 > *, .kpis > * { min-width: 0; }
.audit-item { grid-template-columns: 34px minmax(0, 1fr) auto; }
.audit-item code { word-break: break-all; }
.audit-item > div { overflow-wrap: anywhere; }
@media (max-width: 960px) { .grid-2-wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .savebar { gap: 6px; padding-inline: 12px; }
  .savebar .save-state { width: 100%; justify-content: center; font-size: 12.5px; }
  .savebar .actions { display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px; }
  .savebar .actions .btn { min-width: 0; padding: 0 10px; font-size: 14px; }


}
.savebar .actions .btn[data-discard] { }
@media (max-width: 720px) {
  .savebar .actions .btn[data-discard] { font-size: 0; gap: 0; width: 46px; padding: 0; }
  .savebar .actions .btn[data-discard]::before { content: '↺'; font-size: 20px; }
}
@media (max-width: 1180px) { .mobile-preview-fab { bottom: calc(96px + env(safe-area-inset-bottom)); } }
@media (max-width: 960px) { .mobile-preview-fab { bottom: calc(150px + env(safe-area-inset-bottom)); } }
@media (max-width: 720px) { .mobile-preview-fab { bottom: calc(176px + env(safe-area-inset-bottom)); right: 12px; min-height: 44px; padding: 0 16px; } }
.faq-grid > *, .checkout-grid > *, .contact-grid > *, .trial-grid > *, .auth-grid > *, .hero-grid > *, .steps-grid > *, .compare > *, .price-teaser > *, .installment > *, .feature-groups > *, .trust-grid > *, .panel > *, .subsection > * { min-width: 0; }
.contact-card strong, .contact-card h2, .faq-list summary { overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .option-grid.small { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .option-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .panel { padding: 16px; }
  .form-card { padding: 18px; }
  .faq-list summary { padding: 16px; font-size: 16px; }
}
.segmented { grid-auto-columns: minmax(0, 1fr); }
.segmented a, .segmented button { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-tabbar a, .mobile-tabbar button { min-width: 0; }
@media (max-width: 380px) { .segmented a, .segmented button { font-size: 12.5px; padding: 0 6px; } }
.toolbar .filter-select { flex: 1 1 140px; min-width: 0; }
.toolbar .search { flex: 1 1 100%; }
@media (min-width: 900px) { .toolbar .search { flex: 2 1 280px; } }
/* The header blur lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block of the fixed mobile menu and clip it. */
.site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(7,7,12,.72); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
@media (max-width: 960px) {
  body.menu-open .site-header::before { background: rgba(7,7,12,.97); }
  .primary-nav { height: calc(100dvh - var(--header-h)); bottom: auto; }
}
/* Ultra-narrow screens (e.g. Galaxy Fold folded, 280px) */
.profile-cards { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
@media (max-width: 420px) { .inline-actions .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 8px; } }
@media (max-width: 340px) {
  .header-row { gap: 6px; }
  .brand-word { font-size: 16px; }
  .brand-mark { width: 32px; height: 32px; }
  .locale-switch { padding: 2px; gap: 2px; }
  .locale-option { width: 26px; height: 24px; }
  .country-flag { width: 18px; height: 13px; }
  .menu-toggle { width: 40px; height: 40px; }
  .container { width: min(1200px, 100% - 24px); }
  .form-card, .panel { padding: 14px; }
  .profile-card .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
}
.faq-list > *, .form-card > *, .card > * { min-width: 0; }
.faq-list p, .faq-list summary { overflow-wrap: anywhere; }
.device { max-width: 100%; }
.btn-block { white-space: normal; text-align: center; line-height: 1.25; }
.cta-band, .site-shell { overflow-x: clip; }
/* Large monitors */
@media (min-width: 1800px) {
  .container { width: min(1480px, 100% - 96px); }
  .hero h1 { font-size: 88px; }
  .hero-lead, .lead { font-size: 21px; }
  .device-hero { width: 370px; }
  .section h2 { font-size: 58px; }
}
@media (min-width: 2400px) {
  .container { width: min(1720px, 100% - 128px); }
  body.app-body { font-size: 17px; }
  .hero h1 { font-size: 104px; }
  .device-hero { width: 410px; }
  .app-shell { grid-template-columns: 300px minmax(0, 1fr); }
  .editor-layout { grid-template-columns: minmax(0, 1fr) 440px; }
  .editor-preview .device { width: 380px; }
}
.brand-word { font-size: 22px; letter-spacing: -.035em; }
.brand { gap: 0; }
.chip-initials { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--violet), var(--lime)); color: var(--lime-ink); font-family: var(--font-display); font-weight: 800; }
@media (max-width: 340px) { .brand-word { font-size: 18px; } }

/* Premium add-on: Professional Edition */
.addon-card { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(26px, 5vw, 56px); border-radius: 36px; background: linear-gradient(135deg, #12101f, #0b0b12 60%); border: 1px solid rgba(218,250,115,.25); }
.addon-glow { position: absolute; z-index: -1; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(118,85,246,.35), transparent 65%); }
.addon-copy { display: grid; gap: 16px; justify-items: start; }
.addon-copy h2 { font-size: clamp(30px, 4.2vw, 50px); }
.addon-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--muted); font-weight: 600; }
.addon-price strong { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 48px); color: var(--lime); letter-spacing: -.03em; }
.addon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.addon-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.addon-list b { display: block; font-family: var(--font-display); margin-bottom: 2px; }
.addon-list span { color: var(--muted); font-size: 14.5px; }
.addon-chip { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(218,250,115,.08); border: 1px dashed rgba(218,250,115,.4); text-decoration: none; color: var(--text); font-weight: 700; font-size: 14px; }
.addon-chip .ui-icon { color: var(--lime); }
.addon-chip span { display: grid; line-height: 1.3; }
.addon-chip small { color: var(--lime); font-weight: 600; }
@media (max-width: 960px) { .addon-card { grid-template-columns: minmax(0, 1fr); } }
