/* ==========================================================================
   Hostactor panel — the customer area, checkout and admin (ported from the
   WING panel). Layouts are made for daily use on a phone first. English, LTR;
   logical properties only, so a right-to-left page still works.
   Brand: the tokens come from brand/tokens.css (php brand/build.php writes the
   block between the @ha-tokens markers); the panel's short names (--primary,
   --heading…) are mapped to them right below — change colours there, not here.
   Fonts: Inter (text) and Plus Jakarta Sans (headings, buttons), OFL, both with
   the peso sign ₱ (U+20B1); see ../fonts/OFL-*.txt.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-var.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans.woff2") format("woff2"); font-style: normal; font-weight: 400 800; font-display: swap; }

/* @ha-tokens:start (copied from brand/tokens.css by brand/build.php: edit the source, not this block) */
:root{
  /* Colour: blues */
  --ha-blue-50:#EEF5FF;--ha-blue-100:#DCEBFF;--ha-blue-200:#B9D6FF;
  --ha-blue-400:#1F83FF;--ha-blue-600:#0B59ED;--ha-blue-700:#0A4FD6;--ha-blue-800:#0846C6;
  /* Colour: navy and slate */
  --ha-navy-300:#A9B8CC;--ha-navy-800:#13284F;--ha-navy-900:#0A1936;--ha-navy-950:#071832;
  --ha-slate-400:#8C9BB0;--ha-slate-600:#51647B;--ha-slate-700:#43546B;--ha-slate-800:#2C3B53;--ha-slate-100:#EDF2F8;
  /* Colour: sky washes, lines, white */
  --ha-sky-50:#F5FAFF;--ha-sky-100:#E9F6FF;--ha-sky-200:#D4ECFF;--ha-line:#E1EAF5;--ha-line-strong:#CFDAE8;--ha-white:#FFFFFF;
  /* Colour: status */
  --ha-green-50:#E7F6EE;--ha-green-500:#16A66A;--ha-green-700:#0F7B4F;--ha-red-50:#FDECEA;--ha-red-700:#B42318;--ha-amber-50:#FFF4DB;--ha-amber-700:#8A5A00;
  /* Focus: a 3px royal-blue ring with a white offset */
  --ha-focus:#0B59ED;--ha-focus-offset:#FFFFFF;--ha-focus-width:3px;
  /* Type */
  --ha-font-heading:"Plus Jakarta Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --ha-font-body:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --ha-fs-xs:.8125rem;--ha-fs-sm:.9375rem;--ha-fs-base:1rem;--ha-fs-md:1.125rem;--ha-fs-lg:1.25rem;--ha-fs-xl:1.5rem;
  --ha-fs-2xl:clamp(1.5rem,1.1rem + 1.1vw,2.125rem);--ha-fs-3xl:clamp(2.125rem,1.2rem + 1.9vw,3.125rem);
  --ha-lh-tight:1.1;--ha-lh-heading:1.2;--ha-lh-body:1.6;
  --ha-weight-heading:800;--ha-weight-subheading:700;--ha-tracking-heading:-.02em;
  /* Shape */
  --ha-radius-xs:6px;--ha-radius-sm:10px;--ha-radius:14px;--ha-radius-lg:20px;--ha-radius-xl:28px;--ha-radius-pill:999px;
  /* Depth */
  --ha-shadow-sm:0 1px 2px rgba(10,25,54,.06),0 2px 8px rgba(10,25,54,.04);
  --ha-shadow:0 1px 2px rgba(10,25,54,.05),0 10px 30px rgba(11,89,237,.08);
  --ha-shadow-lg:0 2px 6px rgba(10,25,54,.06),0 24px 60px rgba(11,89,237,.16);
  --ha-shadow-blue:0 10px 26px rgba(11,89,237,.30);
}
/* @ha-tokens:end */

:root {
  /* the panel's names for the brand tokens */
  --heading: var(--ha-navy-900); --primary: var(--ha-blue-600); --primary-hover: var(--ha-blue-700); --accent: var(--ha-blue-600);
  --text: var(--ha-slate-700); --muted: var(--ha-slate-600); --bg: var(--ha-sky-50); --tint: var(--ha-blue-50); --panel: var(--ha-slate-100);
  --card: var(--ha-white); --border: var(--ha-line); --line: var(--ha-line); --border-strong: var(--ha-line-strong); --border-featured: var(--ha-blue-200); --icon-bg: var(--ha-blue-100);
  --radius: var(--ha-radius); --radius-lg: var(--ha-radius-lg); --radius-sm: var(--ha-radius-sm);
  --shadow: var(--ha-shadow-sm); --shadow-lg: var(--ha-shadow);
  --font: var(--ha-font-body); --font-head: var(--ha-font-heading);
  /* focus: a 3px royal-blue ring outside a 2px white offset (box-shadow; a transparent outline stays for forced colours) */
  --focus: 0 0 0 2px var(--ha-focus-offset), 0 0 0 calc(2px + var(--ha-focus-width)) var(--ha-focus);
  /* white text sits on it (avatar): royal blue to a darker blue only, never lighter than --ha-blue-600 */
  --gradient: linear-gradient(135deg, var(--ha-blue-600) 0%, var(--ha-blue-800) 100%);
  /* states (AA contrast on white and on their tint) */
  --ok: var(--ha-green-700); --ok-bg: var(--ha-green-50); --warn: var(--ha-amber-700); --warn-bg: var(--ha-amber-50); --bad: var(--ha-red-700); --bad-bg: var(--ha-red-50); --info-bg: var(--tint);
  --header-h: 64px; --sidebar-w: 248px; --bottom-nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--text);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(420px 320px at 0 120px, rgba(206, 223, 253, .7), rgba(206, 223, 253, 0) 100%),
    radial-gradient(520px 240px at 100% 0, rgba(229, 238, 254, .8), rgba(229, 238, 254, 0) 100%),
    var(--bg) no-repeat;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: .2em; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.25; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.ltr, bdi.ltr { direction: ltr; unicode-bidi: isolate; }
