/* YourWWW: website and customer panel */
:root {
  --ink: #1C1633;
  --body: #3F3958;
  --muted: #5A5470;
  --faint: #9C96B0;
  --primary: #5B5BF0;
  --primary-dark: #4B4BD6;
  --primary-darker: #3434B0;
  --lilac: #F3EAFB;
  --peri: #ECECFF;
  --soft: #F7F5FC;
  --grey-bg: #F3F1F8;
  --line: #EFECF6;
  --border: #E4E0EF;
  --purple: #7B3FA8;
  --purple-mid: #8E4FBF;
  --accent-purple: #AA6CD1;
  --accent-blue: #6666FF;
  --danger: #B42318;
  --ok-bg: #E3F5EA; --ok-fg: #1E6B3F;
  --warn-bg: #FFF4DC; --warn-fg: #6B4600;
  --bad-bg: #FDE7E5; --bad-fg: #9A1C12;
  --info-bg: #ECECFF; --info-fg: #3434B0;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --dark: #1C1633; --dark-hover: #2E2650;
  --selected: #F7F7FF;
  --bad-soft: #FFF8F7; --bad-border: #F3C7C2;
  --border-strong: #CFC9E0;
  --lilac-hover: #EBDDF7;
  color-scheme: light;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}

/* Dark theme: follows the system unless the visitor chose light or dark (data-theme on <html>) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F1EEFA;
    --body: #D9D4E8;
    --muted: #ABA4C4;
    --faint: #6F6889;
    --primary: #6B6BF8;
    --primary-dark: #8A8AFF;
    --primary-darker: #C3C3FF;
    --lilac: #2B2140;
    --peri: #222247;
    --soft: #17121F;
    --grey-bg: #241E36;
    --line: #2B2442;
    --border: #3B3356;
    --purple: #D2B0F0;
    --purple-mid: #C39BE6;
    --accent-purple: #C893EC;
    --accent-blue: #9090FF;
    --danger: #FF8A7F;
    --ok-bg: #12301F; --ok-fg: #86DCA8;
    --warn-bg: #33280C; --warn-fg: #F2C56A;
    --bad-bg: #3B1815; --bad-fg: #FFA198;
    --info-bg: #222247; --info-fg: #C3C3FF;
    --bg: #120E1B;
    --surface: #1D172B;
    --dark: #2A2340; --dark-hover: #362D52;
    --selected: #25254F;
    --bad-soft: #2E1613; --bad-border: #6B2C25;
    --border-strong: #514873;
    --lilac-hover: #3A2C52;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] {
  --ink: #F1EEFA;
  --body: #D9D4E8;
  --muted: #ABA4C4;
  --faint: #6F6889;
  --primary: #6B6BF8;
  --primary-dark: #8A8AFF;
  --primary-darker: #C3C3FF;
  --lilac: #2B2140;
  --peri: #222247;
  --soft: #17121F;
  --grey-bg: #241E36;
  --line: #2B2442;
  --border: #3B3356;
  --purple: #D2B0F0;
  --purple-mid: #C39BE6;
  --accent-purple: #C893EC;
  --accent-blue: #9090FF;
  --danger: #FF8A7F;
  --ok-bg: #12301F; --ok-fg: #86DCA8;
  --warn-bg: #33280C; --warn-fg: #F2C56A;
  --bad-bg: #3B1815; --bad-fg: #FFA198;
  --info-bg: #222247; --info-fg: #C3C3FF;
  --bg: #120E1B;
  --surface: #1D172B;
  --dark: #2A2340; --dark-hover: #362D52;
  --selected: #25254F;
  --bad-soft: #2E1613; --bad-border: #6B2C25;
  --border-strong: #514873;
  --lilac-hover: #3A2C52;
  color-scheme: dark;
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
:root .logo-dark { display: none; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--primary-dark); }
a:hover { color: var(--primary-darker); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.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; }
.mono { font-family: var(--mono); font-size: 0.87em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.subtext { font-size: 12px; line-height: 1.4; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent; font-family: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-dark); color: #FFFFFF; }
.btn-dark { background: var(--dark); color: #FFFFFF; }
.btn-dark:hover { background: var(--dark-hover); color: #FFFFFF; }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--border-strong); color: var(--ink); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-soft:hover { background: var(--line); color: var(--ink); }
.btn-white { background: #FFFFFF; color: #1C1633; }
.btn-white:hover { color: var(--ink); background: var(--soft); }
.btn-ghost-white { border-color: #FFFFFF; color: #FFFFFF; background: transparent; }
.btn-ghost-white:hover { background: rgba(255,255,255,0.12); color: #FFFFFF; }
.btn-danger { background: var(--surface); border-color: var(--bad-border); color: var(--danger); }
.btn-danger:hover { background: var(--bad-soft); color: var(--danger); }
.btn-danger-solid { background: var(--danger); color: #FFFFFF; }
.btn-danger-solid:hover { background: #8F1C13; color: #FFFFFF; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn[disabled], .btn.is-disabled { background: var(--border); color: var(--muted); border-color: transparent; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary-dark); text-decoration: underline; cursor: pointer; }
.link-btn.danger { color: var(--danger); }

/* Pills */
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.5; }
.pill.ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill.warn { background: var(--warn-bg); color: var(--warn-fg); }
.pill.bad { background: var(--bad-bg); color: var(--bad-fg); }
.pill.info { background: var(--info-bg); color: var(--info-fg); }
.pill.grey { background: var(--grey-bg); color: var(--muted); }
.pill.lilac { background: var(--lilac); color: var(--purple); }
.tag { display: inline-flex; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--peri); color: var(--primary-darker); }
.tag.lilac { background: var(--lilac); color: var(--purple); }
.count-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #FFFFFF; background: var(--purple); }
.count-badge.red { background: var(--danger); }

