@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --brand-soft: #eef2ff;
  --brand-2: #7c3aed;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft: #f8fafc;
  --ok: #059669;
  --err: #dc2626;
  --radius: 14px;
  --head: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; }
a { color: var(--brand); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }

/* nav */
.nav { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: 'Inter', system-ui, sans-serif; font-weight: 800; font-size: 1.3rem; text-decoration: none; color: var(--ink); letter-spacing: -.02em; }
.logo b { color: var(--brand); }
.nav-links { display: flex; gap: 8px; align-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, transform .05s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 24px -12px rgba(79,70,229,.8); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--soft); }
.btn-white { background: #fff; color: var(--brand); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* "claim your name" box */
.claim { display: flex; max-width: 560px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: 0 16px 40px -18px rgba(79,70,229,.45); }
.claim:focus-within { border-color: var(--brand); }
.claim .field { flex: 1; display: flex; align-items: center; padding-left: 18px; min-width: 0; }
.claim input[type=text] { border: 0; outline: 0; padding: 8px 2px 8px 0; border-radius: 0; font: inherit; font-size: 1.15rem; font-weight: 700; width: 100%; min-width: 0; text-align: right; background: transparent; color: var(--brand); }
.claim input[type=text]::placeholder { color: #a5b4fc; font-weight: 700; }
/* The customer's name is bold indigo; our domain is a grey tag next to it. */
.claim .suffix { color: var(--muted); font-size: .98rem; font-weight: 500; white-space: nowrap; margin-right: 8px; padding: 6px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.claim-status { min-height: 1.5em; margin-top: 12px; font-size: .95rem; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 12px 0 6px; }
.card p { margin: 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan h3 { margin: 0 0 8px; }
.plan-price { font-family: var(--head); font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan-note { color: var(--muted); margin: 6px 0 14px; font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.plan li { padding-left: 24px; position: relative; font-size: .95rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.plan-featured { border: 2px solid var(--brand); box-shadow: 0 30px 60px -30px rgba(79,70,229,.55); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }

footer.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* forms */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; background: var(--soft); }
.auth .card { width: 100%; max-width: 440px; padding: 34px; }
.auth h1 { margin: 0 0 6px; font-size: 1.6rem; letter-spacing: -.02em; }
.auth .sub { color: var(--muted); margin: 0 0 24px; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], textarea, select {
  width: 100%; font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
textarea { resize: vertical; min-height: 96px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.input-suffix { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.input-suffix:focus-within { border-color: var(--brand); }
.input-suffix input[type=text] { font-weight: 700; color: var(--brand); border: 0; border-radius: 0; outline: 0; }
.input-suffix span { padding: 11px 14px; background: var(--soft); color: var(--muted); border-left: 1px solid var(--line); white-space: nowrap; }
.form-error { color: var(--err); font-size: .9rem; margin-top: 14px; min-height: 1.2em; }
.ok { color: var(--ok); }
.err { color: var(--err); }
.full { width: 100%; margin-top: 22px; }
.switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* dashboard */
.dash { display: grid; grid-template-columns: 420px 1fr; height: calc(100vh - 64px); }
.dash > * { min-height: 0; }
.dash-side { border-right: 1px solid var(--line); overflow-y: auto; padding: 24px; background: #fff; }
.dash-main { background: var(--soft); display: flex; flex-direction: column; min-width: 0; }
.dash-bar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #fff; flex-wrap: wrap; }
.dash-bar .live { font-family: ui-monospace, Menlo, monospace; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.preview-frame { flex: 1; min-height: 0; margin: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(15,23,42,.3); }
.preview-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.fieldset { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 6px; }
.fieldset h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 0; }
.themes { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.themes label { margin: 0; border: 2px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; cursor: pointer; font-weight: 600; font-size: .9rem; }
.themes input { position: absolute; opacity: 0; pointer-events: none; }
.themes input:checked + label { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.themes input:disabled + label { opacity: .45; cursor: not-allowed; }
.themes label .pro-tag { margin-left: 4px; font-size: .6rem; padding: 1px 6px; }
.banner-box { aspect-ratio: 16 / 7; border: 2px dashed var(--line); border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--soft); }
.banner-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-box img[hidden], .banner-empty[hidden] { display: none; }
.banner-empty { color: var(--muted); font-size: .9rem; }
.banner-actions { margin-top: 10px; }
.banner-actions > * { flex: 0 0 auto; }
label.btn { margin: 0; font-size: 1rem; }
.row { display: flex; gap: 12px; align-items: center; }
.row > * { flex: 1; }
input[type=color] { width: 52px; height: 42px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex: 0 0 auto; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-top: 16px; cursor: pointer; }
.save-bar { position: sticky; bottom: -24px; background: #fff; padding: 16px 0 24px; margin-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.save-status { font-size: .9rem; color: var(--muted); }
.pill { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill-live { background: #d1fae5; color: #065f46; }
.pill-off { background: #fee2e2; color: #991b1b; }

/* dashboard: title, plan, stats */
.dash-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dash-title h1 { margin: 0; font-size: 1.4rem; }
a.pill { text-decoration: none; }
.pill-trial { background: var(--brand-soft); color: var(--brand-dark); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.stat { background: var(--soft); border-radius: 10px; padding: 10px 8px; text-align: center; }
.stat b { display: block; font-size: 1.3rem; }
.stat span { font-size: .75rem; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 40px; margin: 12px 0 6px; }
.spark i { flex: 1; background: var(--brand); opacity: .75; border-radius: 2px 2px 0 0; min-height: 3px; }

/* dashboard: plan & billing (payment picker mirrors Kelopak's checkout) */
.billing-status { margin: 10px 0 12px; font-size: .92rem; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-opt { font: inherit; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; }
.plan-opt span { font-size: 1.25rem; font-weight: 800; }
.plan-opt small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.plan-opt.active { border-color: var(--brand); background: var(--brand-soft); }
.pay-methods { display: grid; gap: 8px; }
.pay-method { font: inherit; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.pay-method.active { border-color: var(--brand); background: var(--brand-soft); }
.pay-emoji { font-size: 1.4rem; }
.pay-body { flex: 1; display: grid; }
.pay-body span { font-size: .8rem; color: var(--muted); }
.pay-free { font-size: .72rem; font-weight: 800; color: #065f46; background: #d1fae5; padding: 3px 8px; border-radius: 999px; }
.pay-fee { font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pay-panel { margin-top: 6px; border-radius: 12px; padding: 12px 14px; background: var(--soft); font-size: .92rem; }
.pay-panel-TNG { background: #eff6ff; }
.pay-panel-DuitNow { background: #fdf2f8; }
.pay-panel p { margin: 0 0 8px; }
.pay-panel ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.pay-title { font-weight: 700; }
.pay-ref { font-family: ui-monospace, Menlo, monospace; background: #fff; padding: 1px 6px; border-radius: 6px; }
.pay-qr { display: block; width: 100%; max-width: 220px; margin: 0 auto 12px; border-radius: 10px; background: #fff; }
.pay-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pay-missing { color: var(--err); }
.pay-done { color: var(--ok); font-weight: 600; margin: 0; }
.pay-history ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; font-size: .82rem; }
.pay-history li { display: flex; justify-content: space-between; gap: 8px; }
.pay-st { font-weight: 700; white-space: nowrap; }
.pay-st-paid { color: var(--ok); }
.pay-st-failed, .pay-st-rejected { color: var(--err); }
.pay-st-pending_verification, .pay-st-pending_payment { color: var(--muted); }
#pay-msg { margin-top: 8px; }

/* dashboard: logo & gallery */
.logo-row { display: flex; gap: 14px; align-items: center; }
.logo-box { flex: 0 0 88px; height: 88px; border: 2px dashed var(--line); border-radius: 12px; display: grid; place-items: center; background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 16px 16px; overflow: hidden; font-size: .8rem; color: var(--muted); }
.logo-box img { max-width: 90%; max-height: 90%; object-fit: contain; }
.logo-row .banner-actions { margin-top: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 10px; }
.gallery-grid:empty { display: none; }
.g-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--soft); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(15,23,42,.75); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }

/* dashboard: stats locked on Basic */
.stats-lock { display: grid; gap: 8px; margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--brand-soft); border: 1px solid #c7d2fe; font-size: .9rem; }
.stats-lock span { color: var(--muted); }
.stats-lock .btn { justify-self: start; padding: 8px 16px; font-size: .9rem; }
.stats-blurred { filter: blur(3px); opacity: .5; pointer-events: none; user-select: none; }

/* dashboard: font picker */
.fonts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.font-opt { font: inherit; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; display: grid; gap: 1px; min-width: 0; }
.font-opt b { font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-opt span { font-size: .72rem; color: var(--muted); }
.font-opt.active { border-color: var(--brand); background: var(--brand-soft); }
.font-opt[disabled] { opacity: .45; cursor: not-allowed; }
.pro-tag { font-size: .68rem; font-weight: 800; background: var(--brand); color: #fff; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }

/* dashboard: products */
.items { display: grid; gap: 10px; margin: 14px 0 10px; }
.item { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.item-photo { flex: 0 0 72px; height: 72px; margin: 0; border-radius: 8px; background: var(--soft); border: 1px dashed var(--line); display: grid; place-items: center; overflow: hidden; cursor: pointer; font-size: .8rem; color: var(--muted); font-weight: 600; }
.item-photo img { width: 100%; height: 100%; object-fit: cover; }
.item-fields { flex: 1; min-width: 0; display: grid; gap: 6px; }
.item-row { display: flex; gap: 6px; }
.item-row input { min-width: 0; }
.item .item-price { flex: 0 0 120px; }
.item input[type=text], .item textarea { padding: 8px 10px; font-size: .92rem; }
.item textarea { min-height: 0; }
.item-actions { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.item-actions button { font: inherit; font-size: .8rem; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.item-actions button:disabled { opacity: .4; cursor: default; }
.item-actions .danger { color: var(--err); }
.item-status { font-size: .8rem; }
.full-sm { width: 100%; }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; height: auto; }
  .dash > * { min-height: 0; }
.dash-side { border-right: 0; }
  .preview-frame { height: 70vh; flex: none; margin: 16px; }
}
@media (max-width: 560px) {
  .claim { flex-direction: column; border-radius: 18px; gap: 6px; }
  .claim .field { padding: 8px 10px; }
  .claim .btn { width: 100%; }
  .nav-links .btn { padding: 8px 14px; font-size: .9rem; }
}

/* admin */
.admin { padding: 32px 20px 60px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; }
.admin-filters { display: flex; gap: 8px; }
.admin-filters .active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.admin table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin th, .admin td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { background: var(--soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.admin td.actions { white-space: nowrap; }
.admin td.actions .btn { padding: 6px 14px; font-size: .88rem; }
.admin .st-paid { color: var(--ok); font-weight: 600; }
.admin .st-rejected, .admin .st-failed { color: var(--err); }
.admin code { white-space: nowrap; }
.alert-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: #ecfdf5; font-size: .92rem; }
.alert-box .btn { padding: 6px 14px; font-size: .88rem; }


/* ================= landing page (eurika.tech) ================= */
.lp .wrap { position: relative; }
.lp-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); }
.lp-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.lp-links { display: flex; gap: 28px; }
.lp-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.lp-links a:hover { color: var(--ink); }
.nav-who { color: var(--muted); font-size: .88rem; margin-right: 4px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-bar code b { color: var(--brand); }
.browser-bar code span { color: var(--muted); }
.logged-in { background: var(--brand-soft); border: 1px solid #c7d2fe; border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: .92rem; }
.logged-in .row-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.logged-in .btn { padding: 7px 14px; font-size: .88rem; }

.lp-hero { position: relative; overflow: hidden; padding: 104px 0 64px; text-align: center; background: radial-gradient(1000px 420px at 50% -10%, var(--brand-soft), transparent), radial-gradient(600px 300px at 90% 20%, rgba(124,58,237,.08), transparent 70%), #fff; }
.lp-hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 22px; }
.hl { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; margin: 0 auto 40px; }
.lp-lead b { color: var(--ink); font-weight: 600; }
.lp-hero .claim { margin: 0 auto; }

.lp-section { padding: 96px 0; }
.lp-alt { background: var(--soft); }
.lp-head { max-width: 680px; margin-bottom: 44px; }
.lp-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.lp-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; margin: 10px 0 14px; }
.lp-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* two addresses */
.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.duo-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.duo-dark { background: linear-gradient(145deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; box-shadow: 0 30px 60px -30px rgba(79,70,229,.6); }
.duo-url { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
.duo-dark .duo-url { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.15); }
.duo-url .dot, .browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #d4d7de; }
.duo-dark .duo-url .dot { background: rgba(255,255,255,.4); }
.duo-url code, .browser-bar code { margin-left: 10px; font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.duo-dark .duo-url code { border-color: transparent; color: var(--brand-dark); }
.duo-body { padding: 26px; }
.duo-body h3 { font-size: 1.5rem; margin: 12px 0 8px; }
.duo-body p { margin: 0 0 20px; color: var(--muted); }
.duo-dark .duo-body p { color: rgba(255,255,255,.85); }
.duo-tag { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--brand-dark); }
.duo-tag.tag-light { background: #ffedd5; color: #9a3412; }
.duo-arrow { display: grid; align-content: center; justify-items: center; gap: 2px; font-size: 1.6rem; font-weight: 800; color: var(--brand); }
.duo-arrow span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.mini-dash { display: grid; gap: 10px; }
.mini-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-tiles div { background: rgba(255,255,255,.14); border-radius: 10px; padding: 10px; font-size: .75rem; color: rgba(255,255,255,.8); }
.mini-tiles b { display: block; color: #fff; }
.mini-tiles span { display: block; height: 6px; width: 60%; background: #fff; border-radius: 3px; margin-top: 6px; }
.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 12px; background: rgba(255,255,255,.14); border-radius: 10px; }
.mini-chart i { flex: 1; background: linear-gradient(#fff, rgba(255,255,255,.45)); border-radius: 4px 4px 0 0; }
.mini-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(255,255,255,.14); border-radius: 10px; padding: 10px 12px; font-size: .8rem; color: #fff; }
.mini-foot em { font-style: normal; font-weight: 700; background: #fff; color: var(--brand); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.mini-site { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .85rem; }
.ms-hero { background: linear-gradient(135deg, #ffedd5, #fff); padding: 16px; display: grid; gap: 2px; }
.ms-hero b { font-family: var(--head); font-size: 1.2rem; }
.ms-hero span { color: var(--muted); }
.ms-hero em { justify-self: start; margin-top: 8px; font-style: normal; font-weight: 600; background: #c2410c; color: #fff; padding: 5px 12px; border-radius: 999px; font-size: .78rem; }
.ms-row { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px dashed var(--line); }
.ms-row b { color: #c2410c; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.step-no { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; font-family: var(--head); font-weight: 800; font-size: 1.2rem; }
.step-card h3 { font-size: 1.3rem; margin: 18px 0 8px; }
.step-card p { margin: 0; color: var(--muted); }

/* examples */
.ex-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.ex-tabs button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: #fff; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.ex-tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.browser { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(79,70,229,.45); background: #fff; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.browser-bar a { margin-left: auto; font-weight: 600; font-size: .9rem; text-decoration: none; }
.browser iframe { width: 100%; height: 620px; border: 0; display: block; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.f-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); font-size: 1.3rem; }
.feature h3 { font-size: 1.08rem; margin: 16px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* comparison */
.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { font-size: .9rem; color: var(--muted); font-weight: 600; }
.compare td:first-child { font-weight: 500; }
.compare .us { background: var(--brand-soft); }
.compare th.us { background: var(--brand); color: #fff; border-radius: 14px 14px 0 0; font-size: 1rem; }
.compare tr:last-child .us { border-radius: 0 0 14px 14px; }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: #9aa1b0; }

.lp .plans .btn { margin-top: auto; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* final cta + footer */
.lp-cta { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; text-align: center; padding: 88px 0; }
.lp-cta h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 12px; }
.lp-cta p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin: 0 0 30px; }
.lp-cta .btn-primary { background: #fff; color: var(--brand); }
.lp-footer { background: var(--soft); color: var(--muted); padding: 56px 0 28px; border-top: 1px solid var(--line); }
.lp-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.lp-foot-grid p { margin: 12px 0 0; max-width: 280px; }
.lp-foot-grid h4 { color: var(--ink); margin: 0 0 12px; font-size: .95rem; }
.lp-foot-grid a:not(.logo) { display: block; color: var(--muted); text-decoration: none; margin-bottom: 8px; font-size: .95rem; }
.lp-foot-grid a:not(.logo):hover { color: var(--brand); }
.lp-foot-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: .85rem; }

@media (max-width: 980px) {
  .lp-links { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .duo-arrow { transform: rotate(90deg); }
  .lp-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .lp-section { padding: 64px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .browser iframe { height: 520px; }
  .lp-nav .btn { padding: 8px 14px; font-size: .9rem; }
  .lp-nav .wrap { gap: 10px; }
  .nav-who { display: none; }
}

/* password show / hide */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { background: var(--soft); color: var(--ink); }
.pw-toggle svg { width: 20px; height: 20px; }
input:disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.themes label small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
/* Dashboard: collapsible sections */
.publish-row { margin-top: 14px; }
.fieldset[data-acc] { border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; padding: 0; background: #fff; }
.fieldset[data-acc].open { box-shadow: 0 12px 28px -22px rgba(15,23,42,.35); }
.fieldset[data-acc] > h2 { margin: 0; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.acc-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: none; border: 0; border-radius: 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.acc-head:hover { background: var(--soft); }
.acc-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.1rem; flex: 0 0 auto; }
.acc-title { display: flex; flex-direction: column; flex: 1; min-width: 0; font-weight: 700; font-size: .98rem; line-height: 1.3; }
.acc-title .pro-tag { font-size: .6rem; padding: 1px 6px; vertical-align: 2px; }
.acc-sum { font-weight: 400; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-sum:empty { display: none; }
.acc-chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin: 0 6px 4px 0; flex: 0 0 auto; }
.fieldset.open .acc-chev { transform: rotate(-135deg); margin-bottom: -4px; }
.acc-body { padding: 4px 16px 18px; border-top: 1px solid var(--line); }
.fieldset:not(.open) > .acc-body { display: none; }
.video-row { margin-top: 12px; }
.video-row .row { flex-wrap: nowrap; }
.video-row .row { gap: 6px; }
.video-row .row > input { flex: 1 1 auto; min-width: 0; }
.video-row .row > .btn { flex: 0 0 auto; padding: 8px 14px; font-size: 1.2rem; }
.hint.ok { color: var(--ok); }

/* Dashboard: enquiries inbox */
.fieldset.has-new .acc-icon { position: relative; }
.fieldset.has-new .acc-icon::after { content: ''; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--err); border: 2px solid #fff; }
.enq-head { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.enq-list { display: grid; gap: 10px; margin-top: 10px; }
.enq-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.enq-item.unread { border-color: var(--brand); background: var(--brand-soft); }
.enq-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.enq-item p { margin: 6px 0 10px; white-space: pre-wrap; word-break: break-word; }
.enq-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.enq-actions .btn { padding: 7px 12px; font-size: .85rem; }

/* Dashboard: brand colour swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch:hover { transform: scale(1.08); }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }

/* Admin: users */
.users-head { margin-top: 40px; }
.user-search { display: flex; gap: 8px; }
.user-search input { min-width: 220px; }
.btn-danger { color: var(--err); border-color: var(--err); }
.btn-danger:hover { background: var(--err); color: #fff; }
input[type=search] { font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }

/* Dashboard: highlights editor, item link field */
.hl-row { gap: 8px; margin-top: 8px; }
.hl-row input:first-child { flex: 0 0 34%; }
.item-fields input[data-field=link] { margin-top: 8px; font-size: .9rem; }