.nowrap { white-space: nowrap; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 300; background: #fff; color: var(--heading); padding: .6rem 1rem; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.ico .f, .ico--fill { fill: currentColor; stroke: none; }
.ico-flip { transform: scaleX(-1); }
[hidden] { display: none !important; }
.grow { flex: 1; min-width: 0; }
.m-0 { margin: 0; }
.mt { margin-top: .9rem; }
.mt-lg { margin-top: 1.2rem; }
.mb { margin-bottom: .9rem; }
.mx-auto { margin-inline: auto; }
.center { text-align: center; justify-content: center; }
.text-bad { color: var(--bad); }
.spec-list li.tag--warn { background: var(--warn-bg); color: var(--warn); }
.spec-list li.tag--warn .ico { color: var(--warn); }

/* --- buttons (wing.co.il .btn) ---------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.2; min-height: 44px; padding: .6rem 1.2rem; border-radius: var(--radius-sm); border: 1.5px solid var(--primary); background: var(--primary); color: #fff; text-decoration: none; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; box-shadow: 0 6px 16px rgba(11, 89, 237, .22); white-space: nowrap; }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--outline { background: #fff; color: var(--primary); box-shadow: none; }
.btn--outline:hover { background: var(--tint); color: var(--primary-hover); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--primary); box-shadow: none; }
.btn--ghost:hover { background: var(--tint); color: var(--primary-hover); border-color: transparent; }
.btn--danger { background: var(--bad); border-color: var(--bad); box-shadow: none; }
.btn--danger:hover { background: #912018; border-color: #912018; }
.btn--danger-outline { background: #fff; color: var(--bad); border-color: #F1B5AF; box-shadow: none; }
.btn--danger-outline:hover { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.btn--whatsapp { background: #15803D; border-color: #15803D; box-shadow: 0 6px 16px rgba(21, 128, 61, .22); }
.btn--whatsapp:hover { background: #166534; border-color: #166534; }
.btn--block { width: 100%; }
.btn--lg { min-height: 52px; font-size: 1.02rem; padding-inline: 1.5rem; }
.btn--sm { min-height: 36px; padding: .4rem .85rem; font-size: .875rem; border-radius: 9px; box-shadow: none; }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.inline-form { display: inline; margin: 0; }

/* --- page chrome -------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 60; background: rgba(250, 251, 254, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.topbar__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); width: min(1180px, 100% - 2rem); margin-inline: auto; }
.topbar__inner--wide { width: calc(100% - 2rem); }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; flex: none; }
.brand img { width: 190px; height: auto; display: block; }
.brand__tag { font-size: .78rem; font-weight: 700; color: var(--primary); background: var(--tint); border-radius: 999px; padding: .1rem .55rem; }
.topnav { display: flex; gap: .15rem; flex: 1; justify-content: center; }
.topnav a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 9px; color: var(--heading); font-weight: 600; font-size: .92rem; text-decoration: none; }
.topnav a:hover { color: var(--primary); background: var(--tint); }
.topnav a[aria-current="page"] { color: var(--primary); background: var(--tint); }
.topbar__end { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.user-chip { display: inline-flex; align-items: center; gap: .45rem; color: var(--heading); font-weight: 600; font-size: .9rem; text-decoration: none; padding: .35rem .6rem; border-radius: 9px; }
.user-chip:hover { background: var(--tint); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--gradient); color: #fff; font-weight: 800; font-size: .85rem; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--heading); cursor: pointer; }
.icon-btn:hover { color: var(--primary); background: var(--tint); }

.page { width: min(1180px, 100% - 2rem); margin: 1.4rem auto 2.5rem; }
.page--narrow { width: min(760px, 100% - 2rem); }
.page--auth { width: min(440px, 100% - 2rem); margin-top: 2.5rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.1rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .2rem 0 0; color: var(--muted); }
.crumbs { font-size: .875rem; margin-bottom: .35rem; }
.crumbs a { text-decoration: underline; }

.site-footer { border-top: 1px solid var(--border); padding: 1.2rem 1rem 1.5rem; color: var(--muted); font-size: .85rem; }
.site-footer__inner { width: min(1180px, 100%); margin-inline: auto; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between; align-items: center; }
.legal-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.legal-links a, .legal-links button { color: var(--muted); font-size: .85rem; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; text-decoration: none; }
.legal-links a:hover, .legal-links button:hover { color: var(--primary); }

/* customer: phone bottom navigation */
.bottom-nav { display: none; }

/* admin shell */
.admin-shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.sidebar { position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 1rem .75rem 2rem; border-inline-end: 1px solid var(--border); background: rgba(255, 255, 255, .6); }
.sidebar__group { margin-bottom: 1rem; }
.sidebar__title { font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); padding: 0 .65rem .3rem; }
.sidebar a { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: 9px; color: var(--heading); font-weight: 600; font-size: .92rem; text-decoration: none; }
.sidebar a:hover { background: var(--tint); color: var(--primary); }
.sidebar a[aria-current="page"] { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(11, 89, 237, .22); }
.sidebar .count { margin-inline-start: auto; min-width: 22px; padding: 0 .4rem; border-radius: 999px; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 800; text-align: center; line-height: 20px; }
.sidebar a[aria-current="page"] .count { background: #fff; color: var(--primary); }
.admin-main { padding: 1.3rem clamp(1rem, 2vw, 2rem) 3rem; min-width: 0; }
.admin-main .page { width: 100%; margin: 0; }
.menu-btn { display: none; }

/* impersonation / test-mode ribbons */
.ribbon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; padding: .5rem 1rem; background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: .9rem; border-bottom: 1px solid #F3DDA6; }

/* --- cards & surfaces ---------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; }
.card + .card, .stack > * + * { margin-top: 1rem; }
.card--flat { box-shadow: none; }
.card--tint { background: var(--tint); border-color: var(--ha-blue-100); box-shadow: none; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .8rem; }
.card__head h2, .card__head h3 { margin: 0; }
.card__foot { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.grid { display: grid; gap: 1rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
/* Grid items may shrink below their content (long domains, buttons): no sideways scroll on phones. */
.split > *, .grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .checkout > *, .tiles > * { min-width: 0; }
.icon-circle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--icon-bg); color: var(--primary); flex: none; }
.icon-circle .ico { width: 22px; height: 22px; }
.icon-circle--ok { background: var(--ok-bg); color: var(--ok); }
.icon-circle--warn { background: var(--warn-bg); color: var(--warn); }
.icon-circle--bad { background: var(--bad-bg); color: var(--bad); }

/* tiles (dashboard) */
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.05rem 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: box-shadow .2s, transform .2s; }
a.tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--text); }
.tile__title { font-weight: 800; color: var(--heading); font-size: 1.02rem; }
.tile__value { font-size: 1.6rem; font-weight: 800; color: var(--heading); line-height: 1.1; }
.tile__meta { font-size: .875rem; color: var(--muted); }
.tile .icon-circle { margin-bottom: .2rem; }

/* stats (admin) */
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); text-decoration: none; color: var(--text); display: block; }
a.stat:hover { border-color: var(--border-featured); }
.stat__label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stat__value { font-size: 1.5rem; font-weight: 800; color: var(--heading); line-height: 1.2; }
.stat--alert .stat__value { color: var(--bad); }

/* attention list */
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.todo li { display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.todo__body { flex: 1; min-width: 0; }
.todo__title { font-weight: 700; color: var(--heading); }
.todo__meta { font-size: .875rem; color: var(--muted); }

/* rows: a list that reads well on phones (instead of wide tables) */
.rows { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
a.row, .row--link { color: inherit; text-decoration: none; }
a.row:hover { background: var(--ha-sky-50); }
.row__main { flex: 1; min-width: 0; }
.row__title { font-weight: 700; color: var(--heading); overflow-wrap: anywhere; }
.row__meta { font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .15rem .9rem; }
.row__end { display: flex; align-items: center; gap: .6rem; flex: none; text-align: end; }
.row__amount { font-weight: 800; color: var(--heading); white-space: nowrap; }
/* 0.9.3: a list whose rows can be selected (Admin → Support tickets) */
.rows--select > .row-select { display: flex; align-items: stretch; border-top: 1px solid var(--border); }
.rows--select > .row-select:first-child { border-top: 0; }
.rows--select > .row-select > .row { flex: 1; min-width: 0; border-top: 0; }
.row-select__check { display: flex; align-items: center; padding-inline-start: 1rem; cursor: pointer; }
.row-select__check input { width: 1.15rem; height: 1.15rem; }

/* tables (admin, desktop); become cards on phones */
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: start; font-size: .8rem; font-weight: 700; color: var(--muted); padding: .7rem .8rem; border-bottom: 1px solid var(--border); background: var(--ha-sky-50); white-space: nowrap; }
.table td { padding: .7rem .8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--ha-sky-50); }
.table .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table a.strong, .strong { font-weight: 700; color: var(--heading); }
.table a.strong { text-decoration: none; }
.table a.strong:hover { color: var(--primary); }

/* key–value details */
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .45rem 1rem; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; color: var(--heading); font-weight: 600; overflow-wrap: anywhere; }

/* status pills */
.status-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--panel); color: var(--heading); white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.status-pill.ok { background: var(--ok-bg); color: var(--ok); }
.status-pill.warn { background: var(--warn-bg); color: var(--warn); }
.status-pill.bad { background: var(--bad-bg); color: var(--bad); }
.status-pill.info { background: var(--tint); color: var(--primary); }
.tag { display: inline-block; padding: .1rem .5rem; border-radius: 6px; background: var(--panel); color: var(--heading); font-size: .78rem; font-weight: 700; }
/* the admin's marker tag (campaign, AI agent, before payment): brand blue; its class name is kept in the admin's PHP */
.tag--violet { background: var(--ha-blue-100); color: var(--ha-blue-800); }
.tag--warn { background: var(--warn-bg); color: var(--warn); }