/* Alerts */
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; border-radius: 18px; font-size: 15px; }
.alert p { flex: 1 1 280px; }
.flashes .alert p { white-space: pre-line; }
.alert-stack { flex-direction: column; align-items: stretch; gap: 10px; }
.alert-stack > p { flex: none; }
.warning-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.warning-list code { font-size: 13px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .06); }
.alert > .stack-sm { flex: 1 1 320px; }
.alert > .stack-sm p, .alert form p { flex: none; }
.alert .read-notes { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.alert-ok { background: var(--ok-bg); color: var(--ok-fg); }
.alert-warn { background: var(--warn-bg); color: var(--warn-fg); }
.alert-bad { background: var(--bad-bg); color: var(--bad-fg); }
.alert-info { background: var(--peri); color: var(--primary-darker); }
.flashes { display: flex; flex-direction: column; gap: 10px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; }
.form-grid-3 { grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 40px) / 3)), 1fr)); }
.form-grid .span-full { grid-column: 1 / -1; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.form-postcode { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } .form-grid-2 > div:empty { display: none; } }
/* Domain contact choice: the copy select and manual fields only show for the chosen option. */
.contact-choice .contact-copy, .contact-choice .contact-manual { display: none; margin: 4px 0 8px 30px; }
.contact-choice:has(input[value="copy"]:checked) .contact-copy { display: flex; }
.contact-choice:has(input[value="manual"]:checked) .contact-manual { display: flex; }
.details-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 28px; }
.field-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.field-group legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 800; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 14px; font-weight: 700; color: var(--ink); }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 0 16px; border: 2px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--ink); font-family: inherit; font-size: 16px; }
.textarea { padding: 14px 16px; min-height: 140px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91,91,240,0.15); }
.input[readonly], .input:disabled, .select:disabled { background: var(--soft); color: var(--muted); }
/* Disabled fields (and their placeholder) in a lighter grey than readonly ones. */
.input:disabled, .select:disabled, .input:disabled::placeholder { color: var(--faint); -webkit-text-fill-color: var(--faint); opacity: 1; }
.input.has-error, .select.has-error, .textarea.has-error { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); font-weight: 600; }
.help { font-size: 13px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.radio-card { display: flex; gap: 14px; align-items: center; min-height: 56px; padding: 14px 18px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; }
.radio-card input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; margin: 0; }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--selected); }
.radio-card strong { display: block; font-size: 15px; }
.radio-card span { font-size: 14px; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.table td { padding: 14px 12px; border-top: 2px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table .num { text-align: right; white-space: nowrap; }
.amount { display: inline-flex; justify-content: space-between; gap: .35em; min-width: 6em; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * + * { margin-left: 8px; }
.table tr.highlight td { background: var(--bad-soft); }
.table.compact td { padding: 11px 12px; }

/* Cards */
.card { background: var(--surface); border-radius: 24px; padding: 24px 28px; }
.card-sm { background: var(--surface); border-radius: 18px; padding: 16px 20px; }
.card h2 { font-size: 19px; font-weight: 700; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { font-size: 18px; font-weight: 700; }
/* Breathing room between alerts, tables and notes directly inside a card (margins collapse to 12px). */
.card:not(.stack) > .alert { margin: 12px 0; }
.card:not(.stack) > .alert:first-child { margin-top: 0; }
.card:not(.stack) > .alert:last-child { margin-bottom: 0; }
.card:not(.stack) > .table-wrap + p { margin-top: 12px; }
.stat { position: relative; flex: 1 1 200px; min-width: 0; background: var(--surface); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.stat:hover { transform: translateY(-1px); }
.stat-arrow { position: absolute; right: 22px; bottom: 20px; color: var(--primary); display: inline-flex; transition: transform .15s; }
a.stat:hover .stat-arrow { transform: translateX(3px); }
.stat:hover { color: var(--ink); box-shadow: 0 8px 24px rgba(28,22,51,0.06); }
.stat-label { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat-icon, .h-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; background: var(--info-bg); color: var(--info-fg); flex: none; }
.h-icon { width: 28px; height: 28px; border-radius: 9px; }
.card h2:has(> .h-icon), h2:has(> .h-icon) { display: flex; align-items: center; gap: 10px; }
.card:not(.stack) > h2.tab-title { margin-bottom: 12px; }
.tone-ok { --tone-bg: var(--ok-bg); --tone-fg: var(--ok-fg); }
.tone-warn { --tone-bg: var(--warn-bg); --tone-fg: var(--warn-fg); }
.tone-bad { --tone-bg: var(--bad-bg); --tone-fg: var(--bad-fg); }
.tone-info { --tone-bg: var(--info-bg); --tone-fg: var(--info-fg); }
.tone-lilac { --tone-bg: var(--lilac); --tone-fg: var(--purple); }
.stat-icon[class*="tone-"], .h-icon[class*="tone-"] { background: var(--tone-bg); color: var(--tone-fg); }
.f-icon { display: inline-flex; margin-right: 7px; color: var(--tone-fg, currentColor); }
.filters a.active .f-icon { color: inherit; }
.b-icon { display: inline-flex; margin-right: 6px; }
.btn-primary .b-icon, .btn-dark .b-icon { color: inherit; }
.nav-icon { display: inline-flex; color: var(--tone-fg); opacity: .9; }
.side-nav a[aria-current="page"] .nav-icon { color: inherit; opacity: 1; }
.attention-icon { width: 34px; height: 34px; border-radius: 11px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-actions a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.quick-actions a:hover { box-shadow: 0 8px 24px rgba(28,22,51,0.06); color: var(--ink); }
.dashboard-hello { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dashboard-hello h2 { font-family: var(--display); font-size: 24px; font-weight: 800; }
.stat-value { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--primary); }
.stat-value.purple { color: var(--purple-mid); }
.stat-value.red { color: var(--danger); }
.stat-note { font-size: 14px; color: var(--muted); }
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
dl.kv { margin: 0; display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 8px 20px; font-size: 15px; align-items: baseline; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
dl.kv dd > .muted:only-child { font-weight: 400; }
.password-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.password-value details[open] { flex: 1 1 100%; }
.password-value summary { display: inline; color: var(--primary); cursor: pointer; font-size: 14px; list-style: none; }
.password-value form { margin-top: 10px; }

/* Usage bars */
.bar { display: block; height: 8px; border-radius: 999px; background: var(--peri); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.bar.warn > i { background: #D98E04; }
.bar.bad > i { background: var(--danger); }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--border); }
.tabs a, .tabs button { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; margin-bottom: -2px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-family: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.tabs a:hover { color: var(--ink); }
.tabs a.active, .tabs a[aria-current="page"], .tabs button[aria-selected="true"] { border-bottom-color: var(--primary); color: var(--ink); }
/* Own nameserver fields: hidden from the first paint, without waiting for site.js */
form:has(input[name="mode"]:not([value="own"]):checked) [data-show-when="mode=own"],
form:has(input[name="nsMode"]:not([value="own"]):checked) [data-show-when="nsMode=own"] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.filters a svg { flex: none; }
.filters a.active { background: var(--dark); border-color: var(--dark); color: #FFFFFF; }

/* ------------------------------------------------------------- Website */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.site-header { max-width: 1240px; margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px; }
.site-logo { display: flex; align-items: center; min-height: 44px; }
.site-logo img { height: 32px; width: auto; display: block; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; font-weight: 600; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 999px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--soft); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.price-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hero:not(.left) .price-mode { justify-content: center; margin-top: 16px; }
.price-mode-options { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; padding: 2px; }
.price-mode a { padding: 5px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.price-mode a:hover { color: var(--ink); }
.price-mode a[aria-current] { background: var(--peri); color: var(--primary-darker); }
.price-mode-vat { font-weight: 500; opacity: .75; }
.lang-switch { display: flex; padding: 4px; background: var(--grey-bg); border-radius: 999px; font-size: 13px; font-weight: 700; }
.lang-switch a { min-width: 44px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(28,22,51,0.12); }
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); }
.cart-btn:hover { background: var(--primary-dark); }
.cart-btn .count { position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; border: 2px solid var(--surface); background: var(--purple); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.account-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 4px; border-radius: 999px; background: var(--lilac); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; }
.account-btn:hover { color: var(--ink); background: var(--lilac-hover); }
.avatar { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--purple); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none; }
.avatar .online { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); background: #2E9E5B; }
.login-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--dark); color: #FFFFFF; text-decoration: none; font-size: 15px; font-weight: 600; }
.login-btn:hover { color: #FFFFFF; background: var(--dark-hover); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle[aria-expanded="true"] svg:first-of-type, .menu-toggle[aria-expanded="false"] svg:last-of-type { display: none; }

/* Theme button: light or dark; without a choice it follows the browser (data-theme-choice is the theme shown) */
.theme-toggle { width: 44px; height: 44px; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.theme-toggle:hover { background: var(--soft); }
.theme-toggle > span { display: none; }
:root:not([data-theme-choice="dark"]) .theme-toggle .t-light, :root[data-theme-choice="dark"] .theme-toggle .t-dark { display: inline-flex; }
.theme-toggle.on-dark { background: transparent; border-color: #3B3356; color: #CFCAE3; }
.theme-toggle.on-dark:hover { background: #2A2347; }

/* Small screens: logo, cart and a menu button; navigation and login fold out below */
@media (max-width: 1023px) {
  .site-header { gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .site-header .site-logo { margin-right: auto; }
  .site-header .header-actions { display: contents; }
  .site-header .menu-toggle { order: 2; }
  .js .site-header .menu-toggle { display: inline-flex; }
  .site-header .cart-btn { order: 1; }
  .site-header .main-nav { order: 3; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 8px; border-top: 2px solid var(--line); font-size: 17px; }
  .site-header .main-nav a { padding: 12px 14px; border-radius: 14px; }
  .site-header .login-btn, .site-header .account-btn { order: 5; flex: 1 1 auto; justify-content: center; }
  .js .site-header:not(.menu-open) .main-nav,
  .js .site-header:not(.menu-open) .login-btn,
  .js .site-header:not(.menu-open) .account-btn { display: none; }
  /* The open menu lies over the page instead of pushing it down; site.js puts a spacer in its place. */
  .js .site-header.menu-open { position: absolute; left: 0; right: 0; z-index: 60; background: var(--bg); box-shadow: 0 16px 32px rgba(18, 14, 27, 0.18); max-height: 100vh; overflow-y: auto; }
}

.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--lilac); color: var(--purple); font-size: 14px; font-weight: 700; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-purple); }
.hero { max-width: 1240px; margin: 0 auto; padding: 72px 24px 88px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.hero.left { align-items: flex-start; text-align: left; padding: 56px 24px 72px; }
.display { max-width: 960px; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.035em; }
.display-md { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.035em; max-width: 900px; }
.accent-purple { color: var(--accent-purple); }
.accent-blue { color: var(--accent-blue); }
.lead { max-width: 620px; font-size: 20px; color: var(--muted); }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.03em; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.section { max-width: 1240px; margin: 0 auto; padding: 0 24px 104px; }
.section-pad { max-width: 1240px; margin: 0 auto; padding: 104px 24px; }
.section-soft { background: var(--soft); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head p { max-width: 460px; color: var(--muted); }

.search-form { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.search-form label { font-size: 14px; font-weight: 600; color: var(--muted); }
.search-box { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; background: var(--surface); border: 2px solid var(--border); border-radius: 999px; box-shadow: 0 12px 32px rgba(102,102,255,0.12); }
.search-box input { flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 20px; border: 0; background: transparent; color: var(--ink); font-family: inherit; font-size: 18px; }
.search-box input:focus { outline: none; }
.search-box:focus-within { border-color: var(--primary); }
.search-box button { min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--primary); color: #FFFFFF; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.search-box button:hover { background: var(--primary-dark); }
.search-status { font-size: 15px; font-weight: 600; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.chips > * { padding: 6px 14px; border-radius: 999px; background: var(--soft); text-decoration: none; color: var(--muted); }
.chips > a { background: var(--peri); color: var(--primary-darker); }
/* Extension name inside a chip: a link to its landing page, without a chip background of its own. */
.chips .tld-link { color: var(--primary-darker); }

/* The rows share their columns (subgrid), so every column is only as wide as its widest cell. */
.results { width: 100%; max-width: 760px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px 0; text-align: left; }
.results > * { grid-column: 1 / -1; }
.result { display: grid; grid-template-columns: subgrid; align-items: center; gap: 10px 20px; min-height: 64px; padding: 10px 12px 10px 22px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); }
.result-name { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
/* A long name gets the whole row; status, price and button go below it, in their own columns. */
.result.long .result-name { grid-column: 1 / -1; }
.result-price { font-weight: 700; white-space: nowrap; }
.result-action { display: flex; justify-content: flex-end; }
.hosting-offer-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; border: 2px solid var(--line); background: var(--lilac); }
.hosting-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: var(--soft); }
.hosting-offer label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.hosting-offer .select { min-height: 42px; max-width: 280px; }
.result .transfer-row {grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0 6px; border-top: 2px solid var(--line); }
.result .transfer-row[hidden] { display: none; }
.result .transfer-row label { font-weight: 700; font-size: 15px; }
.result .transfer-row .input { flex: 1 1 200px; min-height: 42px; max-width: 320px; }
.result .transfer-row .help { flex: 1 1 100%; }
@media (max-width: 640px) {
  .results { grid-template-columns: minmax(0, 1fr) auto; }
  .result { padding: 14px 16px; }
  .result-status { justify-self: end; }
}
.result.taken .result-name { color: var(--muted); }

.tile { flex: 1 1 400px; min-width: 0; min-height: 360px; border-radius: 28px; padding: 44px; display: flex; flex-direction: column; gap: 16px; }
.tile.peri { background: var(--peri); }
.tile.lilac { background: var(--lilac); }
.tile p { max-width: 460px; color: var(--body); }
.tile .btn { margin-top: auto; align-self: flex-start; }
.icon-box { width: 56px; height: 56px; border-radius: 18px; background: var(--surface); display: flex; align-items: center; justify-content: center; flex: none; }
.feature { flex: 1 1 260px; min-width: 0; background: var(--surface); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.feature.bordered { border: 2px solid var(--line); }
.feature h3 { font-size: 20px; font-weight: 700; }
.feature p { color: var(--muted); }
.feature .num { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border: 2px solid var(--line); border-radius: 22px; }
.steps .dot { flex: 0 0 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.steps h3 { font-size: 19px; font-weight: 700; }
.steps p { color: var(--muted); }
.steps li > div { min-width: 0; }
.cta { background: var(--primary); border-radius: 36px; padding: 72px 48px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; color: #FFFFFF; }
.cta h2 { max-width: 760px; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; color: #FFFFFF; }
.cta p { max-width: 560px; font-size: 19px; }
.price-card { flex: 1 1 300px; min-width: 0; border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 18px; border: 2px solid var(--line); background: var(--surface); }
.price-card.popular { border-color: var(--primary); box-shadow: 0 20px 50px rgba(91,91,240,0.15); }
.price-card .price { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; letter-spacing: -0.02em; }
.price-card .price small { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: center; }
.price-card .btn { margin-top: auto; }
.tld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tld-card { border-radius: 24px; padding: 24px; background: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.tld-card .tld { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; color: var(--primary-dark); word-break: break-all; }
.tld-card .tld.country { color: var(--purple); }
.tld-card .amount { font-weight: 700; font-size: 18px; }
.faq-group { display: flex; flex-direction: column; gap: 10px; }
.faq-group h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
details.faq { border: 2px solid var(--line); border-radius: 18px; padding: 0 22px; background: var(--surface); }
details.faq summary { cursor: pointer; min-height: 60px; display: flex; align-items: center; font-weight: 700; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; margin-left: auto; padding-left: 16px; font-size: 22px; color: var(--primary); }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding: 0 0 20px; color: var(--muted); }
details.faq .faq-guide { margin-top: -8px; }
details.faq div.faq-guide { padding-bottom: 20px; color: var(--muted); }
details.faq div.faq-guide p { padding: 0 0 6px; }
details.faq div.faq-guide ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
details.faq .faq-guide a { color: var(--primary); font-weight: 600; }
/* Guides (handleidingen): cards on the support page, Markdown content (Service\Markdown) */
/* Guides: overview grouped by category (3 / 2 / 1 columns), every card is one link */
.guide-group-title { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--ink); margin-bottom: 18px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.guide-card:hover, .guide-card:focus-visible { border-color: var(--accent-purple); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(28, 22, 51, .08); color: var(--ink); }
.guide-card:focus-visible { outline: 3px solid var(--accent-purple); outline-offset: 3px; }
.guide-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--lilac); color: var(--purple); }
.guide-card .guide-card-icon { margin-bottom: 4px; }
.guide-card strong { font-size: 18px; line-height: 1.3; }
.guide-card-summary { display: block; color: var(--muted); font-size: 15px; }
.guide-card-more { margin-top: auto; padding-top: 6px; color: var(--purple); font-size: 15px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .guide-card { transition: none; } .guide-card:hover, .guide-card:focus-visible { transform: none; } }

/* Guide page: compact hero, so the introduction and the first section fit on a laptop screen */
.hero.guide-hero { padding: 32px 24px 28px; gap: 14px; }
/* An eyebrow pill used as a back link (guides, extension pages): no underline, only a visible keyboard focus. */
a.eyebrow, a.eyebrow:hover, a.eyebrow:active, a.eyebrow:visited, a.eyebrow:focus { text-decoration: none; }
a.eyebrow:focus { outline: none; }
a.eyebrow:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.guide-title { max-width: 900px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); }
.guide-hero .lead { font-size: 18px; max-width: 760px; }
.guide-section { padding-bottom: 72px; }
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; max-width: 1100px; }
.guide-layout > .md-content:only-child { grid-column: 1 / -1; max-width: 820px; }
.guide-toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; font-size: 15px; }
.guide-toc ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.guide-toc li a { display: block; margin-left: -2px; padding: 4px 0 4px 14px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.guide-toc .level-3 a { padding-left: 28px; font-size: 14px; }
.guide-toc a:hover { color: var(--purple); }
.guide-toc a.is-active { color: var(--purple); font-weight: 700; border-left-color: var(--purple); }
@media (max-width: 860px) { .guide-layout { grid-template-columns: 1fr; gap: 24px; } .guide-toc { position: static; max-height: none; } }

/* Steps: a numbered list directly in a guide; nested lists stay normal, compact lists */
.guide-content > ol { list-style: none; padding-left: 0; counter-reset: step var(--start, 0); }
.guide-content > ol > li { position: relative; counter-increment: step; min-height: 34px; padding: 4px 0 0 52px; }
.guide-content > ol > li + li { margin-top: 24px; }
.guide-content > ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: var(--bg); font-size: 15px; font-weight: 800; line-height: 34px; text-align: center; }
.guide-content > ol > li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: -20px; width: 2px; border-radius: 2px; background: var(--border); }
.guide-content > ol > li ul, .guide-content > ol > li ol { margin-top: 8px; }
.guide-content > ol > li li + li { margin-top: 4px; }

/* Copy button next to inline code in tables and lists (added by site.js when the Clipboard API is there) */
.copy-btn { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-left: 4px; min-width: 28px; height: 28px; padding: 0 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.copy-btn:hover, .copy-btn:focus-visible { color: var(--purple); border-color: var(--accent-purple); }
.copy-btn.is-copied { color: var(--purple); border-color: var(--purple); }
.copy-btn:not(.is-copied) .copy-btn-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Related guides at the bottom of a guide */
.guide-related h2 { margin-bottom: 20px; }
.guide-related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 1100px; }
@media (max-width: 640px) { .guide-related-list { grid-template-columns: minmax(0, 1fr); } }
.guide-related-list a { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 16px 18px; border: 2px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.guide-related-list a:hover, .guide-related-list a:focus-visible { border-color: var(--accent-purple); color: var(--ink); }
.guide-related-list .guide-card-icon { width: 38px; height: 38px; border-radius: 10px; }
.guide-related-list .guide-card-icon svg { width: 20px; height: 20px; }
.md-content { color: var(--body); line-height: 1.7; min-width: 0; }
.md-content > * + * { margin-top: 16px; }
.md-content h1, .md-content h2, .md-content h3, .md-content h4 { color: var(--ink); font-family: var(--display); line-height: 1.25; scroll-margin-top: 24px; }
.md-content h2 { font-size: 28px; margin-top: 40px; }
.md-content h3 { font-size: 21px; margin-top: 28px; }
.md-content h4 { font-size: 17px; margin-top: 20px; }
.md-content a { color: var(--primary); }
.md-content ul, .md-content ol { padding-left: 24px; }
.md-content li + li, .md-content li > ul, .md-content li > ol { margin-top: 6px; }
.md-content code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.md-content pre { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; overflow-x: auto; }
.md-content pre code { background: none; border: 0; padding: 0; }
.md-content blockquote { border-left: 4px solid var(--border-strong); padding: 2px 0 2px 18px; color: var(--muted); }
.md-content hr { border: 0; border-top: 2px solid var(--line); margin: 32px 0; }
.md-content img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.md-content figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.md-table { overflow-x: auto; }
.md-content table { border-collapse: collapse; width: 100%; font-size: 15px; }
.md-content th, .md-content td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.md-content th { color: var(--ink); background: var(--soft); }
/* Callouts: own icon and a coloured left border; dark text on a light tint (and the other way round in dark mode) */
.md-callout { display: flex; gap: 14px; align-items: flex-start; border-left: 4px solid var(--callout-line); border-radius: 4px 14px 14px 4px; padding: 14px 18px; background: var(--callout-bg); color: var(--ink); }
.md-callout-icon { flex: none; margin-top: 2px; color: var(--callout-line); }
.md-callout-body { min-width: 0; flex: 1; }
.md-callout-body > * + * { margin-top: 10px; }
.md-tip { --callout-bg: var(--lilac); --callout-line: var(--purple); }
.md-note { --callout-bg: var(--peri); --callout-line: var(--accent-blue); }
.md-warning { --callout-bg: var(--warn-bg); --callout-line: var(--warn-fg); }
.md-callout a { color: var(--ink); }
.md-callout code { background: var(--surface); }

.site-footer { border-top: 2px solid var(--line); }
.footer-main { max-width: 1240px; margin: 0 auto; padding: 48px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-main nav, .footer-main .footer-col { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.footer-main nav a, .footer-main .footer-col a { color: var(--muted); text-decoration: none; }
.footer-main .footer-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.footer-bottom { max-width: 1240px; margin: 0 auto; padding: 0 24px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom { align-items: center; }
.footer-bottom .lang-switch a, .card .lang-switch a { padding: 0 16px; }
.footer-bottom .lang-switch a[aria-current="true"] { color: var(--ink); }

/* --------------------------------------------------------------- Panel */
body.app-body { background: var(--soft); font-size: 16px; line-height: 1.55; }
.app { min-height: 100vh; display: flex; flex-wrap: wrap; }
.sidebar { flex: 1 1 240px; background: var(--surface); border-right: 2px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; }
.sidebar .site-logo { padding: 0 14px; }
.sidebar .site-logo img { height: 28px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 600; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.side-nav a svg { stroke: var(--muted); flex: none; }
.side-nav a .nav-badge { margin-left: auto; }
.side-nav a:hover { background: var(--soft); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--peri); color: var(--primary-darker); }
.side-nav a[aria-current="page"] svg { stroke: var(--primary); }
.side-nav .grow { flex: 1; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.sidebar-foot .btn { width: 100%; min-height: 48px; }
.app-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 40px; background: var(--surface); border-bottom: 2px solid var(--line); }
.topbar h1 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.crumbs { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.topbar-cart { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; }
.topbar-cart:hover { color: var(--ink); background: var(--line); }
.topbar-cart .count-badge { min-width: 28px; height: 28px; font-size: 13px; }
.topbar-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--lilac); color: var(--purple); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.content { padding: 32px 40px 56px; display: flex; flex-direction: column; gap: 24px; }
.greeting { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; }
.impersonation { background: var(--dark); color: #FFFFFF; padding: 10px 40px; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.impersonation a { color: #FFFFFF; font-weight: 700; }
.legal h2 { font-size: 22px; margin: 16px 0 0; }
.legal h3 { font-size: 17px; margin: 8px 0 0; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal p { margin: 0; }
.notice-bar { background: #B42318; color: #FFFFFF; padding: 10px 16px; font-size: 14px; font-weight: 700; text-align: center; line-height: 1.4; }
.phone-input { display: flex; gap: 8px; position: relative; }
.flag-select { position: relative; }
.flag-select .phone-dial { width: 100%; }
.flag-select .phone-list { right: 0; }
.phone-dial { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-align: left; }
.phone-input img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.phone-list { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow-y: auto; min-width: 240px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(28, 22, 51, .16); }
.phone-list ul { margin: 6px 0 0; padding: 0; list-style: none; }
.phone-list p { margin: 8px 10px; }
.phone-list .input { position: sticky; top: 0; z-index: 1; }
.phone-list li[hidden] { display: none; }
.phone-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.phone-list li:hover, .phone-list li:focus { background: var(--line); outline: none; }
.phone-list li .muted { margin-left: auto; }
.phone-input .select { flex: 0 0 auto; width: auto; }
.phone-input .input { flex: 1 1 auto; min-width: 0; }
.list-links { display: flex; flex-direction: column; }
.list-links > * { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 14px 0; border-top: 2px solid var(--line); color: var(--ink); text-decoration: none; }
.list-links > *:first-child { border-top: 0; padding-top: 0; }
/* Checkout order lines: price stays on the right, a long name or description is cut off with an ellipsis. */
.list-links > .order-line { flex-wrap: nowrap; }
.order-line > span { flex: 1 1 auto; min-width: 0; }
.order-line > span > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-line > strong { flex: none; }
/* One line, cut off with an ellipsis (long domain names). */
.truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.quick a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 16px; background: var(--soft); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.quick a:hover { background: var(--peri); color: var(--ink); }
.auth-wrap { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-side { flex: 1 1 420px; background: var(--peri); padding: 48px; display: flex; flex-direction: column; gap: 40px; }
.auth-side ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.auth-side li { display: flex; gap: 12px; align-items: center; }
.auth-main { flex: 1 1 480px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--surface); }
.auth-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 24px; }
.auth-box:has(.register-form) { max-width: 600px; }
.register-form { gap: 32px; }
.form-grid.register-name { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 2fr); }
@media (max-width: 520px) { .form-grid.register-name { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .form-grid.register-name > :last-child { grid-column: 1 / -1; } }
.auth-box h1, .auth-box h2 { font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: -0.03em; line-height: 1.05; }
.code-input { font-family: var(--mono); font-size: 28px; letter-spacing: 0.3em; text-align: center; }
.code-boxes { display: flex; gap: 8px; width: 100%; max-width: 360px; }
.code-box { flex: 1 1 0; min-width: 0; width: auto; height: 56px; padding: 0; font-family: var(--mono); font-size: 26px; text-align: center; }
@media (max-width: 380px) { .code-boxes { gap: 6px; } .code-box { height: 50px; font-size: 22px; } }
.secret { font-family: var(--mono); font-size: 18px; letter-spacing: 0.08em; padding: 14px 16px; background: var(--soft); border-radius: 14px; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-family: var(--mono); font-size: 15px; padding: 16px; background: var(--soft); border-radius: 14px; }
.message { display: flex; gap: 12px; }
.message .bubble { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.message .bubble p { white-space: pre-wrap; overflow-wrap: anywhere; }
.message.internal { padding: 12px; border-radius: 14px; background: var(--warn-bg); }
.format-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.format-bar[hidden] { display: none; }
.format-bar button { min-width: 36px; height: 32px; padding: 0 8px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.format-bar button:hover { background: var(--soft); }
.format-help { margin-left: 8px; font-size: 12px; color: var(--muted); }
.formatted { display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; }
.message .bubble .formatted p { white-space: normal; }
.formatted ul, .formatted ol { margin: 0; padding-left: 22px; }
.formatted code { padding: 1px 6px; border-radius: 6px; background: var(--soft); font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; }
.formatted pre { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--soft); overflow-x: auto; }
.formatted pre code { padding: 0; background: none; }
.formatted blockquote { margin: 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--line); color: var(--muted); }
.note-edit summary { width: max-content; color: var(--primary-dark); font-weight: 700; cursor: pointer; }
.note-edit[open] summary { margin-bottom: 8px; }
.message .initials { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--peri); color: var(--primary-darker); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.message.from-us .initials { background: var(--lilac); color: var(--purple); }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.attachments a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px; background: var(--soft); font-size: 13px; text-decoration: none; }
.ticket-list a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; color: var(--ink); text-decoration: none; }
.ticket-list a:hover { background: var(--soft); color: var(--ink); }
.ticket-list a[aria-current="page"] { background: var(--lilac); }
.ticket-list .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .side { flex: 1 1 420px; min-width: 0; }
.split > .side-wide { flex-basis: 520px; }
.split > .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.action-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; border-top: 2px solid var(--line); }
.action-row:first-child { border-top: 0; padding-top: 0; }
.action-row p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.plan-option { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border: 2px solid var(--line); border-radius: 20px; }
.plan-option.current { border-color: var(--primary); background: var(--selected); }
pre.output { margin: 0; padding: 16px 18px; background: var(--dark); color: #E7E4F2; border-radius: 14px; font-family: var(--mono); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-x: auto; }
.steps-bar { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; color: var(--muted); }
.steps-bar li { display: flex; align-items: center; gap: 8px; }
.steps-bar .n { width: 28px; height: 28px; border-radius: 50%; background: var(--grey-bg); display: flex; align-items: center; justify-content: center; }
.steps-bar .done .n { background: var(--ok-bg); color: var(--ok-fg); }
.steps-bar .now { color: var(--primary-darker); }
.steps-bar .now .n { background: var(--primary); color: #FFFFFF; }
.empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h2 { font-family: var(--display); font-size: 28px; font-weight: 800; }

.search-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.search-inline .input { flex: 1 1 260px; }
.inline-form { display: inline; }
.pagination { display: flex; gap: 6px; justify-content: flex-end; font-size: 14px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; padding: 0 10px; }
.pagination span.current { background: var(--dark); color: #FFFFFF; }

/* Panel: the sidebar stays open next to the content until they no longer fit (240 + 560 px), then it becomes a
   bar on top with a menu button, closed by default. Keep this above the width where .app would wrap. */
@media (max-width: 900px) {
  .app { align-content: flex-start; }
  .sidebar { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 2px solid var(--line); padding: 16px; gap: 16px; }
  .sidebar .side-nav, .sidebar .sidebar-foot { flex: 1 1 100%; }
  .js .sidebar .menu-toggle { display: inline-flex; }
  .js .sidebar:not(.menu-open) .side-nav,
  .js .sidebar:not(.menu-open) .sidebar-foot { display: none; }
  .js .sidebar.menu-open { position: absolute; left: 0; right: 0; z-index: 60; box-shadow: 0 16px 32px rgba(18, 14, 27, 0.18); max-height: 100vh; overflow-y: auto; }
  .app > .menu-spacer { flex: 0 0 100%; }
}
/* Behind an open menu (website, panel, heaven) the page is darkened and blurred; a click on it closes the menu. */
@media (max-width: 1023px) {
  .menu-shade, .menu-shade body { overflow: hidden; }
  .menu-open { overscroll-behavior: contain; }
  .menu-shade body::after { content: ""; position: fixed; inset: 0; z-index: 50; background: rgba(18, 14, 27, 0.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  .sidebar-foot { flex-direction: row; flex-wrap: wrap; }
  .sidebar-foot .btn { width: auto; flex: 1 1 140px; }
}
@media (max-width: 760px) {
  .topbar { padding: 14px 16px; }
  .content { padding: 20px 16px 40px; }
  .tile { padding: 32px; min-height: 0; }
  .cta { padding: 48px 24px; }
  .hero { padding: 40px 16px 64px; }
  .container, .section, .section-pad, .site-header, .footer-main, .footer-bottom { padding-left: 16px; padding-right: 16px; }
  .section-pad { padding-top: 64px; padding-bottom: 64px; }
  .section { padding-bottom: 64px; }
  .auth-side { padding: 32px 16px; }
  .card { padding: 20px; }
  .impersonation { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 560px) {
  .search-box { border-radius: 28px; }
  .search-box button { width: 100%; }
}

/* Action price of a domain: normal price, first year, price after that */
.action-price { display: inline-flex; flex-direction: column; gap: 2px; }
.action-price > span { white-space: nowrap; }
.action-price > .muted { font-weight: 400; }

/* Website header: logo, menu and actions on one line */
@media (min-width: 1024px) {
  .site-header { max-width: 1440px; flex-wrap: nowrap; }
  .site-header .site-logo, .site-header .header-actions { flex: none; }
  .site-header .main-nav { flex: 1 1 auto; flex-wrap: nowrap; justify-content: center; gap: 2px; }
  .site-header .main-nav a { padding: 10px; white-space: nowrap; }
}
/* In between: account and login shrink to the initials and the icon, before the menu button takes over */
@media (min-width: 1024px) and (max-width: 1240px) {
  .site-header .account-btn { padding: 4px; }
  .site-header .login-btn { width: 48px; padding: 0; justify-content: center; }
  .site-header .btn-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Date field with own calendar, dd-mm-yyyy */
.date-field { position: relative; min-width: 0; }
.date-field .input { width: 100%; }
.date-calendar { position: absolute; z-index: 30; left: 0; top: calc(100% + 4px); width: 280px; padding: 10px; background: var(--surface); border: 2px solid var(--border); border-radius: 16px; }
.date-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 13px; }
.date-grid span { padding: 4px 0; color: var(--muted); }
.date-calendar button { padding: 6px 0; min-width: 30px; background: none; border: 0; border-radius: 8px; color: inherit; font: inherit; cursor: pointer; }
.date-calendar button:hover { background: var(--border); }
.date-calendar button[aria-current] { background: var(--primary); color: #FFFFFF; }


/* Input with a fixed part attached to it, e.g. info[@example.nl] or shop[.example.nl] (class="input-addon") */
.input-addon { display: flex; align-items: stretch; width: 100%; min-width: 0; }
.input-addon .input { flex: 1 1 auto; min-width: 6em; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-addon-text { display: inline-flex; align-items: center; max-width: 60%; padding: 0 16px; border: 2px solid var(--border); border-left: 0; border-radius: 0 16px 16px 0; background: var(--soft); color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Fixed part in front, e.g. [€]123,45 (class="input-addon input-addon-pre") */
.input-addon-pre .input { border-top-right-radius: 16px; border-bottom-right-radius: 16px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-addon-pre .input-addon-text { order: -1; border-left: 2px solid var(--border); border-right: 0; border-radius: 16px 0 0 16px; }

/* "Was deze handleiding nuttig?" under a guide; a plain form, site.js sends it without reloading */
.guide-feedback { margin-top: 32px !important; padding-top: 20px; border-top: 2px solid var(--line); }
.guide-feedback-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.guide-feedback-question { color: var(--ink); font-weight: 700; }
.guide-feedback-buttons { display: inline-flex; gap: 8px; }
.guide-vote { width: 44px; height: 44px; padding: 0; border: 2px solid var(--border); border-radius: 50%; background: var(--surface); font-size: 20px; line-height: 1; cursor: pointer; transition: border-color .15s, background .15s; }
.guide-vote:hover, .guide-vote:focus-visible { border-color: var(--accent-purple); background: var(--lilac); }
.guide-vote:focus-visible { outline: 3px solid var(--accent-purple); outline-offset: 2px; }
.guide-feedback-thanks { margin: 0; color: var(--purple); font-weight: 700; }

/* Confirmation dialog for form[data-confirm] (partials/confirm-dialog.php, site.js) instead of window.confirm */
.site-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--body); box-shadow: 0 24px 64px rgba(16, 10, 40, .28); }
.site-dialog::backdrop { background: rgba(16, 10, 40, .45); backdrop-filter: blur(2px); }
.site-dialog-inner { display: grid; gap: 18px; padding: 24px; }
.site-dialog-head { display: flex; align-items: flex-start; gap: 14px; }
.site-dialog-head > div { flex: 1; min-width: 0; }
.site-dialog-title { margin: 0; font-family: var(--sans); font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.site-dialog-text { margin: 6px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.site-dialog-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--bad-soft); color: var(--danger); }
.site-dialog-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

/* Landing page of a domain extension (site/tld-landing.php) */
.tld-intro { display: grid; gap: 12px; }
.tld-intro p { margin: 0; }
.tld-price-card { max-width: 560px; margin: 0 auto; gap: 14px; }
.tld-hosting { min-height: 0; }
.tld-link { color: inherit; text-decoration: none; }
.tld-link:hover, .tld-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
