/* Minimal, neutral site theme: system fonts, black on white, one soft grey. */
:root{
  --ink:#1a1a1a; --brand:#1a1a1a; --brand-dark:#000; --bg:#fff; --soft:#f6f6f4; --line:#e4e4e1; --muted:#666; --focus:#2b6cb0;
  --ok-bg:#e8f3ea; --ok:#1f5d2c; --warn-bg:#fdf3dc; --warn:#6b4e0a; --bad-bg:#fbe9e7; --bad:#8a2318;
  /* legacy names still used by some pages */
  --maroon:var(--brand); --maroon-dark:var(--brand-dark); --gold:var(--ink); --cream:var(--bg); --cream2:var(--soft); --green:var(--ok);
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{ background:var(--bg); color:var(--ink); font-family:var(--font); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4,.serif{ font-family:var(--font); font-weight:600; line-height:1.25; letter-spacing:-.01em; margin:0 0 .5em; }
a{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; text-decoration-color:#bbb; }
a:hover{ text-decoration-color:var(--ink); }
img{ max-width:100%; display:block; }

/* header / footer */
.site-header{ background:var(--bg); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50; }
.site-header-inner{ max-width:1280px; margin:0 auto; padding:14px 24px; display:flex; align-items:center; justify-content:space-between; }
.brand{ font-weight:700; font-size:18px; color:var(--ink); text-decoration:none; display:flex; align-items:center; gap:8px; }
.brand-mark{ display:none; }
.site-nav{ display:flex; align-items:center; gap:22px; font-size:15px; }
.site-nav a{ text-decoration:none; color:#444; } .site-nav a:hover{ color:var(--ink); }
.btn-nav{ padding:8px 16px; background:var(--brand); border-radius:6px; color:#fff !important; } .btn-nav:hover{ background:#000; }
.flash{ padding:12px 24px; text-align:center; font-size:15px; }
.flash-inner{ max-width:1280px; margin:0 auto; }
.flash-error{ background:var(--bad-bg); color:var(--bad); } .flash-success{ background:var(--ok-bg); color:var(--ok); } .flash-info{ background:var(--warn-bg); color:var(--warn); }
.site-footer{ border-top:1px solid var(--line); margin-top:80px; background:var(--soft); }
.site-footer-inner{ max-width:1280px; margin:0 auto; padding:44px 24px 28px; font-size:14px; color:var(--muted); }
.foot-cols{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px; margin-bottom:30px; }
.foot-cols h4{ font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink); margin-bottom:10px; }
.foot-cols a{ display:block; text-decoration:none; color:var(--muted); padding:3px 0; } .foot-cols a:hover{ color:var(--ink); }
.foot-bottom{ border-top:1px solid var(--line); padding-top:18px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }

/* layout */
.container{ max-width:1280px; margin:0 auto; padding:0 24px; }
.narrow{ max-width:720px; }
.section{ padding:72px 0; }
.center{ text-align:center; }
.kicker{ text-transform:uppercase; letter-spacing:.08em; font-size:12px; font-weight:600; color:var(--muted); margin-bottom:10px; }
.lede{ color:var(--muted); font-size:18px; max-width:640px; margin:0 auto 28px; }
.center .lede{ margin-left:auto; margin-right:auto; }
.soft{ background:var(--soft); }

/* buttons */
.btn{ display:inline-block; padding:11px 22px; border-radius:6px; font:500 15px var(--font); cursor:pointer; border:1px solid transparent; text-decoration:none; text-align:center; }
.btn-primary{ background:var(--brand); color:#fff; } .btn-primary:hover{ background:#000; color:#fff; }
.btn-outline{ border-color:#bbb; color:var(--ink); background:#fff; } .btn-outline:hover{ border-color:var(--ink); }
.btn-sm{ padding:7px 14px; font-size:14px; }
.btn-danger{ background:#b42318; color:#fff; }
.btn-ghost{ background:#fff; border-color:var(--line); color:var(--ink); } .btn-ghost.on{ background:var(--ink); color:#fff; border-color:var(--ink); }
.linklike{ background:none; border:0; padding:0; font:inherit; color:#444; cursor:pointer; } .linklike:hover{ color:var(--ink); }

/* hero */
.hero{ padding:80px 0 56px; }
.hero h1{ font-size:clamp(32px,5vw,52px); line-height:1.12; max-width:760px; }
.hero-split{ padding:64px 0 40px; text-align:left; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; }
.hero-actions{ display:flex; gap:12px; margin-top:26px; flex-wrap:wrap; }
.hero-badges{ display:flex; gap:22px; margin-top:28px; flex-wrap:wrap; color:var(--muted); font-size:14px; }
.hero-phones{ position:relative; height:470px; }
.hero-phones .ph{ position:absolute; width:205px; aspect-ratio:4/5; object-fit:cover; border-radius:14px; border:1px solid var(--line); box-shadow:0 10px 30px rgba(0,0,0,.12); background:#fff; }
.ph1{ left:2%; top:60px; } .ph2{ left:30%; top:0; z-index:2; width:225px !important; } .ph3{ right:0; top:80px; }

/* grids and cards */
.grid-3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.card-box,.feat{ background:#fff; border:1px solid var(--line); border-radius:8px; padding:24px; }
.card-box h3,.feat h3{ font-size:18px; margin-bottom:8px; } .feat p{ margin:0; color:var(--muted); }
.feat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.trad-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.trad{ position:relative; display:block; border-radius:8px; overflow:hidden; aspect-ratio:4/5; border:1px solid var(--line); text-decoration:none; }
.trad img{ width:100%; height:100%; object-fit:cover; }
.trad span{ position:absolute; left:0; right:0; bottom:0; padding:28px 14px 12px; color:#fff; font-weight:600; background:linear-gradient(transparent,rgba(0,0,0,.7)); }
.faq{ background:#fff; border:1px solid var(--line); border-radius:8px; padding:14px 18px; margin-bottom:10px; }
.faq summary{ cursor:pointer; font-weight:600; } .faq p{ margin:10px 0 0; color:var(--muted); }

/* pricing */
.plan{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:32px 28px; display:flex; flex-direction:column; }
.plan.featured{ border:2px solid var(--ink); position:relative; }
.plan-badge{ position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--ink); color:#fff; font-size:12px; padding:3px 12px; border-radius:999px; }
.plan h3{ font-size:20px; margin-bottom:4px; }
.plan-price{ font-size:40px; font-weight:700; margin:10px 0; } .plan-price span{ font-size:15px; font-weight:400; color:var(--muted); }
.plan ul{ list-style:none; padding:0; margin:18px 0; flex:1; }
.plan li{ padding:8px 0; border-bottom:1px solid var(--soft); } .plan li:last-child{ border-bottom:none; }

/* template gallery */
.tpl-card{ background:#fff; border:1px solid var(--line); border-radius:8px; overflow:hidden; display:flex; flex-direction:column; }
.tpl-thumb{ aspect-ratio:4/5; background:var(--soft) center top/cover; display:flex; align-items:center; justify-content:center; font-size:34px; color:#aaa; }
.tpl-body{ padding:16px 18px; display:flex; flex-direction:column; flex:1; }
.tpl-body h3{ font-size:17px; margin-bottom:4px; }
.tpl-body p{ color:var(--muted); font-size:14px; margin:0 0 12px; }
.tpl-body > div:last-child{ margin-top:auto; }

/* forms */
.auth-box{ max-width:420px; margin:48px auto; background:#fff; border:1px solid var(--line); border-radius:10px; padding:36px; }
.auth-box h1{ font-size:26px; text-align:center; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:14px; font-weight:600; color:var(--ink); margin-bottom:6px; }
.field input, .field select, .field textarea{ width:100%; padding:10px 12px; border:1px solid #c9c9c5; border-radius:6px; font:16px var(--font); background:#fff; color:var(--ink); }
.field input[type=checkbox],.field input[type=radio]{ width:auto; margin-right:6px; }
.field textarea{ resize:vertical; }
.field-hint{ font-size:13px; color:var(--muted); margin-top:4px; }
.field-row{ display:flex; gap:16px; } .field-row .field{ flex:1; }
.auth-switch{ text-align:center; margin-top:16px; font-size:14px; color:var(--muted); }
.full{ width:100%; display:block; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{ outline:2px solid var(--focus); outline-offset:2px; }

/* dashboard */
.dash-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:26px; flex-wrap:wrap; gap:14px; }
.dash-head h1{ margin:0; font-size:28px; }
.plan-pill{ display:inline-block; background:var(--soft); border:1px solid var(--line); border-radius:999px; padding:2px 12px; font-size:13px; }
.card-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:20px; }
.card-item{ background:#fff; border:1px solid var(--line); border-radius:8px; display:flex; flex-direction:column; }
.card-item-head{ padding:18px; border-bottom:1px solid var(--soft); } .card-item-head h3{ font-size:18px; margin-bottom:6px; }
.status-pill{ font-size:12px; padding:2px 10px; border-radius:999px; }
.status-published{ background:var(--ok-bg); color:var(--ok); } .status-draft{ background:var(--warn-bg); color:var(--warn); }
.card-item-body{ padding:14px 18px; font-size:14px; color:var(--muted); flex:1; }
.card-item-actions{ padding:14px 18px; border-top:1px solid var(--soft); display:flex; gap:8px; flex-wrap:wrap; }
.empty-state{ text-align:center; padding:64px 24px; border:1px dashed #ccc; border-radius:10px; color:var(--muted); }

/* editor widgets */
.editor-section{ margin-bottom:24px; padding-bottom:20px; border-bottom:1px solid var(--line); }
.editor-section h4{ font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:12px; }
.repeat-item{ border:1px solid var(--line); border-radius:8px; padding:12px; margin-bottom:10px; position:relative; }
.repeat-remove{ position:absolute; top:8px; right:10px; background:none; border:none; color:#b42318; cursor:pointer; font-size:13px; }
.color-row{ display:flex; gap:10px; flex-wrap:wrap; }
.color-swatch{ width:32px; height:32px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px var(--line); cursor:pointer; }
.color-swatch.active{ box-shadow:0 0 0 2px var(--ink); }
.pv-status{ font-size:13px; color:var(--muted); }
.pv-stage{ display:block; }
.pv-device{ width:min(390px,100%); margin:0 auto; height:100%; border:10px solid #1a1a1a; border-radius:34px; overflow:hidden; background:#fff; box-shadow:0 12px 40px rgba(0,0,0,.18); }
.pv-stage.desktop .pv-device{ width:100%; margin:0; border:1px solid var(--line); border-radius:8px; box-shadow:none; }
.pv-device iframe{ width:100%; height:100%; border:0; display:block; background:#fff; }

/* studio: full-screen editor with no site header or footer */
body.studio-body{ overflow:hidden; background:#ecebe7; }
.studio{ display:flex; flex-direction:column; height:100vh; height:100dvh; }
.studio-bar{ display:flex; align-items:center; gap:12px; height:56px; padding:0 16px; background:#fff; border-bottom:1px solid var(--line); flex:none; }
.studio-bar .grow{ flex:1; min-width:0; }
.studio-back{ display:inline-flex; align-items:center; gap:6px; font-size:14px; text-decoration:none; padding:7px 12px; border:1px solid var(--line); border-radius:999px; white-space:nowrap; }
.studio-back:hover{ border-color:var(--ink); }
.studio-hint{ font-size:14px; color:#4f46e5; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.save-state{ font-size:13px; color:var(--muted); white-space:nowrap; } .save-state.on{ color:#b45309; font-weight:600; }
.studio-actions{ display:flex; gap:8px; align-items:center; }
.btn-accent{ background:#4f46e5; color:#fff; } .btn-accent:hover{ background:#4338ca; color:#fff; }
.studio-main{ flex:1; display:flex; min-height:0; position:relative; }
.studio-stage{ flex:1; min-width:0; padding:18px 18px 54px; display:flex; flex-direction:column; position:relative; }
.pv-stage{ flex:1; min-height:0; }
.pv-stage .pv-device{ height:100%; }
.stage-tools{ position:absolute; left:18px; bottom:12px; display:flex; gap:6px; align-items:center; }
.studio[data-mode="guest"] .studio-bar{ box-shadow:0 2px 0 #4f46e5; }
body.pv-loading .pv-device{ opacity:.7; transition:opacity .2s; }
.studio-panel{ width:0; overflow:hidden; background:#fff; border-left:1px solid var(--line); flex:none; transition:width .22s ease; display:flex; flex-direction:column; }
.studio.panel-open .studio-panel{ width:400px; }
.panel-head{ display:flex; align-items:center; justify-content:space-between; padding:14px 18px 0; min-width:400px; }
.panel-head h2{ font-size:17px; margin:0; }
.panel-x{ background:none; border:0; font-size:22px; line-height:1; cursor:pointer; color:var(--muted); }
.panel-tabs{ display:flex; gap:2px; padding:10px 14px 0; border-bottom:1px solid var(--line); min-width:400px; overflow-x:auto; }
.panel-tabs button{ background:none; border:0; border-bottom:2px solid transparent; padding:9px 8px; font:500 14px var(--font); color:var(--muted); cursor:pointer; white-space:nowrap; }
.panel-tabs button.on{ color:var(--ink); border-bottom-color:var(--ink); }
.panel-body{ flex:1; overflow-y:auto; padding:18px; min-width:400px; }
.panel-body [hidden]{ display:none !important; }
.tpl-cats{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.tpl-cats button{ border:1px solid var(--line); background:#fff; border-radius:999px; padding:5px 12px; font:13px var(--font); cursor:pointer; } .tpl-cats button.on{ background:var(--ink); color:#fff; border-color:var(--ink); }
.tpl-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.tpl-pick{ display:block; cursor:pointer; position:relative; }
.tpl-pick input{ position:absolute; opacity:0; pointer-events:none; }
.tpl-pick .tp-img{ display:block; aspect-ratio:4/5; border-radius:8px; background:var(--soft) center/cover; border:2px solid transparent; box-shadow:0 0 0 1px var(--line); transition:.15s; }
.tpl-pick:hover .tp-img{ box-shadow:0 0 0 1px var(--ink); }
.tpl-pick.on .tp-img,.tpl-pick input:checked + .tp-img{ border-color:#fff; box-shadow:0 0 0 3px #4f46e5; }
.tpl-pick .tp-name{ display:block; font-size:13px; font-weight:600; margin-top:6px; } .tpl-pick .tp-cat{ font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.tpl-pick input:focus-visible + .tp-img{ outline:2px solid var(--focus); outline-offset:2px; }
.toast{ position:fixed; left:50%; bottom:22px; transform:translateX(-50%); z-index:100; background:#1a1a1a; color:#fff; padding:11px 18px; border-radius:999px; font-size:14px; transition:opacity .5s; } .toast.error{ background:#b42318; } .toast.gone{ opacity:0; pointer-events:none; }
.link-row{ display:flex; gap:8px; } .link-row input{ flex:1; min-width:0; padding:9px 10px; border:1px solid #c9c9c5; border-radius:6px; font:13px var(--font); background:var(--soft); }
.pill-lock{ display:inline-block; font-size:12px; background:var(--warn-bg); color:var(--warn); padding:2px 10px; border-radius:999px; }
@media (max-width:900px){
  .studio-hint{ display:none; } .studio-bar{ padding:0 10px; gap:6px; } .studio-back span{ display:none; }
  .studio-stage{ padding:10px 10px 50px; }
  .studio-panel{ position:absolute; left:0; right:0; bottom:0; width:100% !important; height:0; border-left:0; border-top:1px solid var(--line); box-shadow:0 -8px 30px rgba(0,0,0,.18); z-index:30; transition:height .22s ease; }
  .studio.panel-open .studio-panel{ height:68%; }
  .panel-head,.panel-tabs,.panel-body{ min-width:0; }
  .pv-device{ border-width:6px; border-radius:24px; }
}

/* admin */
.admin-shell{ display:grid; grid-template-columns:200px 1fr; min-height:calc(100vh - 140px); }
.admin-nav{ border-right:1px solid var(--line); padding:20px 0; }
.admin-nav a{ display:block; padding:10px 22px; color:var(--ink); text-decoration:none; } .admin-nav a:hover,.admin-nav a.active{ background:var(--soft); font-weight:600; }
.admin-main{ padding:28px; }
.stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:16px; margin-bottom:28px; }
.stat-box{ background:#fff; border:1px solid var(--line); border-radius:8px; padding:18px; }
.stat-box .num{ font-size:30px; font-weight:700; } .stat-box .label{ font-size:13px; color:var(--muted); }
table.data-table{ width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); }
table.data-table th, table.data-table td{ padding:10px 14px; text-align:left; border-bottom:1px solid var(--soft); font-size:14px; vertical-align:top; }
table.data-table th{ background:var(--soft); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }

/* long text pages (policies, about) */
.prose{ max-width:760px; margin:0 auto; } .prose h1{ font-size:34px; } .prose h2{ font-size:20px; margin-top:32px; }
.prose p,.prose li{ color:#333; } .prose ul{ padding-left:20px; } .prose .updated{ color:var(--muted); font-size:14px; }

@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; } .hero-split{ padding-top:36px; }
  .hero-phones{ height:300px; max-width:420px; margin:0 auto; width:100%; } .hero-phones .ph{ width:150px; } .ph2{ width:170px !important; left:28%; }
  .trad-grid{ grid-template-columns:repeat(2,1fr); } .feat-grid,.grid-3,.grid-2{ grid-template-columns:1fr; }
  .foot-cols{ grid-template-columns:1fr 1fr; }
  .site-header-inner{ flex-wrap:wrap; gap:8px; padding:10px 18px; } .site-nav{ gap:14px; flex-wrap:wrap; font-size:14px; }
  .admin-shell{ grid-template-columns:1fr; }
}

/* dashboard, editor and try page use the full screen width */
body.wide .site-header-inner,body.wide .container,body.wide .site-footer-inner{ max-width:none; }
body.wide .container{ padding:0 32px; }

/* dashboard */
.dash{ display:grid; grid-template-columns:250px 1fr; min-height:calc(100vh - 62px); }
.dash-side{ border-right:1px solid var(--line); padding:24px 18px; background:#fff; position:sticky; top:62px; align-self:start; height:calc(100vh - 62px); }
.dash-me{ display:flex; gap:12px; align-items:center; margin-bottom:22px; }
.dash-me strong{ display:block; font-size:15px; } .dash-me small{ color:var(--muted); font-size:13px; word-break:break-all; }
.avatar{ width:40px; height:40px; border-radius:50%; background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:600; flex:none; }
.dash-nav a{ display:block; padding:10px 12px; border-radius:8px; text-decoration:none; color:#444; font-size:15px; margin-bottom:2px; }
.dash-nav a:hover{ background:var(--soft); } .dash-nav a.on{ background:var(--ink); color:#fff; }
.dash-main{ padding:30px 36px 60px; min-width:0; max-width:1200px; }
.dash-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:22px; flex-wrap:wrap; }
.dash-head h1{ font-size:28px; margin:0 0 4px; } .sub{ color:var(--muted); margin:0; font-size:15px; }
.dash-alert{ padding:12px 16px; border-radius:8px; margin-bottom:20px; font-size:15px; } .dash-alert.warn{ background:var(--warn-bg); color:var(--warn); } .dash-alert.bad{ background:var(--bad-bg); color:var(--bad); }
.dash-note{ font-size:14px; color:var(--muted); margin:0 0 18px; }
.inv-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:22px; }
.inv{ background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; display:flex; flex-direction:column; transition:box-shadow .2s; } .inv:hover{ box-shadow:0 8px 24px rgba(0,0,0,.08); }
.inv-thumb{ display:block; aspect-ratio:16/10; background:var(--soft) center 22%/cover; position:relative; }
.inv-thumb .status-pill{ position:absolute; top:12px; left:12px; }
.inv-body{ padding:14px 16px 4px; flex:1; } .inv-body h3{ font-size:18px; margin:0 0 6px; }
.inv-meta{ margin:0 0 3px; font-size:13px; color:var(--muted); }
.inv-actions{ padding:12px 16px 16px; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.status-expired{ background:var(--bad-bg); color:var(--bad); }
.panel-card{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:24px; max-width:720px; }
.plan-line{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; gap:12px; }
.kv{ margin:0 0 20px; display:grid; grid-template-columns:repeat(2,1fr); gap:14px 24px; } .kv dt{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); } .kv dd{ margin:2px 0 0; font-size:16px; font-weight:500; } .kv small{ color:var(--muted); font-weight:400; }
.mini-h{ font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:6px 0 8px; }
.ticks{ list-style:none; padding:0; margin:0 0 18px; } .ticks li{ padding:5px 0 5px 24px; position:relative; } .ticks li:before{ content:"\2713"; position:absolute; left:0; color:var(--ok); font-weight:700; }
dialog.dlg{ border:0; border-radius:14px; padding:0; width:min(820px,94vw); max-height:88vh; box-shadow:0 24px 70px rgba(0,0,0,.3); } dialog.dlg::backdrop{ background:rgba(0,0,0,.45); }
.dlg-in{ padding:22px 24px 26px; max-height:88vh; overflow-y:auto; } .dlg-head{ display:flex; justify-content:space-between; gap:12px; margin-bottom:14px; } .dlg-head h2{ margin:0 0 2px; font-size:22px; }
.dlg-grid{ grid-template-columns:repeat(4,1fr); } .tpl-btn{ background:none; border:0; padding:0; font:inherit; text-align:left; } .tpl-btn[hidden]{ display:none; }
@media (max-width:900px){ .dash{ grid-template-columns:minmax(0,1fr); } .dash-side{ min-width:0; } .dash-me{ min-width:0; } .dash-side{ position:static; height:auto; border-right:0; border-bottom:1px solid var(--line); padding:16px; } .dash-nav{ display:flex; gap:6px; overflow-x:auto; } .dash-nav a{ white-space:nowrap; } .dash-me{ margin-bottom:12px; } .dash-main{ padding:22px 16px 50px; } .dlg-grid{ grid-template-columns:repeat(2,1fr); } .kv{ grid-template-columns:1fr; } }

/* home hero: night balcony */
.site-header.float{ position:absolute; left:0; right:0; top:0; background:transparent; border:0; z-index:60; }
.site-header.float .site-header-inner{ max-width:1000px; margin:16px auto 0; background:#fff; border-radius:999px; padding:10px 12px 10px 24px; box-shadow:0 8px 30px rgba(10,8,40,.28); }
.nb-hero{ position:relative; overflow:hidden; color:#fff; padding:150px 0 0; background:linear-gradient(180deg,#0e0b2b 0%,#271a4f 42%,#5a3a6b 72%,#a2667a 100%); }
.nb-hero:before{ content:""; position:absolute; inset:0; background:radial-gradient(60% 50% at 78% 38%,rgba(255,170,90,.16),transparent 70%); pointer-events:none; }
.nb-string{ position:absolute; left:0; top:62px; width:100%; height:70px; pointer-events:none; }
.bulb{ fill:#ffd58a; animation:bulb 2.4s ease-in-out infinite alternate; filter:drop-shadow(0 0 5px #ffb454); }
@keyframes bulb{ from{ opacity:.45; } to{ opacity:1; } }
.star{ animation:bulb 3s ease-in-out infinite alternate; }
.nb-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:30px; align-items:end; position:relative; }
.nb-copy{ padding-bottom:90px; align-self:center; }
.nb-kicker{ text-transform:uppercase; letter-spacing:.1em; font-size:13px; color:#f1c98b; margin:0 0 14px; }
.nb-copy h1{ font-size:clamp(38px,5.6vw,66px); line-height:1.06; letter-spacing:-.025em; font-weight:700; margin:0 0 18px; color:#fff; }
.nb-sub{ font-size:18px; color:#e3dcf2; max-width:520px; margin:0 0 26px; }
.nb-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.nb-btn{ display:inline-block; background:#fff; color:#1a1230 !important; padding:13px 24px; border-radius:999px; font-weight:600; text-decoration:none; transition:transform .15s, box-shadow .15s; box-shadow:0 6px 24px rgba(0,0,0,.25); }
.nb-btn:hover{ transform:translateY(-2px); box-shadow:0 10px 30px rgba(0,0,0,.32); }
.nb-btn.ghost{ background:transparent; color:#fff !important; border:1.5px solid rgba(255,255,255,.55); box-shadow:none; } .nb-btn.ghost:hover{ background:rgba(255,255,255,.1); }
.nb-tip{ margin:22px 0 0; font-size:15px; color:#f6d7a0; display:flex; align-items:center; gap:8px; }
.flame-dot{ width:9px; height:13px; background:#ffb454; border-radius:50% 50% 50% 50%/65% 65% 35% 35%; box-shadow:0 0 10px #ffb454; animation:flick 1.4s ease-in-out infinite; }
.nb-badges{ display:flex; gap:10px 20px; flex-wrap:wrap; margin-top:22px; font-size:14px; color:#cfc6e6; } .nb-badges span:before{ content:"\2713\00a0"; color:#f1c98b; }
.nb-scene{ position:relative; max-width:440px; width:100%; margin:0 auto; }
.nb-art{ display:block; width:100%; height:auto; filter:drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.nb-warm{ opacity:0; transition:opacity 1.6s ease; } .nb-scene.all-lit .nb-warm{ opacity:1; }
.lantern-glow{ animation:bulb 2.2s ease-in-out infinite alternate; }
.nb-ground{ position:absolute; left:-12%; right:-12%; bottom:-6px; height:60px; pointer-events:none; }
.diya{ position:absolute; bottom:0; transform:translateX(-50%); background:none; border:0; padding:0; cursor:pointer; pointer-events:auto; -webkit-tap-highlight-color:transparent; }
.diya svg{ display:block; overflow:visible; transition:transform .2s; } .diya:hover svg{ transform:translateY(-3px) scale(1.06); }
.d-glow{ fill:#ffb454; opacity:0; transition:opacity .5s; filter:blur(10px); } .d-flame{ fill:#ffb44c; opacity:0; transform-origin:30px 28px; transition:opacity .35s; }
.diya.lit .d-glow{ opacity:.75; } .diya.lit .d-flame{ opacity:1; animation:flick 1.3s ease-in-out infinite; }
@keyframes flick{ 0%,100%{ transform:scale(1) rotate(-2deg); } 50%{ transform:scale(1.08,1.15) rotate(2deg); } }
.nb-floor{ height:70px; background:linear-gradient(180deg,rgba(255,255,255,0) 0%,#fff 100%); margin-top:-2px; position:relative; }
.nb-spark{ position:fixed; width:6px; height:6px; border-radius:50%; background:#ffd58a; pointer-events:none; z-index:80; box-shadow:0 0 10px #ffb454; }
@media (max-width:860px){ .nb-hero{ padding-top:110px; } .nb-grid{ grid-template-columns:1fr; } .nb-copy{ padding-bottom:10px; text-align:left; } .nb-scene{ max-width:340px; } .site-header.float .site-header-inner{ margin:10px 12px 0; padding:8px 10px 8px 16px; } .site-header.float .site-nav{ gap:10px; font-size:13px; } .site-header.float .site-nav a:not(.btn-nav):not([href*=login]){ display:none; } }
@media (prefers-reduced-motion:reduce){ .bulb,.star,.flame-dot,.lantern-glow,.diya.lit .d-flame{ animation:none; } }
.btn[disabled]{ opacity:.4; cursor:not-allowed; }
@media (max-width:640px){
  .studio-bar{ height:auto; flex-wrap:wrap; padding:8px 10px; row-gap:8px; }
  .studio-bar .grow{ display:none; } .save-state{ margin-left:auto; }
  .studio-actions{ width:100%; gap:6px; } .studio-actions .btn{ flex:1; padding:8px 6px; font-size:13px; white-space:nowrap; }
  .nb-ground{ left:-4%; right:-4%; }
}

.brand img{ display:block; height:34px; width:auto; }
@media (max-width:640px){ .brand img{ height:28px; } }

/* Mobile floating bottom navigation */
.mnav,.mn-sheet{ display:none; }
@media (max-width:760px){
  body:not(.studio-body){ padding-bottom:92px; }
  .site-header .site-nav a:not(.btn-nav):not([href*=login]), .site-header .site-nav form{ display:none; }
  .mnav{ display:flex; position:fixed; z-index:90; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); max-width:460px; margin:0 auto; background:rgba(255,255,255,.96); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border:1px solid #e6e6e6; border-radius:22px; padding:6px; box-shadow:0 10px 30px rgba(0,0,0,.18); justify-content:space-between; }
  .mn{ flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; padding:7px 2px 6px; border:0; background:none; font-size:11px; font-weight:500; line-height:1.1; font-family:inherit; color:#777; text-decoration:none; border-radius:16px; cursor:pointer; min-width:0; }
  .mn span{ white-space:nowrap; }
  .mn.on{ color:var(--ink); background:#f1f1f1; font-weight:600; }
  .mn-main:not(.on){ color:var(--ink); }
  .mn:active{ transform:scale(.95); }
  .mn-sheet{ position:fixed; inset:0; z-index:95; background:rgba(0,0,0,.35); align-items:flex-end; justify-content:center; padding:0 12px calc(92px + env(safe-area-inset-bottom)); }
  .mn-sheet:not([hidden]){ display:flex; }
  .mn-card{ width:100%; max-width:460px; background:#fff; border-radius:20px; padding:8px; display:grid; grid-template-columns:1fr 1fr; gap:4px; box-shadow:0 14px 40px rgba(0,0,0,.3); }
  .mn-card a,.mn-card button{ display:block; padding:13px 14px; border:0; background:#f6f6f6; border-radius:12px; font-size:14px; font-weight:500; font-family:inherit; color:var(--ink); text-decoration:none; text-align:left; width:100%; cursor:pointer; }
  .mn-card form{ margin:0; }
}

/* Template gallery: 4 columns on desktop, 3 on tablet, 2 on phones */
.tpl-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.tpl-filters{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-bottom:28px; }
.tpl-grid .tpl-card{ transition:transform .2s ease, box-shadow .2s ease; }
.tpl-grid .tpl-card:hover{ transform:translateY(-3px); box-shadow:0 10px 28px rgba(0,0,0,.12); }
.tpl-grid .tpl-thumb{ position:relative; display:block; text-decoration:none; }
.tpl-play{ position:absolute; left:50%; bottom:12px; transform:translate(-50%,8px); opacity:0; background:rgba(26,26,26,.88); color:#fff; font-size:12px; padding:7px 14px; border-radius:999px; white-space:nowrap; transition:opacity .2s ease, transform .2s ease; }
.tpl-card:hover .tpl-play{ opacity:1; transform:translate(-50%,0); }
.tpl-grid .tpl-body{ padding:14px 14px 16px; }
.tpl-grid .tpl-body h3{ font-size:16px; margin:0 0 2px; }
.tpl-cat{ margin:0 0 6px!important; font-size:11px!important; letter-spacing:.08em; text-transform:uppercase; }
.tpl-desc{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; font-size:13px!important; }
.tpl-actions{ display:flex; gap:8px; } .tpl-actions .btn{ flex:1; justify-content:center; text-align:center; padding-left:8px; padding-right:8px; }
@media (max-width:1100px){ .tpl-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:760px){
  .tpl-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .tpl-filters{ flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; margin-left:-4px; padding:0 4px 4px; -webkit-overflow-scrolling:touch; }
  .tpl-filters .btn{ flex:0 0 auto; }
  .tpl-grid .tpl-body{ padding:10px 10px 12px; }
  .tpl-grid .tpl-body h3{ font-size:14px; }
  .tpl-desc{ display:none; }
  .tpl-play{ display:none; }
  .tpl-actions .btn{ font-size:12px; padding:7px 4px; }
}
@media (max-width:760px){ .tpl-intro{ margin-bottom:18px!important; } .tpl-intro h1{ font-size:26px!important; } .tpl-intro .lede{ display:none; } .tpl-intro .kicker{ display:none; } .tpl-filters{ margin-bottom:16px; } }

/* editor: sections, wording, link name */
.sec-list{ list-style:none; margin:0 0 6px; padding:0; border:1px solid var(--line); border-radius:12px; background:#fff; overflow:hidden; }
.sec-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-bottom:1px solid var(--line); transition:background .4s; }
.sec-row:last-child{ border-bottom:0; } .sec-row.moved{ background:#fff7e0; }
.sec-name{ display:flex; align-items:center; gap:10px; font-weight:500; cursor:pointer; flex:1; min-width:0; }
.sec-name input{ width:18px; height:18px; flex:none; }
.sec-mv{ display:flex; gap:6px; flex:none; }
.sec-mv button{ width:34px; height:34px; border:1px solid var(--line); background:#fff; border-radius:8px; cursor:pointer; font-size:16px; line-height:1; }
.sec-mv button:hover{ background:var(--ink); color:#fff; border-color:var(--ink); }
.sec-sub{ margin:20px 0 8px; font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.wd-grp{ border:1px solid var(--line); border-radius:12px; background:#fff; margin-bottom:10px; padding:0 12px; }
.wd-grp summary{ cursor:pointer; padding:12px 0; font-weight:600; }
.wd-grp[open] summary{ border-bottom:1px solid var(--line); margin-bottom:12px; }
.slug-row{ display:flex; align-items:center; border:1px solid var(--line); border-radius:10px; background:#fff; overflow:hidden; }
.slug-host{ padding:0 4px 0 12px; color:var(--muted); font-size:14px; white-space:nowrap; max-width:48%; overflow:hidden; text-overflow:ellipsis; }
.slug-row input{ border:0 !important; box-shadow:none !important; flex:1; min-width:0; padding-left:2px; }
.field-hint.good{ color:#1f7a3d; } .field-hint.bad{ color:#b3261e; }

/* pricing / checkout / pay */
.plan-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; max-width:1040px; margin:0 auto; }
.plan-per{ margin:-4px 0 0; color:var(--muted); font-size:14px; }
.co-grid{ display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:28px; margin-top:24px; align-items:start; }
.co-line{ display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); } .co-total{ font-size:19px; border-bottom:0; }
.pay-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:20px; align-items:start; }
.upi-qr{ display:flex; justify-content:center; min-height:224px; } .upi-qr svg{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:6px; }
@media (max-width:860px){ .plan-grid,.co-grid,.pay-grid{ grid-template-columns:minmax(0,1fr); } .co-side{ order:-1; } }