/* alerts */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; border: 1px solid; margin-bottom: 1rem; font-size: .95rem; }
.alert .ico { margin-top: .15rem; }
.alert > div { flex: 1; min-width: 0; }
.alert p:last-child { margin-bottom: 0; }
.alert-success { background: var(--ok-bg); border-color: #BDE5CF; color: #064E30; }
.alert-error { background: var(--bad-bg); border-color: #F5C2BC; color: #7A1A12; }
.alert-warning { background: var(--warn-bg); border-color: #F3DDA6; color: #5E3D00; }
.alert-info { background: var(--info-bg); border-color: var(--ha-blue-100); color: var(--heading); }

/* empty state */
.empty { text-align: center; padding: 2rem 1rem; }
.empty .icon-circle { width: 56px; height: 56px; margin-bottom: .6rem; }
.empty h2 { font-size: 1.05rem; margin-bottom: .3rem; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 1rem; }

/* tabs */
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 1.1rem; scrollbar-width: none; }
.tabs a { padding: .6rem .85rem; color: var(--muted); font-weight: 700; font-size: .92rem; text-decoration: none; border-bottom: 2.5px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover { color: var(--heading); }
.tabs a[aria-current="page"] { color: var(--primary); border-color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chips a { padding: .35rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--heading); font-size: .875rem; font-weight: 600; text-decoration: none; }
.chips a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.chips .n { margin-inline-start: .25rem; font-weight: 700; }

/* toolbar / search */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 420px; }
.search .ico { position: absolute; inset-inline-start: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-inline-start: 2.4rem; }

/* --- forms --------------------------------------------------------------- */
.form { display: grid; gap: .95rem; }
.form-row { display: grid; gap: .95rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: .3rem; min-width: 0; }
.field > label, .label { font-weight: 700; color: var(--heading); font-size: .92rem; }
.field .hint { font-size: .84rem; color: var(--muted); }
.field .error { font-size: .84rem; color: var(--bad); font-weight: 600; }
.input, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: .6rem .8rem; font: inherit; font-size: 1rem; color: var(--heading); background: #fff;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 89, 237, .15); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
input[dir="ltr"], .input-ltr { direction: ltr; text-align: left; }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; accent-color: var(--primary); }
.check { display: flex; align-items: flex-start; gap: .55rem; font-size: .95rem; color: var(--heading); cursor: pointer; }
.check input { margin-top: .2rem; flex: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 800; color: var(--heading); padding: 0; margin-bottom: .6rem; font-size: 1.02rem; }
.input-group { display: flex; gap: .5rem; }
.input-group > input { flex: 1; min-width: 0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-inline-end: 3rem; }
.pw-toggle { position: absolute; inset-inline-end: .35rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: .45rem; cursor: pointer; border-radius: 8px; }
.danger-zone { border: 1.5px solid #F5C2BC; background: #FFFAF9; border-radius: var(--radius); padding: 1rem 1.1rem; }
.danger-zone h3 { color: var(--bad); }

/* choice cards (radio): periods, payment methods, domain modes */
.choices { display: grid; gap: .6rem; }
.choices--row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice { position: relative; display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover { border-color: var(--border-featured); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ha-blue-200); flex: none; display: grid; place-items: center; }
.choice__body { flex: 1; min-width: 0; }
.choice__title { font-weight: 800; color: var(--heading); display: block; }
.choice__hint { font-size: .85rem; color: var(--muted); display: block; }
.choice__price { font-weight: 800; color: var(--accent); white-space: nowrap; text-align: end; }
.choice__price small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.choice__badge { position: absolute; top: -9px; inset-inline-end: 12px; background: var(--ok); color: #fff; font-size: .72rem; font-weight: 800; padding: .05rem .5rem; border-radius: 999px; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--ha-sky-50); box-shadow: 0 0 0 3px rgba(11, 89, 237, .12); }
.choice:has(input:checked) .choice__dot { border-color: var(--primary); }
.choice:has(input:checked) .choice__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice .icon-circle { width: 38px; height: 38px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .3rem; padding: .3rem; background: var(--panel); border-radius: 12px; }
.segmented label { position: relative; display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 42px; padding: .35rem .5rem; border-radius: 9px; font-weight: 700; font-size: .9rem; color: var(--heading); cursor: pointer; text-align: center; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(10, 25, 54, .1); }
.segmented label:has(input:focus-visible) { box-shadow: var(--focus); }

/* --- checkout ------------------------------------------------------------ */
.checkout-top { display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--ok); }
.steps { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; gap: .4rem; counter-reset: step; }
.steps li { flex: 1; display: flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 700; color: var(--muted); min-width: 0; }
.steps li::before { counter-increment: step; content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--border-strong); font-size: .8rem; }
.steps li::after { content: ""; flex: 1; height: 2px; background: var(--border); border-radius: 2px; }
.steps li:last-child::after { display: none; }
.steps li.is-done { color: var(--ok); }
.steps li.is-done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.is-current { color: var(--primary); }
.steps li.is-current::before { background: var(--primary); border-color: var(--primary); color: #fff; }
.steps a { color: inherit; text-decoration: none; }
.steps span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.4rem; align-items: start; }
.checkout__main > .card + .card { margin-top: 1rem; }
.section-title { display: flex; align-items: center; gap: .6rem; font-size: 1.08rem; margin-bottom: .8rem; }
.section-title .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--primary); font-size: .85rem; flex: none; }

.summary { position: sticky; top: calc(var(--header-h) + 1rem); }
.summary__title { font-size: 1.05rem; margin-bottom: .8rem; }
.summary__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.summary__lines li { display: flex; justify-content: space-between; gap: .8rem; }
.summary__label { font-weight: 700; color: var(--heading); overflow-wrap: anywhere; }
.summary__detail { font-size: .85rem; color: var(--muted); display: block; font-weight: 400; }
.summary__amount { font-weight: 700; color: var(--heading); white-space: nowrap; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--border-strong); }
.summary__total strong { font-size: 1.45rem; color: var(--heading); }
.summary__vat { font-size: .82rem; color: var(--muted); margin-top: .2rem; text-align: end; }
.summary__edit { margin: .7rem 0 0; }
.summary__trust { display: grid; gap: .45rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: .85rem; color: var(--text); }
.summary__trust li { display: flex; gap: .45rem; align-items: center; }
.summary__trust .ico { color: var(--ok); }
/* phone: summary becomes a bar at the bottom that opens */
.summary-bar { display: none; }

