/* WebDoor — one stylesheet for site, sign-in pages, client area and staff panel. */

@font-face { font-family: 'Bricolage Grotesque'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/manrope-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/manrope-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/manrope-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/manrope-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/manrope-latin-800-normal.woff2) format('woff2'); }

/* Sunrise: warm orange on cream, near-black ink, editorial headings. */
:root {
    --dark: #1d1611;          /* near-black: footer, dark buttons, popular plan */
    --dark-2: #2c221b;
    --dark-3: #3d2f25;
    --accent: #ff6a2b;        /* sunrise orange: highlights, icons, meters */
    --accent-btn: #cf4510;    /* orange deep enough for white button text */
    --accent-btn-hover: #b53b0c;
    --accent-ink: #c2410c;    /* orange for text and links on light backgrounds */
    --accent-soft: #ffe6d7;
    --sun: #ffb347;
    --ink: #1d1611;
    --ink-2: #4a3d33;
    --muted: #7a6a5d;
    --line: #efe2d3;
    --line-strong: #e2d0bd;
    --bg: #fdf6ee;            /* page background */
    --bg-warm: #fff1e3;       /* tinted sections */
    --white: #ffffff;
    --ok: #0f8a5f;
    --ok-bg: #dcf5ea;
    --warn: #9a5b00;
    --warn-bg: #fff1d6;
    --error: #c2283d;
    --error-bg: #fde8eb;
    --radius: 18px;
    --radius-sm: 11px;
    --shadow: 0 1px 2px rgba(29, 22, 17, .05), 0 8px 24px rgba(120, 60, 20, .07);
    --shadow-lg: 0 24px 60px rgba(90, 40, 10, .16);
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.015em; font-family: var(--font-head); text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-warm); padding: .1em .4em; border-radius: 5px; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255, 250, 244, .66); }
.small { font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--accent-ink); margin-bottom: .6em; }
.eyebrow-accent { color: var(--accent); }
.optional { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.link { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link-strong { font-weight: 700; text-decoration: none; color: var(--ink); }
.link-strong:hover { color: var(--accent-ink); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); font-weight: 600; cursor: pointer; }
.error-text { color: var(--error); margin: 0; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); --logo-bg: var(--dark); --logo-line: #fffaf4; --logo-door: var(--accent); }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-word { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.035em; }
.logo-on-dark { color: #fffaf4; --logo-bg: var(--accent); --logo-line: var(--dark); --logo-door: #fffaf4; }
.brand-link { text-decoration: none; display: inline-flex; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--dark); color: #fffaf4; }
.btn-primary:hover { background: var(--dark-3); }
.btn-accent { background: var(--accent-btn); color: var(--white); box-shadow: 0 6px 18px rgba(207, 69, 16, .25); }
.btn-accent:hover { background: var(--accent-btn-hover); }
.btn-quiet { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--line-strong); background: #fffaf4; }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .28); }
.btn-ghost-light:hover { border-color: var(--white); }
.btn-danger-quiet { background: var(--white); color: var(--error); border-color: #f2c4cb; }
.btn-danger-quiet:hover { background: var(--error-bg); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: default; }

/* Alerts and badges */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; border: 1px solid transparent; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-ok { background: var(--ok-bg); color: #0b5e43; border-color: #bfe9d6; }
.alert-warn { background: var(--warn-bg); color: #7a4a00; border-color: #f5dca6; }
.alert-error { background: var(--error-bg); color: #8f1b2c; border-color: #f6c3cb; }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-off { background: #f3ebe2; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #d8c9bb; flex: none; }
.dot-ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(15, 158, 110, .15); }
.dot-error { background: var(--error); box-shadow: 0 0 0 4px rgba(194, 40, 61, .14); }
.count { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: #f3ebe2; color: var(--muted); font-size: 12px; vertical-align: middle; }

/* Forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field legend { margin-bottom: 8px; }
.field small { color: var(--muted); font-size: 12.5px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 42px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(255, 106, 43, .2); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.field-narrow { max-width: 260px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent-btn); flex: none; }
.code-input { font-family: ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: .2em; font-size: 18px !important; }
.form-section { display: grid; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section h3 { font-size: 16px; margin: 0; }
.form-section p { margin: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.form-inline { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.form-inline .field { flex: 1 1 200px; }

/* Public site */
.site { background: var(--bg); }
.promo-bar { background: var(--dark); color: #fffaf4; font-size: 13.5px; text-align: center; padding: 8px 16px; }
.promo-bar strong { color: var(--accent); }
.site-header { background: rgba(253, 246, 238, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header-inner { display: flex; align-items: center; gap: 30px; min-height: 72px; }
.site-nav { display: flex; gap: 24px; flex: 1; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--ink); }
.site-actions { display: flex; gap: 10px; }
.hero { background: radial-gradient(45% 60% at 88% 18%, rgba(255, 106, 43, .26), transparent 70%), radial-gradient(40% 50% at 62% 100%, rgba(255, 179, 71, .32), transparent 70%), var(--bg-warm); color: var(--ink); padding: 76px 0 88px; overflow: hidden; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; letter-spacing: -.04em; max-width: 13ch; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 50ch; margin: 20px 0 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.section { padding: 80px 0; }
.section-tint { background: var(--bg-warm); }
.section-title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 30px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; padding-top: 14px; }
.plan-card { position: relative; border: 1.5px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 6px; background: var(--white); }
.plan-card h3 { font-size: 22px; margin: 0; }
.plan-price { margin: 14px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.plan-price strong { font-family: var(--font-head); font-size: 44px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.plan-price span { color: var(--muted); font-weight: 600; }
.plan-was { font-size: 13.5px; color: var(--muted); margin: 0; }
.plan-save { display: inline-block; margin-left: 6px; background: var(--ok-bg); color: var(--ok); font-weight: 800; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.plan-ribbon { position: absolute; top: -14px; left: 30px; background: var(--accent-btn); color: var(--white); font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.plan-card.is-popular { background: var(--dark); color: #fffaf4; border-color: var(--dark); box-shadow: var(--shadow-lg); }
.plan-card.is-popular .muted, .plan-card.is-popular .plan-was, .plan-card.is-popular .plan-price span, .plan-card.is-popular .plan-features li { color: rgba(255, 250, 244, .78); }
.plan-card.is-popular .plan-features li::before { border-color: var(--accent); }
@media (min-width: 961px) { .plan-card.is-popular { transform: translateY(-12px); } }
.plan-features { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; flex: 1; }
.plan-features li { padding-left: 24px; position: relative; color: var(--ink-2); }
.plan-features li::before { content: ''; position: absolute; left: 0; top: 7px; width: 13px; height: 8px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: rotate(-45deg); }
.site-footer { background: var(--dark); color: #fffaf4; padding: 56px 0 32px; }
.site-footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.site-footer p { margin: 10px 0 0; }

/* Sign-in pages */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 440px) 1fr; }
.auth-side { background: radial-gradient(520px 380px at 0% 100%, rgba(255, 106, 43, .45) 0%, transparent 70%), radial-gradient(380px 300px at 100% 0%, rgba(255, 179, 71, .22) 0%, transparent 70%), var(--dark); color: #fffaf4; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side-copy h2 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.auth-side-copy p { color: rgba(255, 250, 244, .72); }
.auth-main { background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-title { font-size: 32px; font-weight: 800; letter-spacing: -.035em; }
.auth-sub { color: var(--muted); margin-bottom: 24px; }
.auth-foot { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: 14px; }

/* Panel (client area + staff panel) */
.panel-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: var(--bg-warm); }
.sidebar { background: var(--bg); color: var(--ink); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 20px; }
.area-pill { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid transparent; padding: 2px 8px; border-radius: 999px; }
.sidebar-nav { display: grid; gap: 2px; flex: 1; align-content: start; }
.sidebar-nav a, .nav-soon { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.sidebar-nav a svg { width: 19px; height: 19px; fill: currentColor; flex: none; color: var(--muted); }
.sidebar-nav a:hover { background: var(--bg-warm); color: var(--ink); }
.sidebar-nav a.is-active { background: var(--accent-soft); color: #9a3412; }
.sidebar-nav a.is-active svg { color: #9a3412; }
.nav-label { margin: 18px 12px 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.nav-soon { color: #b3a395; padding-left: 39px; cursor: default; }
.sidebar-help { background: var(--bg-warm); border-radius: 16px; padding: 16px; font-size: 13.5px; color: var(--ink-2); margin-top: 18px; }
.sidebar-help strong { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }
.sidebar-help .btn { margin-top: 10px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 14px 8px 4px; border-top: 1px solid var(--line); margin-top: 16px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-items: center; font-weight: 800; flex: none; }
.sidebar-user-text { display: grid; min-width: 0; font-size: 13px; }
.sidebar-user-text span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 16px 32px; background: rgba(253, 246, 238, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-title { font-family: var(--font-head); font-size: 24px; font-weight: 800; margin: 0; flex: 1; letter-spacing: -.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.topbar-actions form { margin: 0; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
.panel-content { padding: 28px 32px 56px; display: grid; gap: 22px; align-content: start; }
.sidebar-backdrop { display: none; }

/* Cards, tables, stats */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card h2 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.card-flush { padding: 0; overflow: hidden; }
.card-pad { padding: 0 22px 22px; }
.card-narrow { max-width: 820px; width: 100%; }
.card-danger { border-color: #f4d3d8; }
.card-tip { border-color: var(--line); box-shadow: inset 5px 0 0 var(--accent), var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.card-head p { margin: 0; }
.card-head form { margin: 0; flex: none; }
.card-head-pad { padding: 20px 22px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.stat-label { color: var(--muted); font-weight: 600; font-size: 13px; }
.stat-value { font-family: var(--font-head); font-size: 34px; font-weight: 800; letter-spacing: -.035em; }
.stat-note { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
.table-scroll { max-height: 520px; overflow-y: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 22px; border-bottom: 1px solid var(--line); background: #fffaf4; white-space: nowrap; position: sticky; top: 0; }
.table td { padding: 13px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fffaf4; }
.row-link { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.row-link:first-of-type { border-top: 0; }
.row-main { display: grid; flex: 1; min-width: 0; }
.row-link:hover strong { color: var(--accent-ink); }
.activity { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.activity:first-of-type { border-top: 0; }
.activity-action { font-weight: 600; text-transform: capitalize; }
.empty { text-align: center; padding: 40px 22px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0; }
.facts div { background: var(--bg-warm); border-radius: var(--radius-sm); padding: 12px 14px; }
.facts dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 700; word-break: break-word; }
.welcome h2 { font-size: 32px; font-weight: 800; letter-spacing: -.035em; }
.tile { display: grid; gap: 4px; align-content: start; }
.tile h3 { font-size: 16px; }
.tile .badge { justify-self: start; }

/* Two-factor setup */
.steps { padding-left: 20px; color: var(--ink-2); margin: 0 0 14px; display: grid; gap: 4px; }
.qr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; width: 222px; margin-bottom: 10px; }
.qr svg { display: block; width: 200px; height: 200px; }
.secret { word-spacing: 4px; }
.recovery { background: var(--warn-bg); border: 1px solid #f5dca6; border-radius: var(--radius-sm); padding: 16px; margin-bottom: 18px; }
.recovery h3 { font-size: 15px; }
.recovery-list { columns: 2; padding-left: 22px; margin: 0 0 12px; }
.recovery-list code { background: var(--white); }

/* Phones and tablets */
@media (max-width: 960px) {
    .grid-2, .split { grid-template-columns: 1fr; }
    .grid-3, .stats { grid-template-columns: 1fr; }
    .site-nav { display: none; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-side { padding: 22px 20px; }
    .auth-side-copy, .auth-side > .small { display: none; }
    .panel-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar-open .sidebar { transform: none; }
    .sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(29, 22, 17, .45); z-index: 30; }
    .menu-toggle { display: block; }
    .topbar { padding: 12px 16px; flex-wrap: wrap; }
    .topbar-actions { flex-wrap: wrap; }
    .topbar-actions .btn-quiet { padding: 0 12px; }
    .panel-content { padding: 18px 16px 40px; }
}
@media (max-width: 600px) {
    .field-pair, .field-trio { grid-template-columns: 1fr; }
    .site-actions .btn-ghost-light { display: none; }
    .hero { padding: 60px 0 68px; }
    .section { padding: 56px 0; }
    .topbar-actions { gap: 6px; }
    .recovery-list { columns: 1; }
    .card-head { flex-direction: column; }
}

/* ---------- Phase 2: checkout, payments, staff queues ---------- */
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 13px; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.wrap-anywhere { overflow-wrap: anywhere; }
.subhead { font-size: 15px; margin: 18px 0 6px; }

.checkout { background: var(--bg-warm); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.checkout .form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.summary { position: sticky; top: 88px; }
.summary h3 { font-size: 16px; }
.summary-lines { margin: 12px 0 0; display: grid; gap: 8px; }
.summary-lines div { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines dt { color: var(--ink-2); }
.summary-lines dd { margin: 0; font-weight: 700; }
.summary-total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 17px; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { display: grid; gap: 3px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.choice input:checked + .choice-body { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 43, .16); background: #fffaf4; }
.choice input:focus-visible + .choice-body { box-shadow: 0 0 0 3px rgba(255, 106, 43, .3); }
.choice-price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.choice-price small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.choice-row .choice-body { padding-left: 44px; position: relative; }
.choice-row .choice-body::before { content: ''; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--white); }
.choice-row input:checked + .choice-body::before { border-color: var(--accent-btn); background: radial-gradient(circle, var(--accent-btn) 0 4px, var(--white) 5px); }
.choice-row .badge { justify-self: start; margin-top: 4px; }
.gateway-options { display: grid; gap: 10px; }

.grid-wide-left { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.invoice-lines td, .invoice-lines th { padding-left: 0; padding-right: 0; }
.invoice-lines tfoot th { font-size: 16px; border-top: 2px solid var(--ink); border-bottom: 0; background: none; text-transform: none; letter-spacing: 0; color: var(--ink); position: static; }
.paid-note { margin: 14px 0 0; color: var(--ok); font-weight: 700; }

.bank-box { display: grid; gap: 2px; margin: 14px 0; background: var(--bg-warm); border-radius: var(--radius-sm); padding: 6px 16px; }
.bank-box div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bank-box div:last-child { border-bottom: 0; }
.bank-box dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.bank-box dd { margin: 0; font-weight: 700; text-align: right; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bank-number { font-size: 20px; letter-spacing: .06em; }

.facts-list { grid-template-columns: 1fr; gap: 0; }
.facts-list div { background: none; border-radius: 0; padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.facts-list div:last-child { border-bottom: 0; }
.facts-list dd { margin: 0; font-weight: 600; }

.row-pad { padding-left: 22px; padding-right: 22px; }
.plan-mini-list { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.plan-mini { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; text-decoration: none; color: var(--ink); min-width: 160px; }
.plan-mini:hover { border-color: var(--accent); }
.plan-mini span { color: var(--muted); font-size: 13px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { font: inherit; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 12px; min-height: 40px; background: var(--white); }
.filter-search { flex: 1 1 260px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.nav-count { margin-left: auto; background: var(--accent-soft); color: #9a3412; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.nav-count-error { background: var(--error); color: var(--white); }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.attention { display: flex; gap: 12px; flex-wrap: wrap; }
.attention-item { flex: 1 1 240px; padding: 14px 16px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.attention-item strong { font-size: 20px; margin-right: 4px; }
.attention-warn { background: var(--warn-bg); color: #7a4a00; border-color: #f5dca6; }
.attention-error { background: var(--error-bg); color: #8f1b2c; border-color: #f6c3cb; }
.transfer-card .facts { margin-bottom: 14px; }
.review-actions { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.code-block { background: var(--dark); color: #f5ece3; padding: 16px; border-radius: var(--radius-sm); overflow: auto; font-size: 12.5px; max-height: 560px; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 960px) {
    .checkout-grid, .grid-wide-left { grid-template-columns: 1fr; }
    .summary { position: static; order: -1; }
    .stats-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .stats-4 { grid-template-columns: 1fr; }
    .facts-list div { grid-template-columns: 1fr; gap: 2px; }
    .checkout .form { padding: 18px; }
    .bank-box div { flex-direction: column; align-items: flex-start; }
    .bank-box dd { text-align: left; justify-content: flex-start; }
}

/* ---------- Phase 3: client hosting management ---------- */
.alert { position: relative; }
.alert-close { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.alert-close:hover { opacity: 1; }
.input, .input-group input { font: inherit; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 12px; min-height: 40px; background: var(--white); min-width: 0; }
.input:focus, .input-group input:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(255, 106, 43, .2); }
.input-group { display: flex; align-items: stretch; }
.input-group input { flex: 1; border-radius: 0; min-height: 42px; }
.input-group input:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group input:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-addon { display: flex; align-items: center; padding: 0 12px; background: var(--bg-warm); border: 1px solid var(--line-strong); color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.input-addon:first-child { border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-addon:last-child { border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.field-inline { display: flex; align-items: center; gap: 10px; }
.field-inline select { width: auto; min-width: 220px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar p { margin: 0; }
.secret-box { background: #fff4ea; border: 1px solid #f6c9a8; border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.secret-box dl { display: grid; gap: 6px; margin: 10px 0 12px; }
.secret-box dl div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; }
.secret-box dt { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.secret-box dd { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.secret-box code { background: var(--white); font-size: 14px; word-break: break-all; }
.confirm-box { background: var(--error-bg); border: 1px solid #f6c3cb; border-radius: var(--radius-sm); padding: 14px; }
.confirm-box p { margin: 0 0 10px; }
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.usage { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.usage-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.usage-head span { color: var(--ink-2); font-weight: 600; }
.meter { height: 8px; background: #f3e7da; border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.meter .meter-warn { background: #e6a23c; }
.meter .meter-danger { background: var(--error); }
.tabs-scroll { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.service-head { display: grid; gap: 10px; }
.service-head-main { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.inline-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.inline-facts dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.inline-facts dd { margin: 0; font-weight: 700; }
.service-dns { margin: 0; border-top: 1px solid var(--line); padding-top: 10px; }
.upgrade-list { display: grid; gap: 10px; margin-bottom: 12px; }
.upgrade-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; flex-wrap: wrap; }
.upgrade-row form { margin: 0; }
@media (max-width: 600px) {
    .secret-box dl div { grid-template-columns: 1fr; gap: 2px; }
    .field-inline { flex-direction: column; align-items: stretch; }
    .field-inline select { min-width: 0; width: 100%; }
}

/* ------------------------------------------------------------------ Phase 4: billing */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ok-text { color: var(--ok); }
.btn-danger { background: var(--error); color: var(--white); border-color: var(--error); }
.btn-danger:hover { background: #a71f33; }
.page-intro { max-width: 820px; margin-bottom: 18px; }

.alert-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.alert-row form { margin: 0; }
.card-alert { border-color: #f4d3d8; background: linear-gradient(0deg, var(--white), var(--white)) padding-box; }

.subtle-row td { color: var(--muted); font-size: 14px; padding-top: 6px; padding-bottom: 6px; }

.disclosure { border-top: 1px solid var(--line); padding: 12px 0 0; margin-top: 12px; }
.disclosure:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.disclosure > summary { cursor: pointer; font-weight: 700; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
.disclosure[open] > summary::before { transform: rotate(45deg); }
.disclosure > *:not(summary) { margin-top: 12px; }
.disclosure .upgrade-row + .upgrade-row { margin-top: 8px; }

/* Wallet */
.wallet-card { display: flex; flex-direction: column; justify-content: center; }
.wallet-balance { font-family: var(--font-head); font-size: 42px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 10px; color: var(--ink); }
.wallet-balance-sm { font-size: 20px; letter-spacing: -.02em; }
.wallet-pay { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--radius-sm); background: var(--ok-bg); border: 1px solid #bfe8d6; }
.wallet-pay form { margin: 0; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.big-code { font-size: 18px; letter-spacing: .06em; }
.nav-count-quiet { background: #f3ebe2; color: var(--ink-2); font-weight: 700; }

/* Saved cards */
.card-list { display: grid; gap: 10px; }
.saved-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.saved-card.is-expired { opacity: .65; }
.saved-card-main strong { margin-right: 6px; }
.saved-card-actions { display: flex; gap: 8px; }
.saved-card-actions form { margin: 0; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toggle-row form { margin: 0; }

/* Order form coupon */
.coupon-row { display: flex; gap: 10px; align-items: flex-end; }
.coupon-row .field { flex: 1; margin: 0; }
.coupon-row .btn { flex: none; }

/* Staff panel */
.check-grid { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.check-field { align-self: end; padding-bottom: 10px; }
.plain-list { margin: 6px 0 0; padding-left: 18px; }
.plain-list li { margin-bottom: 4px; }
.review-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; align-items: flex-start; }
.review-actions form { margin: 0; }
.form-tight { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.form-tight input { min-width: 200px; flex: 1; }

@media (max-width: 640px) {
    .wallet-balance { font-size: 32px; }
    .coupon-row { flex-direction: column; align-items: stretch; }
}

/* ------------------------------------------------------------------ Phase 5: public site */
.site-nav a.is-active, .nav-drop summary.is-active { color: var(--accent-ink); }
.site-nav { align-items: center; }
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-drop summary:hover { color: var(--ink); }
.nav-drop-menu { position: absolute; top: calc(100% + 14px); left: -16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 8px; width: 330px; display: grid; z-index: 30; }
.nav-drop-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink) !important; text-decoration: none; }
.nav-drop-menu a:hover { background: var(--bg-warm); }
.nav-drop-menu strong { font-size: 14px; }
.nav-drop-menu span { font-size: 13px; color: var(--muted); font-weight: 500; }
.site-nav-mobile-actions { display: none; }
.site-menu-btn { display: none; background: transparent; border: 0; color: var(--ink); width: 42px; height: 42px; margin-left: auto; cursor: pointer; border-radius: var(--radius-sm); }
.site-menu-btn svg { width: 24px; height: 24px; }
.site-flash { padding-top: 18px; }
.link-light { color: var(--accent-ink); }

.page-hero { background: radial-gradient(45% 80% at 90% 0%, rgba(255, 106, 43, .22), transparent 70%), radial-gradient(35% 60% at 65% 110%, rgba(255, 179, 71, .28), transparent 70%), var(--bg-warm); color: var(--ink); padding: 64px 0 72px; }
.page-hero h1 { font-size: clamp(32px, 4.8vw, 54px); font-weight: 800; letter-spacing: -.04em; max-width: 18ch; }
.page-hero .muted-light, .hero .muted-light { color: var(--ink-2); }
.page-hero-sm { padding: 48px 0 52px; }
.section-tight { padding: 40px 0; }
.narrow { max-width: 820px; }

.domain-search { display: flex; gap: 10px; max-width: 600px; margin-top: 26px; background: var(--white); padding: 7px; border-radius: 999px; box-shadow: 0 20px 50px rgba(120, 50, 10, .16); border: 1px solid var(--line); }
.domain-search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 17px; padding: 0 18px; color: var(--ink); background: transparent; outline: none; }
.card .domain-search { box-shadow: none; border: 1px solid var(--line); max-width: none; margin: 8px 0 16px; }
.hero-prices { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; color: var(--ink-2); font-size: 14px; }
.hero-prices span { background: rgba(255, 255, 255, .7); border: 1px solid var(--line-strong); padding: 6px 12px; border-radius: 999px; }
.hero-prices strong { color: var(--ink); }

.domain-results { display: grid; gap: 8px; margin: 8px 0 12px; }
.domain-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.domain-result.is-first { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 43, .12), var(--shadow); }
.domain-result-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.domain-result-name strong { font-size: 17px; word-break: break-all; }
.domain-result-price { display: flex; align-items: center; gap: 12px; }
.domain-result-price small { color: var(--muted); margin-left: 2px; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.service-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.service-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card h3 { font-size: 21px; margin: 0; }
.service-card p { flex: 1; margin: 0; }
.link-arrow { font-weight: 700; font-size: 14px; color: var(--accent-ink); margin-top: auto; }
.link-arrow::after { content: ' →'; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 32px; }
.why-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.why-grid h3 { font-size: 17px; margin-bottom: 6px; }
.why-grid p { margin: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-weight: 600; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-btn); color: var(--white); font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.steps li span { display: block; }

.cta-band { background: var(--dark); color: var(--white); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.035em; }
.cta-inner p { margin: 0; }
.cta-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; padding: 22px; border-radius: var(--radius); background: var(--bg-warm); border: 1px solid var(--line); }
.cta-card h3 { margin-bottom: 4px; }
.cta-card p { margin: 0; }

.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--accent-ink); }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

.prose { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.prose h2 { font-size: 20px; color: var(--ink); margin: 1.6em 0 .5em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .lead { font-size: 19px; color: var(--ink); }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal-nav { display: grid; gap: 4px; position: sticky; top: 88px; }
.legal-nav a { padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.legal-nav a.is-active, .legal-nav a:hover { background: var(--bg-warm); color: var(--ink); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-facts p { margin-bottom: 18px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 250, 244, .12); }
.footer-grid h4 { font-family: var(--font); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 250, 244, .55); margin: 6px 0 12px; }
.footer-grid a { display: block; color: rgba(255, 250, 244, .82); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand a { display: inline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; }

/* Forms shared by the order page and domain checkout */
.sub-panel { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; display: grid; gap: 14px; }
.sub-panel-title { font-size: 14px; margin: 6px 0 0; }
.field-narrow { max-width: 260px; }
.table-compact td, .table-compact th { padding: 8px 10px; }

/* ------------------------------------------------------------------ Phase 5: panels */
.tab-count { background: var(--bg-warm); color: var(--ink-2); font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.stack-sm { display: grid; gap: 10px; margin-top: 12px; }
.ext-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ext-row input[type="number"] { width: 110px; }
.ext-row .input-xs { width: 64px; }
.ext-pair { display: inline-flex; gap: 4px; }
.ext-pair input { width: 90px !important; }
.ext-row .check { margin: 0 4px; }

.thread { display: grid; gap: 12px; margin-bottom: 18px; }
.thread-msg { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.thread-msg.is-staff { border-left: 4px solid var(--accent); }
.thread-msg.is-internal { background: var(--warn-bg); border-color: #f5dca6; border-left-color: var(--warn); }
.thread-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.thread-head .muted { margin-left: auto; }
.thread-body { white-space: normal; overflow-wrap: anywhere; color: var(--ink); }
.thread-files { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: 14px; }

@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .legal-grid { grid-template-columns: 1fr; }
    .legal-nav { position: static; display: flex; flex-wrap: wrap; }
    .site-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .site-actions { display: none; }
    .site-nav { display: none; }
    .site-menu-open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 8px 20px 20px; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(90, 40, 10, .14); }
    .site-menu-open .site-nav > a, .site-menu-open .nav-drop summary { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
    .site-menu-open .nav-drop-menu { position: static; width: auto; box-shadow: none; background: transparent; padding: 0 0 8px 12px; }
    .site-menu-open .nav-drop-menu a { color: var(--ink) !important; }
    .site-menu-open .nav-drop-menu span { color: var(--muted); }
    .site-menu-open .site-nav-mobile-actions { display: grid; gap: 10px; margin-top: 16px; }
    .site-header-inner { position: relative; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .domain-search { flex-direction: column; }
    .domain-search input { padding: 12px 10px; }
    .domain-result-price { width: 100%; justify-content: space-between; }
    .ext-row input[type="number"] { width: 90px; }
}
.card-ok { border-color: #bfe8d6; box-shadow: inset 4px 0 0 var(--ok); }

/* ------------------------------------------------------------------ Phase 6: migration */
.inline-form { display: inline; margin-left: 6px; }
.report-body { overflow-x: auto; }
.report-body h1 { font-size: 22px; margin-bottom: 8px; }
.report-body h2 { font-size: 17px; margin: 24px 0 6px; }
.report-body table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 16px; }
.report-body th, .report-body td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.report-body th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* ------------------------------------------------------------------ Phase 7: quotes and projects */
.quote-rows { display: grid; gap: 10px; margin-bottom: 14px; }
.quote-row { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.quote-row-main { flex: 1 1 260px; display: grid; gap: 6px; }
.quote-row-main textarea { min-height: 0; }
.input-qty { width: 84px; }
.input-money { width: 130px; }
.input-suffix { display: inline-flex; align-items: center; gap: 4px; }
.quote-row-amount { min-width: 100px; text-align: right; padding-top: 10px; font-variant-numeric: tabular-nums; }
.quote-row .check { padding-top: 8px; }
.quote-totals { display: grid; gap: 8px; justify-content: end; text-align: right; }
.quote-totals > div { display: flex; gap: 16px; align-items: center; justify-content: flex-end; }
.quote-totals input { width: 140px; }
.quote-grand strong { font-size: 20px; }

.quote-doc-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.quote-doc-head h2 { font-size: 24px; margin: 2px 0 4px; }
.quote-doc-total { text-align: right; display: grid; }
.quote-doc-total strong { font-family: var(--font-head); font-size: 30px; letter-spacing: -.03em; color: var(--ink); }
.quote-intro { margin-bottom: 18px; font-size: 15px; }
.quote-lines { margin-bottom: 20px; }
.schedule { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; counter-reset: stage; }
.schedule li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg-warm); }
.quote-terms { line-height: 1.6; }
.quote-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.quote-decision { position: sticky; top: 88px; }

.milestones { display: grid; gap: 0; margin: 6px 0 4px; }
.milestone { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.milestone:first-child { border-top: 0; }
.milestone-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); margin-top: 3px; }
.milestone.is-done .milestone-dot { background: var(--ok); border-color: var(--ok); }
.milestone-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.milestone-actions form { margin: 0; }

.bar { height: 8px; border-radius: 999px; background: #f3e7da; overflow: hidden; min-width: 90px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--accent)); border-radius: inherit; }
.bar-lg { height: 10px; margin: 4px 0 10px; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.file-list li { display: grid; gap: 2px; overflow-wrap: anywhere; }

@media (max-width: 960px) {
    .quote-page { grid-template-columns: 1fr; }
    .quote-decision { position: static; }
}
@media (max-width: 560px) {
    .milestone { grid-template-columns: 18px minmax(0, 1fr); }
    .milestone-actions { grid-column: 2; justify-content: flex-start; }
    .quote-row-amount { text-align: left; padding-top: 0; }
}

/* Inputs that sit outside a .field label (quote builder rows, inline editors, filters) get the same look. */
.quote-row input:not([type="checkbox"]), .quote-row textarea, .quote-totals input,
.ext-row input:not([type="checkbox"]), .ext-row select, .form-tight input,
.filters input, .filters select, .form-inline > select, .form-inline > input:not([type="checkbox"]),
.input-suffix input, .coupon-row input {
    font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    padding: 8px 10px; min-height: 40px; transition: border-color .15s, box-shadow .15s;
}
.quote-row textarea { resize: vertical; font-size: 14px; }
.quote-row input:focus, .quote-row textarea:focus, .quote-totals input:focus, .ext-row input:focus, .ext-row select:focus,
.form-tight input:focus, .filters input:focus, .filters select:focus, .form-inline > select:focus, .form-inline > input:focus {
    outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(255, 106, 43, .2);
}
.quote-row-main input { width: 100%; font-weight: 600; }
.quote-row-main textarea { width: 100%; }
.quote-row { align-items: center; }
.quote-row-amount { padding-top: 0; }
/* Quote builder rows: description on its own line, numbers beneath it; payment stages on one line. */
[data-rows="items"] .quote-row { display: grid; grid-template-columns: 1fr 76px 120px 110px 34px; grid-template-areas: "main main main main main" ". qty price amount rm"; gap: 8px; align-items: center; }
[data-rows="items"] .quote-row-main { grid-area: main; }
[data-rows="items"] .input-qty { grid-area: qty; }
[data-rows="items"] .input-money { grid-area: price; }
[data-rows="items"] .quote-row-amount { grid-area: amount; }
[data-rows="milestones"] .quote-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 110px 34px; grid-template-areas: "main pct amount rm" "check check check check"; gap: 8px; align-items: center; }
[data-rows="milestones"] .quote-row-main { grid-area: main; }
[data-rows="milestones"] .input-suffix { grid-area: pct; }
[data-rows="milestones"] .quote-row-amount { grid-area: amount; }
[data-rows="milestones"] .check { grid-area: check; padding-top: 0; }
[data-rows] [data-remove-row] { grid-area: rm; }
[data-rows] .quote-row .input-qty, [data-rows] .quote-row .input-money, [data-rows] .input-suffix input { width: 100%; min-width: 0; }
[data-rows] .quote-row-amount { padding-top: 0; text-align: right; }
@media (max-width: 560px) {
    [data-rows="items"] .quote-row { grid-template-columns: 64px 1fr 1fr 34px; grid-template-areas: "main main main main" "qty price price rm" "amount amount amount amount"; }
    [data-rows="milestones"] .quote-row { grid-template-columns: 1fr 90px 34px; grid-template-areas: "main main main" "amount pct rm" "check check check"; }
    [data-rows] .quote-row-amount { text-align: left; }
}

/* ------------------------------------------------------------------ Sunrise redesign: shared pieces */
.eyebrow-accent { color: var(--accent-ink); }
.auth-side .eyebrow, .cta-band .eyebrow { color: var(--accent); }
.icon { flex: none; vertical-align: middle; }
.btn .icon { margin-left: -2px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.section-head .section-title { margin-bottom: 0; }
.section-head > p { max-width: 34em; margin: 0; }
.cta-band { background: radial-gradient(40% 120% at 100% 0%, rgba(255, 106, 43, .35), transparent 70%), var(--dark); color: #fffaf4; }

/* Home hero illustration */
.hero-art { position: relative; height: 430px; }
.art-browser { position: absolute; inset: 34px 10px 46px 40px; background: var(--white); border-radius: 18px; box-shadow: 0 30px 80px rgba(90, 40, 10, .22); overflow: hidden; color: var(--ink); }
.art-bar { height: 38px; background: #f6efe7; display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.art-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2d6ca; }
.art-bar i:nth-child(1) { background: #ff6b5f; } .art-bar i:nth-child(2) { background: #ffc130; } .art-bar i:nth-child(3) { background: #2bcf63; }
.art-bar span { margin-left: 12px; flex: 1; max-width: 250px; background: var(--white); border-radius: 8px; font-size: 12px; padding: 5px 10px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.art-site { padding: 22px 24px; }
.art-nav { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-size: 15px; color: #7a1f3d; }
.art-nav small { font: 500 11px var(--font); color: var(--muted); display: flex; gap: 12px; }
.art-banner { position: relative; overflow: hidden; display: flex; align-items: flex-end; margin-top: 16px; height: 150px; border-radius: 14px; padding: 20px; color: var(--white); background: linear-gradient(120deg, #7a1f3d, #d9480f 55%, #ffb347); }
.art-banner strong { position: relative; font-family: var(--font-head); font-size: 22px; line-height: 1.15; max-width: 10em; }
.art-rings { position: absolute; right: -30px; top: -30px; width: 210px; height: 210px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255, 255, 255, .18) 0 6px, transparent 6px 16px); }
.art-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.art-tiles i { height: 96px; border-radius: 10px; background: linear-gradient(135deg, #f6e7dc, #f1d3c0); }
.art-tiles i:nth-child(2) { background: linear-gradient(135deg, #f3e3f0, #e6c6df); } .art-tiles i:nth-child(3) { background: linear-gradient(135deg, #dff3ea, #bfe7d4); }
.art-note { position: absolute; display: flex; gap: 10px; align-items: center; background: var(--white); color: var(--ink); border-radius: 14px; box-shadow: 0 14px 40px rgba(90, 40, 10, .18); padding: 12px 14px; font-size: 13px; }
.art-note b { display: block; font-size: 14px; }
.art-dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.art-dot-ok { background: var(--ok-bg); color: var(--ok); } .art-dot-blue { background: #e5efff; color: #2459d6; } .art-dot-sun { background: var(--warn-bg); color: var(--warn); }
.art-note-1 { left: -10px; top: 300px; } .art-note-2 { right: -14px; top: -4px; } .art-note-3 { right: -10px; bottom: 4px; }

/* Selling points under the hero */
.trust-strip { background: var(--bg); border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px 30px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.trust-inner > span { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.trust-inner .icon { width: 36px; height: 36px; padding: 9px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }

/* Feature tiles */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento-tile { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
a.bento-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.bento-tile h3 { font-size: 22px; margin: 0; }
.bento-tile p { color: var(--muted); margin: 0; max-width: 32em; }
.bento-wide { grid-column: span 4; } .bento-narrow { grid-column: span 2; } .bento-half { grid-column: span 3; }
.bento-dark { background: var(--dark); border-color: var(--dark); color: #fffaf4; }
.bento-dark p { color: rgba(255, 250, 244, .74); }
.bento-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.bento-dark .bento-icon { background: rgba(255, 250, 244, .1); color: var(--accent); }
.bento-steps, .bento-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.bento-steps > span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; background: var(--bg-warm); border-radius: 999px; padding: 7px 12px; }
.bento-steps i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-btn); color: var(--white); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.bento-pills span { border: 1px solid rgba(255, 250, 244, .2); background: rgba(255, 250, 244, .06); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 13.5px; }
.bento-progress { margin-top: auto; display: flex; align-items: center; gap: 12px; background: var(--bg-warm); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.bento-progress .bar { flex: 1; }
.service-card .bento-icon { width: 44px; height: 44px; border-radius: 13px; }

/* ------------------------------------------------------------------ Sunrise redesign: client overview */
.greet { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.greet h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.035em; margin: 0; }
.greet p { margin: 4px 0 0; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.quick-item { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 700; transition: transform .15s, border-color .15s; min-width: 0; }
.quick-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.quick-item small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.quick-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.quick-sun { background: var(--accent-soft); color: var(--accent-ink); } .quick-sky { background: #e5efff; color: #2459d6; }
.quick-leaf { background: var(--ok-bg); color: var(--ok); } .quick-plum { background: #fbe4ef; color: #a2286a; }
.notice { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: inset 5px 0 0 var(--accent), var(--shadow); }
.notice-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.notice-text { display: grid; flex: 1; min-width: 0; }
.notice-text span { color: var(--muted); font-size: 14px; }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.dash-side { display: grid; gap: 22px; }
.site-cards { display: grid; gap: 14px; padding: 16px 22px 22px; }
.site-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.site-thumb { display: block; height: 116px; border-radius: 11px; overflow: hidden; background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.site-thumb-bar { display: block; height: 14px; background: #f6efe7; }
.site-thumb-banner { display: flex; align-items: center; padding-left: 12px; margin: 8px; height: 52px; border-radius: 7px; color: rgba(255, 255, 255, .92); font: 800 26px var(--font-head); }
.site-thumb-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0 8px; }
.site-thumb-tiles i { height: 24px; border-radius: 5px; }
.site-thumb-sun .site-thumb-banner { background: linear-gradient(120deg, #7a1f3d, #d9480f 55%, #ffb347); } .site-thumb-sun i { background: #f6e3d6; }
.site-thumb-leaf .site-thumb-banner { background: linear-gradient(120deg, #1b4d3e, #2f9e74 60%, #a7e3c4); } .site-thumb-leaf i { background: #dcefe6; }
.site-thumb-plum .site-thumb-banner { background: linear-gradient(120deg, #3b1d5c, #9a3c8f 60%, #f2a0c2); } .site-thumb-plum i { background: #f1e0ee; }
.site-thumb-sky .site-thumb-banner { background: linear-gradient(120deg, #123a6b, #2f7dd1 60%, #9ed0ff); } .site-thumb-sky i { background: #dfeaf8; }
.site-card-body { display: grid; gap: 8px; min-width: 0; }
.site-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-card-name { font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.site-card-name:hover { color: var(--accent-ink); }
.site-card-manage { margin-left: auto; }
.site-card-meta { margin: 0; }
.shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.shortcuts a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; color: var(--ink-2); text-decoration: none; background: var(--white); }
.shortcuts a:hover { border-color: var(--accent); color: var(--accent-ink); }
.wallet-tile { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 22px; border-radius: 22px; color: #fffaf4; text-decoration: none; background: linear-gradient(135deg, #1d1611, #5a2a10 55%, #ff6a2b); box-shadow: 0 18px 40px rgba(90, 40, 10, .28); }
.wallet-tile::after { content: ''; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; border: 28px solid rgba(255, 250, 244, .08); }
.wallet-tile small { opacity: .78; font-size: 13px; }
.wallet-tile strong { font: 800 34px/1 var(--font-head); letter-spacing: -.03em; }
.wallet-tile-actions { display: flex; gap: 8px; }
.wallet-tile-actions > span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 250, 244, .16); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 13.5px; }
.mini-list { display: grid; padding: 8px 22px 14px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mini-row:first-child { border-top: 0; }
.mini-row:hover strong { color: var(--accent-ink); }
.mini-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-warm); color: var(--ink-2); flex: none; }
.project-tile { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.project-tile:hover strong { color: var(--accent-ink); }
.ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--accent) calc(var(--p) * 1%), #f3e7da 0); }
.ring > span { width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 13px; }

@media (max-width: 1200px) {
    .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-cols { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-art { height: 320px; max-width: 520px; }
    .art-browser { inset: 10px 0 24px 0; }
    .art-note-1 { left: -6px; top: auto; bottom: -4px; } .art-note-2 { right: -6px; top: -8px; } .art-note-3 { display: none; }
    .art-banner { height: 110px; } .art-banner strong { font-size: 17px; } .art-tiles i { height: 60px; }
    .bento { grid-template-columns: 1fr; } .bento-wide, .bento-narrow, .bento-half { grid-column: auto; }
    .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
    .trust-inner > span { width: calc(50% - 8px); font-size: 13.5px; }
    .quick { grid-template-columns: 1fr; }
    .site-card { grid-template-columns: 1fr; }
    .site-thumb { height: 96px; }
    .notice { flex-wrap: wrap; }
    .promo-bar { font-size: 12.5px; }
}

/* Sunrise touch-ups */
.sidebar-help { display: grid; gap: 2px; }
.sidebar-help .btn { justify-self: start; }
.card-head-pad + .site-cards, .card-head-pad + .mini-list { padding-top: 0; }
.service-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hero h1 em { color: #e4520f; }
.avatar { background: var(--accent-btn); }
.grid-2 > div > .card + .card, .grid-2 > div > .card + .alert, .grid-2 > div > .alert + .card { margin-top: 20px; }

/* Service, hosting, about and contact pages */
.service-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.service-hero-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lg); display: grid; gap: 18px; transform: rotate(1.5deg); }
.service-hero-icon { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: var(--white); background: linear-gradient(135deg, #7a1f3d, #d9480f 55%, #ffb347); }
.service-hero-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.service-hero-card li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; padding: 10px 12px; border-radius: 12px; background: var(--bg-warm); }
.service-hero-card li .icon { color: var(--ok); }
.service-hero-foot { font-size: 13px; color: var(--muted); font-weight: 600; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.feature h3 { font-size: 20px; margin: 0; }
.feature p { margin: 0; color: var(--muted); }
.section-tint .feature { background: var(--white); }
.contact-facts { align-self: start; display: grid; gap: 4px; }
.contact-facts h3 { font-size: 20px; margin-bottom: 8px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.contact-line > span:last-child { display: grid; overflow-wrap: anywhere; }
.contact-ticket { display: grid; gap: 4px; margin-top: 10px; padding: 16px; border-radius: 16px; background: var(--bg-warm); }
.contact-ticket .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 960px) {
    .service-hero { grid-template-columns: 1fr; gap: 28px; }
    .service-hero-card { transform: none; max-width: 460px; }
    .feature-grid-3 { grid-template-columns: 1fr; }
}

/* Error pages */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: radial-gradient(45% 60% at 85% 10%, rgba(255, 106, 43, .22), transparent 70%), radial-gradient(40% 50% at 15% 100%, rgba(255, 179, 71, .25), transparent 70%), var(--bg-warm); }
.error-card { width: 100%; max-width: 560px; background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: 40px; box-shadow: var(--shadow-lg); }
.error-code { font: 800 72px/1 var(--font-head); letter-spacing: -.05em; color: var(--accent); margin: 28px 0 8px; }
.error-card h1 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -.03em; }
.error-card .hero-actions { margin-top: 24px; }
.error-help { margin: 24px 0 0; }
@media (max-width: 560px) { .error-card { padding: 28px 22px; } .error-code { font-size: 56px; } }

/* ------------------------------------------------------------------ Phase 8: our work, clients, testimonials */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.project-card { display: flex; flex-direction: column; border-radius: 22px; background: var(--white); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s; min-width: 0; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.project-card-body { display: grid; gap: 8px; padding: 20px 22px 24px; }
.project-card-client { font-size: 13px; font-weight: 800; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; }
.project-card-client small { font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 13px; }
.project-card strong { font-family: var(--font-head); font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.project-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-card-tags span { font-size: 12px; font-weight: 700; background: var(--bg-warm); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }

.pcover { --pc: #ff6a2b; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pc); max-width: 100%; }
.pcover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.pcover-hero { border-radius: 26px; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.pcover-mini { width: 88px; border-radius: 10px; }
.pcover-art { position: absolute; inset: 0; display: grid; place-items: end center; padding: 9% 9% 0; background: radial-gradient(70% 90% at 85% 0%, rgba(255, 255, 255, .28), transparent 60%), linear-gradient(140deg, var(--pc), color-mix(in srgb, var(--pc) 60%, #000) 120%); }
.pcover-window { width: 100%; height: 100%; background: var(--white); border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); display: flex; flex-direction: column; overflow: hidden; }
.pcover-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: #f6efe7; flex: none; }
.pcover-bar i { width: 7px; height: 7px; border-radius: 50%; background: #e0d3c6; }
.pcover-bar b { margin-left: 8px; font: 600 10.5px var(--font); color: var(--muted); background: var(--white); border-radius: 6px; padding: 2px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcover-body { display: grid; align-content: start; gap: 10px; padding: 16px 18px; }
.pcover-name { font: 800 clamp(18px, 2.4vw, 30px)/1.05 var(--font-head); letter-spacing: -.03em; color: var(--pc); overflow-wrap: anywhere; }
.pcover-lines { display: grid; gap: 6px; } .pcover-lines i { height: 7px; border-radius: 9px; background: #efe5da; width: 80%; } .pcover-lines i + i { width: 55%; }
.pcover-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.pcover-tiles i { height: 46px; border-radius: 8px; background: color-mix(in srgb, var(--pc) 16%, #fff); }
.pcover-hero .pcover-body { padding: 4% 5%; gap: 18px; }
.pcover-hero .pcover-name { font-size: clamp(30px, 6vw, 72px); }
.pcover-hero .pcover-tiles i { height: clamp(60px, 12vw, 150px); border-radius: 14px; }
.pcover-hero .pcover-bar { height: 34px; } .pcover-hero .pcover-bar b { font-size: 12.5px; }
.pcover-mini .pcover-art { padding: 10% 10% 0; } .pcover-mini .pcover-bar { height: 8px; padding: 0 4px; } .pcover-mini .pcover-bar i, .pcover-mini .pcover-bar b, .pcover-mini .pcover-lines, .pcover-mini .pcover-tiles { display: none; }
.pcover-mini .pcover-body { padding: 4px 6px; } .pcover-mini .pcover-name { font-size: 9px; }

.clients-strip { padding: 34px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.clients-strip-label { text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.clients-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.client-mark { --pc: #1d1611; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.client-mark:hover { border-color: var(--pc); transform: translateY(-2px); }
.client-mark-badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--pc); color: #fff; font: 800 13px var(--font-head); letter-spacing: -.02em; flex: none; }
.client-mark-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; }
.client-mark img { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
.client-mark:has(img) { padding: 10px 16px; }

.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.testimonial blockquote { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption span:last-child { display: grid; } .testimonial figcaption small { color: var(--muted); }
.stars { color: #f59e0b; letter-spacing: 2px; font-size: 16px; } .stars-off { color: #e8dccf; }
.case-body .testimonials { margin: 28px 0; grid-template-columns: 1fr; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-chips a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); }
.filter-chips a span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.filter-chips a.is-active { background: var(--dark); color: #fffaf4; border-color: var(--dark); } .filter-chips a.is-active span { color: rgba(255, 250, 244, .7); }

.back-link { display: inline-block; margin-bottom: 16px; font-weight: 700; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.back-link:hover { color: var(--accent-ink); }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.case-body h2 { font-size: 26px; margin-top: 1.4em; } .case-body h2:first-child { margin-top: 0; }
.case-features { list-style: none; padding: 0 !important; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.case-features li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); margin: 0 !important; font-size: 15px; color: var(--ink); }
.case-features .icon { color: var(--ok); margin-top: 3px; }
.case-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 28px; }
.case-gallery img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.case-facts { position: sticky; top: 96px; display: grid; gap: 14px; }
.case-facts dl { margin: 0; display: grid; gap: 12px; }
.case-facts dt { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.case-facts dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.case-facts-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 0 0; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 6px; } .tech-chips span { font-size: 13px; font-weight: 700; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; background: var(--bg); }
.next-project { display: grid; gap: 6px; padding: 30px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.next-project strong { font: 800 clamp(22px, 3vw, 32px)/1.15 var(--font-head); letter-spacing: -.03em; }
.next-project:hover { border-color: var(--accent); }

/* Help centre */
.help-hero .domain-search { margin-top: 22px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; } .crumbs a { color: var(--ink-2); font-weight: 700; text-decoration: none; } .crumbs a:hover { color: var(--accent-ink); }
.article-list { display: grid; gap: 10px; margin-bottom: 32px; }
.article-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.article-row:hover { border-color: var(--accent); }
.article-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.article-row small { color: var(--muted); font-size: 14px; }
.article-row-cat { flex: none; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.article-list-compact .article-row { padding: 12px 16px; }
.feature-link { text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; } .feature-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.help-body { max-width: 72ch; }
.help-body table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; background: var(--white); border-radius: 12px; overflow: hidden; }
.help-body th, .help-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.help-body th { background: #fffaf4; font-size: 13px; }
.help-body ol, .help-body ul { padding-left: 22px; } .help-body li { margin-bottom: 8px; }
.help-body code { background: var(--bg-warm); }
.help-aside { position: sticky; top: 96px; }
.help-preview { max-height: 520px; overflow: auto; font-size: 14px; }
.feedback { margin: 28px 0; } .feedback p { margin: 0; }
.feedback-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.quick-answers h2 { margin-bottom: 2px; }

/* Status page */
.status-headline { display: flex; align-items: center; gap: 14px; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px rgba(15, 138, 95, .18); flex: none; }
.status-down .status-dot { background: var(--error); box-shadow: 0 0 0 5px rgba(194, 40, 61, .16); }
.status-unknown .status-dot { background: #d6a400; box-shadow: 0 0 0 5px rgba(214, 164, 0, .18); }
.status-headline .status-dot { width: 18px; height: 18px; }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); font-weight: 700; }
.status-row:first-child { border-top: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ok); }
.status-pill .status-dot { width: 9px; height: 9px; box-shadow: none; }
.status-pill.status-down { color: var(--error); } .status-pill.status-unknown { color: #9a6b00; }

/* Site notice and WhatsApp */
.site-notice { font-size: 14px; font-weight: 600; padding: 10px 0; }
.site-notice .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
.site-notice a { color: inherit; font-weight: 800; }
.site-notice-info { background: #e5efff; color: #1d3f8f; } .site-notice-warn { background: var(--warn-bg); color: #7a4a00; } .site-notice-error { background: var(--error-bg); color: #8f1b2c; }
.panel-main .site-notice .wrap { max-width: none; padding: 0 32px; justify-content: flex-start; }
.site-notice-preview { border-radius: 14px; }
.whatsapp-float { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #1f8f4e; color: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 14px 34px rgba(16, 90, 48, .35); transition: transform .15s; }
.whatsapp-float:hover { transform: translateY(-2px); }

/* Staff forms */
.upload-preview { width: 100%; max-width: 280px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 6px; }
.upload-preview-logo { max-width: 120px; background: var(--bg); padding: 8px; }
.upload-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 8px; }
.upload-gallery label { display: grid; gap: 4px; } .upload-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.input-color { height: 44px; padding: 4px !important; cursor: pointer; }
.input-mono { font-family: ui-monospace, Menlo, Consolas, monospace !important; font-size: 13.5px !important; line-height: 1.6; }

@media (max-width: 960px) {
    .case-grid { grid-template-columns: 1fr; gap: 28px; }
    .case-facts, .help-aside { position: static; }
}
@media (max-width: 600px) {
    .project-grid { grid-template-columns: 1fr; }
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 14px; }
    .article-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .client-mark-name { font-size: 14px; }
}

/* ---------------------------------------------------------------- Phase 9 */

/* Shared bits */
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.text-center { text-align: center; }
.choice-list { display: grid; gap: 8px; margin: 4px 0 6px; }
.check-lg { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-warm); }
.check-lg input { width: 18px; height: 18px; }
.check-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
@media (max-width: 640px) { .check-grid-2 { grid-template-columns: 1fr; } }
.input-lg { font-size: 1.25rem; font-weight: 700; font-family: var(--font-head); padding: 14px 16px; }
.input-addon-row { display: flex; gap: 8px; }
.input-addon-row input { flex: 1; min-width: 0; }
.email-preview { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; background: var(--white); max-height: 560px; overflow: auto; }

/* Staff roles */
.role-matrix th, .role-matrix td { vertical-align: middle; }
.role-matrix thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-weight: 800; font-size: 13px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card, .post-featured { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.post-card:hover, .post-featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-cover { display: block; aspect-ratio: 16 / 9; background: var(--bg-warm); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cover-art { display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 18px; background: radial-gradient(circle at 85% 15%, var(--sun) 0 14%, transparent 15%), radial-gradient(circle at 85% 15%, rgba(255, 179, 71, .35) 0 26%, transparent 27%), linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 55%, var(--accent-btn) 140%); }
.post-cover-art span { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; }
.post-card-body { display: grid; gap: 8px; padding: 18px 20px 22px; }
.post-card-body strong { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.25; }
.post-meta { font-size: 12.5px; color: var(--accent-ink); font-weight: 700; }
.post-featured { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 28px; }
.post-featured .post-cover { aspect-ratio: auto; min-height: 300px; }
.post-featured .post-card-body { align-content: center; padding: 34px; gap: 12px; }
.post-featured .post-card-body strong { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
@media (max-width: 820px) { .post-featured { grid-template-columns: 1fr; } .post-featured .post-cover { aspect-ratio: 16 / 9; min-height: 0; } .post-featured .post-card-body { padding: 22px; } }
.post-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.post-byline .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: #fff; font-weight: 800; }
.post-byline > span:last-child { display: grid; }
.post-byline small { color: var(--muted); }
.post-cover-hero img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: -10px; }
.post-body { font-size: 17px; line-height: 1.75; }
.post-body h2 { margin-top: 1.6em; font-size: 1.6rem; }
.post-body h3 { margin-top: 1.3em; }
.post-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); color: var(--ink-2); font-style: italic; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.post-body th { background: var(--bg-warm); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.share-row > span { font-weight: 700; margin-right: 4px; color: var(--muted); font-size: 13px; }
.share-row a, .share-row .link-button { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--white); cursor: pointer; font-family: inherit; }
.share-row a:hover, .share-row .link-button:hover { border-color: var(--accent); color: var(--accent-ink); }
.refer-link .share-row { border-top: 0; padding-top: 0; margin-top: 12px; }

/* Newsletter */
.newsletter-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 26px 28px; border-radius: var(--radius); background: var(--bg-warm); border: 1px solid var(--line); }
.newsletter-copy { display: grid; gap: 4px; max-width: 520px; }
.newsletter-copy strong { font-family: var(--font-head); font-size: 1.25rem; }
.newsletter-copy span { color: var(--ink-2); }
.newsletter-form { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.newsletter-form input[type=email] { flex: 1; min-width: 0; }
.newsletter-done { margin: 0; }
.newsletter-box .error-text { flex-basis: 100%; margin: 0; }
.footer-newsletter { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.newsletter-compact { background: var(--dark-2); border-color: var(--dark-3); color: #fff; }
.newsletter-compact .newsletter-copy span { color: rgba(255, 255, 255, .7); }
.newsletter-compact input[type=email] { background: var(--dark); border-color: var(--dark-3); color: #fff; }
.newsletter-compact input[type=email]::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-status { max-width: 560px; margin: 0 auto; text-align: center; padding: 40px 32px; }
.newsletter-status .btn { margin-top: 10px; }
@media (max-width: 520px) { .newsletter-form { flex-direction: column; } .newsletter-box { padding: 22px 18px; } }

/* Refer and earn */
.refer-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, #fff 0%, var(--bg-warm) 100%); }
.refer-hero h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.refer-link { padding: 20px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.refer-link input[readonly] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: var(--bg); }
@media (max-width: 820px) { .refer-hero { grid-template-columns: 1fr; } }

/* Live chat: customer widget */
.chat-widget { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-launcher { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px 13px 16px; border: 0; border-radius: 999px; background: var(--dark); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 14px 34px rgba(29, 22, 17, .3); transition: transform .15s; }
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher svg { color: var(--sun); }
.chat-badge { position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent-btn); color: #fff; font-size: 12px; display: grid; place-items: center; border: 2px solid var(--bg); }
.chat-window { width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--dark); color: #fff; }
.chat-head strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.chat-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: #9a8b7e; }
.chat-status.is-online i { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.chat-close { border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .8; }
.chat-close:hover { opacity: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-hello { padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.chat-hello p { margin: 0 0 4px; }
.chat-msg { max-width: 82%; display: grid; gap: 3px; }
.chat-msg p { margin: 0; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg span { font-size: 11.5px; color: var(--muted); padding: 0 6px; }
.chat-msg.from-me { align-self: flex-end; justify-items: end; }
.chat-msg.from-me p { background: var(--accent-btn); color: #fff; border-bottom-right-radius: 5px; }
.chat-msg.from-them { align-self: flex-start; }
.chat-msg.from-them p { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-system { align-self: center; margin: 4px 0; padding: 6px 12px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: 12.5px; text-align: center; max-width: 90%; }
.chat-ticket-link { align-self: center; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; border-radius: 12px; }
.chat-form .error-text { flex-basis: 100%; margin: 0; }
.panel-has-whatsapp .chat-widget { bottom: 90px; }
@media (max-width: 520px) { .chat-launcher span { display: none; } .chat-launcher { padding: 15px; } .chat-window { height: calc(100vh - 110px); } }

/* Live chat: staff inbox */
.chat-inbox { display: grid; gap: 18px; }
.chat-inbox-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.chat-inbox-bar > div { display: grid; gap: 2px; }
.chat-inbox-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.chat-list { max-height: 640px; overflow-y: auto; }
.chat-list-item { display: grid; gap: 3px; width: 100%; text-align: left; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; color: inherit; cursor: pointer; }
.chat-list-item:hover { background: var(--bg); }
.chat-list-item.is-active { background: #fff8f2; box-shadow: inset 3px 0 0 var(--accent); }
.chat-list-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-thread { display: flex; flex-direction: column; min-height: 520px; }
.chat-body-staff { min-height: 380px; max-height: 520px; }
.chat-thread .chat-form { border-radius: 0 0 var(--radius) var(--radius); }
@media (max-width: 900px) { .chat-inbox-grid { grid-template-columns: 1fr; } .chat-list { max-height: 280px; } }
.chat-form textarea { font: inherit; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line-strong); background: var(--white); }
.chat-form textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px rgba(255, 106, 43, .2); }
.field-pair { align-items: start; }
.prose.small p { font-size: 14px; line-height: 1.6; margin: 0 0 8px; }

/* Registrars & automatic domain prices */
.ext-row input[readonly] { opacity: .6; cursor: not-allowed; }
.dns-table td { vertical-align: middle; }
.dns-table code { word-break: break-all; }
.dns-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-end; }
.dns-row .field { margin: 0; }
.dns-row input[name="record"] { width: 140px; }
.dns-row select { width: 100px; }
.dns-row input[name="value"] { flex: 1 1 220px; min-width: 180px; }
.dns-row input[name="priority"], .dns-row input[name="ttl"] { width: 90px; }

/* Cart & checkout */
.cluster { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.checkout .card + .card { margin-top: 16px; }
.cart-empty { text-align: center; padding: 32px 24px; }
.cart-empty .cluster { justify-content: center; margin-top: 12px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line.has-problem { background: #fff4f1; }
.cart-line-main { display: grid; gap: 3px; min-width: 0; }
.cart-line-main strong { overflow-wrap: anywhere; font-size: 16px; }
.cart-line-option select { min-width: 110px; }
.cart-line-price { text-align: right; display: grid; gap: 2px; white-space: nowrap; }
.cart-line-price strong { font-size: 16px; }
.upsell p { margin: 0 0 6px; }
.upsell-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); }
.add-more summary { cursor: pointer; list-style: none; }
.add-more summary::-webkit-details-marker { display: none; }
.add-more summary::after { content: '+'; float: right; font-weight: 700; color: var(--accent); }
.add-more[open] summary::after { content: '−'; }
.add-more .cluster { margin-top: 12px; }
.summary-items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.summary-items li span:first-child { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.summary-items li span:last-child { font-weight: 700; white-space: nowrap; }
.summary .coupon-row { margin-top: 14px; }
.summary .btn-block { margin-top: 16px; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; color: var(--ink, #1b1410); }
.cart-link:hover { background: rgba(255, 106, 43, .08); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.auth-cart-note { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: #fff4ea; border: 1px solid var(--line); font-size: 14px; display: grid; gap: 4px; }
@media (max-width: 720px) {
    .cart-line { grid-template-columns: minmax(0, 1fr) auto; }
    .cart-line-option { grid-column: 1; }
    .cart-line-price { grid-column: 2; grid-row: 1; }
    .cart-line-remove { grid-column: 2; }
}

/* ---------- Spacing between stacked blocks ----------
   Cards, grids, tables and alerts stacked inside a plain wrapper (a page column,
   an <aside>, a Livewire component root, a .wrap) had no space between them.
   Wrappers with their own grid/flex gap have a class, so they're not affected. */
:where(div, aside, section, article, main):not([class]) > :is(.card, .grid-2, .grid-3, .table-wrap, .usage-grid, .toolbar, .stats, .domain-results, .alert, details.card) + :is(.card, .grid-2, .grid-3, .table-wrap, .usage-grid, .toolbar, .stats, .domain-results, .alert, details.card, .form),
.grid-2 > aside > .card + .card, .grid-2 > aside > .card + .alert, .grid-2 > aside > .alert + .card,
.wrap > .card + .card, .wrap > .card + .grid-2, .wrap > .grid-2 + .card, .wrap > .grid-2 + .grid-2, .wrap > .table-wrap + .card, .wrap > .card + .table-wrap,
.checkout-grid > div > .card + .card, .checkout-grid > div > .card + details.card, .checkout-grid > div > details.card + .card { margin-top: 20px; }
.card-flush > .table-wrap + .table-wrap { border-top: 1px solid var(--line); margin-top: 0; }
