/* webboraa.com app UI (dashboard, auth, landing). Plain CSS: no build step. */
:root {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --card: #fff;
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --brand-soft: #eef2ff;
    --danger: #dc2626;
    --ok: #059669;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -.02em; margin: 0; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; background: var(--brand); color: #fff; font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f1f5f9; }
.btn-danger { background: transparent; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-block { width: 100%; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.input, textarea.input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.flash { padding: 12px 16px; border-radius: 10px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; margin-bottom: 20px; font-size: 14px; }
.flash.idea, .flash.idea-go { display: flex; gap: 10px; align-items: flex-start; background: #eef2ff; color: #3730a3; border-color: #c7d2fe; overflow-wrap: anywhere; }
.flash.idea i, .flash.idea-go i { margin-top: 3px; color: #6366f1; }
.flash.dev { background: #fffbeb; color: #92400e; border-color: #fde68a; overflow-wrap: anywhere; }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(1200px 600px at 10% -10%, #e0e7ff, transparent), radial-gradient(900px 500px at 110% 110%, #cffafe, transparent), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.btn-google { gap: 10px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-google i { font-size: 18px; color: #4285f4; }
.btn-google:hover { background: #f8fafc; color: var(--ink); }
.google-error { margin: 0 0 12px; }
.google-consent { margin: 10px 0 0; font-size: 12px; text-align: center; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; color: var(--muted); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 800 20px 'Plus Jakarta Sans', sans-serif; color: var(--ink); letter-spacing: -.03em; margin-bottom: 24px; }
.logo:hover { text-decoration: none; }
/* Brand mark: a white "w" stroke on the indigo→cyan rounded square (same drawing as OgImage::mark and favicon.svg). */
.logo i { flex: none; width: 28px; height: 28px; border-radius: 8px; display: inline-block; box-shadow: 0 4px 14px -4px rgba(99, 102, 241, .55);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolyline points='22,35 36,67 50,42 64,67 78,35' fill='none' stroke='%23fff' stroke-width='11' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat, linear-gradient(135deg, #6366f1, #22d3ee); }
.logo .tld { margin-left: -8px; font-weight: 600; opacity: .55; letter-spacing: -.01em; } /* sits flush against "webboraa" despite the flex gap */

/* app shell */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 16px; }
.nav .logo { margin: 0; }
.nav .spacer { flex: 1; }
.nav .who { color: var(--muted); font-size: 14px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 32px 16px 64px; }

/* dashboard */
.create { background: linear-gradient(135deg, #312e81, #4f46e5 55%, #0891b2); color: #fff; border-radius: 20px; padding: 32px; margin-bottom: 36px; box-shadow: var(--shadow); }
.create h1, .create h2 { font-size: 24px; margin-bottom: 6px; }
.create { position: relative; overflow: hidden; }
.create::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%); pointer-events: none; }
.create > * { position: relative; }
.create-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.create-top h2 { margin: 0; }
.create-top .create-tabs { margin: 0; }
.create .create-form { flex-direction: column; gap: 10px; }
.create .create-form textarea { flex: none; width: 100%; min-height: 88px; font-size: 15px; padding: 14px 16px; border-radius: 12px; }
.create-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.idea-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.idea-chips span { opacity: .75; margin-right: 2px; }
.idea-chips button { font: inherit; font-weight: 600; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: background .15s; }
.idea-chips button:hover { background: rgba(255,255,255,.24); }
.create .create-foot .btn { align-self: auto; }
.logo-pick, .files-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; }
.logo-pick-btn { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #fff; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.45); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: background .15s, border-color .15s; }
.logo-pick-btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.7); }
.logo-pick-btn:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.logo-pick-btn small { font-weight: 400; opacity: .75; }
.logo-pick-file, .files-pick-list { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border-radius: 10px; padding: 4px 4px 4px 4px; max-width: 100%; }
.logo-pick-file[hidden], .files-pick-list[hidden] { display: none; }
.logo-pick-file img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 7px; padding: 3px; }
.logo-pick-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.logo-pick-remove { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: #fff; cursor: pointer; }
.logo-pick-remove:hover { background: rgba(255,255,255,.2); }
.logo-pick-note { opacity: .75; }
.maps-pick { display: grid; gap: 8px; font-size: 13px; }
.maps-pick-field { position: relative; display: block; }
.maps-pick-field i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; }
.maps-pick-field .input { width: 100%; padding-left: 38px; font-size: 14px; }
.maps-pick-status { margin: 0; opacity: .85; }
.maps-pick-status:empty { display: none; }
.maps-pick-status.is-error { opacity: 1; color: #fecaca; font-weight: 600; }
.maps-pick-found { margin: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.08); display: grid; gap: 10px; min-width: 0; }
.maps-pick-found[hidden] { display: none; }
.maps-pick-found legend { padding: 0 6px; font-weight: 600; }
.maps-pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 12px; }
.maps-pick-grid label { display: grid; gap: 4px; font-weight: 600; }
.maps-pick-grid .input { width: 100%; font-size: 14px; font-weight: 400; }
.maps-pick-wide { grid-column: 1 / -1; }
.maps-pick-remove { justify-self: start; font: inherit; font-weight: 600; color: #fff; background: transparent; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; }
.create-limit { background: rgba(255,255,255,.14); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.create-limit a { color: #fff; font-weight: 700; text-decoration: underline; }

/* dashboard header + stats */
/* Dashboard hero: greeting, plan and the four stats in one card. */
.dash-hero { position: relative; overflow: hidden; isolation: isolate; margin-bottom: 24px; padding: 26px 28px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.dash-hero::before { content: ""; position: absolute; z-index: -1; right: -140px; top: -180px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(99, 102, 241, .14), rgba(6, 182, 212, .06) 60%, transparent); pointer-events: none; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.dash-hello { margin: 0 0 4px; color: var(--muted); font-size: 14px; font-weight: 500; }
.dash-hello i { color: #f59e0b; margin-right: 4px; }
.dash-head h1 { font-size: 30px; letter-spacing: -.02em; }
.dash-sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.dash-plan { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; }
.dash-plan:hover { text-decoration: none; border-color: #c7d2fe; }
.dash-plan i { color: #f59e0b; margin-right: 4px; }
.dash-plan strong { background: var(--brand); color: #fff; padding: 6px 13px; border-radius: 999px; font-size: 13px; }
.dash-plan:hover strong { background: var(--brand-dark); }
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.dash-stat { display: flex; align-items: center; gap: 12px; padding: 4px 16px; color: var(--ink); min-width: 0; }
.dash-stat + .dash-stat { border-left: 1px solid var(--line); }
.dash-stat:first-child { padding-left: 0; }
a.dash-stat:hover { text-decoration: none; }
a.dash-stat:hover strong { color: var(--brand); }
a.dash-stat[aria-disabled] { pointer-events: none; }
.dash-stat-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 16px; }
.dash-stat-icon.hot { background: #fff7ed; color: #ea580c; }
.dash-stat strong { display: block; font: 800 22px/1.15 'Plus Jakarta Sans', sans-serif; transition: color .15s; }
.dash-stat strong small { font-size: 14px; color: var(--muted); font-weight: 600; }
.dash-stat div span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Sites list head: count, filter pills, search. */
.dash-sites-head { flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dash-sites-head h2 { display: flex; align-items: center; gap: 8px; }
.section-head .dash-count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.dash-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dash-filter { display: inline-flex; padding: 3px; gap: 2px; background: #eef2f7; border-radius: 999px; }
.dash-filter button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 13px/1.2 inherit; font-family: inherit; cursor: pointer; transition: background .15s, color .15s; }
.dash-filter button:hover { color: var(--ink); }
.dash-filter button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.dash-filter em { font-style: normal; font-size: 12px; color: var(--muted); }
.dash-search { position: relative; display: block; }
.dash-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.dash-search input { width: 200px; padding: 8px 12px 8px 32px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; background: var(--card); color: var(--ink); }
.dash-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.dash-site[hidden], .dash-new[hidden] { display: none; }
.dash-nomatch { margin: 4px 0 0; padding: 22px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.dash-nomatch i { margin-right: 6px; }
.dash-nomatch button { border: 0; background: none; padding: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }
.dash-nomatch[hidden] { display: none; }

/* dashboard site cards */
.dash-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dash-site { overflow: visible; transition: box-shadow .2s, transform .2s, border-color .2s; }
.dash-site:hover { transform: translateY(-2px); border-color: #c7d2fe; box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 16px 36px -12px rgba(79, 70, 229, .22); }
.dash-thumb { display: block; position: relative; margin: 12px 12px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #f1f5f9; }
.dash-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.dash-bar i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; flex: none; }
.dash-bar i:nth-child(1) { background: #fca5a5; } .dash-bar i:nth-child(2) { background: #fcd34d; } .dash-bar i:nth-child(3) { background: #86efac; }
.dash-bar em { flex: 1; margin-left: 8px; font-style: normal; font-size: 11px; color: var(--muted); background: #fff; border-radius: 6px; padding: 1px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-shot { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e0e7ff, #cffafe); background-size: cover; background-position: center top; position: relative; transition: transform .4s; }
.dash-shot .initial { position: absolute; inset: 0; display: grid; place-items: center; font: 800 48px 'Plus Jakarta Sans', sans-serif; color: rgba(79, 70, 229, .35); }
.dash-open { position: absolute; inset: 26px 0 0; display: grid; place-items: center; background: rgba(15, 23, 42, .45); color: #fff; font-weight: 600; font-size: 14px; opacity: 0; transition: opacity .2s; }
.dash-open i { margin-right: 6px; }
.dash-thumb:hover .dash-open, .dash-thumb:focus-visible .dash-open { opacity: 1; }
.dash-thumb:hover .dash-shot { transform: scale(1.03); }
.dash-thumb:hover { text-decoration: none; }
/* A site still being built: progress card over the thumbnail. */
.dash-build { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: grid; gap: 7px; padding: 11px 13px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(15, 23, 42, .12); color: #0f172a; }
.dash-build-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dash-build-head i { color: #6366f1; }
.dash-build-head b { font-weight: 700; flex: 1; }
.dash-build-head em { font-style: normal; font-weight: 800; color: #4f46e5; font-size: 15px; }
.dash-build-bar { display: block; height: 6px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.dash-build-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6366f1, #06b6d4); transition: width .6s; }
.dash-build small { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-build.is-running .dash-build-head i { animation: dash-build-pulse 1.4s ease-in-out infinite; }
.dash-build.is-ready .dash-build-head i, .dash-build.is-ready .dash-build-head em { color: #059669; }
.dash-build.is-ready .dash-build-bar i { background: #10b981; }
.dash-build.is-stopped .dash-build-head i, .dash-build.is-stopped .dash-build-head em { color: #d97706; }
.dash-build.is-stopped .dash-build-bar i { background: #f59e0b; }
.dash-build.is-failed .dash-build-head i, .dash-build.is-failed .dash-build-head em { color: #dc2626; }
@keyframes dash-build-pulse { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .dash-build.is-running .dash-build-head i { animation: none; } }
.dash-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash-title h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.dash-title .badge { flex: none; }
.dash-url { font-size: 13px; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }
.dash-site .meta i { margin-right: 3px; opacity: .7; }
.dash-actions { align-items: center; padding-top: 4px; }
.dash-actions > .btn:first-child { flex: 1; }
.dash-actions > .btn-ghost { flex: 1; }
.dash-more { position: relative; }
.dash-more summary { list-style: none; width: 38px; padding-left: 0; padding-right: 0; }
.dash-more summary::-webkit-details-marker { display: none; }
.dash-more[open] summary { background: #f1f5f9; }
.dash-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 190px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .14); }
.dash-menu a, .dash-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 14px inherit; font-family: inherit; text-align: left; cursor: pointer; }
.dash-menu a:hover, .dash-menu button:hover { background: #f1f5f9; text-decoration: none; }
.dash-menu i { width: 16px; color: var(--muted); text-align: center; }
.dash-menu .danger, .dash-menu .danger i { color: var(--danger); }
.dash-menu form { margin: 0; }
.dash-new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 280px; padding: 24px; text-align: center; border: 2px dashed #c7d2fe; border-radius: var(--radius); color: var(--ink); background: rgba(238, 242, 255, .4); transition: background .15s, border-color .15s; }
.dash-new:hover { text-decoration: none; background: var(--brand-soft); border-color: var(--brand); }
.dash-new span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 20px; margin-bottom: 6px; }
.dash-new small { color: var(--muted); max-width: 240px; }
.dash-empty i { font-size: 28px; color: var(--brand); }
.dash-empty h3 { margin: 10px 0 4px; color: var(--ink); }
.dash-empty p { margin: 0 auto; max-width: 420px; }
@media (max-width: 960px) {
    .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-stat { padding-top: 12px; padding-bottom: 12px; }
    .dash-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .dash-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
    .dash-hero { padding: 20px 18px 16px; border-radius: 18px; }
    .dash-head { margin-bottom: 16px; }
    .dash-head h1 { font-size: 25px; }
    .dash-sub { font-size: 14px; }
    .dash-stats { padding-top: 6px; }
    .dash-stat { padding: 10px 4px 10px 12px; gap: 10px; align-items: flex-start; }
    .dash-stat-icon { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
    .dash-stat strong { font-size: 19px; }
    .dash-stat div span { white-space: normal; font-size: 12.5px; }
    .dash-sites-head { align-items: flex-start; }
    .dash-tools, .dash-filter { width: 100%; }
    .dash-filter button { flex: 1; justify-content: center; }
    .dash-search, .dash-search input { width: 100%; }
    .dash-grid { grid-template-columns: 1fr; }
    .create-foot .btn { width: 100%; }
}
.create p { margin: 0 0 18px; opacity: .85; }
.create form { display: flex; gap: 12px; flex-wrap: wrap; }
.create textarea { flex: 1 1 420px; min-height: 52px; resize: vertical; border: 0; }
.create .btn { background: #fff; color: var(--brand-dark); align-self: flex-start; }
.create .btn:hover { background: #eef2ff; }
.create-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; }
.create-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.create-tabs button:hover { background: rgba(255,255,255,.1); }
.create-tabs button[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--brand-dark); }
.create .rebuild-form .input { flex: 1 1 260px; border: 0; }
.create .template-link { margin: 14px 0 0; font-size: 14px; }
.create .template-link a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.create .template-link span { opacity: .75; }
.create .own { flex: 1 1 100%; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; opacity: .9; cursor: pointer; }
.create .own input { margin-top: 3px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; }
.section-head span { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.site { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.site:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15, 23, 42, .1); }
.thumb { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e0e7ff, #cffafe); background-size: cover; background-position: center top; position: relative; }
.thumb .initial { position: absolute; inset: 0; display: grid; place-items: center; font: 800 44px 'Plus Jakarta Sans', sans-serif; color: rgba(79, 70, 229, .35); }
.site-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.site-body h3 { font-size: 16px; }
.site-body h3 a { color: var(--ink); }
.meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: var(--muted); }
.badge.live { background: #ecfdf5; color: var(--ok); }
.actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.actions form { margin: 0; }
.actions .btn { padding: 8px 12px; font-size: 13px; }
.panel { max-width: 640px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.address { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; overflow: hidden; }
.address span { flex: none; padding: 0 4px 0 13px; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.address .input { border: 0; border-radius: 0; min-width: 0; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.hint.warn { color: #92400e; }
.domain, .versions, .site-opt { margin-top: 28px; }
.domain h3, .site-opt h3 { font-size: 16px; margin-bottom: 4px; }
.domain form, .site-opt form { margin: 0; }
.site-opt h4 { font-size: 14px; margin: 22px 0 2px; }
.chat-log { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.chat-log li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; }
.chat-log span { color: var(--muted, #64748b); font-size: 14px; }
.chat-log small { color: var(--muted, #64748b); font-size: 12px; }
.domain .row, .site-opt .row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.site-opt .field { margin-top: 14px; }
.site-opt .check { align-items: flex-start; margin-top: 10px; }
.site-opt .check input { margin-top: 4px; }
.site-opt .actions { margin-top: 14px; }
.badge.warn { background: #fffbeb; color: #b45309; }
.domain .row .input { flex: 1 1 260px; }
.dns { width: 100%; border-collapse: collapse; margin: 14px 0 4px; font-size: 13px; table-layout: fixed; }
.dns th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px 6px 0; }
.dns td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.dns th:first-child { width: 58px; }
.dns code { font-size: 12.5px; word-break: break-all; background: #f1f5f9; padding: 2px 5px; border-radius: 5px; cursor: copy; }
.versions h3 { font-size: 16px; margin-bottom: 4px; }
.versions ol { list-style: none; margin: 14px 0 0; padding: 0; }
.versions li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.versions li strong { min-width: 34px; }
.versions .when { flex: 1; min-width: 0; color: var(--muted); }
.versions form { margin: 0; }
.versions .btn { padding: 6px 11px; font-size: 13px; }
.empty { text-align: center; padding: 56px 16px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* landing */
.hero { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1000px 600px at 80% 0%, rgba(34, 211, 238, .25), transparent), radial-gradient(900px 600px at 0% 100%, rgba(99, 102, 241, .35), transparent), #0b1020; color: #fff; }
.hero .nav { background: transparent; border: 0; backdrop-filter: none; position: static; }
.hero .logo { color: #fff; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.hero-main { flex: 1; display: grid; place-items: center; text-align: center; padding: 48px 16px 96px; }
.hero-main .eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: 13px; letter-spacing: .04em; margin-bottom: 24px; }
.hero-main h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; max-width: 900px; margin: 0 auto 20px; }
.hero-main h1 em { font-style: normal; background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-main p { font-size: 19px; color: #cbd5e1; max-width: 620px; margin: 0 auto 32px; }
.hero-main .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
    .create { padding: 24px 20px; }
    .nav .who { display: none; }
    .auth-card { padding: 28px 22px; }
}

/* plan & usage */
.usage .current { margin: 0 0 18px; }
.meter { margin-bottom: 14px; }
.meter-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; }
.meter-top span { color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #22d3ee); border-radius: inherit; }
.plans-head { margin-top: 36px; align-items: center; flex-wrap: wrap; gap: 12px; }
.country { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.country .input { width: auto; padding: 7px 10px; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.plan.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.plan h3 { font-size: 17px; }
.plan .price { font: 800 26px 'Plus Jakarta Sans', sans-serif; }
.plan .price small { font: 500 13px Inter, sans-serif; color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 6px; padding: 0; font-size: 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.plan li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--ok); margin-right: 8px; }
.plan li.no { color: var(--muted); }
.plan li.no del { text-decoration: line-through; }
.plan li.no::before { content: "\f00d"; color: var(--muted); }
.plan .badge { align-self: flex-start; }
.history { margin-top: 28px; }
.history h3 { font-size: 16px; margin-bottom: 10px; }
.history table { width: 100%; border-collapse: collapse; font-size: 14px; }
.history td { padding: 8px 6px; border-top: 1px solid var(--line); }
.history td:first-child { color: var(--muted); white-space: nowrap; width: 1%; }
.history td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.history .neg { color: var(--ink); }
.history .pos { color: var(--ok); }
.nav .plan-link { font-size: 14px; color: var(--muted); }
.upsell { background: var(--brand-soft); border: 1px solid #c7d2fe; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 10px 0 0; }
.sub-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin: 0 0 18px; font-size: 14px; }
.sub-line p { margin: 0; }
.sub-line form { margin: 0; }

/* site visitor stats */
.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; }
.stats-head { align-items: center; flex-wrap: wrap; gap: 12px; }
.range { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 14px; }
.range a { padding: 6px 12px; border-radius: 8px; color: var(--muted); }
.range a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.range a.back { margin-left: 12px; color: var(--brand); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 16px; }
.tile, .chart-card, .breakdown { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; }
.tile span { display: block; color: var(--muted); font-size: 14px; }
.tile strong { display: block; font: 800 32px/1.2 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -.02em; margin: 4px 0; }
.tile small { color: var(--muted); font-size: 13px; }
.chart-card h3, .breakdown h3 { font-size: 16px; margin-bottom: 16px; }
.chart-card .empty { padding: 40px 0; text-align: center; }
.chart { position: relative; height: 220px; margin: 8px 0 0 40px; }
.chart .grid span { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 0; text-indent: -40px; } /* label sits in the left gutter */
.chart .cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.chart .col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.chart .col i { display: block; width: 100%; min-height: 2px; background: var(--brand); border-radius: 4px 4px 0 0; }
.chart .col.hover i { background: var(--brand-dark); }
.chart .col.hover { background: rgba(79, 70, 229, .06); }
.chart .tip { position: absolute; top: -8px; transform: translate(-50%, -100%); background: var(--ink); color: #fff; font-size: 13px; line-height: 1.4; padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 2; }
.x-axis { display: flex; justify-content: space-between; margin-left: 40px; padding-top: 8px; font-size: 12px; color: var(--muted); }
.breakdowns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0; }
@media (max-width: 700px) { .breakdowns { grid-template-columns: 1fr; } }
.breakdown .row { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; font-size: 14px; margin-bottom: 4px; }
.breakdown .row i { position: absolute; inset: 0 auto 0 0; background: var(--brand-soft); border-radius: 6px; z-index: 0; }
.breakdown .row span, .breakdown .row strong { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Admin */
.badge.danger { background: #fef2f2; color: var(--danger); }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.admin-filters .input { max-width: 320px; }
.admin-filters a { font-size: 14px; padding: 6px 12px; border-radius: 8px; color: var(--muted); }
.admin-filters a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.admin-table tr:first-child td { border-top: 0; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .bulk-cell { width: 1%; padding-right: 0; }
.admin-table .bulk-cell input { width: 16px; height: 16px; margin: 2px 0 0; cursor: pointer; accent-color: var(--brand); }
.admin-table .bulk-cell input:disabled { cursor: not-allowed; opacity: .4; }
.admin-table tr.picked td { background: #fef2f2; }
.site-links { display: flex; flex-direction: column; gap: 4px; font-size: 13px; min-width: 0; }
.site-links > span { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.site-links a { overflow-wrap: anywhere; }
.site-link-tag { flex: none; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; background: #f1f5f9; color: #64748b; }
.site-link-tag.live { background: #dcfce7; color: #15803d; }
.admin-table .user-sites { min-width: 220px; }
.user-site + .user-site { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.user-site > a { font-weight: 600; font-size: 13px; }
.bulk-bar { position: sticky; bottom: 16px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: var(--radius); background: var(--card); box-shadow: 0 12px 32px rgba(15, 23, 42, .16); }
.bulk-bar[hidden] { display: none; }
.bulk-bar strong { font-size: 14px; white-space: nowrap; }
.bulk-bar .input { flex: 1; min-width: 200px; }
.admin-table .muted, .admin-facts dd.muted { color: var(--muted); }
.admin-table .empty-row { color: var(--muted); text-align: center; padding: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }
.admin-stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.admin-stats span { display: block; color: var(--muted); font-size: 13px; }
.admin-stats strong { font-size: 24px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-grid .panel { max-width: none; margin-bottom: 20px; }
.admin-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.admin-facts dt { color: var(--muted); }
.admin-facts dd { margin: 0; overflow-wrap: anywhere; }
.danger-zone { border-color: #fecaca; }
.danger-zone h3, .admin-grid h3 { font-size: 16px; margin: 0 0 10px; }
.danger-zone textarea { margin: 8px 0 12px; }
.btn-danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger.solid:hover { background: #b91c1c; }
.pagination { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.pagination li a, .pagination li span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: var(--card); }
.pagination li.disabled span { color: var(--muted); }
@media (max-width: 800px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-grid .table-card + h3 { margin-top: 24px; }

/* Admin: AI providers */
.provider-role { margin: 32px 0 0; }
.provider-hint { margin: -12px 0 20px; }
.provider-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-top: 14px; }
.provider-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 80px; }
.provider-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.provider-card h3 { font-size: 16px; margin: 0 0 2px; }
.provider-card header small { overflow-wrap: anywhere; }
.provider-card .badge { white-space: nowrap; }
.provider-allowance { font-size: 13.5px; margin: 0; }
.provider-parked { margin: 0; font-size: 13px; color: #b45309; }
.provider-usage { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; font-size: 13px; }
.provider-usage span { display: block; color: var(--muted); font-size: 12px; }
.provider-usage strong { font-size: 18px; }
.provider-usage small { color: var(--muted); }
.t-warn { color: #b45309; }
.t-danger { color: var(--danger); }
.provider-spark { display: flex; gap: 3px; height: 34px; align-items: flex-end; }
.provider-spark i { width: 8px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; background: #f1f5f9; border-radius: 2px; overflow: hidden; }
.provider-spark b { display: block; background: var(--ok); }
.provider-spark b.bad { background: #f59e0b; }
.provider-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 13px; }
.provider-facts dt { color: var(--muted); font-size: 12px; }
.provider-facts dd { margin: 0; font-weight: 600; }
.provider-check { background: #ecfdf5; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.provider-check.is-bad { background: #fef2f2; }
.provider-check p { margin: 0 0 6px; }
.provider-check p:last-child { margin: 0; }
.provider-error summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.provider-error code { display: block; margin-top: 6px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; background: #f8fafc; padding: 8px; border-radius: 6px; }
.provider-card footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.provider-card footer code { font-size: 11px; }
.provider-actions { display: flex; gap: 8px; }
.provider-alt { margin-top: 12px; }
@media (max-width: 560px) { .provider-usage { grid-template-columns: 1fr 1fr; } .provider-spark { grid-column: 1 / -1; } }
.decide .choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.decide .choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.decide .choice input { margin-top: 3px; }
.decide .choice small { display: block; color: var(--muted); font-size: 13px; }
.decide textarea { margin-top: 4px; }
.activity-table { max-width: 560px; margin-bottom: 28px; }
.billing-tabs { margin-top: 28px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.admin-stats small { font-size: 12px; }
.admin-grid .panel .input + .btn { margin-top: 10px; }

/* Legal pages + footer */
.legal { max-width: 720px; margin: 0 auto; font-size: 15px; line-height: 1.7; }
.legal h1 { font-size: 32px; margin: 0 0 4px; }
.legal h2 { font-size: 19px; margin: 32px 0 8px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal .toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.site-foot { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink, inherit); }
.consent { font-size: 13px; color: var(--muted); margin: -4px 0 16px; }
.account-grid { display: grid; gap: 20px; max-width: 720px; }
.account-grid .panel { max-width: none; }
.account-grid h2 { font-size: 18px; margin: 0 0 6px; }
.account-grid ul { margin: 8px 0 16px; padding-left: 20px; font-size: 14px; }
.password-form { max-width: 420px; }
.password-form .pw-forgot { display: inline-block; margin-top: 6px; font-size: 13px; }
.password-form .pw-wrap { position: relative; }
.password-form .pw-wrap .input { padding-right: 46px; }
.password-form .pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: #94a3b8; cursor: pointer; }
.password-form .pw-toggle:hover { color: #475569; background: #f1f5f9; }
.password-form .pw-toggle:focus-visible { outline: 2px solid #6366f1; }
.auth { align-content: center; gap: 16px; }
.auth-legal { text-align: center; font-size: 13px; color: var(--muted); margin: 0; }
.auth-legal a { color: var(--muted); }
.account-who { margin: -8px 0 20px; color: var(--muted); font-size: 14px; }

/* Account page: profile card, side menu, settings sections */
.acct-hero { max-width: none; display: flex; align-items: center; gap: 20px; padding: 24px 28px; background: linear-gradient(135deg, var(--brand-soft), #fff 60%); }
.acct-avatar { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font: 800 24px 'Plus Jakarta Sans', system-ui, sans-serif; color: #fff; background: linear-gradient(135deg, #6366f1, #22d3ee); box-shadow: 0 8px 20px rgba(79, 70, 229, .25); }
.acct-id { flex: 1; min-width: 0; }
.acct-id > strong { display: block; font: 800 22px 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); overflow-wrap: anywhere; }
.acct-id .account-who { margin: 2px 0 10px; overflow-wrap: anywhere; }
.acct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--line); color: #475569; }
.acct-chip.warn { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.acct-plan { flex: none; display: grid; gap: 2px; padding: 14px 18px; min-width: 170px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.acct-plan:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(79, 70, 229, .12); }
.acct-plan strong { font: 800 20px 'Plus Jakarta Sans', system-ui, sans-serif; }
.acct-plan span:last-child { font-size: 13px; font-weight: 600; color: var(--brand); }
.acct-nopw { margin: 12px 0 0; }
.acct-layout { margin-top: 24px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.acct-nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.acct-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #475569; text-decoration: none; }
.acct-nav a i { width: 16px; text-align: center; color: #94a3b8; }
.acct-nav a:hover { background: #f1f5f9; color: var(--ink); }
.acct-nav a.on { background: var(--brand-soft); color: var(--brand); }
.acct-nav a.on i { color: var(--brand); }
.acct-nav a.danger:hover, .acct-nav a.danger.on { background: #fef2f2; color: var(--danger); }
.acct-nav a.danger.on i { color: var(--danger); }
.acct-main { display: grid; gap: 20px; min-width: 0; }
.acct-main > .panel.acct-sec { margin: 0; }
.acct-sec { max-width: none; scroll-margin-top: 84px; padding: 24px 28px; }
.acct-sec-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.acct-sec-head h2 { font-size: 18px; margin: 2px 0 4px; }
.acct-sec-head p { margin: 0; font-size: 14px; }
.acct-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 16px; }
.acct-ic.danger { background: #fef2f2; color: var(--danger); }
.acct-sec .password-form { max-width: 560px; }
.pw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.acct-sec .notify-kinds { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0 0 18px; }
.acct-sec .notify-kinds .check { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.acct-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.acct-row:last-child { padding-bottom: 0; }
.acct-row h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; margin: 0 0 4px; }
.acct-row h3 .wa { color: #16a34a; font-size: 18px; }
.acct-row p { margin: 0; font-size: 14px; }
.acct-row > form { flex: none; }
.acct-row.stack { display: grid; justify-content: stretch; gap: 12px; }
.acct-row.stack .wa-form { margin: 0; max-width: 460px; }
.acct-row.stack .wa-form .input { max-width: 260px; }
.badge.on { background: #ecfdf5; color: var(--ok); }
.acct-export { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-export li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.acct-export li i { margin-top: 3px; color: var(--brand); width: 16px; text-align: center; }
.acct-foot { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.acct-foot p { margin: 0; font-size: 13px; }
.acct-foot form { flex: none; }
.acct-sec.danger-zone { background: linear-gradient(180deg, #fff7f7, #fff 120px); }
.acct-loss { margin: 0 0 14px; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.acct-delete { max-width: 420px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed #fecaca; }

@media (max-width: 860px) {
    .acct-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .acct-nav { top: 56px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 8px 16px; background: var(--bg); scrollbar-width: none; }
    .acct-nav::-webkit-scrollbar { display: none; }
    .acct-nav a { flex: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; }
}
@media (max-width: 600px) {
    .acct-hero { flex-wrap: wrap; padding: 20px; gap: 14px; }
    .acct-avatar { width: 52px; height: 52px; font-size: 20px; border-radius: 14px; }
    .acct-id { flex-basis: calc(100% - 66px); }
    .acct-id > strong { font-size: 19px; }
    .acct-plan { flex: 1 1 100%; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; }
    .acct-plan strong { font-size: 17px; }
    .acct-sec { padding: 20px 18px; }
    .acct-sec-head { gap: 12px; }
    .acct-ic { width: 36px; height: 36px; font-size: 15px; }
    .pw-pair, .acct-export { grid-template-columns: 1fr; }
    .acct-row, .acct-foot { flex-direction: column; align-items: stretch; }
    .acct-row > form .btn, .acct-foot .btn { width: 100%; justify-content: center; }
}

/* Forms inbox */
.admin-filters .sep { color: var(--line); }
.inbox tr.unread td:nth-child(2) > a:first-child, .inbox tr.unread td:nth-child(3) a { font-weight: 700; }
.inbox td a { color: inherit; }
.inbox .pick { width: 36px; padding-right: 0; }
.inbox .pick input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.inbox .badge.spam { background: #fef2f2; color: var(--danger); }
.inbox .wa-quick { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 4px; border-radius: 50%; color: #16a34a !important; vertical-align: middle; }
.inbox .wa-quick:hover { background: #ecfdf5; }
.inbox-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.inbox-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.inbox-tabs a:hover { color: var(--ink, inherit); }
.inbox-tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.inbox-tabs .count { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.inbox-tabs .count.muted { background: var(--line); color: var(--muted); }
.inbox-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 420px; margin-bottom: 12px; }
.inbox-search > i { position: absolute; left: 12px; color: var(--muted); font-size: 13px; pointer-events: none; }
.inbox-search .input { padding-left: 34px; }
.inbox-search .clear { font-size: 13px; color: var(--muted); white-space: nowrap; }
.bulk-bar { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--brand-soft); }
.bulk-bar[hidden] { display: none; }
.bulk-bar .picked { margin-right: auto; font-size: 14px; font-weight: 600; }
.spam-hint { margin: -4px 0 12px; }
.spam-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: 14px; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-actions form { margin: 0; }
.badge.contacted { background: #eff6ff; color: #1d4ed8; }
.badge.done { background: #f0fdf4; color: #15803d; }
.lead-status .seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.inbox-taps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 14px; }
.inbox-taps .fa-whatsapp { color: #25d366; }
@media (max-width: 640px) {
    .inbox th:nth-child(4), .inbox td:nth-child(4) { display: none; }
    .inbox td:nth-child(5) { font-size: 12px; }
    .inbox-search { max-width: none; }
}
.empty-inbox h3 { margin-top: 0; }
.panel + .panel, .table-card + .panel { margin-top: 20px; }
/* Admin → Domains: settings panel spans the table width and sits apart from the filter tabs */
#domain-settings { max-width: none; margin-bottom: 24px; }
#domain-settings summary { cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; list-style: none; }
#domain-settings summary::-webkit-details-marker { display: none; }
#domain-settings summary::before { content: "▶"; font-size: 11px; color: var(--muted); transition: transform .15s; }
#domain-settings[open] summary::before { transform: rotate(90deg); }
#domain-settings summary + .hint { margin: 10px 0 18px; }
#domain-settings form { max-width: 640px; }
#domain-settings form + .hint { margin-top: 16px; max-width: 640px; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.actions .count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* Blog posts & portfolio projects */
.section-head .actions { margin-top: 0; align-items: center; gap: 14px; }
.post-form textarea.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; line-height: 1.55; resize: vertical; }
.post-form select.input { appearance: auto; }
.post-form .panel h3 { margin: 0 0 14px; }
.post-cover-preview { display: block; width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.post-form input[type=file] { max-width: 100%; font-size: 14px; }
@media (max-width: 860px) { .post-form.admin-grid { grid-template-columns: 1fr; } }
.review-ask { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px 20px; border: 1px solid #fbcfe8; border-radius: var(--radius); background: linear-gradient(135deg, #fff, #fdf2f8); }
.review-ask-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fce7f3; color: #ec4899; font-size: 17px; }
.review-ask p { margin: 0; flex: 1; font-size: 14px; color: var(--muted); }
.review-ask p strong { color: var(--ink); }
@media (max-width: 640px) { .review-ask { flex-wrap: wrap; } }

/* Invite friends (billing) */
.invite h3 i { color: #6366f1; margin-right: 6px; }
.copy-row { display: flex; gap: 8px; margin: 12px 0; }
.invite-banked { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.invite-banked i { margin-right: 6px; }
.copy-row .input { flex: 1; min-width: 0; }

/* Brand kit (/sites/{site}/brand) */
.flash.warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.bk { max-width: 980px; }
.bk h3 { margin: 0 0 4px; font-size: 22px; }
.bk h4 { margin: 26px 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bk-tagline { margin: 0 0 4px; font-size: 18px; }
.bk-swatches { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; }
.bk-swatches li { display: grid; gap: 4px; justify-items: start; font-size: 13px; }
.bk-swatch { width: 72px; height: 52px; border-radius: 10px; border: 1px solid var(--line); cursor: copy; }
.bk-swatches code { color: var(--muted); font-size: 12px; }
.bk-fonts { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); }
.bk-fonts strong { display: block; font-size: 30px; line-height: 1.2; }
.bk-fonts p { margin: 6px 0 0; }
.bk-apply { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.bk-apply .hint { margin: 0; }
.bk-card canvas { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--line); }
.bk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bk-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
#bk-logo { max-width: 600px; }

/* Suggestions on the Visitors page */
.insights { max-width: none; margin-bottom: 20px; }
.insights h3 { margin: 0; font-size: 17px; }
.insights h3 i { color: #f59e0b; }
.insight-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.insight-list li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg, #fafafa); }
.insight-list p { margin: 4px 0 6px; color: var(--muted); font-size: 14px; }
.insight-list a { font-weight: 600; font-size: 14px; }
.insight-ai { margin-top: 14px; }

/* Agency: client dashboard */
.agency-req { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.agency-req:first-of-type { border-top: 0; }
.agency-req p { margin: 4px 0 0; white-space: pre-line; }
.agency-client h3 { font-size: 15px; margin: 20px 0 0; }
.agency-client details { margin-top: 16px; }
.agency-client summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.agency-client details form { margin-top: 12px; }
.agency-sites { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; display: block; overflow-x: auto; }
.agency-sites th, .agency-sites td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.agency-sites th { color: var(--muted); font-weight: 600; font-size: 13px; }
.agency-sites small.up { color: #16a34a; }
.agency-sites small.down { color: #dc2626; }
.agency-links { display: flex; gap: 12px; align-items: center; }
.agency-links form { margin: 0; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.agency-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.agency-actions form { margin: 0; }
.agency-assign { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.agency-assign:first-of-type { border-top: 0; }
.agency-assign > span { flex: 1; min-width: 160px; }
.agency-assign select { width: auto; }
.agency-logo { display: block; max-height: 48px; max-width: 180px; margin: 6px 0 8px; }

/* Admin funnel */
.funnel { display: grid; gap: 10px; margin-bottom: 12px; }
.funnel-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.funnel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.funnel-head span { color: var(--muted); font-size: 14px; min-width: 140px; }
.funnel-head strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.funnel-bar { height: 8px; border-radius: 4px; background: var(--line); margin: 10px 0 4px; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.funnel-share { color: var(--muted); font-size: 12px; }
.funnel-note { font-size: 13px; margin: 0 0 24px; }
.funnel-costs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 6px; font-size: 14px; }
.funnel-costs label { display: flex; align-items: center; gap: 6px; }
.funnel-costs .input { width: 96px; }
.admin-table td.num small { display: block; font-size: 11px; }

/* Billing: monthly / yearly switch above the plan cards */
.interval-toggle { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 16px; border-radius: 999px; background: var(--line, #e2e8f0); }
.interval-toggle a { padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; }
.interval-toggle a[aria-current] { background: var(--card, #fff); color: var(--ink); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.interval-toggle span { margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: rgba(16, 185, 129, .15); color: #059669; }
.plan .save { margin: 2px 0 8px; color: #059669; }

/* Billing: discount code row and done-for-you setup panel */
.coupon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.coupon-row label { font-size: 14px; color: var(--muted); }
.coupon-row .input { width: 160px; text-transform: uppercase; }
.coupon-row .hint.ok { color: #16a34a; }
.setup-offer .price { font-size: 24px; font-weight: 700; margin: 8px 0 12px; }
.setup-offer .price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.setup-offer .row { display: flex; flex-wrap: wrap; gap: 12px; }
.setup-offer .row .field { flex: 1 1 220px; }

/* Billing page: summary, plans, add-ons and history laid out across the full width */
.bill-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.bill-summary { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; padding: 0; overflow: hidden; }
.bill-summary > div { padding: 24px; }
.bill-plan { background: linear-gradient(160deg, var(--brand-soft), transparent 70%); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bill-plan-name { display: flex; align-items: center; gap: 10px; }
.bill-plan-name strong { font: 800 30px/1.1 'Plus Jakarta Sans', sans-serif; color: var(--ink); }
.bill-plan .current { margin: 0; font-size: 14px; color: var(--muted); }
.bill-plan .sub-line { margin: 0; width: 100%; }
.bill-plan .hint.warn { margin: 0; }
.bill-usage .meter { margin-bottom: 16px; }
.bill-usage .meter-top strong { font-weight: 600; }
.bill-usage .meter-top strong i { color: var(--brand); width: 18px; margin-right: 4px; }
.meter.is-full .bar i { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.bill-usage .hint { margin: 4px 0 0; }

.bill-section { margin-top: 36px; }
.bill-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.bill-head h2 { font-size: 20px; margin: 0; }
.bill-head .interval-toggle { margin: 0; }
.bill-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 12px 16px; margin-bottom: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.bill-toolbar .coupon-row { margin: 0; }
.bill-toolbar label i { color: var(--brand); margin-right: 4px; }
.bill-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bill-plans .plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.bill-plans .plan .btn { width: 100%; }
.bill-plans .plan-note { font-size: 13px; color: var(--muted); text-align: center; padding: 10px 0; }
.bill-section > .hint { margin-top: 10px; }

.bill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; align-items: start; }
.bill-grid.one { grid-template-columns: minmax(0, 1fr); }
.bill-grid > .panel { max-width: none; margin: 0; }
.bill-packs h2 { font-size: 17px; margin: 0; }
.bill-packs > .hint { margin: 6px 0 14px; }
.pack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pack-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.pack-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.pack-name { flex: 1; display: flex; flex-direction: column; }
.pack-name small { color: var(--muted); font-size: 13px; }
.pack-list .btn { padding: 8px 18px; }

.setup-offer { max-width: none; margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.setup-offer:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.setup-pitch h3 { margin-bottom: 8px; }
.setup-pitch p { margin: 0 0 8px; }
.setup-form .field:first-child { margin-top: 0; }
.bill-grid > .history { margin-top: 0; }

@media (max-width: 960px) {
    .bill-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bill-summary, .bill-grid, .setup-offer { grid-template-columns: minmax(0, 1fr); }
    .bill-plan { border-right: 0; border-bottom: 1px solid var(--line); }
}
.bill-swipe-hint { display: none; }
@media (max-width: 560px) {
    /* Plans become a sideways swipe row that runs to the screen edges */
    .bill-plans { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
        margin: 0 -16px; padding: 6px 16px 14px; scroll-padding: 0 16px; scrollbar-width: none; }
    .bill-plans::-webkit-scrollbar { display: none; }
    .bill-plans .plan { flex: 0 0 82%; scroll-snap-align: start; }
    .bill-swipe-hint { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
    .bill-swipe-hint i { color: var(--brand); }
    .bill-summary > div { padding: 18px; }
    .bill-toolbar { padding: 12px; }
    .bill-toolbar .coupon-row, .bill-toolbar .country { width: 100%; }
    .bill-toolbar .coupon-row label { flex-basis: 100%; }
    .bill-toolbar .coupon-row .input, .bill-toolbar .country .input { flex: 1; width: auto; min-width: 0; }
    .bill-toolbar .country { display: block; line-height: 1.6; }
    .bill-head { align-items: flex-start; }
    .bill-plan-name strong { font-size: 26px; }
    .bill-grid > .panel, .setup-offer { padding: 18px; }
    .history td { padding: 8px 4px; vertical-align: top; }
    .history td:last-child { white-space: normal; min-width: 64px; }
    .meter-top { flex-wrap: wrap; gap: 2px 12px; }
    .pack-list li { gap: 10px; padding: 10px 12px; }
}

/* Google profile checklist (/sites/{site}/google) + WhatsApp report form (account) */
.gbp { max-width: 760px; }
.gbp progress { width: 100%; height: 8px; margin-bottom: 8px; accent-color: #16a34a; }
.gbp-progress { margin: 0 0 6px; }
.gbp-steps { padding-left: 22px; margin: 12px 0 20px; }
.gbp-steps > li { padding: 12px 0; border-top: 1px solid var(--line); }
.gbp-steps > li.done strong { text-decoration: line-through; color: var(--muted); }
.gbp-steps .hint { margin: 4px 0 8px 26px; }
.gbp-steps .gbp-value, .gbp-steps .gbp-warn, .gbp-steps > li > a, .gbp-steps .field { margin-left: 26px; }
.gbp-value { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.gbp-value code { background: #f1f5f9; border-radius: 6px; padding: 6px 10px; white-space: pre-wrap; word-break: break-word; max-width: 100%; }
.gbp-warn { color: #b45309; font-size: 14px; }
.wa-form { display: grid; gap: 8px; margin-bottom: 16px; }
.wa-form input[type=tel] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; max-width: 260px; }
.stats-share { margin: 0 0 16px; }
/* ---- Site Manager: sidebar + sections for one site ---- */
.manager { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.manager-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.manager-site { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.manager-site strong { font-size: 16px; overflow-wrap: anywhere; }
.manager-thumb { border-radius: 12px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .35); transition: transform .2s, box-shadow .2s; }
.manager-thumb:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(15, 23, 42, .4); }
.manager-thumb .initial { font-size: 36px; }
.manager-site select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: 600 15px 'Inter', sans-serif; color: var(--ink); }
.manager-actions { display: flex; gap: 8px; }
.manager-actions .btn { flex: 1; justify-content: center; padding: 8px 10px; font-size: 14px; }
.manager-nav { display: flex; flex-direction: column; gap: 2px; }
.manager-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.manager-nav a i { width: 18px; text-align: center; }
.manager-nav a:hover { background: var(--brand-soft); color: var(--ink); }
.manager-nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.manager-nav .count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.manager-back { font-size: 13px; color: var(--muted); }
.manager-main > .section-head:first-child { margin-top: 4px; }
.manager-main .panel.overview-publish, .manager-main .overview-grid .panel, .manager-main .overview-messages { max-width: none; }
@media (max-width: 860px) {
    .manager { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .manager-side, .manager-main { min-width: 0; }
    .manager-side { position: static; gap: 12px; }
    .manager-site { flex-direction: row; flex-wrap: wrap; align-items: center; padding-bottom: 12px; }
    .manager-site > strong, .manager-site > select { flex: 1 1 180px; }
    .manager-thumb { flex: 0 0 96px; border-radius: 8px; }
    .manager-thumb .initial { font-size: 24px; }
    .manager-actions .btn { flex: 0 0 auto; }
    .manager-nav { flex-direction: row; overflow-x: auto; gap: 4px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: thin; }
    .manager-nav a { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); background: var(--card); }
    .manager-back { display: none; }
}

/* Overview */
.overview-publish { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; border-color: #c7d2fe; background: var(--brand-soft); }
.overview-publish > i { font-size: 24px; color: var(--brand); }
.overview-publish p { margin: 2px 0 0; font-size: 14px; }
.overview-publish .btn { margin-left: auto; }
.overview-preview { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: center; max-width: none; margin-bottom: 16px; padding: 20px; }
.ov-shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f1f5f9; box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .45); transition: transform .2s, box-shadow .2s; }
.ov-shot:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -22px rgba(15, 23, 42, .5); }
.ov-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.ov-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; flex: none; }
.ov-bar span { margin-left: 8px; flex: 1; min-width: 0; padding: 3px 10px; border-radius: 6px; background: #fff; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-img { aspect-ratio: 16 / 10; }
.ov-img .initial { font-size: 72px; }
.ov-info h3 { margin: 0 0 6px; font-size: 22px; overflow-wrap: anywhere; }
.ov-url { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.ov-url i { font-size: 11px; }
.ov-facts { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.ov-facts i { width: 18px; text-align: center; margin-right: 6px; color: var(--brand); }
.ov-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-actions .btn { padding: 9px 14px; font-size: 14px; }
@media (max-width: 1000px) { .overview-preview { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.overview-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .overview-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.overview-tiles .tile { color: inherit; text-decoration: none; padding: 16px 20px; transition: border-color .15s, transform .15s; }
.overview-tiles .tile:hover { border-color: var(--brand); transform: translateY(-1px); }
.overview-tiles .tile span i { margin-right: 4px; }
.overview-tiles .tile strong em { font-style: normal; font-size: 18px; color: var(--muted); }
.overview-tiles .tile .tile-text { font-size: 17px; line-height: 1.4; margin: 10px 0 8px; overflow-wrap: anywhere; }
.overview-tiles .tile-off strong { color: var(--muted); }
.overview-tiles .tile-warn { border-color: #fca5a5; background: #fef2f2; }
.overview-tiles .delta { color: var(--ok); font-weight: 600; }
.overview-tiles .delta.down { color: var(--danger); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-bottom: 16px; }
.overview-grid .panel + .panel { margin-top: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h3 { font-size: 16px; margin: 0; }
.panel-head a { font-size: 13px; white-space: nowrap; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 120px; border-bottom: 1px solid var(--line); }
.spark span { flex: 1; height: 100%; display: flex; align-items: flex-end; border-radius: 4px 4px 0 0; }
.spark span:hover { background: var(--brand-soft); }
.spark i { display: block; width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; }
.spark-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.todo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.todo-list li { padding-left: 14px; border-left: 3px solid var(--brand); }
.todo-list strong { font-size: 14px; }
.todo-list p { margin: 2px 0 4px; font-size: 13px; color: var(--muted); }
.todo-list a { font-size: 13px; font-weight: 600; }
.overview-messages { padding: 20px 24px 12px; }
.msg-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 2.4fr) auto; gap: 12px; align-items: center; padding: 10px 8px; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; text-decoration: none; }
.msg-row:hover { background: var(--bg); }
.msg-row.new .msg-who { font-weight: 700; }
.msg-form, .msg-text, .msg-when { color: var(--muted); }
.msg-who, .msg-form, .msg-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-when { font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
@media (max-width: 860px) { .overview-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .overview-publish { flex-wrap: wrap; }
    .overview-publish .btn { margin-left: 0; }
    .overview-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .overview-tiles .tile { padding: 14px; }
    .overview-tiles .tile strong { font-size: 26px; }
    .msg-row { grid-template-columns: minmax(0, 1fr) auto; }
    .msg-form, .msg-text { grid-column: 1 / -1; }
    .msg-form { display: none; }
}

/* Notifications bell */
.bell { position: relative; }
.bell summary { list-style: none; position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--muted); cursor: pointer; font-size: 17px; }
.bell summary::-webkit-details-marker { display: none; }
.bell summary:hover, .bell[open] summary { background: #f1f5f9; color: var(--ink); }
.bell summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.bell-count { position: absolute; top: 3px; right: 1px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid #fff; }
.bell-count[hidden] { display: none; }
.bell-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 380px; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(15, 23, 42, .16); z-index: 20; overflow: hidden; }
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.bell-head form { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.bell-list { max-height: min(420px, 60vh); overflow-y: auto; }
.bell-empty { margin: 0; padding: 22px 16px; color: var(--muted); font-size: 14px; text-align: center; }
.bell-all { display: block; padding: 11px 16px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; font-weight: 600; }
.bell-all:hover { background: #f8fafc; }
.note { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
.note:last-child { border-bottom: 0; }
.note:hover { background: #f8fafc; }
.note.new { background: #f5f8ff; }
.note.new:hover { background: #edf2ff; }
.note-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f1f5f9; color: var(--muted); font-size: 14px; }
.note-message { background: var(--brand-soft); color: var(--brand); }
.note-subscriber, .note-report { background: #ecfdf5; color: var(--ok); }
.note-billing, .note-domain, .note-account { background: #fffbeb; color: #b45309; }
.note-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.note-text strong { font-weight: 600; overflow-wrap: anywhere; }
.note-text span { color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.note-text time { color: var(--muted); font-size: 12px; }
.note-dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--brand); }
/* Notifications page: header card, segmented tabs, items grouped by day. */
.notes-wrap { max-width: 820px; }
.notes-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.notes-hero::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(99, 102, 241, .13), rgba(6, 182, 212, .05) 60%, transparent); pointer-events: none; }
.notes-bell { position: relative; flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #4f46e5, #06b6d4); color: #fff; font-size: 22px; box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .6); }
.notes-bell em { position: absolute; top: -6px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 999px; background: var(--danger); color: #fff; font: 700 11px/1 inherit; font-style: normal; }
.notes-id { flex: 1; min-width: 0; }
.notes-id h1 { font-size: 26px; letter-spacing: -.02em; }
.notes-id p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.notes-id p strong { color: var(--ink); }
.notes-id p .fa-circle-check { color: var(--ok); margin-right: 3px; }
.notes-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notes-actions form { margin: 0; }
.note-tabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 18px; background: #eef2f7; border-radius: 999px; }
.note-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
.note-tabs a:hover { color: var(--ink); text-decoration: none; }
.note-tabs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.note-tabs .count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.note-group + .note-group { margin-top: 18px; }
.note-day { display: flex; align-items: center; gap: 8px; margin: 0 0 8px 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.note-day span { padding: 1px 7px; border-radius: 999px; background: #eef2f7; font-size: 11px; letter-spacing: 0; }
.note-page { max-width: none; padding: 6px; overflow: hidden; }
.note-page .note { position: relative; align-items: center; gap: 14px; padding: 14px 14px; border: 0; border-radius: 12px; transition: background .15s; }
.note-page .note + .note { margin-top: 2px; }
.note-page .note + .note::before { content: ""; position: absolute; left: 66px; right: 14px; top: -1px; border-top: 1px solid var(--line); }
.note-page .note:hover::before, .note-page .note:hover + .note::before { border-color: transparent; }
.note-page .note:hover { background: #f8fafc; text-decoration: none; }
.note-page .note.new { background: #f5f8ff; }
.note-page .note.new:hover { background: #edf2ff; }
.note-page .note.new strong { font-weight: 700; }
.note-page .note-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 15px; }
.note-page .note-text { font-size: 14.5px; }
.note-page .note-text time { margin-top: 2px; }
.note-page .note-dot { margin-top: 0; box-shadow: 0 0 0 4px var(--brand-soft); }
.note-empty { padding: 44px 24px; text-align: center; }
.note-empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); font-size: 26px; }
.note-empty h3 { margin: 0 0 4px; font-size: 18px; }
.note-page.note-empty .hint { padding: 0; margin: 0 auto 16px; max-width: 420px; }
.note-page.note-empty .hint:last-child { margin-bottom: 0; }
.note-foot { margin-top: 18px; font-size: 13px; }
.note-foot i { color: #f59e0b; margin-right: 4px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
@media (max-width: 600px) {
    .notes-hero { flex-wrap: wrap; gap: 14px; padding: 18px; border-radius: 18px; }
    .notes-bell { width: 46px; height: 46px; font-size: 19px; border-radius: 14px; }
    .notes-id h1 { font-size: 22px; }
    .notes-actions { width: 100%; }
    .notes-actions form { flex: 1; }
    .notes-actions form .btn { width: 100%; }
    .note-tabs { display: flex; }
    .note-tabs a { flex: 1; justify-content: center; }
    .note-page .note { padding: 12px 10px; gap: 12px; }
    .note-page .note + .note::before { left: 62px; right: 10px; }
}
.notify-kinds { display: grid; gap: 8px; margin: 12px 0; }
@media (max-width: 640px) {
    .bell { position: static; }
    .bell-menu { left: 16px; right: 16px; width: auto; max-width: none; top: 64px; }
}
@media (max-width: 640px) {
    .nav-inner { gap: 10px; }
    .nav .who { display: none; }
    .nav .plan-link { font-size: 13px; white-space: nowrap; }
    .nav .btn { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
}
/* Signed-in top bar: links inline on wide screens, one menu on phones */
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); cursor: pointer; font-size: 18px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary, .nav-menu summary:hover { background: #f1f5f9; }
.nav-menu summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nav-menu-list { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; max-width: calc(100vw - 20px); display: flex; flex-direction: column; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(15, 23, 42, .16); z-index: 20; }
.nav-menu-who { padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-menu-list a, .nav-menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 15px 'Inter', sans-serif; text-align: left; cursor: pointer; }
.nav-menu-list a i, .nav-menu-list button i { width: 18px; text-align: center; color: var(--muted); }
.nav-menu-list a:hover, .nav-menu-list button:hover, .nav-menu-list a.on { background: var(--brand-soft); color: var(--brand); }
.nav-menu-list form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
    .nav-links, .nav-logout-form { display: none; }
    .nav-menu { display: block; }
    .nav-inner { gap: 6px; }
}
@media (max-width: 420px) {
    .nav .logo { font-size: 0; gap: 0; }
    .nav-logout span { display: none; } /* icon only, so the top bar fits small phones */
}
@media (max-width: 360px) {
    .nav-inner { gap: 7px; padding: 0 10px; }
    .nav .plan-link { font-size: 12px; }
    .nav .btn { padding: 7px 8px; }
}

/* Domain wizard */
.flash.error-flash { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.wizard-steps { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; flex-wrap: wrap; }
.wizard-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #f1f5f9; color: var(--muted); font-size: 14px; font-weight: 600; }
.wizard-steps .dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 12px; }
.wizard-steps li.on { background: var(--brand-soft); color: var(--brand); }
.wizard-steps li.on .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.wizard-steps li.done { color: var(--ok); background: #ecfdf5; }
.wizard-steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.domain-claim h3 { margin-top: 0; }
.domain-claim .row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.domain-claim .row .input { flex: 1 1 260px; }
/* Free plan: custom-domain pitch on the domain page, billing note, dashboard nudge */
.domain-pitch { border-color: var(--brand); background: linear-gradient(180deg, var(--brand-soft), var(--card) 70%); }
.domain-pitch h3 { margin: 8px 0 6px; }
.domain-pitch-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.domain-swap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; font-weight: 600; }
.domain-swap > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); overflow-wrap: anywhere; }
.domain-now { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.domain-next { color: var(--brand); border-color: var(--brand) !important; }
.domain-swap > .fa-arrow-right { color: var(--muted); }
.domain-perks { list-style: none; margin: 0 0 14px; padding: 0; }
.domain-perks li { display: flex; gap: 8px; align-items: baseline; }
.domain-perks li + li { margin-top: 6px; }
.domain-perks .fa-check { color: var(--ok); }
.domain-pitch-label { display: block; font-weight: 600; margin-top: 4px; }
.domain-pitch .row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.domain-pitch .row .input { flex: 1 1 260px; }
.domain-intent-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--brand); background: var(--brand-soft); border-radius: 12px; }
.domain-intent-note > i { color: var(--brand); margin-top: 3px; }
.domain-intent-note a { margin-left: 4px; }
.dash-domain-nudge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brand); text-decoration: none; margin-top: 2px; }
.dash-domain-nudge:hover { text-decoration: underline; }
.domain-tips { margin: 0; padding-left: 18px; }
.domain-tips li + li { margin-top: 4px; }
.domain-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.domain-head p { margin: 0; }
.domain-head .hint { margin-top: 6px; }
.domain-name { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.domain-name i { color: var(--brand); }
.domain-remove { margin: 0; }
.dns-provider { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 8px; font-size: 14px; }
.dns-provider label { font-weight: 600; }
.dns-provider select { width: auto; min-width: 200px; }
.dns-guide { margin: 0 0 12px; padding: 12px 14px 12px 32px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--line); font-size: 14px; }
.dns-guide li + li { margin-top: 4px; }
.table-scroll { overflow-x: auto; }
.dns-wizard { table-layout: auto; min-width: 560px; }
.dns-wizard th:first-child { width: 64px; }
.dns-wizard tr.optional td { opacity: .8; }
.dns-wizard .copy { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 7px; border: 0; border-radius: 6px; background: #f1f5f9; font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: inherit; text-align: left; word-break: break-all; cursor: copy; }
.dns-wizard .copy i { color: var(--muted); flex: none; }
.dns-wizard .full { margin-top: 4px; color: var(--muted); font-size: 12px; word-break: break-all; }
.dns-wizard .state { white-space: nowrap; font-weight: 600; }
.dns-wizard .state .ok { color: var(--ok); }
.dns-wizard .state .warn { color: #b45309; }
.dns-check { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.dns-check form { margin: 0; }
.dns-check .hint { margin: 0; flex: 1 1 260px; }
@media (max-width: 640px) {
    .dns-wizard { min-width: 0; }
    .dns-wizard, .dns-wizard tbody, .dns-wizard tr, .dns-wizard td { display: block; width: auto; }
    .dns-wizard tr:first-child { display: none; }
    .dns-wizard tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .dns-wizard td { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 4px 0; border: 0; }
    .dns-wizard td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; padding-top: 3px; }
    .dns-wizard td > * { grid-column: 2; justify-self: start; }
    .dns-wizard .state { white-space: normal; }
}

/* Analytics: page picker, conversions */
.stats-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 16px; font-size: 14px; }
.stats-tools label { font-weight: 600; }
.stats-tools select { width: auto; min-width: 180px; max-width: 100%; }
.stats-tools .btn:last-child { margin-left: auto; }
.stats-page-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); font-size: 14px; }
.stats-page-note i { color: var(--brand); margin-right: 4px; }
.breakdown.conversions { margin-bottom: 16px; }
.breakdown.conversions h3 { margin-bottom: 4px; }
.conv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.conv { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.conv i { width: 18px; text-align: center; color: var(--brand); }
.conv[data-key="whatsapp"] i { color: #16a34a; }
.conv span { flex: 1; }
.conv span a { color: inherit; }
.conv strong { font-size: 18px; }
a.row { color: inherit; text-decoration: none; }
a.row:hover span { color: var(--brand); text-decoration: underline; }
.breakdown .row strong small { color: var(--muted); font-weight: 500; margin-left: 4px; }
@media (max-width: 640px) { .stats-tools .btn:last-child { margin-left: 0; } }

/* Subscribers: growth, sources, consent records */
.tile strong.tile-text { font-size: 22px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subs-sources { margin: 16px 0; }
.subs-sources a.row[aria-current] { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 6px; }
.subs-list-head { margin: 24px 0 12px; align-items: center; flex-wrap: wrap; gap: 8px; }
.subs-list-head h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 18px; }
.subs-table td.actions { white-space: nowrap; }
.subs-table td.actions form { display: inline; }
.subs-table tr.consent-row td { border-top: 0; background: var(--bg, #f8fafc); }
dl.consent { display: grid; grid-template-columns: 130px 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
dl.consent dt { color: var(--muted); font-weight: 600; }
dl.consent dd { margin: 0; overflow-wrap: anywhere; }
dl.consent dd.muted { grid-column: 1 / -1; }
dl.consent blockquote { margin: 0; padding: 6px 10px; border-left: 3px solid var(--line); color: var(--ink); white-space: normal; }
@media (max-width: 640px) {
    .subs-table, .subs-table tbody { display: block; }
    .subs-table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
    .subs-table tr:first-child { display: none; }
    .subs-table tr:nth-child(2) { border-top: 0; }
    .subs-table td { display: block; padding: 0; border: 0; font-size: 13px; }
    .subs-table td:first-child { flex: 1 0 100%; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
    .subs-table td:nth-child(2):not([colspan])::after, .subs-table td:nth-child(3)::after { content: ' ·'; color: var(--muted); }
    .subs-table td.no-name { display: none; }
    .subs-table td.actions { flex: 1 0 100%; text-align: left; margin-top: 6px; }
    .subs-table tr.consent-row { border-top: 0; padding-top: 0; }
    .subs-table tr.consent-row td { flex: 1 0 100%; padding: 10px; border-radius: 8px; font-weight: 400; font-size: 13px; }
    .consent { grid-template-columns: 1fr; gap: 2px; }
    .consent dd { margin-bottom: 8px; }
}

/* ---- Admin: sidebar shell ---- */
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 14px; border-bottom: 1px solid var(--line); font: 700 16px 'Inter', sans-serif; color: var(--ink); }
.admin-brand i { color: var(--brand); }
.admin-group { display: block; margin: 14px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
    .admin-brand, .admin-group { display: none; }
}

/* ---- Admin: Outreach ---- */
.prospect-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.prospect-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--muted); font-size: 13px; }
.prospect-stat strong { font-size: 24px; color: var(--ink); }
.prospect-stat:hover, .prospect-stat.on { border-color: var(--brand); }
.prospect-stat.is-opened strong { color: #b45309; }
.prospect-stat.is-claimed strong { color: #15803d; }
.prospect-add { margin-bottom: 20px; max-width: none; }
.prospect-add > summary { cursor: pointer; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; list-style: none; }
.prospect-add > summary::-webkit-details-marker { display: none; }
.prospect-add > summary > i { color: var(--brand); }
.prospect-add > summary .muted { font-weight: 400; font-size: 14px; }
.prospect-add[open] > summary { margin-bottom: 8px; }
.prospect-form { display: grid; gap: 16px; }
.prospect-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 4px; margin: 0; min-width: 0; }
.prospect-group legend { padding: 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.prospect-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.prospect-group .req { color: var(--danger); }
.prospect-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; margin-bottom: 12px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; cursor: pointer; font-size: 14px; }
.prospect-drop:hover, .prospect-drop:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.prospect-drop > i { font-size: 22px; color: var(--brand); }
.prospect-drop input { max-width: 100%; font-size: 13px; }
.prospect-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.prospect-previews:empty { display: none; }
.prospect-previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.prospect-previews .file { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.prospect-submit { display: flex; justify-content: flex-end; }
.prospect-list { display: grid; gap: 12px; margin-bottom: 16px; }
.prospect-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.prospect-thumb { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); font-size: 24px; }
.prospect-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prospect-thumb span { position: absolute; right: 4px; bottom: 4px; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; font-weight: 700; }
.prospect-body { display: grid; gap: 6px; min-width: 0; }
.prospect-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prospect-title strong { font-size: 16px; overflow-wrap: anywhere; }
.prospect-headline { margin: 0; font-style: italic; font-size: 14px; }
.prospect-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prospect-tags span { padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); font-size: 12px; }
.prospect-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.prospect-meta a { color: var(--muted); }
.prospect-meta a:hover { color: var(--brand); }
.prospect-actions { display: grid; gap: 8px; justify-items: end; }
.prospect-actions .row { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) {
    .prospect-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prospect-card { grid-template-columns: 56px minmax(0, 1fr); }
    .prospect-thumb { width: 56px; height: 56px; }
    .prospect-actions { grid-column: 1 / -1; justify-items: start; }
    .prospect-actions .row { justify-content: flex-start; }
}
.prospect-actions .outreach-send, .prospect-actions .outreach-send form { flex-wrap: nowrap; gap: 6px; }
.prospect-actions .outreach-send select { width: auto; padding: 8px 10px; }
@media (max-width: 860px) { .prospect-actions .outreach-send { flex-wrap: wrap; } }

/* Inbox → Booking times */
.booking-times { margin-top: 24px; }
.booking-times h3 i { color: var(--primary); margin-right: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.day-picks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Google search (Search Console) page */
.gsc-connect h3 i, .gsc-status .fa-google { color: var(--primary); margin-right: 6px; }
.gsc-list { padding-left: 20px; margin: 12px 0 16px; }
.gsc-list li { margin-bottom: 6px; }
.gsc-status, .gsc-index { max-width: none; margin-bottom: 16px; }
.gsc-status-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.gsc-status-row strong { word-break: break-all; }
.gsc-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.gsc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gsc-actions form { margin: 0; }
.gsc-pages { list-style: none; padding: 0; margin: 8px 0 0; }
.gsc-pages li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.gsc-pages .badge { min-width: 74px; text-align: center; }
.gsc-pages small { flex-basis: 100%; padding-left: 84px; font-size: 12px; }
@media (max-width: 560px) { .gsc-pages small { padding-left: 0; } }

/* Admin → Leads */
.lead-stats { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.prospect-stat.is-due strong { color: #b45309; }
.prospect-stat.is-paid strong, .prospect-stat.is-interested strong { color: #15803d; }
.prospect-stat.is-not_interested strong { color: var(--muted); }
.lead-import { margin-bottom: 16px; }
.lead-import summary { cursor: pointer; font-weight: 600; }
.lead-import-form { display: grid; gap: 12px; margin-top: 12px; justify-items: start; }
.lead-import-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.admin-filters select.input { width: auto; padding: 8px 10px; }
.lead-lang { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.lead-table .lead-biz { min-width: 220px; }
.lead-table .lead-biz > div { font-size: 13px; }
.lead-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; }
.lead-links a { color: var(--muted); }
.lead-links a:hover { color: var(--brand); }
.lead-notes { margin: 6px 0 0; font-size: 13px; color: var(--muted); max-width: 360px; }
.lead-phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lead-phone .muted { font-size: 12px; white-space: normal; }
.lead-table select.input, .lead-table .lead-date { width: auto; padding: 6px 8px; font-size: 13px; }
.lead-status.is-paid, .lead-status.is-interested { border-color: #86efac; background: #f0fdf4; }
.lead-status.is-replied { border-color: #93c5fd; background: #eff6ff; }
.lead-status.is-not_interested { color: var(--muted); }
.lead-date.is-due { border-color: #f59e0b; background: #fffbeb; }
.lead-actions { display: grid; gap: 6px; min-width: 230px; }
.lead-actions .row { flex-wrap: wrap; gap: 6px; }
.lead-actions .btn { padding: 6px 12px; font-size: 13px; }
.lead-pop { position: relative; }
.lead-pop > summary { list-style: none; cursor: pointer; }
.lead-pop > summary::-webkit-details-marker { display: none; }
.lead-pop-body { position: absolute; right: 0; z-index: 30; display: grid; gap: 8px; width: min(340px, 86vw); margin-top: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 12px 32px rgba(15, 23, 42, .16); }
.lead-pop-body label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.lead-pop-body .input { font-weight: 400; }
.lead-pop-body .hint { margin: 0; font-size: 12px; }
.lead-bulk { border-color: var(--line); }
@media (max-width: 860px) {
    .lead-import-fields { grid-template-columns: 1fr; }
    .lead-lang { margin-left: 0; }
    .lead-pop-body { right: auto; left: 0; }
}
.files-pick-list { padding-left: 10px; } .files-pick-list .logo-pick-name { max-width: 260px; }
.dash-share { display: flex; gap: 8px; } .dash-share .btn { flex: 1; } .dash-share .fa-whatsapp { color: #25d366; }
.bill-guarantee { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.bill-guarantee i { color: var(--ok, #16a34a); }