/* summary + "need help?" beside the checkout */
.checkout__aside { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; }
.checkout__aside .summary { position: static; }
.help-box { background: var(--panel); border-style: dashed; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signed-in { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.signed-in .inline-form { margin-inline-start: auto; }
.help-box h2 { display: flex; align-items: center; gap: .45rem; margin-bottom: .35rem; }
.help-box p { margin: 0 0 .7rem; }
.help-box .btn-row { gap: .5rem; }
/* domain search: "checking…" and the alternatives loaded afterwards */
.search-status { display: flex; align-items: center; gap: .55rem; margin: .8rem 0 0; font-weight: 700; color: var(--heading); }
.search-status[hidden] { display: none; }
.spinner { width: 1.05em; height: 1.05em; border: 2px solid var(--border-strong); border-top-color: var(--primary); border-radius: 50%; animation: wing-spin .8s linear infinite; flex: none; }
@keyframes wing-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.alternatives [data-alt-status] { margin: 0; }
.domain-row.is-pending { border-color: #F5DDA8; background: #FFFCF3; }

.plan-head { display: flex; align-items: center; gap: .9rem; }
.plan-head__name { font-size: 1.15rem; font-weight: 800; color: var(--heading); margin: 0; }
.plan-head__sub { color: var(--muted); font-size: .9rem; margin: 0; }
.spec-list { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.spec-list li { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--heading); background: var(--panel); border-radius: 8px; padding: .25rem .6rem; }
.spec-list .ico { color: var(--ok); width: 1em; height: 1em; }

.domain-result { margin-top: .8rem; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 12px; font-weight: 600; }
.domain-result--ok { background: var(--ok-bg); color: #064E30; }
.domain-result--bad { background: var(--bad-bg); color: #7A1A12; }
.domain-result .price { margin-inline-start: auto; font-weight: 800; white-space: nowrap; }

/* catalog (direct visit) */
.plan-groups { display: grid; gap: 1.6rem; }
.plan-group h2 { font-size: 1.05rem; margin-bottom: .7rem; }
.plan-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.plan-card { display: flex; flex-direction: column; gap: .5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s, border-color .2s; }
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border-featured); color: var(--text); }
.plan-card--featured { background: var(--ha-blue-50); border: 1.5px solid var(--border-featured); }
.plan-card__name { font-weight: 800; color: var(--heading); font-size: 1.08rem; }
.plan-card__price { color: var(--accent); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.plan-card__price small { font-size: .82rem; color: var(--muted); font-weight: 600; }
.plan-card .spec-list { margin: 0; }
.plan-card .btn { margin-top: auto; }

.done-hero { text-align: center; padding: 1.4rem 1rem .6rem; }
.done-hero .icon-circle { width: 64px; height: 64px; border-radius: 50%; }
.done-hero .icon-circle .ico { width: 32px; height: 32px; }
.next-steps { list-style: none; margin: 0; padding: 0; counter-reset: ns; display: grid; gap: .75rem; }
.next-steps li { display: flex; gap: .75rem; }
.next-steps li::before { counter-increment: ns; content: counter(ns); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--primary); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.pay-box { white-space: pre-line; background: var(--panel); border-radius: 12px; padding: .9rem 1rem; color: var(--heading); font-weight: 600; }

/* service card (customer) */
.service { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem 1rem; align-items: center; }
.service__name { font-weight: 800; color: var(--heading); font-size: 1.05rem; overflow-wrap: anywhere; }
.service__meta { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
/* M5c: the messages from a site's forms ("3 new messages", a link to the studio's Leads tab). */
.service__leads { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; }
.service__leads .link-btn, .service__leads > .ico { display: inline-flex; align-items: center; gap: .3rem; }
.service__leads--new .link-btn { font-weight: 700; }
.service__actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }

/* invoice */
.invoice-doc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1rem, 3vw, 2rem); }
.invoice-doc__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.invoice-doc__head img { width: 120px; }
.invoice-lines { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.invoice-lines th { text-align: start; font-size: .82rem; color: var(--muted); border-bottom: 1.5px solid var(--border); padding: .5rem 0; }
.invoice-lines td { padding: .6rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.invoice-lines .num { text-align: end; white-space: nowrap; }
.invoice-totals { margin-inline-start: auto; width: min(320px, 100%); display: grid; gap: .35rem; }
.invoice-totals div { display: flex; justify-content: space-between; }
.invoice-totals .grand { font-size: 1.2rem; font-weight: 800; color: var(--heading); border-top: 1.5px solid var(--heading); padding-top: .4rem; margin-top: .2rem; }

/* dialogs for confirmations */
dialog.modal { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(480px, 100% - 2rem); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.modal::backdrop { background: rgba(10, 25, 54, .35); }
.modal__body { padding: 1.2rem 1.3rem; }
.modal__foot { padding: .9rem 1.3rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; background: var(--ha-sky-50); }
details.disclosure { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
details.disclosure > summary { cursor: pointer; padding: .8rem 1rem; font-weight: 700; color: var(--heading); list-style: none; display: flex; align-items: center; gap: .5rem; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: ""; margin-inline-start: auto; width: 9px; height: 9px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
details.disclosure[open] > summary::after { transform: rotate(-135deg); }
details.disclosure > div { padding: 0 1rem 1rem; }

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1rem; }
.pagination a, .pagination span { min-width: 38px; min-height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: #fff; text-decoration: none; font-weight: 700; color: var(--heading); padding: 0 .6rem; }
.pagination [aria-current] { background: var(--primary); color: #fff; border-color: var(--primary); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.timeline li { display: flex; gap: .7rem; font-size: .9rem; }
.timeline time { color: var(--muted); white-space: nowrap; font-size: .82rem; min-width: 110px; }
.timeline li > span { min-width: 0; overflow-wrap: anywhere; }
.msg { border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem; background: #fff; }
.msg--staff { background: var(--ha-sky-50); border-color: var(--ha-blue-100); }
.msg__head { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }
.msg__head strong { color: var(--heading); }
.msg__body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--heading); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; direction: ltr; unicode-bidi: isolate; }
.copy-field { display: flex; align-items: center; gap: .4rem; background: var(--panel); border-radius: 9px; padding: .35rem .35rem .35rem .7rem; }
.copy-field code { flex: 1; overflow-wrap: anywhere; }

/* --- accessibility tools menu (a supplement; see app/legal.php) ------- */
.wing-a11y { position: fixed; inset-inline-start: 14px; bottom: 14px; z-index: 90; }
.wing-a11y-toggle { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); cursor: pointer; display: grid; place-items: center; }
.wing-a11y-toggle:hover { background: var(--primary-hover); }
.wing-a11y-panel { position: absolute; bottom: 58px; inset-inline-start: 0; width: min(320px, calc(100vw - 28px)); max-height: calc(100vh - 90px); overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .9rem; color: var(--heading); }
.wing-a11y-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.wing-a11y-head h2 { font-size: 1rem; margin: 0; }
.wing-a11y-close { min-width: 40px; min-height: 40px; background: none; border: 1px solid transparent; border-radius: 9px; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--heading); }
.wing-a11y-close:hover { background: var(--tint); }
.wing-a11y-size { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .9rem; font-weight: 600; }
.wing-a11y-size > span { flex: 1; }
.wing-a11y-size button { min-width: 44px; min-height: 40px; font: inherit; font-weight: 800; border-radius: 9px; border: 1px solid var(--ha-slate-400); background: #fff; color: var(--heading); cursor: pointer; }
.wing-a11y-size button:disabled { opacity: .45; cursor: not-allowed; }
.wing-a11y-size output { min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; }
.wing-a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: .7rem 0 .5rem; }
.wing-a11y-grid button { font: inherit; font-size: .88rem; font-weight: 600; min-height: 44px; padding: .45rem .5rem; border-radius: 9px; border: 1px solid var(--ha-slate-400); background: #fff; color: var(--heading); cursor: pointer; }
.wing-a11y-grid button:hover, .wing-a11y-size button:hover:not(:disabled) { background: var(--tint); }
.wing-a11y-grid button[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.wing-a11y-grid button[aria-pressed="true"]::before { content: "✓ "; }
.wing-a11y-note { font-size: .82rem; color: var(--muted); margin: 0; }
html.a11y-size-1 { font-size: 115%; } html.a11y-size-2 { font-size: 130%; } html.a11y-size-3 { font-size: 150%; } html.a11y-size-4 { font-size: 175%; } html.a11y-size-5 { font-size: 200%; }
html.a11y-contrast { --heading: #000; --text: #111; --muted: #222; --primary: #0033B8; --primary-hover: #001F7A; --border: #4D4D4D; --tint: #E8EEFF; --panel: #F2F2F2; --bg: #fff; --ok: #04502F; --warn: #5C3B00; --bad: #8A1206; }
html.a11y-contrast body { background: #fff; }
html.a11y-contrast .card, html.a11y-contrast .topbar, html.a11y-contrast .sidebar, html.a11y-contrast input, html.a11y-contrast select, html.a11y-contrast textarea { border-color: #4D4D4D !important; }
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; font-weight: 700; }
html.a11y-links a.btn { outline: 2px dashed currentColor; outline-offset: 2px; }
html.a11y-spacing body { line-height: 1.8 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-spacing p { margin-bottom: 2em !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-focus :focus, html.a11y-focus :focus-visible { outline: 3px solid #C2410C !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px #fff !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* --- legal documents and public forms ----------------------------------- */
.legal-doc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow); }
.legal-doc h1 { margin-bottom: .3rem; }
.legal-meta { color: var(--muted); font-size: .9rem; }
.legal-body { color: var(--heading); line-height: 1.75; }
.legal-body h2 { font-size: 1.15rem; margin: 1.8em 0 .5em; scroll-margin-top: calc(var(--header-h) + 1rem); }
.legal-body h3 { margin-top: 1.4em; }
.legal-body ul, .legal-body ol { padding-inline-start: 1.4rem; margin: 0 0 1em; }
.legal-body li { margin-bottom: .4em; }
.legal-lead { font-size: 1.05rem; color: var(--text); }
.legal-details { list-style: none; padding: .8rem 1rem !important; background: var(--panel); border-radius: var(--radius-sm); }
.legal-details li { margin: .2em 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .92rem; }
.legal-table caption { text-align: start; font-weight: 700; color: var(--heading); padding-bottom: .4rem; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: .55rem .65rem; text-align: start; vertical-align: top; }
.legal-table thead th { background: var(--panel); }
.legal-table tbody th { font-weight: 600; }
.legal-hub { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.legal-hub a { display: block; padding: .9rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); }
.legal-hub a:hover { border-color: var(--border-featured); }
.legal-hub strong { display: block; color: var(--heading); font-size: 1.02rem; }
.legal-hub span { display: block; color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.legal-hub small { color: var(--muted); }
.legal-links__cancel { font-weight: 700; color: var(--heading) !important; }
.form-note { font-size: .88rem; color: var(--muted); background: var(--panel); border-radius: var(--radius-sm); padding: .7rem .9rem; margin: 0 0 1rem; }
.req { color: var(--bad); font-weight: 700; }
.field-error { color: var(--bad); font-size: .88rem; font-weight: 600; }
@media (max-width: 640px) {
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table tr { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .6rem; }
  .legal-table th, .legal-table td { border: 0; border-bottom: 1px solid var(--border); }
  .legal-table td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--muted); font-size: .8rem; }
}

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1023px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 110; width: min(290px, 85vw); height: 100vh; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(-110%); transition: transform .25s; padding-top: 1.2rem; }
  [dir="rtl"] .sidebar { transform: translateX(110%); }
  .sidebar.is-open { transform: none; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 105; background: rgba(10, 25, 54, .3); }
  .menu-btn { display: inline-grid; }
  .split, .grid-3 { grid-template-columns: 1fr; }
  .split--aside-first > aside { order: -1; }
}
@media (max-width: 860px) {
  .topnav { display: none; }
  .checkout { grid-template-columns: 1fr; }
  .checkout .summary { display: none; }
  .checkout__aside { position: static; }
  body.has-summary-bar { padding-bottom: 92px; }
  .summary-bar { display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(10, 25, 54, .08); }
  .summary-bar > details > summary { list-style: none; display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; cursor: pointer; }
  .summary-bar > details > summary::-webkit-details-marker { display: none; }
  .summary-bar__what { flex: 1; min-width: 0; font-size: .85rem; color: var(--muted); }
  .summary-bar__what strong { display: block; color: var(--heading); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .summary-bar__total { text-align: end; }
  .summary-bar__total strong { display: block; color: var(--heading); font-size: 1.2rem; line-height: 1.1; }
  .summary-bar__total span { font-size: .78rem; color: var(--primary); font-weight: 700; }
  .summary-bar .summary { position: static; box-shadow: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; max-height: 55vh; overflow-y: auto; }
  .body--customer { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 70; height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(10, 25, 54, .06); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; font-size: .72rem; font-weight: 700; color: var(--muted); text-decoration: none; }
  .bottom-nav a .ico { width: 22px; height: 22px; }
  .bottom-nav a[aria-current="page"] { color: var(--primary); }
  .body--customer .wing-a11y { bottom: calc(var(--bottom-nav-h) + 12px); }
  body.has-summary-bar .wing-a11y { bottom: 104px; }
}
@media (max-width: 640px) {
  .page { width: calc(100% - 2rem); margin-top: 1rem; }
  .brand img { width: 150px; }
  .brand__tag { display: none; }
  .user-chip__name { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .tile { padding: .85rem; }
  .tile__value { font-size: 1.3rem; }
  .grid-2, .form-row { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .stat__value { font-size: 1.25rem; }
  .card { padding: 1rem; }
  .kv { grid-template-columns: 1fr; gap: .1rem; }
  .kv dd { margin-bottom: .5rem; }
  .service { grid-template-columns: auto 1fr; }
  .service__actions { grid-column: 1 / -1; justify-content: stretch; }
  .service__actions .btn { flex: 1; }
  .row { flex-wrap: wrap; }
  .row__end { width: 100%; justify-content: space-between; }
  .steps li span { display: none; }
  .steps li.is-current span { display: inline; overflow: visible; }
  .steps li.is-current { flex: 2; }
  .page-head .btn-row { width: 100%; }
  /* tables → stacked cards */
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: .6rem .8rem; border-bottom: 1px solid var(--border); }
  .table--stack td { border: 0; padding: .15rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: end; }
  .table--stack td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: start; }
  .table--stack td[data-label=""]::before { content: none; }
  .table--stack td.num { text-align: end; }
  .table-wrap { overflow-x: visible; }
  .choice { padding: .75rem .85rem; }
  .btn { white-space: normal; text-align: center; }
}

@media print {
  .topbar, .bottom-nav, .sidebar, .site-footer, .no-print, .wing-a11y, .ribbon, .summary-bar { display: none !important; }
  body { background: #fff; padding: 0 !important; }
  .admin-shell { display: block; }
  .page, .admin-main { width: 100%; margin: 0; padding: 0; }
  .invoice-doc { border: 0; box-shadow: none; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---- 0.4 checkout: domain step, hosting step, details, review -------------- */
.mt-sm { margin-top: .5rem; }
.h-small { font-size: 1rem; font-weight: 800; color: var(--heading); margin: 0 0 .6rem; display: flex; align-items: center; gap: .45rem; }
.segmented--links a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .35rem .5rem; border-radius: 9px; font-weight: 700; font-size: .9rem; color: var(--heading); text-decoration: none; text-align: center; }
.segmented--links a[aria-current] { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(10, 25, 54, .1); }
.segmented--links a:hover { color: var(--primary); }
.segmented--links .ico { width: 1.05em; height: 1.05em; flex: none; }
.domain-search { display: flex; gap: .5rem; }
.domain-search input { flex: 1; min-width: 0; font-size: 1.05rem; min-height: 50px; text-align: left; }
.domain-search .btn { min-height: 50px; }
.domain-results { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .55rem; }
.domain-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .5rem 1rem; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; }
.domain-row--main { padding: 1rem 1.1rem; border-color: var(--border-featured); background: var(--ha-sky-50); }
.domain-row--main.is-taken, .domain-row--main.is-premium, .domain-row--main.is-unsupported, .domain-row--main.is-error, .domain-row--main.is-unknown { background: #FFF9F8; border-color: #F3D2CE; }
.domain-row__name { min-width: 0; display: grid; gap: .15rem; }
.domain-row__name bdi { font-weight: 800; font-size: 1.05rem; color: var(--heading); overflow-wrap: anywhere; }
.domain-row--main .domain-row__name bdi { font-size: 1.2rem; }
.domain-row__status { display: flex; align-items: center; gap: .35rem; font-size: .86rem; color: var(--muted); }
.domain-row.is-available .domain-row__status { color: var(--ok); font-weight: 700; }
.domain-row.is-taken .domain-row__status, .domain-row.is-error .domain-row__status { color: var(--bad); }
.domain-row__status .ico { width: 1em; height: 1em; flex: none; }
.domain-row__price { text-align: end; font-weight: 800; color: var(--accent); font-size: 1.1rem; white-space: nowrap; }
.domain-row__price small { display: block; font-size: .76rem; color: var(--muted); font-weight: 600; }
.domain-row__act { margin: 0; }
.note-box, .en-note { display: flex; gap: .7rem; align-items: flex-start; background: var(--panel); border-radius: 12px; padding: .85rem 1rem; font-size: .92rem; }
.note-box > .ico, .en-note > .ico { color: var(--primary); flex: none; margin-top: .15rem; }
.en-note { background: #FFF8E6; border: 1px solid #F3E2B0; margin-bottom: .9rem; }
.en-note strong { display: block; color: var(--heading); }
.en-note span { color: var(--text); font-size: .88rem; }
.ltr-fields input:not([type=checkbox]), .ltr-fields select { text-align: left; }
.transfer-box { background: var(--ha-sky-50); border: 1.5px solid var(--border-featured); border-radius: 12px; padding: 1rem 1.1rem; }
.transfer-box--bad { background: #FFF9F8; border-color: #F3D2CE; }
/* hosting step: plans as radio cards; the chosen period decides which price shows */
.cycle-toggle { border: 0; padding: 0; margin: .4rem 0 0; }
.cycle-toggle .label { margin-bottom: .45rem; display: block; }
.pill-save { background: var(--ok); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: .05rem .45rem; }
.plan-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.plan-group > legend { font-size: 1.05rem; font-weight: 800; color: var(--heading); margin-bottom: .7rem; padding: 0; }
.plan-choice { position: relative; cursor: pointer; }
.plan-choice > input { position: absolute; opacity: 0; pointer-events: none; }
.plan-choice__head { display: flex; justify-content: space-between; align-items: center; }
.plan-choice:has(> input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 89, 237, .15), var(--shadow); }
.plan-choice:has(> input:checked) .choice__dot { border-color: var(--primary); }
.plan-choice:has(> input:checked) .choice__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.plan-choice:has(> input:focus-visible) { box-shadow: var(--focus); }
.price-when { display: grid; gap: .15rem; }
.price-when--monthly { display: none; }
.hosting-step:has(input[name="cycle"][value="monthly"]:checked) .price-when--annual { display: none; }
.hosting-step:has(input[name="cycle"][value="monthly"]:checked) .price-when--monthly { display: grid; }
.saving { font-size: .8rem; font-weight: 800; color: var(--ok); }
.choice--wide { margin-top: 1rem; }
.reg-choice { border: 0; padding: 0; margin: 0 0 1rem; }
.reg-choice .label { display: block; margin-bottom: .45rem; }
/* review */
.review { margin: 0; display: grid; }
.review > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; gap: .3rem 1rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.review dt { font-weight: 700; color: var(--muted); font-size: .9rem; }
.review dd { margin: 0; min-width: 0; display: grid; gap: .1rem; }
.review dd .muted { font-size: .86rem; }
.review__amount { font-weight: 800; color: var(--heading); text-align: end; white-space: nowrap; }
.review__edit { font-size: .85rem; }
.review__totals { display: grid; gap: .3rem; margin-top: .9rem; }
.review__totals > div { display: flex; justify-content: space-between; gap: 1rem; color: var(--text); font-size: .92rem; }
.review__totals .grand { font-size: 1.25rem; font-weight: 800; color: var(--heading); border-top: 1.5px solid var(--heading); padding-top: .5rem; margin-top: .2rem; }
.review__notes { margin: 1rem 0 0; padding-inline-start: 1.1rem; color: var(--muted); display: grid; gap: .3rem; }
.summary__tip { display: flex; gap: .4rem; align-items: center; margin: .7rem 0 0; font-size: .84rem; font-weight: 700; color: var(--ok); background: var(--ok-bg); border-radius: 9px; padding: .45rem .6rem; }
.summary__tip .ico { flex: none; }
/* DNS instructions */
.dns-box { margin-top: 1.2rem; background: var(--panel); border-radius: 14px; padding: 1rem 1.1rem; }
.ns-list { list-style: none; margin: .4rem 0 .8rem; padding: 0; display: grid; gap: .4rem; }
.ns-list li { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: .45rem .7rem; }
.ns-list code { flex: 1; font-size: 1rem; font-weight: 700; color: var(--heading); text-align: left; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
@media (max-width: 640px) {
  .domain-search { flex-direction: column; }
  .domain-row { grid-template-columns: minmax(0, 1fr) auto; }
  .domain-row__act { grid-column: 1 / -1; }
  .domain-row__act .btn { width: 100%; }
  .segmented--links:has(> a:nth-child(3)) { grid-auto-flow: row; grid-auto-columns: auto; }
  .segmented--links:has(> a:nth-child(3)) a { justify-content: flex-start; padding-inline: .8rem; }
  .review > div { grid-template-columns: minmax(0, 1fr) auto; }
  .review dt { grid-column: 1 / -1; }
  .review__edit { grid-column: 1 / -1; }
  .plan-cards { grid-template-columns: 1fr; }
}

.plan-card__cat { font-size: .74rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.summary__lines li.is-pending .summary__amount, .summary__lines li.is-pending .summary__detail { color: var(--muted); }
.section-title__sub { display: block; font-size: .92rem; font-weight: 600; color: var(--muted); margin-top: .15rem; }
.review dd > span { min-width: 0; overflow-wrap: anywhere; }

/* 0.6 — Hosting step: the plan chosen on wing.co.il first, the others as alternatives */
.selected-plan { border: 1.5px solid var(--primary); box-shadow: 0 0 0 3px rgba(11, 89, 237, .10), var(--shadow-lg); display: grid; gap: .9rem; }
.selected-plan__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; }
.badge--selected { display: inline-flex; align-items: center; gap: .3rem; background: var(--primary); color: #fff; font-weight: 800; font-size: .8rem; border-radius: 999px; padding: .2rem .7rem; }
.badge--selected .ico { width: .95em; height: .95em; }
.selected-plan__main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; cursor: pointer; }
.selected-plan__main > input { position: absolute; opacity: 0; pointer-events: none; }
.selected-plan__name { display: grid; gap: .1rem; }
.selected-plan__name .plan-card__name { font-size: 1.35rem; }
.selected-plan__price { display: grid; justify-items: end; text-align: end; }
.selected-plan__specs { margin: 0; }
.selected-plan__cycle .cycle-toggle { margin: 0; }
.selected-plan__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.selected-plan__cta .btn--lg { min-width: 16rem; }
/* When another plan is picked below, the chosen card steps back. */
.hosting-step--selected:has(.other-plans input[name="plan"]:checked) .selected-plan { border-color: var(--border); box-shadow: var(--shadow); }
.hosting-step--selected:has(.other-plans input[name="plan"]:checked) .badge--selected { background: var(--muted); }
.hosting-step--selected:has(.other-plans input[name="plan"]:checked) [data-cta-selected] { display: none; }
.other-plans { padding: 0; }
.other-plans > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 1.1rem; font-weight: 800; color: var(--heading); }
.other-plans > summary::-webkit-details-marker { display: none; }
.other-plans > summary > span:first-child { display: inline-flex; align-items: center; gap: .5rem; }
.other-plans[open] > summary { border-bottom: 1px solid var(--border); }
.other-plans[open] .other-plans__hint { visibility: hidden; }
.other-plans > fieldset, .other-plans > .btn-row { margin-inline: 1.1rem; }
.other-plans > .btn-row { margin-bottom: 1.1rem; }
.plan-cards--compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.plan-card--compact { padding: .85rem .95rem; gap: .35rem; }
.plan-card--compact .plan-card__price { font-size: 1.3rem; }
.plan-card--compact .spec-list li.spec--more { display: none; }
.code-block { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel); border-radius: 8px; padding: .6rem .8rem; font-size: .8rem; max-height: 16rem; overflow: auto; margin: .4rem 0 0; }
@media (max-width: 640px) {
  .selected-plan { gap: .7rem; padding: .95rem; }
  .selected-plan__main { grid-template-columns: auto minmax(0, 1fr); gap: .7rem; }
  .selected-plan__main .icon-circle { width: 42px; height: 42px; }
  .selected-plan__price { grid-column: 1 / -1; justify-items: start; text-align: start; }
  .selected-plan__name .plan-card__name { font-size: 1.15rem; }
  .selected-plan__specs li.spec--more, .selected-plan__specs li:nth-child(n+5) { display: none; }
  .selected-plan__cta { order: 5; }
  .selected-plan__cta .btn--lg { width: 100%; min-width: 0; }
  .selected-plan__cta .btn--ghost { width: 100%; }
  .selected-plan__cycle .cycle-toggle p { display: none; }
  /* Alternatives: a swipeable row instead of a long column. */
  .plan-cards--compact { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
  .plan-cards--compact > .plan-card { scroll-snap-align: start; }
}
.pay-whatsapp { display: grid; gap: .35rem; justify-items: center; text-align: center; margin: .2rem 0 1rem; }
/* 0.6 — server assignment, bulk actions */
.server-capacity { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.stat--muted { opacity: .7; }
.stat__value small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.meter { height: 7px; background: var(--panel); border-radius: 99px; overflow: hidden; margin: .35rem 0; }
.meter > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.stat--alert .meter > span { background: var(--bad); }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .7rem 1rem; margin-bottom: .8rem; }
.bulk-bar__label { font-weight: 700; color: var(--heading); }
.bulk-bar select { width: auto; min-width: 12rem; }
.w-check { width: 2.5rem; }
.assign-table select { min-width: 10rem; }
button[disabled] { opacity: .5; cursor: not-allowed; }
.selected-plan__main.plan-choice:has(> input:checked), .selected-plan__main.plan-choice { border: 0; box-shadow: none; border-radius: 10px; }
.selected-plan__main.plan-choice:has(> input:focus-visible) { box-shadow: var(--focus); }
@media (max-width: 640px) { .other-plans__more { display: none; } }
/* 0.6 — notification bell and center */
.bell { position: relative; }
.bell > summary { list-style: none; position: relative; cursor: pointer; }
.bell > summary::-webkit-details-marker { display: none; }
.bell__count { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff; font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; }
.bell__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: min(360px, 92vw); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 120; overflow: hidden; }
.bell__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .9rem; border-bottom: 1px solid var(--border); color: var(--heading); }
.bell__list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow: auto; }
.bell__item a { display: grid; gap: .1rem; padding: .6rem .9rem; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); font-size: .88rem; }
.bell__item a:hover { background: var(--panel); }
.bell__item strong { color: var(--heading); font-size: .9rem; }
.bell__item time { font-size: .75rem; color: var(--muted); }
.bell__item.is-unread a { background: var(--ha-blue-50); box-shadow: inset 3px 0 0 var(--primary); }
.bell__item--error.is-unread a { box-shadow: inset 3px 0 0 var(--bad); }
.bell__item--warning.is-unread a { box-shadow: inset 3px 0 0 #D69E00; }
.bell__empty { margin: 0; padding: .9rem; }
.bell__all { display: block; text-align: center; padding: .6rem; font-weight: 700; font-size: .88rem; }
.notif-list .row.is-unread { background: var(--ha-blue-50); }
.notif-list .row.is-unread .row__title a { font-weight: 800; }
.notif-list .row__title a { color: var(--heading); text-decoration: none; }
.notif-ico--error { background: var(--bad-bg); color: var(--bad); }
.notif-ico--warning { background: var(--warn-bg); color: var(--warn); }
.notif-ico--success { background: var(--ok-bg); color: var(--ok); }
.check-list { display: grid; gap: .35rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.push-state { font-weight: 700; color: var(--heading); }
.email-body { white-space: pre-wrap; background: var(--panel); border-radius: 10px; padding: .8rem 1rem; font-size: .9rem; max-height: 22rem; overflow: auto; }
.filters { display: grid; gap: .6rem .9rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: end; padding: .8rem 1rem; }
.filters .field { margin: 0; }
.field--end { display: flex; gap: .4rem; align-items: center; }
/* 0.6 — sign-in help, login link */
.or-line { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .85rem; margin: 1rem 0 .8rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-help { display: grid; gap: .5rem; justify-items: center; text-align: center; margin-top: 1rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.code-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 800; }

/* --- 0.7: timelines and plain lists ------------------------------------- */
.event-log { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.event-log > li { border-inline-start: 3px solid var(--border); padding-inline-start: .8rem; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.mono-area { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.disclosure-box { margin-top: 1rem; border: 1px solid var(--border-featured); background: var(--tint); border-radius: var(--radius-sm); padding: .8rem 1rem; color: var(--heading); }
.disclosure-box h3 { margin: 0 0 .4rem; }
.disclosure-box ul { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .3rem; }
.check--terms { font-weight: 600; color: var(--heading); }
.wrap-anywhere { overflow-wrap: anywhere; word-break: break-all; }
/* Focus ring wins over button variants that drop their shadow (WCAG 2.4.7). */
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { box-shadow: var(--focus) !important; outline: 2px solid transparent; }
.modal__foot form { margin: 0; }

/* WhatsApp (0.8.0): same mark and colour rule as the website. */
:root { --wa: #15803D; --wa-hover: #166534; }
.ico--whatsapp { color: var(--wa); }
.btn:not(.btn--outline):not(.btn--ghost) .ico--whatsapp, .btn--whatsapp .ico--whatsapp { color: inherit; }
.btn--whatsapp { background: var(--wa); border-color: var(--wa); }
.btn--whatsapp:hover { background: var(--wa-hover); border-color: var(--wa-hover); }

/* 0.8.1: links in a row's meta line are at least 24 px tall (WCAG 2.5.8). */
.row__meta a { display: inline-flex; align-items: center; min-height: 24px; }

/* 0.8.3 — domain registration / renewal: cancelling and refunds, apart from hosting */
.domain-refund { display: flex; gap: .45rem; align-items: flex-start; margin: .7rem 0 0; padding: .55rem .7rem; border-radius: 9px; background: var(--warn-bg); color: var(--heading); line-height: 1.5; }
.domain-refund .ico { flex: none; margin-top: .2rem; color: var(--warn); }
.domain-refund a { white-space: nowrap; }
.domain-refund--box { margin: 1rem 0 0; padding: .85rem 1rem; border: 1px solid #F0D9A6; font-size: .95rem; font-weight: 500; }
.domain-refund--box .ico { width: 1.2rem; height: 1.2rem; }

/* 0.8.3 — Sitejet website builder on the hosting page */
.builder-card { border: 1px solid var(--border-featured); background: linear-gradient(180deg, var(--tint), var(--card)); }
.builder-card h2 { display: flex; gap: .5rem; align-items: center; }
.btn-row--wrap { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.domain-pick { display: grid; gap: .5rem; margin: 0 0 1rem; }

/* 0.8.3 — admin orders: bulk selection (uses the existing .bulk-bar) */
.order-plan { display: grid; gap: .3rem; margin: 0; padding-inline-start: 1.2rem; }

/* 0.8.4 — admin DNS */
.dns-table .dns-value { max-width: 28rem; overflow-wrap: anywhere; font-size: .9rem; }
.dns-table tr.is-protected td { color: var(--muted); }

/* Cookie consent of the public order pages (only when tracking is on; same choice as wing.co.il) */
.consent { position: fixed; inset-inline: 14px; bottom: 14px; z-index: 120; max-width: 760px; max-height: calc(100vh - 28px); overflow-y: auto; margin-inline: auto; background: #fff; border: 1px solid var(--border, #dfe5ef); border-radius: 16px; box-shadow: 0 18px 48px rgba(16, 32, 72, .22); padding: 1.1rem 1.25rem; color: var(--text, #43546B); }
.consent[hidden], .consent [hidden] { display: none !important; }
.consent__title { font-size: 1.12rem; margin: 0 0 .35rem; }
.consent__title:focus { outline: none; }
.consent__text { margin: 0 0 .8rem; font-size: .92rem; line-height: 1.55; }
.consent__prefs fieldset { border: 0; margin: 0 0 .8rem; padding: 0; display: grid; gap: .55rem; }
.consent__cat { border: 1px solid var(--border, #dfe5ef); border-radius: 10px; padding: .6rem .8rem; }
.consent__cat p { margin: .25rem 0 0; font-size: .86rem; color: var(--muted, #4a5878); line-height: 1.5; }
.consent__cat .consent__tools { color: inherit; }
.consent__switch { display: flex; align-items: center; gap: .55rem; font-size: .95rem; cursor: pointer; }
.consent__switch input { width: 20px; height: 20px; accent-color: var(--primary, #0B59ED); flex: none; }
.consent__always { margin-inline-start: auto; font-size: .8rem; color: var(--muted, #4a5878); }
.consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent__actions .btn { min-width: 140px; flex: 1 1 140px; }
@media (max-width: 520px) { .consent { inset-inline: 8px; bottom: 8px; padding: .9rem 1rem; } .consent__actions .btn { flex: 1 1 calc(50% - .25rem); min-width: 0; padding-inline: .6rem; } }
@media print { .consent { display: none; } }

/* 0.8.8 — order progress, paid-order highlight, backups */
.order-progress { border-inline-start: 4px solid var(--line, #e4e7ec); }
.order-progress--ok { border-inline-start-color: var(--ok); }
.order-progress--warn { border-inline-start-color: var(--warn); }
.order-progress--bad { border-inline-start-color: var(--bad); background: var(--bad-bg); }
.order-progress .status-pill { margin-block: .15rem; }
.paid-orders .row--new { border-inline-start: 4px solid var(--ok); background: var(--ok-bg); }
.paid-orders .row--attention { border-inline-start: 4px solid var(--bad); }
.tag--new { background: var(--ok); color: #fff; }
.backup-list td, .backup-list th { vertical-align: middle; }
.danger-zone { border: 2px solid var(--bad); }
.qr-box{display:block;width:max-content;max-width:100%;background:#fff;padding:8px;border:1px solid #e4e7ec;border-radius:10px;margin:.5rem 0}
.qr-box svg{display:block;max-width:100%;height:auto}

/* 0.9.0 — Admin → Campaigns: what a campaign still needs before it is activated */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .55rem; align-items: flex-start; }
.checklist li > .ico { flex: none; margin-top: .2rem; }
.checklist .is-ok > .ico { color: var(--ok); }
.checklist .is-missing > .ico { color: var(--warn); }
.msg__actions { display: flex; justify-content: flex-end; margin-top: .4rem; }
.msg__actions .link-btn { display: inline-flex; align-items: center; gap: .3rem; min-height: 32px; font-size: .85rem; }
.link-btn--danger { color: var(--bad); }
.link-btn--danger:hover { color: #8F1B12; }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem 1rem; display: grid; gap: .8rem; }
.fieldset legend { font-weight: 800; color: var(--heading); padding-inline: .3rem; }
.form-row--wrap { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* 0.7.4 / panel 0.9.2 — the privacy notice (consent mode "notice"): one line of text and "OK" */
.consent--notice { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; max-width: 980px; padding: .85rem 1.15rem; }
.consent--notice .consent__title { flex-basis: 100%; font-size: 1rem; margin: 0; }
.consent--notice .consent__text { flex: 1 1 420px; margin: 0; }
.consent--notice .consent__actions { flex: 0 0 auto; }
.consent--notice .consent__actions .btn { flex: 0 0 auto; min-width: 128px; }
@media (max-width: 520px) { .consent--notice .consent__actions { flex: 1 1 100%; } .consent--notice .consent__actions .btn { flex: 1 1 100%; } }
/* 0.10.0: Cloudflare (Admin → Cloudflare, customer service page) */
.stat__value--sm { font-size: 1rem; }
.form--inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.form--inline .field { flex: 1 1 260px; margin: 0; }
.cf-card { border-color: #F6821F33; }
.cf-card h2 .ico { color: #F6821F; }
.cf-benefits { list-style: none; margin: .4rem 0 1rem; padding: 0; display: grid; gap: .35rem; }
.cf-benefits li { display: flex; align-items: flex-start; gap: .45rem; }
.cf-benefits .ico { color: var(--ok); flex: none; margin-top: .15rem; }
.cf-consent { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; }
.cf-ns { display: grid; gap: .5rem; }
.cf-ns .copy-field code { font-size: 1rem; }
.cf-compare td, .cf-compare th { vertical-align: top; }
.cf-compare .was { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.cf-compare code { overflow-wrap: anywhere; }
.cf-timeline { list-style: none; margin: 0; padding: 0; }
.cf-timeline li { padding: .5rem 0; border-top: 1px solid var(--border); font-size: .9rem; }
.cf-timeline li:first-child { border-top: 0; }
.cf-timeline .lvl-error { color: var(--bad); }
.cf-timeline .lvl-warning { color: var(--warn); }
@media (max-width: 640px) { .form--inline .field { flex-basis: 100%; } }

/* 0.10.1: the registrar's confirmation e-mail — "action needed" in My domains. */
.verify-card { border-inline-start: 4px solid var(--warn); }
.verify-card h2 { display: flex; align-items: center; gap: .5rem; }
.verify-card .row__meta span { overflow-wrap: anywhere; }
/* 0.10.1: WhatsApp to the customer from the admin (icon-only in tables). */
.btn--wa-icon { min-height: 32px; min-width: 32px; padding: .3rem; justify-content: center; }
.wa-inline { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }

/* Hostactor: placeholder legal texts are marked as drafts until the reviewed Philippine versions arrive. */
.legal-draft { border: 2px dashed var(--warn, #b45309); background: #fff7ed; border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 0 0 1.2rem; color: #7c2d12; }
.legal-draft p { margin: 0; }
.manual-pay { margin-top: 1rem; }
.manual-pay__qr { text-align: center; }
.manual-pay__qr img { max-width: 220px; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; padding: .4rem; }
/* M2: Catalog & Pricing — the live price preview, bundle checkboxes; the checkout disclosure line. */
.price-preview { border: 1px dashed var(--border); border-radius: var(--radius-sm); background: var(--ha-sky-50); padding: .7rem .9rem; display: grid; gap: .2rem; }
.price-preview [data-preview-block] .strong, .price-preview > div > .strong { font-size: 1.15rem; }
.d-block { display: block; }
.checks-grid { display: grid; gap: .35rem 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.review__disclosure { margin: .7rem 0 0; color: var(--heading); }

/* M5: "My services" — bundle items under their bundle, add-a-product tiles. */
.service__items { grid-column: 1 / -1; display: grid; gap: .5rem; border-top: 1px solid var(--line, #E5E7EB); padding-top: .75rem; }
.service--item { box-shadow: none; background: var(--panel, #F7F8FA); padding: .7rem .9rem; }
.service--item .service__name { font-size: .95rem; }
.addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .75rem; }
.addon-tile { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: inherit; }
.addon-tile:hover .service__name, .addon-tile:focus-visible .service__name { text-decoration: underline; }
