/* ==========================================================================
   ZeroRegistrar — Commercial-Grade SaaS Design System (v3.0 Ultra)
   Light-First Default • High-Density SaaS UI • Accessible (WCAG 2.1 AAA)
   Ultra-Responsive (320px to 1920px+) • High-Performance Vanilla CSS
   ========================================================================== */


@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   Design Tokens — "Signal" premium system (light default)
   High-contrast Swiss-technical aesthetic. Dynadot grading: Electric Azure on ice slate / deep navy.
   Legacy accent names are remapped here so every template re-skins at once.
   -------------------------------------------------------------------------- */
:root,
/* An always-light region: any element carrying data-theme="light" gets the
   light palette declared ON ITSELF, which beats the dark values it would
   otherwise inherit from <html>. Used by the storefront wrapper, whose
   background is hard-coded #FFFFFF in both themes. */
[data-theme="light"] {
    color-scheme: light;

    /* Dynadot color grading — the only place brand hex values live (CLAUDE.md §2). */
    --dyna-blue-500: #0096F7;
    --dyna-blue-600: #0089E1;
    --dyna-blue-700: #006BAF;
    --dyna-navy-950: #031242;
    --dyna-navy-900: #101B4D;
    --dyna-orange-500: #FF8A00;
    --dyna-green-500: #12B76A;
    --dyna-slate-50: #F5F8FF;
    --dyna-slate-200: #D6E2F5;
    --dyna-navy-muted: #93A1CB; /* muted text on a navy surface, 6.4:1 */

    /* Base surfaces — airy ice slate under pure white cards */
    --bg: var(--dyna-slate-50);
    --bg-alt: #EDF2FC;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.82);
    --surface2: var(--dyna-slate-50);
    --surface3: #E8EEFA;
    --text: var(--dyna-navy-950);
    --text-secondary: #3B4670;
    --muted: #5B6693;
    --line: var(--dyna-slate-200);
    --line-light: #E6EEFA;
    --line-focus: var(--dyna-blue-500);

    /* Primary brand — Electric Azure. Legacy accent names are remapped here so
       every template re-skins from this single block. White on #0096F7 is 3.1:1
       (AA for large text and UI components); small brand-blue TEXT on a light
       surface must use --primary-dark (#006BAF, 5.6:1). */
    --primary: var(--dyna-blue-500);
    --primary-hover: var(--dyna-blue-600);
    --primary-dark: var(--dyna-blue-700);
    --primary-fg: #ffffff;
    --blue: var(--primary-dark);
    --blue-hover: var(--primary-hover);
    --blue-light: #E6F4FE;
    --blue-glow: rgba(0, 150, 247, 0.18);
    --indigo: var(--primary-dark);
    --indigo-light: #E6F4FE;
    /* No purple in the Dynadot grading: the former violet roles resolve to navy. */
    --purple: var(--dyna-navy-900);
    --purple-light: #E8ECF8;
    --cyan: var(--dyna-blue-700);
    --cyan-light: #E6F4FE;
    --green: var(--dyna-green-500);
    --green-light: #E3F8EE;
    --emerald: #0B7A47;
    --amber: var(--dyna-orange-500);
    --amber-light: #FFF1E0;
    --red: #e11d48;
    --red-light: #fde7ec;
    --rose: #f43f5e;

    /* Semantic aliases */
    --primary-badge: var(--blue-light);
    --card: var(--surface);
    --card-muted: var(--surface2);
    --border: var(--line);
    --border-hover: #B9CCEB;
    --heading-color: var(--text);
    --subtle: var(--muted);
    --input-bg: #ffffff;
    --on-accent: #ffffff;

    /* Status container / text pairs (text values keep >= 4.5:1 on their tint) */
    --success: #E3F8EE;
    --success-text: #0B7A47;
    --warning: #FFF1E0;
    --warning-text: #9A4E00;
    --danger: #fde7ec;
    --danger-text: #be123c;
    --info: #E6F4FE;
    --info-text: var(--dyna-blue-700);

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(3, 18, 66, 0.06);
    --shadow: 0 2px 6px rgba(3, 18, 66, 0.06), 0 1px 2px rgba(3, 18, 66, 0.04);
    --shadow-md: 0 12px 28px -8px rgba(3, 18, 66, 0.14), 0 4px 8px -4px rgba(3, 18, 66, 0.06);
    --shadow-lg: 0 28px 60px -18px rgba(3, 18, 66, 0.24), 0 10px 20px -12px rgba(3, 18, 66, 0.10);
    --shadow-glow: 0 10px 30px rgba(0, 150, 247, 0.28);

    /* Radii */
    --r-xs: 6px;
    --r-sm: 9px;
    --r: 14px;
    --r-lg: 18px;
    --r-xl: 26px;
    --r-full: 9999px;

    /* Typography — Signal Technical */
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout metrics */
    --top-height: 68px;
    --sidebar-width: 268px;

    /* Spacing scale & control sizing */
    --zr-space-1: 4px;
    --zr-space-2: 8px;
    --zr-space-3: 12px;
    --zr-space-4: 16px;
    --zr-space-5: 20px;
    --zr-space-6: 24px;
    --zr-space-8: 32px;
    --zr-space-10: 40px;
    --zr-space-12: 48px;
    --zr-control-height: 44px;
    --zr-focus-ring: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);

    /* Home/product layer aliases (kept so .zr-* rules resolve from these tokens) */
    --zr-ink: var(--text);
    --zr-muted: var(--muted);
    --zr-line: var(--line);
    --zr-surface: var(--surface);
    --zr-soft: var(--surface2);
    --zr-blue: var(--primary);
    --zr-purple: var(--info-text);
    --zr-green: var(--green);
    --zr-coral: var(--primary);
}

[data-theme="dark"] {
    color-scheme: dark;

    /* Deep navy slate base with navy card surfaces (CLAUDE.md §2) */
    --bg: var(--dyna-navy-950);
    --bg-alt: #071747;
    --surface: var(--dyna-navy-900);
    --surface-glass: rgba(16, 27, 77, 0.82);
    --surface2: #172459;
    --surface3: #1F2D66;
    --text: #F5F8FF;
    --text-secondary: #C3CDEB;
    --muted: #93A1CB;
    --line: #223368;
    --line-light: #2B3D75;
    --line-focus: var(--dyna-blue-500);

    /* Electric Azure reads at 5.7:1 on navy, so text and fills share it here. */
    --primary: var(--dyna-blue-500);
    --primary-hover: #33ABF9;
    --primary-dark: var(--dyna-blue-600);
    --primary-fg: #ffffff;
    --blue: var(--primary);
    --blue-hover: var(--primary-hover);
    --blue-light: rgba(0, 150, 247, 0.16);
    --blue-glow: rgba(0, 150, 247, 0.34);
    --indigo: var(--primary-hover);
    --indigo-light: rgba(0, 150, 247, 0.16);
    --purple: #8FA4E8;
    --purple-light: rgba(143, 164, 232, 0.16);
    --cyan: #66C2FA;
    --cyan-light: rgba(102, 194, 250, 0.16);
    --green: var(--dyna-green-500);
    --green-light: rgba(18, 183, 106, 0.16);
    --emerald: #3DD68C;
    --amber: var(--dyna-orange-500);
    --amber-light: rgba(255, 138, 0, 0.16);
    --red: #f43f5e;
    --red-light: rgba(244, 63, 94, 0.16);
    --rose: #fb7185;

    --primary-badge: var(--blue-light);
    --card: var(--surface);
    --card-muted: var(--surface2);
    --border: var(--line);
    --border-hover: #34488A;
    --heading-color: var(--text);
    --input-bg: #0B1749;
    --on-accent: #ffffff;

    --success: rgba(18, 183, 106, 0.16);
    --success-text: #3DD68C;
    --warning: rgba(255, 138, 0, 0.16);
    --warning-text: #FFA640;
    --danger: rgba(244, 63, 94, 0.16);
    --danger-text: #fb7185;
    --info: rgba(0, 150, 247, 0.16);
    --info-text: #66C2FA;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 14px 32px -10px rgba(0, 0, 0, 0.7), 0 6px 12px -6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 30px 70px -18px rgba(0, 0, 0, 0.8), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 10px 34px rgba(0, 150, 247, 0.36);
}

/* Global Reset & Base Elements */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.55;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Accessibility screen-reader only utility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--heading-color);
    letter-spacing: -0.035em;
    font-weight: 800;
    line-height: 1.2;
}

h1 { font-size: clamp(32px, 5.5vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(24px, 3.5vw, 34px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
h4 { font-size: 16px; font-weight: 700; }

.lead {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

/* Text utilities the templates have relied on all along — 187 `.muted`, plus
   `.small` and `.sub` — were defined in the prototype (8ef0455) and dropped in
   the 2539e6d rewrite, so every caption rendered as 14px body text. Restored
   at the prototype's values. */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.sub { color: var(--muted); font-size: 15px; }

.eyebrow {
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-light);
    padding: 4px 12px;
    border-radius: var(--r-full);
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

.text-gradient {
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary) 45%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: linear-gradient(120deg, var(--primary) 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Navigation Bar */
.top {
    height: var(--top-height);
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.logo {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 850;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    font-weight: 900;
    font-size: 15px;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent);
}

.nav {
    display: flex;
    gap: 28px;
    margin-left: 44px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13.5px;
}

.nav a {
    position: relative;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a:hover {
    color: var(--blue);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
    border-radius: 2px;
}

.nav a:hover::after {
    width: 100%;
}

.row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.grow {
    flex-grow: 1;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    min-height: 40px;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 25%, transparent);
}

.btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-hover) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent);
}

.btn.secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
    background: var(--surface2);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn.ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn.ghost:hover {
    background: var(--surface2);
    color: var(--text);
}

.btn.danger {
    background: var(--danger);
    color: var(--danger-text);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn.danger:hover {
    background: #fee2e2;
    transform: translateY(-1px);
}

.btn.small {
    padding: 6px 13px;
    font-size: 12.5px;
    min-height: 34px;
    border-radius: 8px;
}

.btn.large {
    padding: 13px 26px;
    font-size: 15px;
    min-height: 48px;
    border-radius: 12px;
}

.icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    background: var(--surface);
    color: var(--text);
    transition: 0.15s ease;
}

.icon:hover {
    background: var(--surface2);
    border-color: var(--border-hover);
}

/* Cards & Surfaces */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    border-color: var(--border-hover);
}

.card.elevated {
    box-shadow: var(--shadow-md);
}

.card.elevated:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card.glow {
    position: relative;
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 8%, transparent);
}

/* Form Controls */
.form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field.full {
    grid-column: span 2;
}

label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
}

textarea {
    resize: vertical;
    line-height: 1.5;
}

/* Hero & Search Omnibox */
.hero {
    padding: 70px 24px 50px;
    text-align: center;
    background: radial-gradient(circle at 50% 15%, var(--blue-glow) 0%, transparent 60%);
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 320px;
    background: radial-gradient(ellipse at center, var(--blue-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.searchbox {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    padding: 6px 8px 6px 18px;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    max-width: 680px;
    margin: 28px auto 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 10;
}

.searchbox:focus-within {
    border-color: var(--blue);
    box-shadow: 0 12px 36px color-mix(in srgb, var(--primary) 18%, transparent);
}

.searchbox input {
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 16px;
    font-weight: 600;
    flex-grow: 1;
    color: var(--text);
    box-shadow: none !important;
}

.searchbox .suffix {
    font-family: var(--font-mono);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    padding: 0 12px;
    border-left: 1px solid var(--line);
    white-space: nowrap;
}

.chips {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.chip {
    padding: 4px 12px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* KPI Widgets */
.kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kpi {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.kpi:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.kpitop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 8px;
}

/* Workspace and admin templates use .kpi-grid / .kpi-card (dashboard, DNS,
   billing, security, system health). They share the .kpis / .kpi visual system. */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.kpi-card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}

.kpi-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.kpi-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 850;
    line-height: 1.15;
    color: var(--heading-color);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.kpi-meta {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--muted);
}

/* Checkout grid base lives here so the mobile stack rule does not need to beat
   an inline style. */
.zr-checkout-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1080px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .kpi-grid { gap: 10px; }
    .kpi-card { padding: 14px; }
    .kpi-value { font-size: 24px; }
}

@media (max-width: 380px) {
    .kpi-grid { grid-template-columns: 1fr; }
}

.metric {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 850;
    color: var(--heading-color);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
}

.trend.up { color: var(--green); }
.trend.down { color: var(--red); }
.trend.neutral { color: var(--muted); }

/* Tags & Badges */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 750;
    padding: 3px 9px;
    border-radius: var(--r-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag.ok { background: var(--success); color: var(--success-text); }
.tag.warn { background: var(--warning); color: var(--warning-text); }
.tag.bad { background: var(--danger); color: var(--danger-text); }
.tag.info { background: var(--info); color: var(--info-text); }
.tag.neutral { background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }

/* Tables */
.tablewrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.table th {
    background: var(--surface2);
    padding: 12px 18px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: var(--surface2);
}

/* App Shell (Sidebar & Main Workspace) */
.customer-shell, .shell {
    display: flex;
    min-height: 100vh;
}

.side {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 60;
}

.main {
    flex-grow: 1;
    min-width: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.appbar {
    height: var(--top-height);
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 32px 28px 80px;
}

.pageh {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.pageh h1 {
    font-size: 28px;
    margin: 0;
}

.st {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 18px 0 8px;
    padding-left: 12px;
}

.slink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.slink:hover {
    background: var(--surface2);
    color: var(--blue);
}

.slink.active {
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 750;
}

.slink span {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Mobile Bar & Overlays */
.mobilebar {
    display: none;
}

.side-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 55;
}

/* Impersonation Banner */
.impersonation-banner {
    background: linear-gradient(90deg, #991b1b 0%, #b45309 100%);
    color: #ffffff;
    padding: 10px 28px;
    font-weight: 750;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(153, 27, 27, 0.25);
}

/* Split Panes & Grids */
.split {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}

/* Grid items default to min-width:auto, so a <pre> or a wide table inside a
   card widens the whole column past the viewport (the developer portal ran to
   560px at 320px). Let the tracks shrink; scroll containers inside handle the
   rest. */
.split > * {
    min-width: 0;
}

.g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* Same trap as .split: a grid item defaults to min-width:auto, so a table
   inside a card widened the whole column at 320px even though .tablewrap
   scrolls. Let items shrink; the scroll container inside does the rest. */
.g2 > *, .g3 > *, .g4 > *, .card { min-width: 0; }
.zr-grid--start { align-items: start; }

/* Master prompt 3.4 names 240px 1fr 280px, which is what the inline style that
   used to sit on the element actually rendered; this rule had drifted to
   260px and never applied. */
.builder-grid {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: 20px;
    align-items: start;
}


.paneltitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.paneltitle h3 {
    margin: 0;
    font-size: 16px;
}

/* Theme Previews & Showcase */
.theme-card {
    overflow: hidden;
    padding: 0;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}

.theme-card .preview {
    height: 160px;
    background: linear-gradient(145deg, var(--surface2) 0%, var(--line) 100%);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

[data-theme="dark"] .theme-card .preview {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, var(--dyna-navy-950) 100%);
}

.theme-card .content-box {
    padding: 16px;
}

/* SaaS Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 60px 0 36px;
}

.footergrid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    display: block;
    margin-bottom: 14px;
}

.footer a, .footer p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
    display: block;
    margin: 8px 0;
}

.footer a:hover {
    color: var(--blue);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--muted);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state--compact {
    padding: 28px 12px;
}

.empty-state--compact .btn {
    margin-top: 12px;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 14px;
    color: var(--muted);
}

.empty-title {
    font-size: 18px;
    font-weight: 750;
    margin-bottom: 6px;
    color: var(--text);
}

.empty-desc {
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto 20px;
    font-size: 13.5px;
}

/* Responsive Media Queries */
@media (max-width: 1080px) {
    .nav { display: none; }
    .g4 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .builder-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top { height: 60px; padding: 0 16px; }
    .hero { padding: 45px 16px 36px; }
    h1 { font-size: 32px; }
    .lead { font-size: 14.5px; }
    
    .searchbox { 
        flex-direction: column; 
        padding: 10px; 
        border-radius: 14px; 
    }
    .suffix { 
        border: 0; 
        border-top: 1px solid var(--line); 
        margin: 6px 0; 
        width: 100%; 
        justify-content: center; 
    }
    .searchbox .btn { width: 100%; margin-top: 6px; }
    
    .g3, .g4, .g2 { grid-template-columns: 1fr; }
    .form { grid-template-columns: 1fr; }
    .field.full { grid-column: span 1; }
    .builder-grid { grid-template-columns: 1fr; }
    
    .side { display: none; }
    .main { margin-left: 0; }
    .appbar { height: 58px; padding: 0 16px; }
    .mobilebar { 
        display: grid; 
        width: 36px; 
        height: 36px; 
        border: 1px solid var(--line); 
        border-radius: 8px; 
        background: var(--surface); 
        place-items: center; 
        margin-right: 10px; 
        font-size: 18px; 
    }
    .content { padding: 20px 16px 85px; }
    .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi { padding: 14px; }
    .metric { font-size: 24px; }
    .footergrid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    /* Sticky Mobile Bottom App Bar */
    .bottom, .mobile-bottom-nav {
        position: fixed;
        display: flex;
        bottom: 0;
        left: 0;
        right: 0;
        height: 62px;
        background: var(--surface-glass);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        border-top: 1px solid var(--line);
        z-index: 80;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-nav-item, .bottom a {
        font-size: 10px;
        font-weight: 750;
        color: var(--muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-decoration: none;
    }

    .mobile-nav-item.active, .bottom a.active {
        color: var(--blue);
    }

    .mobile-nav-icon, .bottom a span {
        font-size: 18px;
    }
}

/* Home/product layer aliases now live in the single :root token block. */

.zr-home-shell { max-width: 1240px; margin: -8px auto 0; padding: 0 22px 80px; color: var(--zr-ink); }
.zr-home-hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr); align-items: center; gap: clamp(28px, 6vw, 86px); padding: 70px 0 84px; position: relative; }
.zr-home-hero::before { content: ''; position: absolute; z-index: -1; top: -80px; right: -160px; width: 620px; height: 520px; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 16%, transparent) 0%, color-mix(in srgb, var(--primary) 5%, transparent) 35%, transparent 70%); pointer-events: none; }
.zr-kicker { display: inline-flex; align-items: center; gap: 8px; color: #52637d; font: 800 11px/1 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; }
.zr-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--zr-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.zr-hero-copy h1 { max-width: 700px; margin: 20px 0 20px; font: 800 clamp(44px, 6.3vw, 82px)/.98 var(--font-display); letter-spacing: -.065em; }
.zr-hero-lead { max-width: 585px; margin: 0; color: var(--zr-muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; }
.zr-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.zr-hero-note { margin-top: 18px; color: #8390a3; font-size: 12px; }
.zr-hero-note span { color: var(--zr-purple); font-size: 18px; vertical-align: -1px; margin-right: 4px; }
.zr-product-frame { border: 1px solid rgba(125, 142, 181, .36); border-radius: 24px; background: rgba(255,255,255,.82); box-shadow: 0 30px 80px rgba(35, 66, 137, .16), 0 2px 4px rgba(15,23,42,.05); overflow: hidden; transform: rotate(1.2deg); }
.zr-frame-topbar { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 18px; background: rgba(249,251,255,.92); border-bottom: 1px solid var(--zr-line); color: #7d8ca5; font: 600 10px var(--font-mono); }
.zr-window-dots { display: inline-flex; gap: 5px; }
.zr-window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d4dceb; }
.zr-window-dots i:first-child { background: #f7a39a; }.zr-window-dots i:nth-child(2) { background: #f5d27c; }.zr-window-dots i:nth-child(3) { background: #89d2b6; }
.zr-live-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #087a5d; font: 700 10px var(--font-sans); text-transform: uppercase; letter-spacing: .06em; }
.zr-live-pill b { width: 6px; height: 6px; border-radius: 50%; background: #19b486; }
.zr-frame-body { display: grid; grid-template-columns: 132px 1fr; min-height: 395px; }
.zr-frame-sidebar { display: flex; flex-direction: column; gap: 16px; padding: 24px 16px; background: #fbfcff; border-right: 1px solid var(--zr-line); color: #8a98af; font-size: 11px; }
.zr-mini-mark { width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 9px; background: #e9edff; color: var(--zr-blue); font: 900 14px var(--font-display); }
.zr-sidebar-active { color: var(--zr-blue); font-weight: 800; }
.zr-frame-main { padding: 28px 30px; }
.zr-frame-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; border-bottom: 1px solid var(--zr-line); padding-bottom: 22px; }
.zr-frame-heading strong { display: block; margin-top: 8px; font: 700 21px var(--font-display); letter-spacing: -.03em; }
.zr-mono-label { color: #91a0b8; font: 700 9px var(--font-mono); letter-spacing: .1em; }
.zr-status-chip { padding: 7px 10px; border: 1px solid #c9e9dc; border-radius: 99px; color: #087a5d; background: #f0fcf7; font-size: 10px; white-space: nowrap; }
.zr-system-stack { margin: 28px 0; padding: 22px; border: 1px solid #e3e8f2; border-radius: 18px; background: linear-gradient(180deg, #fbfdff 0%, #f6f8fc 100%); }
.zr-system-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; }
.zr-system-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font: 800 10px var(--font-mono); }.zr-icon-blue { background: #eaf0ff; color: #285be0; }.zr-icon-purple { background: #f0ebff; color: #7446e8; }.zr-icon-green { background: #e8f8f2; color: #07835f; }
.zr-system-row b { display: block; font-size: 13px; }.zr-system-row small { display: block; margin-top: 3px; color: #8a97aa; font-size: 10px; }.zr-row-state { color: #7890ac; font: 600 10px var(--font-mono); text-align: right; }
.zr-system-line { height: 23px; width: 1px; margin-left: 16px; background: #cbd7e8; }
.zr-frame-footer { display: flex; justify-content: space-between; align-items: center; color: #71819b; font-size: 11px; }.zr-frame-footer b { color: var(--zr-ink); }.zr-arrow-box { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--zr-ink); color: white; font-size: 16px; }
.zr-search-section, .zr-platform-section, .zr-theme-section, .zr-pricing-section { padding: 94px 0 0; }
.zr-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }.zr-section-heading.compact { align-items: center; }
.zr-section-heading h2, .zr-pricing-copy h2, .zr-final-cta h2 { margin: 13px 0 0; font: 700 clamp(29px, 4vw, 50px)/1.03 var(--font-display); letter-spacing: -.055em; }.zr-section-heading p { max-width: 390px; margin: 0; color: var(--zr-muted); line-height: 1.65; font-size: 14px; }
.zr-search-bar { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid #cbd7e8; border-radius: 18px; background: var(--zr-surface); box-shadow: 0 16px 40px rgba(31, 65, 134, .09); }.zr-search-symbol { padding-left: 15px; color: var(--zr-blue); font-size: 24px; }.zr-search-bar input { min-width: 0; flex: 1; border: 0; background: transparent; box-shadow: none !important; padding: 14px 4px; font-size: 16px; }.zr-search-bar input:focus { outline: none; }.zr-search-bar .btn { min-height: 48px; border-radius: 12px; }
.zr-catalog-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }.zr-catalog-chip { display: inline-flex; gap: 10px; align-items: center; padding: 8px 11px; border: 1px solid var(--zr-line); border-radius: 10px; background: #fbfcff; color: #7b8aa2; font-size: 11px; }.zr-catalog-chip b { color: var(--zr-ink); font: 700 11px var(--font-mono); }.zr-catalog-empty { color: #8592a7; font-size: 12px; }
.zr-count-pill, .zr-result-state { padding: 7px 10px; border-radius: 99px; background: #eef3ff; color: #315fd2; font: 700 10px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }.zr-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.zr-result-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; padding: 20px; border: 1px solid var(--zr-line); border-radius: 17px; background: var(--zr-surface); box-shadow: var(--shadow-sm); }.zr-result-card.is-available { border-color: #b8e5d3; }.zr-result-card.is-taken { opacity: .72; }.zr-result-card h3 { margin: 18px 0 8px; font: 700 18px var(--font-mono); letter-spacing: -.04em; overflow-wrap: anywhere; }.zr-result-card p { margin: 0; color: var(--zr-muted); font-size: 12px; line-height: 1.55; }.zr-result-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }.zr-result-bottom strong { font-size: 18px; }.zr-result-bottom strong small { margin-left: 4px; color: #8997ab; font-size: 10px; font-weight: 500; }.zr-result-bottom .btn { padding: 9px 12px; font-size: 11px; }.zr-muted-action { color: #9aa5b5; font: 700 11px var(--font-mono); }
.zr-flow-card { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr; align-items: center; padding: 26px; border: 1px solid var(--zr-line); border-radius: 20px; background: linear-gradient(130deg, #f5f8ff, #fff); }.zr-flow-step { display: flex; gap: 13px; align-items: start; }.zr-flow-step > span { color: var(--zr-blue); font: 800 12px var(--font-mono); }.zr-flow-step b { display: block; font-size: 14px; }.zr-flow-step small { display: block; margin-top: 5px; color: var(--zr-muted); font-size: 11px; line-height: 1.45; }.zr-flow-connector { height: 1px; background: linear-gradient(90deg, #b7c6e5, transparent); }
.zr-capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }.zr-capability-grid article { padding: 25px; border: 1px solid var(--zr-line); border-radius: 17px; background: var(--zr-surface); }.zr-cap-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; font-weight: 800; }.zr-cap-icon.blue { background: var(--blue-light); color: var(--primary); }.zr-cap-icon.purple { background: var(--purple-light); color: var(--purple); }.zr-cap-icon.green { background: var(--green-light); color: var(--emerald); }.zr-capability-grid h3 { margin: 20px 0 8px; font: 700 21px var(--font-display); letter-spacing: -.04em; }.zr-capability-grid p { min-height: 58px; margin: 0 0 20px; color: var(--zr-muted); font-size: 13px; line-height: 1.6; }.zr-capability-grid a, .text-link { color: var(--zr-blue); font-size: 12px; font-weight: 800; text-decoration: none; }.zr-capability-grid a:hover, .text-link:hover { text-decoration: underline; }
.zr-theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.zr-theme-card { overflow: hidden; border: 1px solid var(--zr-line); border-radius: 18px; background: var(--zr-surface); }.zr-theme-preview { height: 188px; position: relative; overflow: hidden; background: #101827; }.zr-theme-preview::before { content: ''; position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; }.zr-theme-preview span, .zr-theme-preview i, .zr-theme-preview b, .zr-theme-preview em { position: absolute; display: block; border-radius: 5px; }.zr-theme-preview span { top: 50px; left: 46px; width: 35%; height: 9px; background: #fff; }.zr-theme-preview i { top: 74px; left: 46px; width: 54%; height: 5px; background: rgba(255,255,255,.45); }.zr-theme-preview b { top: 107px; left: 46px; width: 32%; height: 30px; border: 1px solid rgba(255,255,255,.4); }.zr-theme-preview em { top: 107px; right: 46px; width: 22%; height: 30px; background: #698dff; }.theme-developer { background: linear-gradient(135deg,#161a2b,#283a68); }.theme-creative { background: linear-gradient(135deg,#3b1d4f,#c75e81); }.theme-consultant { background: linear-gradient(135deg,#1d292d,#688f81); }.zr-theme-meta { display: flex; justify-content: space-between; gap: 14px; padding: 18px; }.zr-theme-meta h3 { margin: 0; font: 700 17px var(--font-display); }.zr-theme-meta p { margin: 7px 0 0; color: var(--zr-muted); font-size: 11px; }.zr-theme-number { color: #a1adbe; font: 700 11px var(--font-mono); }.zr-theme-empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--zr-line); border-radius: 14px; color: var(--zr-muted); text-align: center; }
.zr-pricing-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr); gap: 70px; align-items: center; padding-bottom: 94px; }.zr-pricing-copy p { max-width: 420px; margin: 22px 0; color: var(--zr-muted); font-size: 14px; line-height: 1.7; }.zr-price-list { border-top: 1px solid var(--zr-line); }.zr-price-row { display: grid; grid-template-columns: 35px 1fr auto 30px; align-items: center; gap: 14px; min-height: 76px; border-bottom: 1px solid var(--zr-line); }.zr-price-index { color: #9aa8ba; font: 700 10px var(--font-mono); }.zr-price-row strong { font: 700 16px var(--font-mono); }.zr-price-value { color: var(--zr-blue); font: 800 17px var(--font-display); }.zr-price-value small { margin-left: 3px; color: #8b98a9; font: 500 10px var(--font-sans); }.zr-price-row > a { color: var(--zr-blue); font-size: 18px; text-align: right; text-decoration: none; }.zr-final-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 34px 38px; border-radius: 20px; background: var(--zr-ink); color: #fff; }.zr-final-cta .zr-kicker { color: #a9b6cc; }.zr-final-cta h2 { color: #fff; }.zr-final-cta p { margin: 14px 0 0; color: #a9b6cc; font-size: 14px; }.zr-final-cta .btn.primary { background: #fff; color: var(--zr-ink); }.zr-final-cta .btn.primary:hover { background: #e9efff; }
@media (max-width: 980px) { .zr-home-hero { grid-template-columns: 1fr; padding-top: 38px; }.zr-hero-copy { max-width: 700px; }.zr-product-frame { max-width: 760px; width: 100%; margin: 0 auto; }.zr-capability-grid, .zr-theme-grid { grid-template-columns: repeat(2, 1fr); }.zr-pricing-section { grid-template-columns: 1fr; gap: 34px; } }
@media (max-width: 720px) { .zr-home-shell { padding: 0 15px 48px; }.zr-home-hero { min-height: 0; padding: 30px 0 52px; gap: 34px; }.zr-hero-copy h1 { font-size: clamp(42px, 13vw, 66px); }.zr-hero-actions { display: grid; grid-template-columns: 1fr; }.zr-hero-actions .btn { width: 100%; }.zr-product-frame { transform: none; border-radius: 18px; }.zr-frame-body { grid-template-columns: 1fr; }.zr-frame-sidebar { display: none; }.zr-frame-main { padding: 22px 17px; }.zr-frame-heading { display: block; }.zr-status-chip { display: inline-flex; margin-top: 14px; }.zr-system-stack { padding: 15px; }.zr-system-row { grid-template-columns: 31px 1fr; }.zr-row-state { grid-column: 2; text-align: left; margin-top: -6px; }.zr-section-heading { display: block; }.zr-section-heading p { margin-top: 14px; }.zr-section-heading h2, .zr-pricing-copy h2, .zr-final-cta h2 { font-size: 38px; }.zr-search-bar { align-items: stretch; flex-wrap: wrap; padding: 7px; }.zr-search-symbol { display: none; }.zr-search-bar input { flex-basis: 100%; padding: 13px 12px; }.zr-search-bar .btn { width: 100%; }.zr-results-grid, .zr-capability-grid, .zr-theme-grid { grid-template-columns: 1fr; }.zr-flow-card { grid-template-columns: 1fr; gap: 18px; padding: 20px; }.zr-flow-connector { width: 1px; height: 22px; margin-left: 7px; background: linear-gradient(180deg, #b7c6e5, transparent); }.zr-pricing-section { padding-top: 68px; padding-bottom: 60px; }.zr-final-cta { display: block; padding: 28px 24px; }.zr-final-cta .btn { width: 100%; margin-top: 24px; }.zr-price-row { grid-template-columns: 26px 1fr auto; }.zr-price-row > a { display: none; } }
@media (prefers-reduced-motion: reduce) { .zr-product-frame, .zr-capability-grid article, .zr-theme-card { transition: none !important; transform: none !important; }
}


/* ==========================================================================\n   Unified app shell refinement\n   Public, customer, and admin layouts share the same visual rhythm while\n   preserving their existing navigation and backend contracts.\n   ========================================================================== */

.top,
.appbar,
.side,
.footer,
.bottom,
.mobile-bottom-nav {
    transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.top {
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}

.zr-topbar-inner {
    display: flex;
    align-items: center;
    min-height: 100%;
    gap: 20px;
}

.zr-primary-nav {
    gap: 22px;
    margin-left: 34px;
}

.zr-primary-nav a {
    white-space: nowrap;
}

.zr-top-actions {
    flex-shrink: 0;
    gap: 8px;
}

.zr-top-actions .btn {
    white-space: nowrap;
}

.zr-theme-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    display: inline-grid;
    place-items: center;
}

.zr-primary-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 36px;
}

.zr-mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--text-secondary);
    background: var(--surface);
    font-size: 12px;
    font-weight: 800;
}

.zr-mobile-menu-toggle:hover,
.zr-theme-toggle:hover {
    color: var(--blue);
    border-color: var(--line-focus);
    box-shadow: var(--shadow-sm);
}

.zr-menu-icon {
    font-size: 17px;
    line-height: 1;
}

.zr-mobile-menu[hidden] {
    display: none !important;
}

.zr-mobile-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    animation: zr-menu-in .18s ease-out both;
}

.zr-mobile-menu nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

.zr-mobile-menu nav a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 750;
}

.zr-mobile-menu nav a:hover {
    color: var(--blue);
    background: var(--blue-light);
}

.zr-mobile-menu-currency {
    display: none;
}

.zr-mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.zr-mobile-menu-actions .btn {
    width: 100%;
    justify-content: center;
}

@keyframes zr-menu-in {
    from { opacity: 0; transform: translateY(-5px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.zr-public-content {
    margin-top: 32px !important;
    margin-bottom: 64px !important;
    animation: zr-content-in .26s ease-out both;
}

.zr-app-content {
    animation: zr-content-in .26s ease-out both;
}

@keyframes zr-content-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.zr-workspace-shell .main,
.zr-admin-shell .main {
    min-height: 100vh;
}

.zr-appbar {
    min-height: var(--top-height);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}

.zr-appbar-context {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.zr-appbar-context strong,
.zr-appbar-context .muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zr-appbar-context strong {
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: -.025em;
}

.zr-appbar-context .muted {
    font-size: 11px;
}

.zr-appbar-kicker {
    color: var(--blue);
    font: 800 9px/1 var(--font-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.zr-appbar-action {
    min-height: 38px;
    padding: 0 14px !important;
    border-radius: 11px !important;
}

.zr-shell-footer {
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: var(--surface2);
}

.zr-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 28px;
}

.zr-footer-brand p {
    max-width: 340px;
    margin: 12px 0 14px;
    line-height: 1.65;
}

.zr-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    border: 1px solid rgba(16, 185, 129, .22);
    border-radius: 999px;
    color: var(--success-text);
    background: var(--success);
    font-size: 11px;
    font-weight: 800;
}

.zr-footer-status > span {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .12);
}

.zr-footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 14px;
}

.zr-footer-note {
    text-align: right;
}

.bottom,
.mobile-bottom-nav {
    display: none;
}

@media (hover: hover) {
    .zr-shell-footer a,
    .slink,
    .mobile-nav-item,
    .bottom a {
        transition: color .18s ease, background-color .18s ease, transform .18s ease;
    }

    .zr-shell-footer a:hover,
    .slink:hover {
        transform: translateX(2px);
    }

    .btn:hover,
    .zr-theme-toggle:hover,
    .mobilebar:hover {
        transform: translateY(-1px);
    }
}

.zr-public-topbar {
    padding: 0 !important;
}

@media (max-width: 1440px) {
    .zr-public-topbar .zr-command-trigger {
        width: 38px !important;
        min-width: 38px;
        padding: 0 !important;
        justify-content: center !important;
    }

    .zr-public-topbar .zr-command-trigger span:not(.zr-search-glyph),
    .zr-public-topbar .zr-command-trigger kbd {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .zr-primary-nav {
        display: none;
    }

    .zr-mobile-menu-toggle {
        display: inline-flex;
    }

    .zr-topbar-inner {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .top {
        height: 60px;
        padding: 0 16px;
    }

    .zr-topbar-inner {
        padding: 0;
    }

    /* Mobile topbar keeps only Search, Theme and Menu (plus the logo). The
       account buttons, the logout form and the currency switcher all live in
       the mobile menu below 769px; before this the row ran to 545px at a 375px
       viewport and clipped the search and theme toggles off-screen. */
    .zr-top-actions > .btn,
    .zr-top-actions > .zr-inline-form,
    .zr-top-actions > .zr-currency-selector {
        display: none;
    }

    .zr-mobile-menu-currency {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 42px;
        padding: 0 4px;
        font-size: 13px;
        font-weight: 650;
        color: var(--muted);
    }

    .zr-mobile-menu-currency .zr-currency-selector select {
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }

    .zr-mobile-menu {
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        /* Eight links plus the currency row and account buttons run to ~650px;
           a 667px phone could not reach the bottom rows under the fixed bottom
           nav. Bound the sheet to the viewport and let it scroll instead. */
        max-height: calc(100vh - 160px);
        max-height: calc(100dvh - 160px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .zr-public-content {
        margin-top: 20px !important;
        margin-bottom: 44px !important;
    }

    .zr-appbar {
        min-height: 64px;
        height: auto;
        padding: 11px 16px;
    }

    .zr-appbar-context .muted {
        display: none;
    }

    .zr-appbar-context strong {
        font-size: 14px;
    }

    .zr-appbar .row {
        gap: 7px;
    }

    .zr-appbar-action {
        display: none;
    }

    .content {
        padding: 22px 16px 88px;
    }

    .side {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100dvh;
        box-shadow: var(--shadow-lg);
    }

    .bottom,
    .mobile-bottom-nav {
        position: fixed;
        display: flex;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: 64px;
        height: calc(64px + env(safe-area-inset-bottom));
        padding: 4px 8px env(safe-area-inset-bottom);
        background: var(--surface-glass);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .06);
        z-index: 80;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-nav-item,
    .bottom a {
        min-width: 58px;
        min-height: 48px;
        padding: 5px 8px;
        border-radius: 12px;
        color: var(--muted);
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: 10px;
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-nav-item.active,
    .bottom a.active {
        color: var(--blue);
        background: var(--blue-light);
    }

    .mobile-nav-icon,
    .bottom a span {
        font-size: 18px;
        line-height: 1;
    }

    .zr-shell-footer {
        padding-bottom: 94px;
    }

    .zr-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 18px;
    }

    .zr-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .zr-footer-note {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .zr-topbar-inner .logo {
        font-size: 17px;
        gap: 8px;
    }

    .zr-topbar-inner .logo .mark {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .zr-mobile-menu nav,
    .zr-mobile-menu-actions,
    .zr-footer-grid {
        grid-template-columns: 1fr;
    }

    .zr-mobile-menu-actions .btn {
        min-height: 42px;
    }

    .zr-footer-grid {
        gap: 20px;
    }

    .zr-shell-footer {
        padding-top: 38px;
    }
}

@media (max-width: 360px) {
    .top {
        padding: 0 11px;
    }

    .zr-topbar-inner .logo span:last-child {
        display: none;
    }

    .zr-mobile-menu-toggle {
        padding: 0 9px;
    }

    .zr-theme-toggle {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zr-public-content,
    .zr-app-content,
    .zr-mobile-menu {
        animation: none !important;
    }
}


/* ==========================================================================
   Homepage conversion redesign — v4 (Dynadot / Porkbun Clean Light Edition)
   Scoped to .zr-home-v4 so customer and admin surfaces remain unchanged.
   ========================================================================== */
.zr-home-v4 {
    --zr-v4-ink: var(--text);
    --zr-v4-muted: var(--muted);
    --zr-v4-line: var(--line);
    --zr-v4-blue: var(--primary);
    --zr-v4-blue-hover: var(--primary-hover);
    --zr-v4-bg: var(--bg);
    max-width: 1340px;
    margin: 0 auto;
    padding: 24px 28px 100px;
    color: var(--zr-v4-ink);
}

/* ==========================================================================
   Dynadot / Porkbun Clean Hero Section
   ========================================================================== */
.zr-home-hero-v4 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px) clamp(44px, 6vw, 64px);
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(180deg, var(--surface2) 0%, #ffffff 100%);
    border: 1px solid var(--line);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
    text-align: center;
}

[data-theme="dark"] .zr-home-hero-v4 {
    background: linear-gradient(180deg, var(--dyna-navy-950) 0%, var(--dyna-navy-950) 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

.zr-hero-center-v4 {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zr-hero-badge-v4 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
    font-weight: 750;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.zr-badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.zr-badge-pill {
    background: var(--blue-light);
    color: var(--blue);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.zr-home-hero-v4 h1 {
    color: var(--text);
    font: 850 clamp(36px, 5.2vw, 64px)/1.08 var(--font-display);
    letter-spacing: -0.04em;
    margin: 0 0 18px 0;
}

.zr-hero-highlight {
    color: var(--blue);
}

.zr-hero-lead-v4 {
    max-width: 660px;
    margin: 0 auto 36px auto;
    color: var(--muted);
    font-size: clamp(15.5px, 1.25vw, 18px);
    line-height: 1.65;
}

/* Massive Dynadot / Porkbun Search Box */
.zr-hero-search-v4 {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 820px;
    padding: 8px 10px 8px 20px;
    border: 2px solid var(--blue);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--primary) 14%, transparent);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.zr-hero-search-v4:focus-within {
    box-shadow: 0 20px 50px color-mix(in srgb, var(--primary) 22%, transparent), 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}

.zr-search-icon-wrap {
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zr-hero-search-v4 input {
    min-width: 0;
    flex: 1;
    height: 52px;
    padding: 0 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 17px;
    font-weight: 550;
    box-shadow: none !important;
}

.zr-hero-search-v4 input::placeholder {
    color: var(--muted);
}

.zr-hero-submit-btn {
    min-height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent);
}

/* Value Proof Badges */
.zr-hero-proof-v4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
    margin-top: 28px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.zr-hero-proof-v4 span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Colorful TLD Strip (Dynadot / Porkbun style) */
.zr-tld-strip-v4 {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
}

.zr-tld-card-v4 {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.zr-tld-card-v4:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.zr-tld-badge-v4 {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 850;
    color: var(--blue);
    background: var(--blue-light);
    padding: 4px 10px;
    border-radius: 8px;
}

.zr-tld-price-v4 strong {
    font-size: 16px;
    font-family: var(--font-mono);
    color: var(--text);
}

.zr-tld-price-v4 small {
    color: var(--muted);
    font-size: 12px;
}

.zr-tld-action-v4 {
    font-size: 12px;
    font-weight: 800;
    color: var(--blue);
}

/* Live Product Showcase Preview Window */
.zr-showcase-preview-v4 {
    margin-top: 48px;
    width: 100%;
    max-width: 860px;
    perspective: 1000px;
}

.zr-showcase-window {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zr-showcase-window:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
}

.zr-showcase-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--surface2);
    border-bottom: 1px solid var(--line);
    gap: 12px;
}

.zr-showcase-dots {
    display: flex;
    gap: 6px;
}

.zr-showcase-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.zr-showcase-dots i:nth-child(1) { background: #f87171; }
.zr-showcase-dots i:nth-child(2) { background: #fbbf24; }
.zr-showcase-dots i:nth-child(3) { background: #34d399; }

.zr-showcase-url {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
    background: var(--surface);
    padding: 3px 12px;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.zr-showcase-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: #059669;
    letter-spacing: 0.04em;
}

.zr-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    animation: zrPulseDot 2s infinite ease-in-out;
}

.zr-showcase-body {
    display: grid;
    grid-template-columns: 160px 1fr;
    min-height: 180px;
}

.zr-showcase-sidebar {
    background: var(--surface2);
    border-right: 1px solid var(--line);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zr-showcase-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 650;
    color: var(--text-secondary);
}

.zr-showcase-nav.active {
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 800;
}

.zr-showcase-main {
    padding: 20px 24px;
}

.zr-showcase-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
}

.zr-showcase-card-header small {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.zr-showcase-card-header strong {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--text);
}

.zr-showcase-dns-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zr-showcase-row {
    display: grid;
    grid-template-columns: 70px 60px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 8px 12px;
    background: var(--surface2);
    border-radius: 8px;
    font-size: 12px;
}

.zr-row-header {
    background: transparent;
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.05em;
    padding: 0 12px;
}

/* ==========================================================================
   Trust Strip & Value Highlights
   ========================================================================== */
.zr-trust-strip-v4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin: 28px 0 0;
    padding: 20px 24px;
    border: 1px solid var(--zr-v4-line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.zr-trust-strip-v4 > div:not(.zr-trust-catalog-v4) {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.zr-trust-icon-v4 {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    font-weight: 800;
}

.zr-trust-blue { background: var(--blue-light); color: var(--primary); }
.zr-trust-purple { background: var(--purple-light); color: var(--purple); }
.zr-trust-green { background: var(--green-light); color: var(--emerald); }

.zr-trust-strip-v4 b,
.zr-trust-strip-v4 small {
    display: block;
}

.zr-trust-strip-v4 b {
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
}

.zr-trust-strip-v4 small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
}

.zr-trust-catalog-v4 {
    min-width: 100px;
    padding-left: 24px;
    border-left: 1px solid var(--zr-v4-line);
    text-align: right;
}

.zr-trust-catalog-v4 strong {
    display: block;
    margin-top: 2px;
    color: var(--blue);
    font: 800 20px var(--font-display);
}

/* ==========================================================================
   Section Headings & Bento Grid
   ========================================================================== */
.zr-platform-v4,
.zr-theme-v4,
.zr-pricing-v4 {
    padding-top: 96px;
}

.zr-section-heading-v4 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

.zr-section-heading-v4 h2,
.zr-pricing-copy-v4 h2,
.zr-final-cta-v4 h2 {
    margin: 8px 0 0;
    color: var(--text);
    font: 800 clamp(28px, 4.2vw, 48px)/1.1 var(--font-display);
    letter-spacing: -0.04em;
}

.zr-section-heading-v4 h2 em {
    color: var(--blue);
    font-style: normal;
}

.zr-section-heading-v4 > p {
    max-width: 380px;
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.zr-platform-grid-v4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.zr-platform-card-v4 {
    position: relative;
    min-height: 300px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.zr-platform-card-v4:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.zr-platform-card-featured {
    border-color: color-mix(in srgb, var(--primary) 32%, transparent);
    background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--primary) 4%, transparent) 100%);
}

.zr-cap-icon-v4 {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin: 24px 0 18px;
    border-radius: 14px;
    font-weight: 800;
}

.zr-cap-icon-blue-v4 { background: var(--blue-light); color: var(--primary); }
.zr-cap-icon-purple-v4 { background: var(--purple-light); color: var(--purple); }
.zr-cap-icon-green-v4 { background: var(--green-light); color: var(--emerald); }

.zr-platform-card-v4 h3 {
    margin: 0 0 10px;
    color: var(--text);
    font: 750 22px/1.2 var(--font-display);
    letter-spacing: -0.03em;
}

.zr-platform-card-v4 p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.zr-card-pills-v4,
.zr-card-tags-v4 {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.zr-pill-item {
    font-size: 11px;
    font-weight: 800;
    background: var(--surface2);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 6px;
}

/* 3-Step Journey Workflow (SIMPLIFIED WORKFLOW) */
.zr-flow-v4 {
    display: grid;
    grid-template-columns: 1.3fr 1fr auto 1fr auto 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 32px;
    padding: 28px 32px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.zr-flow-intro-v4 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zr-flow-intro-v4 .zr-mono-label-v4 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--blue);
}

.zr-flow-intro-v4 strong {
    display: block;
    color: var(--text);
    font: 800 20px/1.2 var(--font-display);
    letter-spacing: -0.03em;
}

.zr-flow-step {
    display: flex;
    align-items: center;
    gap: 14px;
}

.zr-flow-step > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: var(--blue-light);
    color: var(--blue);
    font: 800 14px var(--font-mono);
    border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
}

.zr-flow-step > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.zr-flow-step b {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
}

.zr-flow-step small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.zr-flow-connector {
    width: 24px;
    height: 2px;
    background: var(--line);
    position: relative;
}

.zr-flow-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid var(--muted);
}

/* Theme Previews */
.zr-theme-grid {
    gap: 20px;
}

.zr-theme-card-v4 {
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--zr-v4-line);
    background: var(--surface);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.zr-theme-card-v4:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.zr-theme-card-v4 .zr-theme-preview {
    height: 220px;
}

/* Transparent Pricing Section */
.zr-pricing-v4 {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
    gap: clamp(40px, 7vw, 84px);
    align-items: center;
    padding-bottom: 100px;
}

.zr-pricing-copy-v4 p {
    max-width: 440px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.7;
}

.zr-pricing-badges-v4 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.zr-pricing-badges-v4 span {
    font-size: 12px;
    font-weight: 750;
    color: var(--blue);
    background: var(--blue-light);
    padding: 6px 12px;
    border-radius: var(--r-full);
}

.zr-price-list-v4 {
    overflow: hidden;
    border: 1px solid var(--zr-v4-line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.zr-price-list-v4 .zr-price-row {
    min-height: 76px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 24px 1fr auto auto;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s ease;
}

.zr-price-list-v4 .zr-price-row:hover {
    background: var(--surface2);
}

.zr-price-list-v4 .zr-price-row:last-child {
    border-bottom: 0;
}

.zr-price-dot-v4 {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.zr-price-domain-v4 strong {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--text);
}

.zr-price-domain-v4 small {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
}

.zr-price-value-v4 strong {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--text);
}

.zr-price-value-v4 small {
    color: var(--muted);
    font-size: 12px;
}

.zr-catalog-empty-v4 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 30px 24px;
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
}

.zr-catalog-empty-v4 strong {
    color: var(--text);
    font-size: 15px;
}

/* High-Impact Final CTA Banner */
.zr-final-cta-v4 {
    position: relative;
    overflow: hidden;
    padding: 56px 60px;
    border-radius: 28px;
    background: radial-gradient(130% 150% at 12% 0%, #24160f 0%, #141416 55%, #0d0d0f 100%);
    box-shadow: 0 25px 60px -18px rgba(15, 17, 21, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.zr-final-cta-v4 .zr-kicker {
    color: #f2b7a3;
}

.zr-final-cta-v4 h2 {
    position: relative;
    z-index: 1;
    color: #ffffff;
    margin: 8px 0 0;
}

.zr-final-cta-v4 p {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14.5px;
    line-height: 1.6;
}

.zr-final-cta-v4 .btn.primary {
    background: #ffffff;
    color: var(--primary);
    font-size: 15px;
    padding: 14px 28px;
}

.zr-final-cta-v4 .btn.primary:hover {
    background: var(--surface2);
}

.zr-cta-orbit-v4 {
    position: absolute;
    right: 80px;
    bottom: -160px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
    .zr-trust-strip-v4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .zr-trust-catalog-v4 {
        padding-left: 0;
        border-left: 0;
        text-align: left;
    }

    .zr-platform-grid-v4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .zr-platform-card-featured {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .zr-home-v4 {
        padding: 12px 16px 72px;
    }

    .zr-home-hero-v4 {
        min-height: 0;
        padding: 36px 18px 32px;
        border-radius: 24px;
    }

    .zr-hero-badge-v4 {
        font-size: 10px;
        padding: 4px 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .zr-home-hero-v4 h1 {
        font-size: clamp(32px, 9vw, 46px);
    }

    .zr-hero-br {
        display: none;
    }

    .zr-hero-lead-v4 {
        font-size: 14.5px;
        margin-bottom: 24px;
    }

    .zr-hero-search-v4 {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        border-radius: 16px;
    }

    .zr-search-icon-wrap {
        display: none;
    }

    .zr-hero-search-v4 input {
        width: 100%;
        height: 46px;
        padding: 0 12px;
        font-size: 15px;
    }

    .zr-hero-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .zr-hero-proof-v4 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
        margin-top: 20px;
        font-size: 11px;
    }

    .zr-tld-strip-v4 {
        gap: 8px;
        margin-top: 24px;
    }

    .zr-tld-card-v4 {
        padding: 10px 14px;
        gap: 10px;
    }

    .zr-trust-strip-v4 {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

    .zr-trust-catalog-v4 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 14px;
        border-top: 1px solid var(--zr-v4-line);
    }

    .zr-section-heading-v4 {
        display: block;
        margin-bottom: 24px;
    }

    .zr-section-heading-v4 > p {
        margin-top: 12px;
    }

    .zr-section-heading-v4 h2,
    .zr-pricing-copy-v4 h2,
    .zr-final-cta-v4 h2 {
        font-size: 32px;
    }

    .zr-platform-v4,
    .zr-theme-v4,
    .zr-pricing-v4 {
        padding-top: 64px;
    }

    .zr-platform-grid-v4 {
        grid-template-columns: 1fr;
    }

    .zr-platform-card-featured {
        grid-column: auto;
    }

    .zr-flow-v4 {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .zr-pricing-v4 {
        display: block;
        padding-bottom: 64px;
    }

    .zr-price-list-v4 .zr-price-row {
        grid-template-columns: 24px 1fr auto;
        padding: 0 16px;
    }

    .zr-price-list-v4 .zr-price-row > a {
        display: none;
    }

    .zr-final-cta-v4 {
        display: block;
        padding: 32px 24px;
        border-radius: 20px;
    }

    .zr-final-cta-v4 .btn {
        width: 100%;
        margin-top: 24px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .zr-platform-card-v4,
    .zr-theme-card-v4 {
        transition: none;
        transform: none;
    }
}

/* ==========================================================================
   Dynadot-Inspired Domain Booking & UI Enhancements
   ========================================================================== */

.zr-search-shortcuts-v4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.zr-shortcuts-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.zr-shortcut-chip {
    background: var(--surface2);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 4px 10px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.15s ease;
}

.zr-shortcut-chip:hover {
    background: var(--blue-light);
    color: var(--blue);
    border-color: var(--blue);
    transform: translateY(-1px);
}

.zr-search-btn-arrow {
    display: inline-block;
    transition: transform 0.15s ease;
}

.zr-hero-search-v4 .btn:hover .zr-search-btn-arrow {
    transform: translateX(3px);
}

/* Dynadot-Style Availability Matrix Cards */
.zr-result-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.zr-result-card.is-available {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(180deg, var(--surface) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.zr-result-card.is-available:hover {
    border-color: var(--green);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.12);
    transform: translateY(-2px);
}

.zr-result-card.is-taken {
    opacity: 0.75;
    background: var(--surface2);
}

.zr-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zr-result-state.state-available {
    background: var(--green-light);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.zr-result-state.state-taken {
    background: var(--surface3);
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.zr-result-badge-inclusion {
    font-size: 10.5px;
    color: var(--blue);
    background: var(--blue-light);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 750;
}

.zr-result-domain-title {
    font-family: var(--font-mono);
    font-size: 17px;
    color: var(--text);
    margin: 8px 0 4px;
    word-break: break-all;
}

.zr-result-desc {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
    margin: 0;
}

.zr-result-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.zr-result-price-wrap strong {
    font-size: 20px;
    font-family: var(--font-mono);
    color: var(--text);
}

.zr-result-price-wrap small {
    color: var(--muted);
    font-size: 12px;
}

.zr-reserve-btn {
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 800;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 28%, transparent);
}

/* App-Like Mobile Experience */
@media (max-width: 768px) {
    .zr-checkout-grid {
        grid-template-columns: 1fr;
    }
    
    /* The !important here existed only to beat an inline grid-template-columns
       on the element. That inline style is gone, so normal cascade applies and
       this is now the same declaration the 1080px rule already makes. Left in
       place rather than deleted so the three .builder-grid collapse rules stay
       findable together. */
    .builder-grid {
        grid-template-columns: 1fr;
    }


    .zr-search-shortcuts-v4 {
        justify-content: center;
    }

    body.zr-public-shell,
    body.zr-workspace-shell {
        padding-bottom: 76px !important;
    }

    .zr-shell-footer {
        padding-bottom: 96px !important;
    }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav,
nav.bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    z-index: 60;
    align-items: center;
    justify-content: space-around;
    padding: 0 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .mobile-bottom-nav,
    nav.bottom {
        display: flex;
    }
}

.mobile-nav-item,
nav.bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.15s ease;
    flex: 1;
    max-width: 80px;
}

.mobile-nav-item svg,
nav.bottom a svg {
    stroke: var(--muted);
    transition: stroke 0.15s ease, transform 0.15s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active,
nav.bottom a.active {
    color: var(--blue);
}

.mobile-nav-item.active svg,
nav.bottom a.active svg {
    stroke: var(--blue);
    transform: translateY(-1px);
}




/* ========================================================================== 
   ZeroRegistrar UI/UX Master Prompt — Shared Product Layer
   ========================================================================== */
/* Spacing, control sizing and focus-ring tokens now live in the single :root block. */

body {
    min-width: 320px;
    text-rendering: optimizeLegibility;
}

button, a, input, select, textarea { min-height: 44px; }
button.icon, .icon { min-height: 40px; }

.btn:focus-visible, .slink:focus-visible, .nav a:focus-visible,
.mobile-nav-item:focus-visible, .bottom a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    box-shadow: none;
}

.btn { border: 1px solid transparent; }
.btn.primary { background: var(--primary); }
.btn.primary:hover { background: var(--blue-hover); }

.zr-appbar-context { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.zr-appbar-context strong { font-size: 14px; white-space: nowrap; }
.zr-appbar-kicker { color: var(--muted); font: 800 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.zr-appbar-context .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zr-command-trigger { display: inline-flex !important; align-items: center !important; gap: 8px !important; width: auto !important; height: 38px !important; padding: 0 12px !important; border-radius: 9px !important; border: 1px solid var(--line) !important; background: var(--surface) !important; color: var(--muted) !important; font-size: 12.5px !important; justify-content: space-between !important; cursor: pointer !important; transition: all 0.15s ease !important; }
.zr-command-trigger:hover { background: var(--surface2) !important; border-color: var(--border-hover) !important; color: var(--text) !important; }
.zr-command-trigger kbd { display: inline-flex !important; align-items: center !important; justify-content: center !important; padding: 2px 6px !important; border: 1px solid var(--line) !important; border-bottom-width: 2px !important; border-radius: 6px !important; background: var(--surface2) !important; color: var(--muted) !important; font: 700 10px var(--font-mono) !important; line-height: 1 !important; margin-left: 4px !important; }
.zr-theme-toggle { width: 38px !important; height: 38px !important; border-radius: 9px !important; border: 1px solid var(--line) !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; background: var(--surface) !important; color: var(--text) !important; font-size: 15px !important; cursor: pointer !important; transition: all 0.15s ease !important; }
.zr-theme-toggle:hover { background: var(--surface2) !important; border-color: var(--border-hover) !important; }

.zr-modal-open { overflow: hidden; }
.zr-command-palette[hidden] { display: none; }
.zr-command-palette { position: fixed; inset: 0; z-index: 300; display: grid; place-items: start center; padding: 12vh 16px 24px; background: rgba(15, 23, 42, .52); backdrop-filter: blur(5px); }
.zr-command-dialog { width: min(620px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); }
.zr-command-search { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.zr-command-search span { color: var(--blue); font-size: 18px; }
.zr-command-search input { min-height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none !important; font-size: 16px; }
.zr-command-results { max-height: min(54vh, 460px); overflow-y: auto; padding: 8px; }
.zr-command-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-align: left; }
.zr-command-item:hover, .zr-command-item:focus-visible { background: var(--surface2); color: var(--blue); }
.zr-command-item small { margin-left: auto; color: var(--muted); font: 700 10px var(--font-mono); }
.zr-command-empty { padding: 28px 16px; color: var(--muted); text-align: center; }

.zr-toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 400; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.zr-toast { transform: translateY(8px); opacity: 0; padding: 13px 15px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-md); color: var(--text); font-size: 13px; transition: opacity .18s ease, transform .18s ease; }
.zr-toast.is-visible { transform: translateY(0); opacity: 1; }
.zr-toast-success { border-left-color: var(--green); }
.zr-toast-warning { border-left-color: var(--amber); }
.zr-toast-error { border-left-color: var(--red); }

.zr-public-topbar, .zr-appbar { box-shadow: 0 1px 0 rgba(15, 23, 42, .02); }
.zr-public-content { padding-top: 8px; }
.zr-home-shell, .content { isolation: isolate; }
.tablewrap { scrollbar-color: var(--line) transparent; }
.table th { position: sticky; top: 0; z-index: 1; }

@media (max-width: 1080px) {
    .zr-command-trigger { min-width: 44px; width: 44px; padding: 0; justify-content: center; }
    .zr-command-trigger span:not(.zr-search-glyph), .zr-command-trigger kbd { display: none; }
    .zr-appbar-context .muted { display: none; }
}

@media (max-width: 768px) {
    button, a, input, select, textarea { min-height: 44px; }
    .zr-appbar-context { gap: 6px; }
    .zr-appbar-context strong { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
    .zr-appbar-kicker { display: none; }
    .zr-toast-region { right: 16px; bottom: 76px; }
    .zr-command-palette { padding-top: 7vh; }
    .zr-command-item { min-height: 56px; }
}

@media (max-width: 480px) {
    .container, .container-wide { padding-left: 16px; padding-right: 16px; }
    .footergrid { grid-template-columns: 1fr; }
    .zr-hero-actions .btn { width: 100%; }
    .zr-search-bar { flex-wrap: wrap; }
    .zr-search-bar .btn { width: 100%; }
}

/* ==========================================================================
   ZeroRegistrar — Extended Component Suites & Specialized Pages
   ========================================================================== */

/* Tabs Navigation Component */
.zr-tab-container { width: 100%; }
.zr-tabs-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    padding: 0 4px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.zr-tabs-nav::-webkit-scrollbar { display: none; }
.zr-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--muted);
    font-weight: 700;
    font-size: 13.5px;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    background: transparent;
    cursor: pointer;
}
.zr-tab-btn:hover { color: var(--text); }
.zr-tab-btn.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}
.zr-tab-panel[hidden] { display: none !important; }

/* Pricing Page Architecture */
.zr-pricing-hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}
.zr-pricing-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.zr-category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.zr-category-pill {
    padding: 6px 14px;
    border-radius: var(--r-full);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.zr-category-pill:hover,
.zr-category-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--blue);
}
.zr-pricing-table-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
}

/* Hosting Product Cards & Matrix */
.zr-hosting-hero {
    text-align: center;
    padding: 60px 20px 30px;
    max-width: 860px;
    margin: 0 auto;
}
.zr-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: var(--surface2);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    margin: 20px auto 40px;
    font-weight: 700;
    font-size: 13px;
}
.zr-hosting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}
.zr-hosting-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.zr-hosting-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-focus);
}
.zr-hosting-card.popular {
    border: 2px solid var(--blue);
    box-shadow: var(--shadow-glow);
}
.zr-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    padding: 3px 12px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.zr-feature-checklist {
    list-style: none;
    margin: 24px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.zr-feature-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* Reseller Program & Profit Calculator */
.zr-reseller-hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}
.zr-calculator-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-md);
    margin: 40px auto 60px;
    max-width: 960px;
}
.zr-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}
@media (max-width: 768px) {
    .zr-calc-grid { grid-template-columns: 1fr; }
}
.zr-calc-result-box {
    background: var(--surface2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

/* Code Snippet & Copy Block */
.zr-code-box {
    background: var(--dyna-navy-950);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0;
}
.zr-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--dyna-navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--dyna-navy-muted);
}
.zr-code-body {
    padding: 16px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: #F5F8FF;
}
.zr-copy-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--surface2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.15s ease;
}
.zr-copy-btn:hover { background: rgba(255, 255, 255, 0.2); }
.zr-copy-btn.btn-copied { background: var(--green); color: #ffffff; border-color: var(--green); }

/* Monospace Badges & DNS Styling */
.zr-dns-tag {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    background: var(--blue-light);
    color: var(--blue);
}
.zr-mono-val {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--surface2);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--line);
    word-break: break-all;
}

/* Auth Split Layout */
.zr-auth-split-shell {
    min-height: calc(100vh - var(--top-height));
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background: var(--bg);
}
@media (max-width: 960px) {
    .zr-auth-split-shell { grid-template-columns: 1fr; }
    .zr-auth-split-hero { display: none !important; }
}
.zr-auth-split-hero {
    background: linear-gradient(150deg, #0a0a0b 0%, #141416 55%, #2a1710 100%);
    color: #ffffff;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--dyna-navy-900);
    position: relative;
    overflow: hidden;
}
.zr-auth-form-side {
    display: grid;
    place-items: center;
    padding: 40px 24px;
}
.zr-auth-card-inner {
    width: min(440px, 100%);
}



/* ==========================================================================
   Signal — premium polish layer (appended overrides win the cascade)
   ========================================================================== */
::selection { background: color-mix(in srgb, var(--primary) 22%, transparent); color: inherit; }
[data-theme="dark"] ::selection { background: color-mix(in srgb, var(--primary) 30%, transparent); }

html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--surface3); border: 3px solid var(--bg); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
::-webkit-scrollbar-track { background: transparent; }

/* Headings + display feel */
h1, h2, h3 { letter-spacing: -0.028em; }

/* Buttons: solid signal with crisp depth */
.btn { border: 1px solid transparent; border-radius: var(--r-sm); font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; transition: background-color .16s var(--ease-out), color .16s var(--ease-out), border-color .16s var(--ease-out), box-shadow .16s var(--ease-out), transform .16s var(--ease-out); }
.btn.primary { background: var(--primary); color: var(--primary-fg); box-shadow: 0 1px 2px rgba(15,17,21,0.12), inset 0 1px 0 rgba(255,255,255,0.16); }
.btn.primary:hover { background: var(--primary-hover); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 30%, transparent); transform: translateY(-1px); }
[data-theme="dark"] .btn.primary:hover { box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 34%, transparent); }
.btn.large { border-radius: var(--r); }
.btn:active { transform: translateY(0) scale(0.985); }

/* Logo mark → signal */
.mark { background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 52%, var(--primary-hover) 100%); box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent); }

/* Category / functional tags */
.tag.blue { background: var(--blue-light); color: var(--primary); }
.tag.purple { background: var(--purple-light); color: var(--purple); }
.tag.green { background: var(--green-light); color: var(--emerald); }
.tag.com { background: var(--surface3); color: var(--text-secondary); }

/* Inputs: refined focus ring */
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--blue-glow); }

/* Cards */
.card { border-radius: var(--r); transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out), transform .18s var(--ease-out); }

/* Sidebar active: left signal bar */
.slink { position: relative; }
.slink.active { background: var(--blue-light); color: var(--primary); }
.slink.active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }

/* KPI hover accent */
.kpi { position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--primary), transparent 70%); opacity: 0; transition: opacity .2s var(--ease-out); }
.kpi:hover::after { opacity: 1; }
.metric { font-family: var(--font-display); }

/* Legacy (non-v4) dark CTA stays dark in both themes */
.zr-final-cta { background: #141416; color: #fff; }
.zr-final-cta h2 { color: #fff; }

/* Public nav underline uses signal */
.nav a:hover { color: var(--primary); }

/* Staggered entrance for grids and rows */
@keyframes zrRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.kpis > .kpi,
.zr-results-grid > *,
.zr-platform-grid-v4 > *,
.zr-hosting-grid > *,
.g3 > *, .g4 > * { animation: zrRise .42s var(--ease) both; }
.kpis > .kpi:nth-child(2), .zr-results-grid > :nth-child(2), .zr-platform-grid-v4 > :nth-child(2), .zr-hosting-grid > :nth-child(2), .g3 > :nth-child(2), .g4 > :nth-child(2) { animation-delay: .05s; }
.kpis > .kpi:nth-child(3), .zr-results-grid > :nth-child(3), .zr-platform-grid-v4 > :nth-child(3), .zr-hosting-grid > :nth-child(3), .g3 > :nth-child(3), .g4 > :nth-child(3) { animation-delay: .10s; }
.kpis > .kpi:nth-child(4), .zr-results-grid > :nth-child(4), .zr-hosting-grid > :nth-child(4), .g4 > :nth-child(4) { animation-delay: .15s; }
.kpis > .kpi:nth-child(n+5), .zr-results-grid > :nth-child(n+5) { animation-delay: .20s; }

/* Skeleton loading utility */
.zr-skeleton { background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%); background-size: 200% 100%; animation: zrShimmer 1.4s infinite linear; border-radius: var(--r-sm); }
@keyframes zrShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .kpis > .kpi, .zr-results-grid > *, .zr-platform-grid-v4 > *, .zr-hosting-grid > *, .g3 > *, .g4 > * { animation: none !important; }
}


/* --------------------------------------------------------------------------
   Signal — QA refinement pass (sidebar labels, mobile menu, portal tables)
   -------------------------------------------------------------------------- */
.slink { gap: 10px; }
.slink svg { flex: 0 0 18px; width: 18px; height: 18px; }
.slink svg + span { width: auto; flex: 1 1 auto; min-width: 0; text-align: left; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Opaque mobile menu so page content never bleeds through */
.zr-mobile-menu { background: var(--surface); z-index: 200; }

/* Checkboxes / radios must not inherit the 44px min tap-height */
input[type="checkbox"], input[type="radio"] { min-height: 0; width: auto; }

/* Bare (non-.table) tables inside the portal/admin content get sane styling */
.zr-app-content table:not(.table) { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.zr-app-content table:not(.table) th,
.zr-app-content table:not(.table) td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; color: var(--text); }
.zr-app-content table:not(.table) th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; }
.zr-app-content table:not(.table) tr:last-child td { border-bottom: 0; }


/* --------------------------------------------------------------------------
   Signal — mobile nav QA (bottom-nav labels + admin search overflow)
   -------------------------------------------------------------------------- */
nav.bottom a span, .bottom a span { font-size: 10px; line-height: 1.15; white-space: nowrap; font-weight: 800; }
nav.bottom a svg, .bottom a svg { width: 20px; height: 20px; flex: 0 0 auto; }
@media (max-width: 768px) {
    .zr-appbar form[action="/admin/search"] { display: none; }
}

/* ==========================================================================
   Homepage — "Signal Blue" 2026 storefront redesign
   Rebuilt from the Claude Design handoff (Homepage.dc.html). Fixed light
   palette (bespoke marketing page); accent unified with the brand blue.
   ========================================================================== */

@keyframes zrh-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(1.4); } }
@keyframes zrh-ripple { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes zrh-ticker { 0%, 20% { transform: translateY(0); } 25%, 45% { transform: translateY(-100%); } 50%, 70% { transform: translateY(-200%); } 75%, 95% { transform: translateY(-300%); } 100% { transform: translateY(-400%); } }
@keyframes zrh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes zrh-float-slow { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(3deg); } }
@keyframes zrh-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes zrh-marquee-r { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@keyframes zrh-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* Full-bleed homepage main (overrides the constrained .container wrapper) */
.zr-home-main { max-width: none !important; margin: 0 !important; padding: 0 !important; animation: none !important; }

/* Top offer banner (rendered in global layout, homepage only, dismissible with cross icon) */
.zr-top-offer-bar { background: linear-gradient(90deg, #031242 0%, #071952 50%, #031242 100%); color: #FFFFFF; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); position: relative; z-index: 55; }
.zr-top-offer-bar.is-hidden { display: none !important; }
.zr-top-offer-inner { max-width: 1280px; margin: 0 auto; padding: 8px 32px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.zr-top-offer-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.zr-top-offer-pill { background: rgba(255, 138, 0, 0.22); color: #FFB356; border: 1px solid rgba(255, 138, 0, 0.45); padding: 2px 8px; border-radius: 9999px; font-weight: 700; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; flex-shrink: 0; }
.zr-top-offer-text { color: #E2E8F0; font-weight: 500; font-size: 13px; line-height: 1.4; }
.zr-top-offer-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.zr-top-offer-link { color: var(--primary); font-weight: 700; font-size: 13px; white-space: nowrap; }
.zr-top-offer-link:hover { color: #55B8FF; text-decoration: underline; }
.zr-top-offer-close { background: rgba(255, 255, 255, 0.12); border: none; color: #CBD5E1; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .16s, color .16s; flex-shrink: 0; padding: 0; }
.zr-top-offer-close:hover { background: rgba(255, 255, 255, 0.28); color: #FFFFFF; }
@media (max-width: 640px) {
  .zr-top-offer-inner { padding: 8px 16px; font-size: 12px; }
  .zr-top-offer-pill { display: none; }
  .zr-top-offer-text { font-size: 12px; }
}

/* Top status ribbon (rendered in the global layout, homepage only) */
.zr-status-ribbon { background: var(--dyna-navy-950); color: #F5F8FF; font-size: 13px; overflow: hidden; }
.zr-status-ribbon-inner { max-width: 1280px; margin: 0 auto; padding: 8px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.zr-status-ribbon-live { display: flex; align-items: center; gap: 8px; min-width: 0; }
.zr-status-ping { position: relative; width: 8px; height: 8px; flex: 0 0 auto; }
.zr-status-ping span { position: absolute; inset: 0; border-radius: 50%; background: var(--dyna-green-500); }
.zr-status-ping span:first-child { animation: zrh-pulse 1.6s infinite; }
.zr-status-ping span:last-child { animation: zrh-ripple 1.8s infinite; }
.zr-status-ms { font-family: var(--font-mono); color: var(--dyna-green-500); font-weight: 600; }
.zr-status-ribbon-links { display: flex; gap: 20px; color: var(--dyna-navy-muted); flex: 0 0 auto; }
.zr-status-ribbon-links a { color: var(--dyna-navy-muted); }
.zr-status-ribbon-links a:hover { color: #F5F8FF; }
@media (max-width: 640px) { .zr-status-ribbon-inner { padding: 8px 16px; font-size: 12px; } .zr-status-ribbon-links a:first-child { display: none; } }

/* Base */
.zr-home-2026 { background: #FFFFFF; color: var(--text); font-family: var(--font-sans); line-height: 1.55; }
.zr-home-2026 ::selection { background: var(--primary); color: #FFFFFF; }
.zrh-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.zrh-mono { font-family: var(--font-mono); }
.zrh-kicker { font-family: var(--font-mono); font-size: 12px; color: var(--primary-dark); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 10px; display: inline-flex; align-items: center; gap: 8px; }
.zrh-kicker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.hover-lift { transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s, box-shadow .22s; }
.hover-lift:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--primary) 35%, transparent); }

/* Hero */
.zrh-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.zrh-hero-bg { position: absolute; inset: 0; background: linear-gradient(180deg, #F0F5FF 0%, #FFFFFF 100%); }
.zrh-hero-grid { position: absolute; inset: 0; opacity: 0.5; background-image: linear-gradient(color-mix(in srgb, var(--primary) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--primary) 6%, transparent) 1px, transparent 1px); background-size: 60px 60px; -webkit-mask-image: radial-gradient(ellipse at center top, rgba(0,0,0,0.9) 0%, transparent 65%); mask-image: radial-gradient(ellipse at center top, rgba(0,0,0,0.9) 0%, transparent 65%); }
.zrh-hero-badges { position: absolute; inset: 0; pointer-events: none; }
.zrh-badge-float { position: absolute; padding: 10px 14px; background: #FFFFFF; border: 1px solid #DBE7FF; border-radius: 10px; font-family: var(--font-mono); font-size: 12px; box-shadow: 0 12px 32px -12px color-mix(in srgb, var(--primary) 20%, transparent); display: flex; align-items: center; gap: 10px; }
.zrh-badge-1 { top: 140px; left: max(16px, calc(50% - 640px)); animation: zrh-float 6s ease-in-out infinite; }
.zrh-badge-2 { top: 260px; right: max(16px, calc(50% - 640px)); animation: zrh-float-slow 8s ease-in-out infinite; }
.zrh-badge-3 { top: 460px; left: max(16px, calc(50% - 620px)); animation: zrh-float 7s ease-in-out infinite 1s; }
.zrh-badge-4 { top: 540px; right: max(16px, calc(50% - 620px)); animation: zrh-float-slow 9s ease-in-out infinite 2s; }
.zrh-hero-inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 88px 32px 72px; text-align: center; }
.zrh-pill-new { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; color: var(--text-secondary); font-weight: 500; margin-bottom: 28px; }
.zrh-pill-new b { padding: 2px 6px; background: #DBE7FF; color: var(--primary-dark); border-radius: 3px; font-weight: 600; font-size: 11px; }
.zr-home-2026 h1#zr-home-title { font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 1.0; letter-spacing: -0.035em; margin: 0 auto 24px; max-width: 940px; text-wrap: balance; color: var(--dyna-navy-950); }
.zr-home-2026 h1#zr-home-title span { color: var(--primary); }
.zrh-hero-lead { font-size: 19px; line-height: 1.55; color: var(--text-secondary); max-width: 640px; margin: 0 auto 40px; }

/* Search */
.zrh-search { max-width: 780px; margin: 0 auto; }
.zrh-search-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; justify-content: center; font-size: 13px; font-weight: 500; flex-wrap: wrap; }
.zrh-tab { padding: 8px 14px; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; }
.zrh-tab.is-active { background: #FFFFFF; border-color: var(--primary); color: var(--primary); font-weight: 600; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 15%, transparent); }
.zrh-search-bar { display: flex; align-items: stretch; background: #FFFFFF; border: 1px solid var(--border-hover); border-radius: 12px; padding: 6px; box-shadow: 0 8px 24px -12px rgba(15,23,42,0.12); }
.zrh-search-icon { padding: 0 16px; display: flex; align-items: center; color: var(--primary); }
.zrh-search-bar input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: var(--font-mono); font-size: 18px; padding: 14px 4px; color: var(--text); }
.zrh-search-bar input::placeholder { color: var(--muted); }
.zrh-suffix { display: flex; align-items: center; padding: 0 8px; font-family: var(--font-mono); font-size: 17px; color: var(--muted); overflow: hidden; height: 28px; }
.zrh-suffix-roll { display: flex; flex-direction: column; animation: zrh-ticker 8s infinite; }
.zrh-suffix-roll span { height: 28px; display: flex; align-items: center; white-space: nowrap; }
.zrh-search-submit { padding: 14px 30px; background: var(--primary); color: #FFFFFF; border: 0; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; margin-left: 4px; white-space: nowrap; }
.zrh-search-submit:hover { background: var(--primary-hover); }
.zrh-search-checks { display: flex; gap: 22px; margin-top: 20px; justify-content: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.zrh-search-checks span { display: inline-flex; align-items: center; gap: 6px; }
.zrh-pills-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; flex-wrap: wrap; }
.zrh-pill-badge { display: inline-flex; align-items: center; gap: 6px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 9999px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--text); transition: border-color .16s, transform .16s; }
.zrh-pill-badge:hover { border-color: var(--primary); transform: translateY(-1px); color: var(--primary); }
.zrh-pill-dom { font-family: var(--font-mono); font-weight: 700; }
.zrh-pill-free { background: var(--dyna-green-500); color: #FFFFFF; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 9999px; }
.zrh-pill-price { color: var(--primary); font-weight: 700; font-family: var(--font-mono); }
.zrh-bulk { width: 100%; max-width: 780px; margin: 0 auto; }
.zrh-bulk textarea { width: 100%; border-radius: 12px; border: 1px solid var(--border-hover); padding: 14px 16px; font-family: var(--font-mono); font-size: 14px; background: #FFFFFF; color: var(--text); resize: vertical; box-shadow: 0 8px 24px -12px rgba(15,23,42,0.12); }
.zrh-bulk button { width: 100%; margin-top: 10px; padding: 14px; background: var(--primary); color: #fff; border: 0; border-radius: 10px; font-weight: 650; font-size: 15px; cursor: pointer; }

/* Stats */
.zrh-stats { display: flex; justify-content: center; gap: 56px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.zrh-stat-num { font-weight: 800; font-size: 34px; color: var(--text); font-variant-numeric: tabular-nums; }
.zrh-stat-num.blue { color: var(--primary); }
.zrh-stat-num small { color: var(--muted); font-size: 22px; font-weight: 800; }
.zrh-stat-num small.green { color: var(--green); }
.zrh-stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Infrastructure sponsors. Rendered only when an admin has entered any, so
   there is no placeholder state to design -- an empty list is no section. */
.zrh-sponsors { max-width: 1280px; margin: 0 auto; padding: 36px 32px; display: flex; align-items: center; justify-content: center; gap: 16px 44px; flex-wrap: wrap; }
.zrh-sponsors__title { margin: 0; color: var(--muted); font: 700 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.zrh-sponsors__list { display: flex; align-items: center; justify-content: center; gap: 14px 36px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; max-width: 100%; }
.zrh-sponsors__mark { display: inline-block; padding: 4px 0; color: var(--text); font-weight: 750; font-size: 17px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
a.zrh-sponsors__mark:hover { color: var(--primary); }
a.zrh-sponsors__mark:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* Section shell */
.zrh-section { max-width: 1280px; margin: 0 auto; padding: 88px 32px; }
.zrh-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface2); }
.zrh-band-dark { background: var(--dyna-navy-950); color: var(--line); }
.zrh-head-center { text-align: center; margin: 0 auto 48px; }
.zrh-head-center h2 { font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin: 0 0 12px; color: var(--text); }
.zrh-head-center p { color: var(--muted); font-size: 16px; margin: 0 auto; max-width: 640px; }
.zrh-head-split { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 40px; flex-wrap: wrap; }
.zrh-head-split h2 { font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin: 0; max-width: 700px; color: var(--dyna-navy-950); line-height: 1.05; }
.zrh-link { color: var(--primary-dark); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* Ticker marquee */
.zrh-ticker { background: var(--dyna-navy-950); overflow: hidden; padding: 20px 0; }
.zrh-ticker-track { display: flex; width: max-content; animation: zrh-marquee 40s linear infinite; gap: 48px; }
.zrh-ticker-item { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; color: var(--dyna-navy-muted); white-space: nowrap; }
.zrh-ticker-item i { width: 6px; height: 6px; border-radius: 50%; background: var(--dyna-green-500); }
.zrh-ticker-item .dom { color: #F5F8FF; }
.zrh-ticker-item .reg { color: var(--dyna-blue-500); }
.zrh-ticker-item .sep { color: rgba(255, 255, 255, 0.12); margin-left: 20px; }

/* Namespaces grid */
.zrh-ns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.zrh-ns-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-height: 220px; text-align: left; }
.zrh-ns-top { display: flex; align-items: center; justify-content: space-between; }
.zrh-ns-tag { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 4px; letter-spacing: 0.03em; }
.zrh-ns-prov { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.zrh-ns-tld { font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--dyna-navy-950); }
.zrh-ns-blurb { flex: 1; font-size: 13px; color: var(--muted); line-height: 1.55; }
.zrh-ns-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--surface3); }
.zrh-ns-price { font-weight: 800; font-size: 24px; color: var(--dyna-navy-950); }
.zrh-ns-price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.zrh-ns-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.zrh-ns-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: zrh-pulse 2s infinite; }
.zrh-ns-empty { grid-column: 1 / -1; text-align: center; padding: 48px 24px; border: 1px dashed var(--border-hover); border-radius: 12px; color: var(--muted); }
.zrh-ns-empty strong { display: block; color: var(--dyna-navy-950); font-size: 16px; margin-bottom: 6px; }

/* TLD marketplace marquee */
.zrh-mkt-row { overflow: hidden; margin-bottom: 12px; }
.zrh-mkt-track { display: flex; width: max-content; gap: 12px; }
.zrh-mkt-track.r1 { animation: zrh-marquee 30s linear infinite; }
.zrh-mkt-track.r2 { animation: zrh-marquee-r 35s linear infinite; }
.zrh-mkt-item { flex-shrink: 0; min-width: 190px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.zrh-mkt-item .ext { font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--dyna-navy-950); }
.zrh-mkt-item .price { font-size: 14px; font-weight: 700; color: var(--primary-dark); }

/* Platform features */
.zrh-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.zrh-feat-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 28px; text-align: left; }
.zrh-feat-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #EBF1FE 0%, #DBE7FF 100%); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 12%, transparent); }
.zrh-feat-card h3 { font-weight: 700; font-size: 18px; margin: 0 0 8px; color: var(--dyna-navy-950); }
.zrh-feat-card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

/* Propagation radar */
.zrh-radar-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.zrh-radar-grid h2 { font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin: 0 0 20px; line-height: 1.05; color: #FFFFFF; }
.zrh-radar-grid .lead { color: var(--dyna-navy-muted); font-size: 16px; line-height: 1.6; margin: 0 0 24px; }
.zrh-rec-types { display: flex; gap: 8px; flex-wrap: wrap; }
.zrh-rec { padding: 6px 12px; border-radius: 6px; font-family: var(--font-mono); font-size: 12px; background: rgba(255,255,255,0.06); color: var(--dyna-navy-muted); }
.zrh-rec.hl { background: color-mix(in srgb, var(--dyna-blue-500) 15%, transparent); color: var(--dyna-blue-500); }
.zrh-radar-panel { background: var(--dyna-navy-900); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); }
.zrh-radar-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); font-family: var(--font-mono); font-size: 12px; color: var(--dyna-navy-muted); }
.zrh-radar-head .ok { margin-left: auto; color: var(--dyna-green-500); }
.zrh-radar-row { display: grid; grid-template-columns: 24px 1fr 140px 100px; align-items: center; gap: 16px; padding: 11px 18px; font-family: var(--font-mono); font-size: 13px; }
.zrh-radar-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dyna-green-500); box-shadow: 0 0 8px var(--dyna-green-500); }
.zrh-radar-row .city { color: #F5F8FF; }
.zrh-radar-row .ip { color: var(--dyna-navy-muted); font-size: 12px; }
.zrh-radar-row .bar-wrap { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
/* A <progress>, so the fill needs no inline width (the value was PHP-interpolated). */
.zrh-radar-row .bar { display: block; width: 40px; height: 4px; border: 0; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,0.08); -webkit-appearance: none; appearance: none; }
.zrh-radar-row .bar::-webkit-progress-bar { background: rgba(255,255,255,0.08); border-radius: 2px; }
.zrh-radar-row .bar::-webkit-progress-value { background: linear-gradient(90deg, var(--dyna-green-500), var(--dyna-blue-500)); border-radius: 2px; }
.zrh-radar-row .bar::-moz-progress-bar { background: linear-gradient(90deg, var(--dyna-green-500), var(--dyna-blue-500)); border-radius: 2px; }
.zrh-radar-row .ms { color: var(--dyna-green-500); }

/* Deployment plans */
.zrh-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.zrh-plan { border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 22px; position: relative; overflow: hidden; text-align: left; border: 2px solid var(--line); background: #FFFFFF; color: var(--dyna-navy-950); }
.zrh-plan.dark { background: var(--dyna-navy-950); border-color: var(--primary); color: #FFFFFF; }
.zrh-plan-flag { position: absolute; top: -13px; left: 32px; padding: 5px 12px; background: var(--primary); color: #FFFFFF; font-family: var(--font-mono); font-size: 11px; font-weight: 600; border-radius: 4px; }
.zrh-plan-tier { font-family: var(--font-mono); font-size: 12px; font-weight: 600; margin-bottom: 8px; color: var(--muted); }
.zrh-plan.dark .zrh-plan-tier { color: var(--dyna-blue-500); }
.zrh-plan-name { font-weight: 800; font-size: 28px; margin-bottom: 8px; }
.zrh-plan-blurb { font-size: 14px; line-height: 1.5; color: var(--muted); }
.zrh-plan.dark .zrh-plan-blurb { color: var(--dyna-navy-muted); }
.zrh-plan-price { display: flex; align-items: baseline; gap: 8px; }
.zrh-plan-price b { font-weight: 800; font-size: 56px; letter-spacing: -0.03em; }
.zrh-plan-price span { color: var(--muted); font-size: 14px; }
.zrh-plan.dark .zrh-plan-price span { color: var(--dyna-navy-muted); }
.zrh-plan-feats { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--surface3); }
.zrh-plan.dark .zrh-plan-feats { border-top-color: rgba(255,255,255,0.1); }
.zrh-plan-feat { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.zrh-plan-feat svg { flex-shrink: 0; margin-top: 2px; }
.zrh-plan-cta { text-align: center; padding: 14px; border-radius: 10px; font-weight: 700; margin-top: auto; background: var(--surface3); color: var(--text); }
.zrh-plan-cta:hover { color: var(--text); }
.zrh-plan.dark .zrh-plan-cta { background: var(--primary); color: #FFFFFF; }
.zrh-plan.dark .zrh-plan-cta:hover { color: #FFFFFF; background: var(--primary-hover); }

/* Ship-it CTA */
.zrh-ship { max-width: 1280px; margin: 0 auto; padding: 32px 32px 88px; }
.zrh-ship-inner { background: linear-gradient(135deg, var(--primary) 0%, var(--dyna-navy-950) 100%); border-radius: 20px; padding: 64px 56px; position: relative; overflow: hidden; color: #FFFFFF; }
.zrh-ship-glow { position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(96,165,250,0.25) 0%, transparent 70%); border-radius: 50%; }
.zrh-ship-grid-bg { position: absolute; inset: 0; opacity: 0.15; background-image: linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px); background-size: 50px 50px; }
.zrh-ship-cols { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.zrh-ship-cols h2 { font-weight: 800; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.025em; margin: 0 0 20px; line-height: 1.02; color: #fff; }
.zrh-ship-cols .lead { color: #BFDBFE; font-size: 17px; line-height: 1.55; margin: 0 0 32px; }
.zrh-ship-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.zrh-btn-white { padding: 14px 26px; background: #FFFFFF; color: var(--primary-dark); border-radius: 10px; font-weight: 700; box-shadow: 0 12px 32px -8px rgba(0,0,0,0.3); }
.zrh-btn-white:hover { color: var(--primary-dark); transform: translateY(-2px); }
.zrh-btn-ghost { padding: 14px 26px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #FFFFFF; border-radius: 10px; font-weight: 600; }
.zrh-btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.18); }
.zrh-term { background: rgba(10,37,64,0.85); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); }
.zrh-term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(0,0,0,0.3); border-bottom: 1px solid rgba(255,255,255,0.05); }
.zrh-term-bar i { width: 12px; height: 12px; border-radius: 50%; }
.zrh-term-bar .path { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--dyna-navy-muted); }
.zrh-term-body { padding: 22px 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: var(--dyna-navy-muted); }
.zrh-term-body .p { color: var(--dyna-blue-500); }
.zrh-term-body .c { color: var(--dyna-navy-muted); }
.zrh-term-body .g { color: var(--dyna-green-500); }
.zrh-term-body .y { color: #FFB020; }
.zrh-caret { display: inline-block; width: 8px; height: 16px; background: var(--green); margin-left: 4px; vertical-align: middle; animation: zrh-caret 1s step-end infinite; }

/* Results (search) */
.zrh-results { max-width: 1280px; margin: 0 auto; padding: 48px 32px 0; }
.zrh-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.zrh-results-head h2 { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; margin: 0; color: var(--dyna-navy-950); }
.zrh-results-head h2 code { color: var(--primary); font-family: var(--font-mono); }
.zrh-count-pill { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); background: var(--surface3); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.zrh-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.zrh-res-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.zrh-res-card.taken { opacity: 0.75; }
.zrh-res-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zrh-res-state { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 4px; letter-spacing: 0.03em; }
.zrh-res-state.ok { background: #DCFCE7; color: #166534; }
.zrh-res-state.no { background: #FEE2E2; color: #991B1B; }
/* The third availability state. A name the registry holds back is not a name
   somebody owns, so it reads as a warning rather than a rejection: amber, the
   CLAUDE.md role for special notices, not the red used for TAKEN. */
.zrh-res-state.hold { background: var(--warning); color: var(--warning-text); }
.zrh-res-card.is-reserved { opacity: 0.9; border-color: color-mix(in srgb, var(--amber) 34%, var(--line)); }
.zrh-res-price--na { color: var(--muted); font-weight: 600; font-size: 13px; }
.zrh-res-inc { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.zrh-res-dom { font-family: var(--font-mono); font-size: 19px; font-weight: 600; color: var(--dyna-navy-950); word-break: break-all; }
.zrh-res-desc { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; }
.zrh-res-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--surface3); }
.zrh-res-price b { font-weight: 800; font-size: 22px; color: var(--dyna-navy-950); }
.zrh-res-price small { font-size: 12px; color: var(--muted); }
.zrh-reserve-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--primary); color: #fff; border: 0; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.zrh-reserve-btn:hover { background: var(--primary-hover); }
.zrh-reserve-dis { padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); background: var(--surface2); font-weight: 600; font-size: 13px; }
.zrh-alert { max-width: 1280px; margin: 24px auto 0; padding: 0 32px; }
.zrh-alert-inner { background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; padding: 16px 20px; border-radius: 12px; font-weight: 600; display: flex; align-items: center; gap: 10px; }

/* Responsive */
@media (max-width: 1280px) { .zrh-hero-badges { display: none; } }
@media (max-width: 980px) {
  .zrh-radar-grid { grid-template-columns: 1fr; gap: 34px; }
  .zrh-feat-grid, .zrh-plan-grid { grid-template-columns: 1fr; }
  .zrh-ship-cols { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  .zrh-wrap, .zrh-section, .zrh-hero-inner, .zrh-results, .zrh-ship, .zrh-alert { padding-left: 20px; padding-right: 20px; }
  .zrh-hero-inner { padding-top: 56px; padding-bottom: 52px; }
  .zrh-section { padding-top: 60px; padding-bottom: 60px; }
  .zrh-stats { gap: 28px 40px; margin-top: 48px; }
  .zrh-search-bar { flex-wrap: wrap; }
  .zrh-search-bar input { flex-basis: 60%; }
  .zrh-search-submit { width: 100%; margin: 6px 0 0; }
  .zrh-ship-inner { padding: 40px 26px; }
  .zrh-feat-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Phase 3 — sub-400px responsiveness layer
   Viewport resilience, stacked data tables, form/checkout stacking,
   mobile omnibox, builder tabs and bottom-nav fit.
   ========================================================================== */

/* 1. Viewport & container resilience -------------------------------------- */
html, body { max-width: 100vw; }

.container, .container-wide, .content, .card, .tablewrap, .zr-table-container,
.zr-home-shell, .zr-app-content, .pageh, .kpi-grid, .kpi-card, .split, .form {
    box-sizing: border-box;
    max-width: 100%;
}

img, svg, video, canvas, iframe { max-width: 100%; }
pre, code, .mono { overflow-wrap: anywhere; }

/* 2. Data tables ----------------------------------------------------------- */
.zr-table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

/* Scroll-shadow cues that fade out at each end (no JavaScript required). */
.tablewrap, .zr-table-container {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background-image:
        linear-gradient(to right, var(--surface), transparent 24px),
        linear-gradient(to left, var(--surface), transparent 24px),
        radial-gradient(farthest-side at 0 50%, rgba(10, 10, 10, 0.10), transparent),
        radial-gradient(farthest-side at 100% 50%, rgba(10, 10, 10, 0.10), transparent);
    background-position: left center, right center, left center, right center;
    background-size: 28px 100%, 28px 100%, 12px 100%, 12px 100%;
    background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll;
}

@media (max-width: 520px) {
    /* Stacked card view: each row becomes a self-contained label/value card. */
    .tablewrap:has(> .zr-stack), .zr-table-container:has(> .zr-stack) {
        overflow-x: visible;
        border: 0;
        border-radius: 0;
        background: none;
    }

    .zr-stack, .zr-stack tbody, .zr-stack tr, .zr-stack td { display: block; width: 100%; }

    .zr-stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .zr-stack tr {
        margin-bottom: 10px;
        border: 1px solid var(--line);
        border-radius: var(--r-sm);
        background: var(--surface);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }

    .zr-stack tr:hover td { background: transparent; }

    .zr-stack td {
        display: grid;
        grid-template-columns: minmax(84px, 38%) 1fr;
        gap: 12px;
        align-items: start;
        padding: 10px 14px !important;
        border-bottom: 1px solid var(--line-light);
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    .zr-stack tr td:last-child { border-bottom: 0; }

    .zr-stack td[data-label]::before {
        content: attr(data-label);
        padding-top: 2px;
        color: var(--muted);
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .zr-stack td[colspan] { display: block; text-align: center !important; }
    /* Full width AND a 44px tap target: `.btn.small` (34px) and `.btn.zr-btn-xs`
       (28px) are both (0,2,0) and lose to this (0,2,1) selector, so every row
       action in a stacked card clears CLAUDE.md section 3 on a phone. */
    .zr-stack td .btn { width: 100%; min-height: 44px; }
    .zr-stack td form { display: block !important; width: 100%; margin-top: 6px; }
}

/* 3. Forms, checkout and tap targets --------------------------------------- */
@media (max-width: 480px) {
    .form, .form-grid, .grid-2, .field-row, .zr-form-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 520px) {
    .zr-checkout-grid form .btn,
    .zr-checkout-grid form button[type="submit"],
    .btn.large, .btn.block {
        width: 100%;
        min-height: 48px;
    }

    .pageh .row { flex-wrap: wrap; gap: 8px; }
    .pageh .row > .btn, .pageh .row > form, .pageh .row > form > .btn { width: 100%; }
}

/* 4. Search omnibox --------------------------------------------------------- */
@media (max-width: 640px) {
    .zrh-search-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
    .zrh-search-icon { display: none; }
    /* 16px keeps iOS from zooming the viewport on focus. */
    .zrh-search-bar input { width: 100%; padding: 12px 6px; font-size: 16px; }
    .zrh-suffix { height: auto; padding: 6px 0; justify-content: center; border-top: 1px solid var(--line); }
    .zrh-search-submit { width: 100%; margin-left: 0; min-height: 48px; }
    .zrh-search-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }

    .zr-search-bar { flex-wrap: wrap; }
    .zr-search-symbol { display: none; }
    .zr-search-bar input { flex: 1 1 100%; font-size: 16px; }
    .zr-search-bar .btn { width: 100%; }
}

/* 5. Website builder studio — tabbed panes on mobile/tablet ------------------ */
.zr-builder-tabs { display: none; }

/* 1080px, not 768px, so this agrees with where .builder-grid stops being three
   columns. While the grid collapsed at 1080 and the tabs only appeared at 768,
   769-1080 got three full-width panes stacked with no way to switch between
   them -- and the two flanking panes still position: sticky. Nobody saw it
   because an inline grid-template-columns on the element kept the grid at
   three columns everywhere, so neither breakpoint ever did anything. */
@media (max-width: 1080px) {
    .zr-builder-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        position: sticky;
        top: 62px;
        z-index: 20;
        margin-bottom: 16px;
        padding: 5px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--surface2);
    }

    .zr-builder-tab {
        min-height: 44px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--muted);
        font-size: 12.5px;
        font-weight: 750;
    }

    .zr-builder-tab[aria-selected="true"] {
        background: var(--surface);
        color: var(--primary);
        box-shadow: var(--shadow-sm);
    }

    /* The panes' sticky positioning is dropped while they are tabbed. The
       !important dates from when position: sticky was an inline style here;
       it is now a class, so normal cascade order would do -- kept because
       .card.zr-builder-aside is (0,2,0) and this selector is (0,2,0) too. */
    .builder-grid > .zr-builder-pane { display: none; position: static !important; top: auto !important; }
    .builder-grid[data-active-pane="sections"] > [data-builder-pane="sections"],
    .builder-grid[data-active-pane="canvas"] > [data-builder-pane="canvas"],
    .builder-grid[data-active-pane="settings"] > [data-builder-pane="settings"] { display: block; }
}

/* 6. Top bar and bottom navigation ------------------------------------------ */
@media (max-width: 768px) {
    .zr-appbar-kicker, .zr-appbar-context .muted { display: none; }
    /* Hide the "Search" label but keep the glyph span that wraps the icon. */
    .zr-command-trigger span:not(.zr-search-glyph) { display: none; }
    .zr-command-trigger kbd { display: none !important; }
    .zr-command-trigger { width: 38px !important; padding: 0 !important; justify-content: center !important; }
}

@media (max-width: 560px) {
    .zr-appbar-action { display: none; }
}

@media (max-width: 400px) {
    nav.bottom a, .mobile-bottom-nav a { min-width: 0; padding: 6px 2px; font-size: 9.5px; }
    nav.bottom a span, .mobile-bottom-nav a span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .appbar, .zr-appbar { gap: 6px; padding: 0 10px !important; }
}
/* Stacked-table column labels — kept in CSS so the templates need no data-* markup. */
@media (max-width: 520px) {
    .zr-stack td::before {
        padding-top: 2px;
        color: var(--muted);
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .zr-stack--domains td:nth-child(1)::before { content: 'Domain'; }
    .zr-stack--domains td:nth-child(2)::before { content: 'Status'; }
    .zr-stack--domains td:nth-child(3)::before { content: 'Expires'; }
    .zr-stack--domains td:nth-child(4)::before { content: 'Website'; }
    .zr-stack--domains td:nth-child(5)::before { content: 'Actions'; }

    .zr-stack--orders td:nth-child(1)::before { content: 'Order'; }
    .zr-stack--orders td:nth-child(2)::before { content: 'Amount'; }
    .zr-stack--orders td:nth-child(3)::before { content: 'Status'; }
    .zr-stack--orders td:nth-child(4)::before { content: 'Placed'; }

    .zr-stack--invoices td:nth-child(1)::before { content: 'Invoice'; }
    .zr-stack--invoices td:nth-child(2)::before { content: 'Order'; }
    .zr-stack--invoices td:nth-child(3)::before { content: 'Amount'; }
    .zr-stack--invoices td:nth-child(4)::before { content: 'Status'; }
    .zr-stack--invoices td:nth-child(5)::before { content: 'Issued'; }
    .zr-stack--invoices td:nth-child(6)::before { content: 'Details'; }

    .zr-stack--customers td:nth-child(1)::before { content: 'Name'; }
    .zr-stack--customers td:nth-child(2)::before { content: 'Email'; }
    .zr-stack--customers td:nth-child(3)::before { content: 'Role'; }
    .zr-stack--customers td:nth-child(4)::before { content: 'Joined'; }
    .zr-stack--customers td:nth-child(5)::before { content: 'Status'; }
    .zr-stack--customers td:nth-child(6)::before { content: 'Actions'; }

    .zr-stack--admin-orders td:nth-child(1)::before { content: 'Order'; }
    .zr-stack--admin-orders td:nth-child(2)::before { content: 'Customer'; }
    .zr-stack--admin-orders td:nth-child(3)::before { content: 'Amount'; }
    .zr-stack--admin-orders td:nth-child(4)::before { content: 'Status'; }
    .zr-stack--admin-orders td:nth-child(5)::before { content: 'Date'; }
    .zr-stack--admin-orders td:nth-child(6)::before { content: 'Actions'; }

    .zr-stack--admin-payments td:nth-child(1)::before { content: 'Tx ID'; }
    .zr-stack--admin-payments td:nth-child(2)::before { content: 'Invoice'; }
    .zr-stack--admin-payments td:nth-child(3)::before { content: 'Amount'; }
    .zr-stack--admin-payments td:nth-child(4)::before { content: 'Gateway'; }
    .zr-stack--admin-payments td:nth-child(5)::before { content: 'Status'; }
    .zr-stack--admin-payments td:nth-child(6)::before { content: 'Actions'; }

    .zr-stack--webhooks td:nth-child(1)::before { content: 'Provider'; }
    .zr-stack--webhooks td:nth-child(2)::before { content: 'Event ID'; }
    .zr-stack--webhooks td:nth-child(3)::before { content: 'Event type'; }
    .zr-stack--webhooks td:nth-child(4)::before { content: 'Status'; }
    .zr-stack--webhooks td:nth-child(5)::before { content: 'Timestamp'; }

    .zr-stack--dns td:nth-child(1)::before { content: 'Type'; }
    .zr-stack--dns td:nth-child(2)::before { content: 'Host'; }
    .zr-stack--dns td:nth-child(3)::before { content: 'Value'; }
    .zr-stack--dns td:nth-child(4)::before { content: 'TTL'; }
    .zr-stack--dns td:nth-child(5)::before { content: 'Status'; }
    .zr-stack--dns td:nth-child(6)::before { content: 'Action'; }

    .zr-stack--ds td:nth-child(1)::before { content: 'Key tag'; }
    .zr-stack--ds td:nth-child(2)::before { content: 'Algorithm'; }
    .zr-stack--ds td:nth-child(3)::before { content: 'Digest type'; }
    .zr-stack--ds td:nth-child(4)::before { content: 'Digest'; }
    .zr-stack--ds td:nth-child(5)::before { content: 'Action'; }

    /* The parent-domains table used a positional modifier here, mapping six
       column names onto td:nth-child(1..6). It now uses the generic
       `data-label` mechanism above like every other stacked table, so a column
       can be added or reordered without silently mislabelling the cells after
       it -- which is exactly what happened when the Registration column was
       added. Do not reintroduce a positional modifier. */

    /* Empty-state rows span every column and must not show a label. */
    .zr-stack td[colspan]::before { content: none !important; }
}

/* ========================================================================== */
/* PHASE 4 — Portfolio board, DNS Zone Studio, currency matrix                */
/* ========================================================================== */

/* Filtering primitive shared by the portfolio board and the pricing matrix.  */
.is-filtered-out {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Filter bar + segmented status pills                                        */
/* -------------------------------------------------------------------------- */
.zr-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.zr-filterbar__search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 260px;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface2);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.zr-filterbar__search:focus-within {
  border-color: var(--primary);
  box-shadow: var(--zr-focus-ring);
}

.zr-filterbar__search svg {
  flex: none;
  color: var(--muted);
}

.zr-filterbar__search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  outline: none;
}

.zr-segment {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface2);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.zr-segment::-webkit-scrollbar {
  display: none;
}

.zr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.zr-pill:hover {
  background: var(--surface);
  color: var(--text);
}

.zr-pill:focus-visible {
  outline: none;
  box-shadow: var(--zr-focus-ring);
}

.zr-pill:active {
  transform: translateY(1px);
}

.zr-pill.is-active {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.zr-pill[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.zr-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.zr-pill--ok .zr-pill__dot { background: var(--green, #10b981); }
.zr-pill--warn .zr-pill__dot { background: var(--amber, #f59e0b); }
.zr-pill--danger .zr-pill__dot { background: #ef4444; }

.zr-pill__count {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.zr-pill.is-active .zr-pill__count {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}

/* -------------------------------------------------------------------------- */
/* Expiry urgency indicator                                                   */
/* -------------------------------------------------------------------------- */
.zr-exp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.zr-exp::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.zr-exp--safe {
  color: var(--green, #10b981);
  background: color-mix(in srgb, var(--green, #10b981) 10%, transparent);
  border-color: color-mix(in srgb, var(--green, #10b981) 26%, transparent);
}

.zr-exp--warn {
  color: var(--amber, #b45309);
  background: color-mix(in srgb, var(--amber, #f59e0b) 12%, transparent);
  border-color: color-mix(in srgb, var(--amber, #f59e0b) 30%, transparent);
}

.zr-exp--danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.zr-exp-date {
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* -------------------------------------------------------------------------- */
/* Row quick actions                                                          */
/* -------------------------------------------------------------------------- */
.zr-quick-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.zr-qa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-secondary, var(--muted));
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.zr-qa:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  color: var(--primary);
  background: var(--surface2);
}

.zr-qa:focus-visible {
  outline: none;
  box-shadow: var(--zr-focus-ring);
}

.zr-qa:active {
  transform: translateY(1px);
}

.zr-qa svg {
  flex: none;
}

.zr-qa--primary {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.zr-qa--on {
  border-color: color-mix(in srgb, var(--green, #10b981) 40%, var(--line));
  color: var(--green, #10b981);
  background: color-mix(in srgb, var(--green, #10b981) 10%, transparent);
}

.zr-qa--on:hover {
  color: var(--green, #10b981);
  border-color: color-mix(in srgb, var(--green, #10b981) 55%, var(--line));
}

/* -------------------------------------------------------------------------- */
/* DNS Zone Studio — presets, record form, RFC notices                        */
/* -------------------------------------------------------------------------- */
.zr-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.zr-preset {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.zr-preset:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  background: var(--surface2);
}

.zr-preset:focus-visible {
  outline: none;
  box-shadow: var(--zr-focus-ring);
}

.zr-preset:active {
  transform: translateY(1px);
}

.zr-preset.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.zr-preset__name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.zr-preset__type {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}

.zr-preset__desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.45;
}

.zr-dns-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}

.zr-dns-form .zr-dns-form__value {
  grid-column: span 2;
}

.zr-dns-form .field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* The flex display above would otherwise defeat the hidden attribute used to
   show the priority field only for MX/SRV records. */
.zr-dns-form .field[hidden] {
  display: none !important;
}

.zr-dns-form label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.zr-dns-form input,
.zr-dns-form select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input-bg, var(--surface2));
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.zr-dns-form input:focus,
.zr-dns-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--zr-focus-ring);
}

.zr-dns-notices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.zr-dns-notices[hidden] {
  display: none;
}

.zr-dns-notice {
  margin: 0;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.zr-dns-notice--error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.28);
}

.zr-dns-notice--warn {
  color: var(--amber, #b45309);
  background: color-mix(in srgb, var(--amber, #f59e0b) 10%, transparent);
  border-color: color-mix(in srgb, var(--amber, #f59e0b) 28%, transparent);
}

.zr-copy {
  flex: none;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.zr-copy:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}

.zr-copy:focus-visible {
  outline: none;
  box-shadow: var(--zr-focus-ring);
}

.zr-copy.btn-copied,
.btn-copied {
  color: var(--green, #10b981) !important;
  border-color: color-mix(in srgb, var(--green, #10b981) 45%, var(--line)) !important;
  background: color-mix(in srgb, var(--green, #10b981) 12%, transparent) !important;
}

.zr-record-value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.zr-record-value code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  word-break: break-all;
}

/* -------------------------------------------------------------------------- */
/* Currency switcher + price matrix                                           */
/* -------------------------------------------------------------------------- */
.zr-currency,
.zr-select-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.zr-currency label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.zr-currency select,
.zr-select-field select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.zr-currency select:hover,
.zr-select-field select:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
}

.zr-currency select:focus-visible,
.zr-select-field select:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--zr-focus-ring);
}

.zr-price {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.zr-price--lead {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.zr-price--muted {
  font-size: 14px;
  font-weight: 650;
  color: var(--text-secondary, var(--muted));
}

/* -------------------------------------------------------------------------- */
/* Phase 4 responsive behaviour                                               */
/* -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .zr-dns-form {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 620px) {
  .zr-filterbar {
    padding: 12px;
    gap: 10px;
  }

  .zr-filterbar__search {
    flex-basis: 100%;
  }

  .zr-segment {
    width: 100%;
    justify-content: flex-start;
  }

  .zr-preset-grid {
    grid-template-columns: 1fr;
  }

  .zr-dns-form {
    grid-template-columns: 1fr;
  }

  .zr-dns-form .zr-dns-form__value {
    grid-column: span 1;
  }

  .zr-quick-actions {
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }

  /* Overrides the stacked-table rule that turns inline forms into blocks, so a
     single-button form keeps its place in the action row. */
  .zr-quick-actions form {
    flex: 1 1 calc(50% - 3px);
    display: flex !important;
    width: auto;
    margin: 0 !important;
  }

  .zr-quick-actions form .zr-qa {
    flex: 1 1 auto;
  }

  .zr-qa {
    flex: 1 1 calc(50% - 3px);
    justify-content: center;
    height: 36px;
  }

  .zr-currency {
    width: 100%;
    justify-content: space-between;
  }
}

/* The global 44px control floor (see the touch-target block above) keeps mobile
   tap areas honest, but it over-inflates these dense desktop controls. Above the
   touch breakpoint, let them keep their designed height; below it they inherit
   the 44px floor again. */
@media (min-width: 769px) {
  .zr-qa,
  .zr-pill,
  .zr-copy,
  .zr-preset,
  .zr-currency select,
  .zr-select-field select {
    min-height: 0;
  }
}

/* Give the stacked action cell the full card width instead of the 38%/1fr
   label split, so the quick actions can sit two-up. */
@media (max-width: 520px) {
  .zr-stack td:has(.zr-quick-actions),
  .zr-stack td:has(.zr-record-value) {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .zr-stack td .zr-quick-actions {
    width: 100%;
  }
}

/* ========================================================================== */
/* PHASE 5 — Delegated actions, submit feedback, and the PJAX router          */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Pending state for any control that submits or fetches                      */
/* -------------------------------------------------------------------------- */
.zr-spinner {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: zrSpin 0.6s linear infinite;
}

@keyframes zrSpin {
  to { transform: rotate(360deg); }
}

[aria-busy="true"] {
  cursor: progress;
}

/* A disabled submitter still has to read as the button it was, so the opacity
   floor is gentler than the generic [disabled] treatment. */
button[aria-busy="true"][disabled],
input[aria-busy="true"][disabled] {
  opacity: 0.78;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .zr-spinner {
    animation-duration: 1.6s;
  }
}

/* -------------------------------------------------------------------------- */
/* Router progress indicator                                                  */
/* -------------------------------------------------------------------------- */
.zr-pjax-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  width: 100%;
  height: 2px;
  background: var(--primary, var(--primary));
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Creep towards 90% while the response is in flight, then snap closed. Only
   transform and opacity animate, so the bar never triggers layout. */
.zr-pjax-bar.is-loading {
  opacity: 1;
  animation: zrPjaxCreep 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.zr-pjax-bar.is-done {
  opacity: 0;
  transform: scaleX(1);
  transition: transform 0.16s ease-out, opacity 0.24s ease-out 0.12s;
  animation: none;
}

@keyframes zrPjaxCreep {
  0% { transform: scaleX(0); }
  60% { transform: scaleX(0.7); }
  100% { transform: scaleX(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .zr-pjax-bar.is-loading {
    animation: none;
    transform: scaleX(0.9);
  }
}

/* -------------------------------------------------------------------------- */
/* View Transitions — cross-fade the swapped content only                     */
/* -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: zrViewOut 90ms cubic-bezier(0.4, 0, 1, 1) both;
  }

  ::view-transition-new(root) {
    animation: zrViewIn 150ms cubic-bezier(0, 0, 0.2, 1) both;
  }
}

@keyframes zrViewOut {
  to { opacity: 0; }
}

@keyframes zrViewIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------------- */
/* Command palette — roving keyboard selection                                */
/* -------------------------------------------------------------------------- */
.zr-command-item.is-selected {
  background: var(--surface2);
  color: var(--blue);
  box-shadow: inset 2px 0 0 var(--primary, var(--primary));
}

/* -------------------------------------------------------------------------- */
/* Marketing banner modal                                                     */
/* Was an inline style block plus inline display toggling in main.php.        */
/* -------------------------------------------------------------------------- */
.zr-marketing-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(6px);
}

.zr-marketing-modal[hidden] {
  display: none;
}

.zr-marketing-modal__body {
  position: relative;
  width: 100%;
  max-width: 860px;
  animation: zrModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.zr-marketing-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.zr-marketing-modal__close:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border-hover, var(--line));
}

.zr-marketing-modal__close:focus-visible {
  outline: none;
  box-shadow: var(--zr-focus-ring);
}

.zr-marketing-modal__close:active {
  transform: translateY(1px);
}

@keyframes zrModalPop {
  0% { opacity: 0; transform: scale(0.92) translateY(14px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .zr-marketing-modal__body {
    animation: none;
  }
}

@media (max-width: 768px) {
  .zr-banner-split {
    flex-direction: column !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Website Builder Studio — preview viewport switcher                         */
/* The width now lives here rather than in a JS-written inline style.         */
/* -------------------------------------------------------------------------- */
[data-preview-frame] {
  margin: 0 auto;
  max-width: 100%;
  transition: max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-preview-frame][data-preview-mode='tablet'] {
  max-width: 768px;
}

[data-preview-frame][data-preview-mode='mobile'] {
  max-width: 375px;
}

@media (prefers-reduced-motion: reduce) {
  [data-preview-frame] {
    transition: none;
  }
}

/* -------------------------------------------------------------------------- */
/* DNS propagation radar node cards                                           */
/* Shared by the server-rendered grid and the cards the radar action builds.  */
/* -------------------------------------------------------------------------- */
.zr-node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.zr-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface2);
}

.zr-node__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.zr-node__flag {
  flex: none;
  font-size: 20px;
  line-height: 1;
}

.zr-node__city {
  display: block;
  color: var(--text);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.zr-node__resolver {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.zr-node__metrics {
  flex: none;
  text-align: right;
}

.zr-node__status {
  font-size: 10.5px;
  padding: 2px 8px;
}

.zr-node__latency {
  margin-top: 3px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 380px) {
  .zr-node {
    flex-direction: column;
    align-items: flex-start;
  }

  .zr-node__metrics {
    text-align: left;
  }
}

/* -------------------------------------------------------------------------- */
/* Reseller calculator + hosting cycle toggle                                 */
/* -------------------------------------------------------------------------- */
.zr-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  width: 44px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface2);
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.zr-switch input {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.zr-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.zr-switch:has(input:checked) {
  background: var(--primary, var(--primary));
  border-color: var(--primary, var(--primary));
}

.zr-switch:has(input:checked) .zr-switch__thumb {
  transform: translateX(20px);
}

.zr-switch:has(input:focus-visible) {
  outline: none;
  box-shadow: var(--zr-focus-ring);
}

@media (prefers-reduced-motion: reduce) {
  .zr-switch,
  .zr-switch__thumb {
    transition: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Admin — live HTML preview panel                                            */
/* -------------------------------------------------------------------------- */
[data-html-preview][hidden] {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* FAQ accordion — lifted out of faq.php's inline <style> block               */
/* -------------------------------------------------------------------------- */
details.zr-faq-item summary::-webkit-details-marker {
  display: none;
}

details.zr-faq-item[open] {
  border-color: var(--blue);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 8%, transparent);
}

details.zr-faq-item[open] .zr-faq-chevron {
  transform: rotate(180deg);
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}

/* The shared category-pill delegation toggles `active`; the FAQ chips used to
   carry a bespoke `active-chip` class of their own. */
.chip.active,
.chip[aria-pressed='true'] {
  background: var(--primary);
  border-color: var(--blue);
  color: #ffffff;
}

.chip {
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.chip:hover {
  border-color: var(--border-hover, var(--line));
  color: var(--text);
}

.chip.active:hover,
.chip[aria-pressed='true']:hover {
  color: #ffffff;
}

.chip:focus-visible {
  outline: none;
  box-shadow: var(--zr-focus-ring);
}

.chip:active {
  transform: translateY(1px);
}

/* -------------------------------------------------------------------------- */
/* Search — single / bulk panes                                               */
/* Replaces the display:none the template used to print inline.               */
/* -------------------------------------------------------------------------- */
[data-search-scope][data-search-mode='single'] [data-search-pane='bulk'],
[data-search-scope][data-search-mode='tld'] [data-search-pane='bulk'],
[data-search-scope][data-search-mode='bulk'] [data-search-pane='single'] {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Password strength meter — the level drives the colour, not a JS style      */
/* -------------------------------------------------------------------------- */
.zr-strength {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  transition: color 0.12s ease;
}

.zr-strength[data-strength-level='2'] {
  color: var(--warning-text, #9a6700);
}

.zr-strength[data-strength-level='3'],
.zr-strength[data-strength-level='4'] {
  color: var(--success-text, #087443);
}

/* -------------------------------------------------------------------------- */
/* Icon-bearing action buttons                                                */
/* -------------------------------------------------------------------------- */
.zr-radar-refresh,
.zr-copy-link,
.zr-preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.zr-radar-refresh__icon,
.zr-copy-link > span:first-child,
.zr-preview-toggle > span:first-child {
  display: inline-flex;
  align-items: center;
}

/* Inline reveal buttons: the eye sitting inside a password field, and the
   compact variant used by the .env credential rows. */
.zr-reveal {
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.12s ease, color 0.12s ease;
}

.zr-reveal:hover {
  background: var(--surface2);
  color: var(--text);
}

.zr-reveal:focus-visible {
  outline: none;
  box-shadow: var(--zr-focus-ring);
}

.zr-reveal-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* Profile — WHOIS scope note                                                 */
/* -------------------------------------------------------------------------- */
[data-whois-scope] {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ========================================================================== */
/* PHASE 7 — Inline-style extraction: shared primitives + auth screens        */
/*                                                                            */
/* These rules replace `style="…"` attributes that were re-declaring, element  */
/* by element, what a component class should own. Where the base element rule  */
/* (`label`, `input`, `.card`, `.table`) already said the same thing, the      */
/* attribute was deleted outright rather than translated.                     */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Shared primitives used well beyond the auth screens                        */
/* -------------------------------------------------------------------------- */

/* Inline text link inside prose and footers. Was repeated as
   `color: var(--blue); font-weight: 600; text-decoration: none;`. */
.zr-textlink {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  transition: color 0.12s ease;
}

.zr-textlink:hover {
  color: var(--primary-hover, var(--blue));
  text-decoration: underline;
}

.zr-textlink:focus-visible {
  outline: none;
  box-shadow: var(--zr-focus-ring);
}

/* A labelled horizontal rule ("or with email"). The two filler <div>s the
   markup used to carry are now the rule's own pseudo-elements. */
.zr-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}

.zr-rule::before,
.zr-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.zr-rule > span {
  flex: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Inline feedback banner. Replaces several hand-rolled rgba() blocks and uses
   the semantic tokens instead of hardcoded hex literals. */
.zr-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.zr-notice svg {
  flex: none;
}

.zr-notice--error {
  border-color: var(--danger-border, rgba(239, 68, 68, 0.3));
  background: var(--danger);
  color: var(--danger-text);
}

.zr-notice--success {
  border-color: var(--success-border, rgba(16, 185, 129, 0.3));
  background: var(--success);
  color: var(--success-text);
}

.zr-notice--info {
  border-color: var(--line);
  background: var(--info, var(--surface2));
  color: var(--info-text, var(--text));
}

.zr-notice--warn {
  border-color: var(--warning-border, rgba(245, 158, 11, 0.3));
  background: var(--warning);
  color: var(--warning-text);
}

/* -------------------------------------------------------------------------- */
/* Authentication screens (login, register, forgot/reset, 2FA)                */
/* -------------------------------------------------------------------------- */
.zr-auth-card {
  max-width: 440px;
  margin: 40px auto 60px;
}

.zr-auth-head {
  margin-bottom: 28px;
  text-align: center;
}

/* The brand mark is 32px in the topbar; the auth screens show it larger. */
.zr-auth-head .mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  font-size: 24px;
}

.zr-auth-title {
  margin: 0 0 6px;
  color: var(--heading-color);
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.zr-auth-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Auth inputs are taller than the dense in-app default. */
.zr-auth-card input[type='text'],
.zr-auth-card input[type='email'],
.zr-auth-card input[type='password'],
.zr-auth-card input[type='number'] {
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
}

/* The reveal button overlaps the field, so that one input needs the room. */
.zr-auth-card .zr-input-affix input {
  padding-right: 48px;
}

.zr-input-affix {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
}

.zr-auth-form {
  gap: 18px;
}

/* The old markup put margin-bottom:6px on each label on top of .field's 6px
   gap, so label-to-control was really 12px. Scoped to direct children so it
   cannot out-specify the form's own 18px gap (the form is itself a .field).
   Whether 6px or 12px is right here is a design call, not an extraction one. */
.zr-auth-form > .field {
  gap: 12px;
}

.zr-auth-submit {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
}

.zr-auth-foot {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.zr-auth-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
}

/* Helper text under a control. Distinct from .zr-strength, which is a live
   readout rather than static guidance. */
.zr-field-hint {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* A checkbox with a wrapping label beside it (consent, opt-ins). */
.zr-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}

.zr-check input[type='checkbox'] {
  flex: none;
  width: auto;
  margin-top: 3px;
  accent-color: var(--blue);
}

/* The registration card carries one more field than the others. */
.zr-auth-card--wide {
  max-width: 460px;
}

.zr-auth-card--wide .mark {
  width: 56px;
  height: 56px;
}

/* One-time-code field: wide tracking and tabular mono so six digits read as
   six discrete characters rather than a word. */
/* Tag-qualified: at (0,1,0) this lost `font-size` to the grouped base input
   rule (0,1,1), so both 6-digit fields rendered at 13.5px, not 1.6rem. */
input.zr-otp-input {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.6em;
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/* OAuth provider buttons                                                     */
/* -------------------------------------------------------------------------- */
.zr-oauth-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.zr-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.zr-oauth-btn svg {
  flex: none;
}

/* ========================================================================== */
/* PHASE 7 — Inline-style extraction: shell chrome (layouts/)                 */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Shared primitives                                                          */
/* -------------------------------------------------------------------------- */

/* A form that exists only to POST a single control (logout, quick actions).
   It should not introduce a line box or spacing of its own. */
.zr-inline-form {
  display: inline;
  margin: 0;
}

/* A button that must read as the text around it — used where a link would be
   wrong because the action needs a POST. */
.zr-linkbutton {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.zr-linkbutton:focus-visible {
  outline: none;
  box-shadow: var(--zr-focus-ring);
  border-radius: 3px;
}

/* Square identity chip in the topbar. */
.zr-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.zr-avatar--admin {
  background: var(--purple-light);
  color: var(--purple);
}

/* -------------------------------------------------------------------------- */
/* Sidebar shell (customer + admin)                                           */
/* -------------------------------------------------------------------------- */

/* Pushes the sign-out block to the bottom of the rail. The two layouts used
   20px and 18px; unified to 20px. */
.zr-side-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Spacing between grouped nav sections. The layouts used 12px and 14px;
   unified to 14px. */
.zr-nav-group {
  margin-top: 14px;
}

.zr-signout {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--red);
  text-align: left;
  cursor: pointer;
}

.zr-signout:focus-visible {
  outline: none;
  box-shadow: var(--zr-focus-ring);
}

/* -------------------------------------------------------------------------- */
/* Currency switcher                                                          */
/* -------------------------------------------------------------------------- */
/* `.zr-top-actions` narrows the `.row` gap to 8px, but the markup had been
   overriding it to 10px inline. Preserved at the rendered value. */
.row.zr-top-actions {
  gap: 10px;
}

.zr-currency-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.zr-currency-selector select {
  width: auto;
  height: 32px;
  min-height: 0;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* Admin impersonation bar                                                    */
/* -------------------------------------------------------------------------- */
.zr-impersonation-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: #ef4444;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.zr-impersonation-bar__who {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zr-impersonation-bar__icon {
  font-size: 16px;
}

.zr-impersonation-bar__stop {
  padding: 4px 14px;
  border: none;
  border-radius: 6px;
  background: #ffffff;
  color: #991b1b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.zr-impersonation-bar__stop:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}

/* -------------------------------------------------------------------------- */
/* Admin topbar search                                                        */
/* -------------------------------------------------------------------------- */
.zr-admin-search {
  width: 220px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 13px;
  outline: none;
}

/* -------------------------------------------------------------------------- */
/* Public announcement strip                                                  */
/* -------------------------------------------------------------------------- */
.zr-top-broadcast {
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

.zr-top-broadcast__badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zr-top-broadcast a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Public mobile menu                                                         */
/* -------------------------------------------------------------------------- */
/* Out-specifies `.zr-mobile-menu nav` (0,1,1), which lays the links out as a
   4-column grid with a 4px gap. The markup had been overriding that inline to a
   padded single column; that is what shipped, so that is what is preserved. */
.zr-mobile-menu > .zr-mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

/* The base .zr-mobile-menu-actions rule lays the buttons out as a 2-up grid;
   the markup had been overriding that inline with a 16px-padded column. This
   modifier preserves what actually shipped. The two intents conflict and should
   be reconciled deliberately — see REDESIGN_HANDOFF.md section 7b. */
.zr-mobile-menu-actions--stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

/* The base rule centres these buttons with justify-content, which handles the
   flex line but not the text box; the markup had been setting text-align too. */
.zr-mobile-menu-actions .btn {
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Public footer                                                              */
/* -------------------------------------------------------------------------- */

/* Beats the base `.zr-footer-brand p` rule, which sets different values. */
.zr-footer-brand .zr-footer-tagline {
  max-width: 320px;
  /* 14px bottom comes from the base `.zr-footer-brand p` rule; the inline style
     this replaced only set margin-top, so zeroing the bottom was a regression. */
  margin: 14px 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* The brand column's status pill reuses the existing .zr-footer-status
   component (dot span + bare text, as app_footer.php already does) instead of
   the hand-rolled inline copy that hardcoded #047857 / #ecfdf5 over it. */
.zr-footer-brand .zr-footer-status {
  margin-top: 18px;
}

/* Scoped to out-specify `.footer strong` (0,1,1), which already provides this
   treatment at 12px / 0.08em. The markup shipped 13px / 0.06em inline, so that
   is preserved here; the two should be reconciled deliberately. */
.footer .zr-foot-heading {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zr-foot-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.zr-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 768px) {
  .zr-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .zr-foot-legal {
    gap: 8px 14px;
  }
}

/* ========================================================================== */
/* PHASE 7 — Inline-style extraction: shared primitives + developer portal    */
/*                                                                            */
/* The primitives here are the highest-frequency patterns in the whole audit,  */
/* so they are named for what they mean rather than what they set, and are     */
/* intended to be reused by the remaining directories.                        */
/* ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Stacked page sections                                                      */
/* `margin-bottom: 24px` was the single most repeated declaration in the audit */
/* (77 occurrences), almost always a block in a vertically stacked page. A     */
/* component should not own its external margin, so this names the role.      */
/* -------------------------------------------------------------------------- */
.zr-section {
  margin-bottom: 24px;
}

.zr-section--tight {
  margin-bottom: 16px;
}

/* -------------------------------------------------------------------------- */
/* Panel headings and their supporting line                                   */
/* -------------------------------------------------------------------------- */

/* A panel's own heading, distinct from the page h1. Repeated ~45x as
   `font-size: 16px` / `17px` with margin:0 on an h3. */
.zr-panel-title {
  margin: 0;
  font-size: 16px;
}

.zr-panel-title--lg,
.paneltitle .zr-panel-title--lg {
  font-size: 17px;
  font-family: var(--font-display);
}

/* A panel title standing alone above content keeps the section gap. */
.zr-panel-title.zr-section--tight {
  margin-bottom: 16px;
}

/* The muted line directly under a heading. Repeated 25x as `margin-top: 2px`
   on a `p.muted.small`, plus several 3px variants. */
.zr-subtext {
  margin-top: 2px;
}

/* -------------------------------------------------------------------------- */
/* Inline code                                                                */
/* The design system specifies JetBrains Mono for code (master prompt 2.1) but */
/* no `code` rule existed, so 42 of 75 <code> elements were falling back to    */
/* the browser's default monospace. Setting only the family here: the accent   */
/* weight+colour that 15 of them carried is opt-in via .zr-ident, so those 42  */
/* do not silently change colour.                                             */
/* -------------------------------------------------------------------------- */
code {
  font-family: var(--font-mono);
}

/* An identifier rendered as code — a domain, an API path, a header name. */
.zr-ident {
  color: var(--blue);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* A small boxed value: a version tag, a method, an event name. */
.zr-chip-meta {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface2);
  font-size: 11px;
}

/* -------------------------------------------------------------------------- */
/* Empty states                                                               */
/* Repeated as `text-align: center; color: var(--muted); padding: 24px` and a  */
/* 20px variant across many tables.                                           */
/* -------------------------------------------------------------------------- */
.zr-empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

/* `.table td` sets its own padding and colour at equal specificity (0,1,1) and
   wins on source order, so an empty-state cell has to out-rank it. The inline
   style this replaced beat every selector, which is what hid the problem. */
.table td.zr-empty {
  padding: 24px;
  color: var(--muted);
}

/* -------------------------------------------------------------------------- */
/* Single-line truncation                                                      */
/* -------------------------------------------------------------------------- */
.zr-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zr-truncate--220 {
  max-width: 220px;
}

/* -------------------------------------------------------------------------- */
/* Inline form row: fields on one line, button aligned to their baseline       */
/* -------------------------------------------------------------------------- */
.zr-form-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

/* The field that should absorb the remaining width, without collapsing below
   a readable size when the row wraps. */
.zr-form-row__grow {
  flex: 1;
  min-width: 240px;
}

/* A form laid out as a column of .field groups with roomier spacing than
   the 6px inside a single field; sits under a panel intro paragraph. */
.zr-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

/* A label rendered above its control rather than inside a .field flex column. */
.zr-label-block {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* A comfortably padded control, taller than the dense in-app default. */
/* input.* variant so the base input[type="text"] rule (0,1,1) cannot win. */
.zr-input-lg,
input.zr-input-lg {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
}

/* -------------------------------------------------------------------------- */
/* Developer portal                                                           */
/* -------------------------------------------------------------------------- */

/* .zr-code-box carries margin:16px 0 for prose flow; inside an API example tab
   panel it is the only child and should sit flush. */
.zr-tab-panel > .zr-code-box {
  margin: 0;
}

.zr-api-blurb {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.zr-btn-block {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* The signed-header reference list. */
.zr-api-list {
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.2;
}

/* -------------------------------------------------------------------------- */
/* Small spacing roles referenced by the conversions above                    */
/* -------------------------------------------------------------------------- */

/* .eyebrow is an inline-flex chip, so the gap below it belongs to the layout. */
.zr-eyebrow-gap {
  margin-bottom: 8px;
}

/* A panel header that sits closer to its content than the 18px default. */
.zr-paneltitle--tight {
  margin-bottom: 16px;
}

/* The explanatory line inside an .empty-state, between its heading and CTA. */
.zr-empty-state-note {
  margin: 8px 0 14px;
}

/* ========================================================================== */
/* System Update screen                                                       */
/* ========================================================================== */

/* Installed -> integrity -> target, laid out as a pipeline that collapses to a
   column on narrow screens rather than overflowing. */
.zr-update-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.zr-update-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 150px;
  text-align: center;
}

.zr-update-stage__label {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.zr-update-stage__value {
  font-size: 15px;
}

.zr-update-arrow {
  flex: none;
  width: 48px;
  height: 1px;
  background: var(--line);
}

@media (max-width: 720px) {
  .zr-update-arrow {
    width: 1px;
    height: 20px;
  }
}

/* Definition-list style key/value block used by the source panel. */
.zr-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 16px;
  font-size: 13px;
}

@media (max-width: 480px) {
  .zr-kv {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
}

/* Release notes and update transcripts: preformatted, scrollable, never a
   source of horizontal page overflow. */
.zr-release-notes {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.zr-update-log summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.zr-update-log summary:hover {
  color: var(--text);
}

.zr-update-log[open] summary {
  margin-bottom: 8px;
}

/* -------------------------------------------------------------------------- */
/* Workspace page head — the flex head five templates carried inline          */
/* -------------------------------------------------------------------------- */
.zr-pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.zr-pagehead__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.zr-pagehead h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
}

.zr-pagehead .sub {
  margin-top: 4px;
  font-size: 14.5px;
}

/* Emphatic notice: the bolder, roomier variant used for form results. */
.zr-notice--strong {
  margin-bottom: 24px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
}

.zr-notice__icon {
  display: inline-flex;
  flex-shrink: 0;
}

/* Two-column workspace layout with a wider primary column; single column below 768px. */
.zr-split-wide {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}

.zr-split-wide > * {
  min-width: 0;
}

.zr-section--loose {
  margin-bottom: 30px;
}

.zr-section--snug {
  margin-bottom: 20px;
}

/* Roomier card used for primary workspace panels. */
.zr-card-lg {
  border-radius: 16px;
  padding: 28px;
}

.zr-card-lg--muted {
  background: var(--surface2);
}

/* Panel title with a hairline rule beneath it. */
.zr-paneltitle--ruled {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

/* Monospace input for codes and hostnames; pairs with .zr-input-lg. Written
   as input.* so it outranks the (0,1,1) input[type="text"] base rule. */
input.zr-input-mono {
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
  font-family: var(--font-mono);
  font-size: 14px;
}

/* Full-width primary submit under a form. */
.zr-submit-lg {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 750;
}

/* Numbered step list */
.zr-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}

.zr-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.zr-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 11px;
  font-weight: 800;
}

.zr-empty--roomy {
  padding: 36px;
}

.zr-ident--md {
  font-size: 14.5px;
}

@media (max-width: 768px) {
  .zr-split-wide {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Affiliate referral banner                                                  */
/* -------------------------------------------------------------------------- */
.zr-referral-banner {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--blue);
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 9%, transparent), color-mix(in srgb, var(--green) 6%, transparent));
}

.zr-referral-banner__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.zr-referral-banner__label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zr-referral-banner__label--accent {
  color: var(--blue);
}

/* Referral URL + copy button. The input used to be a fixed clamp(260px, 40vw,
   480px) beside the button, which ran to 418px at a 320px viewport; it now
   grows to the same 480px ceiling and wraps under the button when there is no
   room. */
.zr-ref-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

input.zr-ref-link__input {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 480px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.zr-referral-code {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.kpi-value--positive {
  color: var(--green);
}

.zr-amount-positive {
  color: var(--green);
  font-weight: 750;
}

/* Wider column on the right instead of the left. */
.zr-split-wide--flip {
  grid-template-columns: 1fr 1.35fr;
}

.zr-section--compact {
  margin-bottom: 14px;
}

.zr-section--snug-sm {
  margin-bottom: 18px;
}

/* -------------------------------------------------------------------------- */
/* Printable invoice document (customer/invoice_detail.php)                   */
/* -------------------------------------------------------------------------- */
/* Written with the parent so it outranks `.zr-pagehead h1` (0,1,1). */
.zr-pagehead h1.zr-pagehead__title--sm {
  font-size: 26px;
}

/* Two buttons side by side; they wrap rather than run past a 320px viewport. */
.zr-pagehead__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.zr-invoice {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 36px;
  border-radius: 16px;
  background: var(--surface);
}

.zr-invoice__stamp {
  position: absolute;
  top: 50px;
  right: 80px;
  padding: 6px 24px;
  border: 4px solid var(--green);
  border-radius: 12px;
  color: var(--green);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: rotate(-12deg);
  opacity: 0.28;
  pointer-events: none;
}

.zr-invoice__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--line);
}

.zr-invoice__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.zr-invoice__wordmark {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.zr-invoice__meta {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.zr-invoice__doc {
  text-align: right;
}

.zr-invoice__doc-title {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}

.zr-invoice__doc-no {
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.zr-invoice__doc-date {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.zr-invoice__doc-status {
  margin-top: 8px;
}

.zr-invoice__parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.zr-invoice__parties > * {
  min-width: 0;
}

.zr-invoice__box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface2);
}

.zr-invoice__box-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.zr-invoice__box-label--spaced {
  margin-bottom: 8px;
}

.zr-invoice__box-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
}

.zr-invoice__box-line {
  color: var(--text);
  font-size: 13.5px;
}

.zr-invoice__box-line + .zr-invoice__box-line,
.zr-invoice__box-gap {
  margin-top: 4px;
}

.zr-invoice__amount {
  text-align: right;
}

.table td.zr-invoice__amount--cell {
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
}

.zr-invoice__summary-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 32px;
}

/* The totals box was a fixed 320px, which alone overflowed a 320px viewport
   inside the 36px card padding. */
.zr-invoice__summary {
  width: min(320px, 100%);
}

.zr-invoice__summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.zr-invoice__summary-row strong {
  color: var(--text);
}

.zr-invoice__summary-row--last {
  margin-bottom: 10px;
}

.zr-invoice__summary-row--total {
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 2px solid var(--line);
  font-size: 17px;
}

.zr-invoice__total-label {
  color: var(--text);
  font-weight: 800;
}

.zr-invoice__summary-row strong.zr-invoice__total {
  color: var(--green);
  font-size: 19px;
}

.zr-invoice__receipt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.zr-invoice__txn {
  color: var(--blue);
}

.zr-invoice__foot {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.zr-ident--lg {
  font-size: 15px;
}

@media (max-width: 640px) {
  .zr-invoice {
    padding: 20px;
  }

  .zr-invoice__parties {
    grid-template-columns: 1fr;
  }

  .zr-invoice__stamp {
    top: 24px;
    right: 16px;
    font-size: 28px;
  }
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .no-print, .zr-top-broadcast, .top, .side, .side-overlay, .footer, .mobile-bottom-nav {
    display: none !important;
  }

  .zr-invoice {
    padding: 0 !important;
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
  }

  .zr-invoice .card, .zr-invoice .tablewrap, .zr-invoice table, .zr-invoice tr, .zr-invoice td, .zr-invoice th, .zr-invoice__box {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #d6e2f5 !important;
  }

  .zr-invoice__stamp {
    opacity: 0.7 !important;
    color: #0b7a47 !important;
    border-color: #0b7a47 !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Workspace forms and settings panels (customer/profile.php)                */
/* -------------------------------------------------------------------------- */
.pageh h1.zr-pageh-title--fluid {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
}

.pageh .sub,
.zr-pagehead .sub {
  font-size: 14.5px;
}

.zr-notice--rule {
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

/* Small stat cards in an auto-fit grid (min(240px, 100%) so a single card
   never exceeds a 320px viewport). */
.zr-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card.zr-stat-card {
  padding: 18px;
  border-radius: 14px;
  background: var(--surface2);
}

.zr-stat-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.zr-stat-card__label {
  font-weight: 700;
  text-transform: uppercase;
}

.zr-stat-card__value {
  color: var(--text);
  font-size: 14.5px;
}

.zr-stat-card__note {
  margin: 4px 0 0;
  font-size: 11.5px;
}

a.tag {
  text-decoration: none;
}

/* Main-plus-sidebar workspace layout (2:1). */
.split.zr-split-main {
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Vertical stacks of cards or controls.

   Named .zr-vstack, NOT .zr-stack: `.zr-stack` was already taken by the
   responsive table-stacking component above (the one the .zr-stack--orders /
   --invoices / --dns label rules belong to). While this rule was called
   .zr-stack it applied unconditionally, at every viewport, to the seven
   `<table class="table zr-stack zr-stack--*">` elements -- so /orders,
   /invoices, /subdomains, /dns and the two admin catalogs rendered their
   tables as a 24px-gapped flex column with no aligned columns at all. */
.zr-vstack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.zr-vstack--tight {
  gap: 20px;
}

.zr-vstack--snug {
  gap: 10px;
}

.zr-vstack--xs {
  gap: 8px;
}

.zr-vstack > .tag {
  align-self: flex-start;
}

.zr-paneltitle--ruled-tight {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* .form is the two-column field grid; variants for tighter gaps and three columns. */
.form.zr-form--tight {
  gap: 14px;
}

.form.zr-form--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* A titled sub-section inside a form, separated by a hairline. */
.zr-form-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.zr-form-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.zr-form-section__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15.5px;
}

.zr-form-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface2);
}

.zr-same-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.zr-same-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.zr-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

input.zr-input-ro-mono {
  height: 38px;
  background: var(--surface2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.btn.block {
  width: 100%;
  justify-content: center;
}

.card.zr-card-danger {
  border: 1px dashed color-mix(in srgb, var(--red) 30%, transparent);
}

.zr-card-danger__title {
  margin: 0 0 6px;
  color: var(--danger-text);
  font-size: 15px;
}

.btn.zr-btn-danger-outline {
  color: var(--danger-text);
  border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
}

@media (max-width: 768px) {
  .split.zr-split-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form.zr-form--3 {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Workspace dashboard (customer/dashboard.php)                              */
/* -------------------------------------------------------------------------- */
/* Inline icon wrapper inside buttons, headings and KPI heads. */
.zr-icon {
  display: inline-flex;
}

.zr-icon--primary { color: var(--primary); }
.zr-icon--green { color: var(--green); }
.zr-icon--blue { color: var(--blue); }
.zr-icon--amber { color: var(--amber); }

/* Shared header row of a banner card: lead on the left, actions on the right. */
.zr-banner-row,
.zr-referral-banner__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.card.zr-community-banner {
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 6%, transparent) 0%, color-mix(in srgb, var(--amber) 5%, transparent) 100%);
}

.zr-community-banner__lead {
  display: flex;
  align-items: center;
  gap: 14px;
}

.zr-community-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
}

.zr-community-banner__title {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
}

.zr-community-banner__text {
  margin: 2px 0 0;
  font-size: 13px;
}

.zr-community-banner__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* KPI grid that packs as many 220px cards as fit (one column at 320px). */
.kpis.zr-kpis--fluid {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.card.zr-progress-card {
  margin-bottom: 24px;
  padding: 20px 24px;
  border-left: 4px solid var(--blue);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
}

.zr-progress-card__row {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.zr-progress-card__body {
  flex: 1;
  min-width: min(260px, 100%);
}

.zr-progress-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.zr-progress-card__text {
  margin: 0;
  font-size: 13.5px;
}

/* A real <progress> instead of a width:N% inline bar. */
.zr-progress {
  display: block;
  width: 100%;
  max-width: 400px;
  height: 6px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
  -webkit-appearance: none;
  appearance: none;
}

.zr-progress::-webkit-progress-bar {
  background: var(--line);
  border-radius: 999px;
}

.zr-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--primary), var(--amber));
  border-radius: 999px;
}

.zr-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--amber));
  border-radius: 999px;
}

.zr-section-top {
  margin-top: 24px;
}

.zr-vstack--sm {
  gap: 12px;
}

.zr-row--tight {
  gap: 8px;
}

/* A subdomain entitlement row on the dashboard. */
.zr-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface2);
  transition: border-color 0.2s ease;
}

.zr-sub-row__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zr-sub-row__name {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15.5px;
}

.zr-sub-row__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  font-size: 12.5px;
}

.zr-sub-row__val {
  color: var(--text);
}

.zr-quick-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Qualified with .slink because `.slink span` / `.slink strong` set their own sizes. */
.slink .zr-quick-link__title {
  display: block;
  color: var(--text);
  font-size: 13.5px;
}

.slink .zr-quick-link__hint {
  font-size: 11.5px;
}

.empty-icon--svg {
  display: flex;
  justify-content: center;
}

/* Right-aligned numeric column. */
.zr-col-num {
  text-align: right;
}

.zr-amount {
  color: var(--text);
  font-family: var(--font-mono);
  /* Currency columns line up only with tabular figures (CLAUDE.md 2). */
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

/* -------------------------------------------------------------------------- */
/* Subdomain service detail (customer/service_detail.php)                   */
/* -------------------------------------------------------------------------- */
.zr-pagehead h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.zr-pagehead__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.zr-notice--error.zr-notice--rule {
  border-left-color: var(--danger);
}

.zr-panel-title.zr-section--snug {
  margin-bottom: 20px;
}

/* Key/value rows inside an overview card. */
.zr-fact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}

.zr-fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zr-fact--ruled {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.zr-fact__key {
  color: var(--muted);
}

.zr-fact__val--mono {
  font-family: var(--font-mono);
}

.zr-fact__val--heading {
  color: var(--heading-color);
}

.zr-fact__val--accent {
  color: var(--blue);
}

.zr-fact__link {
  color: var(--blue);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
}

.zr-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* On/off state words (auto-renew, publish status). */
.zr-state--on { color: var(--green); }
.zr-state--off { color: var(--muted); }

.btn.zr-btn-xs {
  min-height: 28px;
  padding: 2px 8px;
  font-size: 0.75rem;
}

.btn.zr-btn-sm {
  height: 40px;
  padding: 0 20px;
}

.btn.zr-btn-danger-text {
  color: var(--danger-text);
}

/* Form row variants: a wider gap, and fixed-width fields that keep their
   size while the grow field absorbs the rest. Wraps below the row's width. */
.zr-form-row--gap-md {
  gap: 14px;
}

.zr-form-row__fixed {
  flex: 0 1 180px;
  min-width: 0;
}

.zr-form-box--sm {
  padding: 18px;
  border-radius: 12px;
}

.zr-form-box__title {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 750;
}

/* Input with a fixed suffix (alias@domain). */
input.zr-input-affix__input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
}

.zr-input-affix__suffix {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  border-radius: 0 8px 8px 0;
  background: var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

input.zr-input-sm {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

/* Auto-fit field grid (parking form). */
.form.zr-form--fluid {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.zr-form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* A checkbox that reads as a bold switch label rather than a consent line. */
.zr-check.zr-check--switch {
  align-items: center;
  margin-top: 0;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.zr-check--switch input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.zr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* -------------------------------------------------------------------------- */
/* Commercial & marketing admin (admin/commercial.php)                        */
/* -------------------------------------------------------------------------- */

/* The two field rows here were inline grids -- `2fr 1fr 1fr 120px` and
   `180px 2fr 1.5fr 150px auto auto`. Neither could ever respond to a media
   query, and the second was the single worst overflow in the app (854px of
   content at a 320px viewport, and the only route still failing at 768px).
   auto-fit with a min() floor collapses on its own; the 768px rule states the
   single-column intent explicitly rather than leaving it to the track maths. */
.zr-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  align-items: flex-end;
}

.zr-admin-form-grid--spaced {
  margin-bottom: 18px;
}

.zr-admin-form-grid--tight {
  gap: 14px;
}

@media (max-width: 768px) {
  .zr-admin-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin field labels run a notch lighter than the 800 of the base `label`
   rule. 36 copies across the four admin screens carried it inline. */
.zr-field-label {
  font-weight: 750;
}

/* A .field whose control is a checkbox: no stacked label, so it aligns to the
   baseline of the inputs beside it instead of the top of the row. */
.field.zr-field-check {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 2px;
}

.field.zr-field--spaced {
  margin-bottom: 18px;
}

/* An inline checkbox with its caption, sitting in a field row beside text
   inputs. Deliberately NOT .zr-check: that one is the muted, sentence-case
   consent line used on the auth screens, and swapping to it here would have
   restyled every admin toggle from the uppercase treatment the base `label`
   rule gives them. Only the box metrics and the flex line are set, so the
   inherited case, tracking and colour survive. */
.zr-check-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.zr-check-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

/* A label with its own controls on the right (a preview toggle, a reset). */
.zr-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.zr-btn-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Helper text on the left, the submit on the right; both wrap onto their own
   line before either is clipped. */
.zr-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Written as textarea.* for the same reason as input.zr-input-mono: to sit
   above the base control rule without depending on source order. */
textarea.zr-code-editor {
  padding: 14px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* The sandbox the admin's raw banner HTML is rendered into. Dashed, recessed
   and clearly not part of the form's own chrome. */
.zr-preview-panel {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--surface2);
}

.zr-preview-panel__label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.zr-preview-panel__stage {
  display: flex;
  justify-content: center;
}

/* A 44px tinted tile holding a panel's icon. */
.zr-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
}

/* The same mark set inline in a heading rather than standing in its own tile. */
.zr-panel-icon.zr-panel-icon--inline {
  width: auto;
  height: auto;
  margin-right: 6px;
  border-radius: 0;
  background: none;
  vertical-align: -2px;
}

.card.zr-card-16 {
  border-radius: 16px;
}

/* A panel the page leads with, edged in the brand colour rather than the
   neutral hairline every other card uses. */
.card.zr-card-accent {
  border-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.zr-section--wide {
  margin-bottom: 28px;
}

.tag.zr-tag-xs {
  font-size: 10px;
}

.tag.zr-tag-pad {
  padding: 6px 12px;
}

.btn.zr-btn-toggle {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
}

.btn.zr-btn-submit {
  min-height: 44px;
  padding: 0 28px;
  font-weight: 800;
}

/* -------------------------------------------------------------------------- */
/* Parent domain inventory (admin/parent_domains.php)                         */
/* -------------------------------------------------------------------------- */

/* The blue variant of the ruled notice; --rule alone is the green one. */
.zr-notice--info.zr-notice--rule {
  border-left-color: var(--blue);
}

.zr-notice--warn.zr-notice--rule {
  border-left-color: var(--amber, #f59e0b);
}

/* The WHMCS bridge status strip above the catalog. Tinted rather than plain
   so it reads as status, not as another editable panel. */
.card.zr-bridge-banner {
  padding: 20px 24px;
  border-color: color-mix(in srgb, var(--primary) 20%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 6%, transparent) 0%, color-mix(in srgb, var(--amber) 5%, transparent) 100%);
}

.zr-bridge-banner__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.zr-bridge-banner__title {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15.5px;
}

.zr-bridge-banner__sub {
  margin-top: 2px;
  font-size: 13px;
}

/* A table cell whose content belongs against the right edge -- an actions
   column. Written at (0,1,1) so it clears `.table`'s own text-align. */
.table th.zr-col-right,
.table td.zr-col-right {
  text-align: right;
}

/* Actions pushed to the end of their cell; pairs with .zr-col-right. */
.zr-btn-row--end {
  justify-content: flex-end;
}

/* A numeric value in a table cell -- a rate, a count. Mono only: the tabular
   figures master prompt 2.1 asks for would change the rendered width, so that
   is a separate, deliberate change rather than something smuggled in here. */
.zr-metric {
  font-family: var(--font-mono);
}

.zr-metric--lead {
  color: var(--text);
  font-size: 14px;
}

.tag.zr-tag-mono {
  font-family: var(--font-mono);
}

/* -------------------------------------------------------------------------- */
/* Global platform settings (admin/settings.php)                              */
/* -------------------------------------------------------------------------- */

/* A tab bar whose tabs are NAVIGATION LINKS -- each one is a full page load
   with ?tab=, and the active one is a filled .btn.primary. Deliberately not
   .zr-tabs-nav / .zr-tab-btn: that is the JS-driven underline component that
   swaps .zr-tab-panel elements in place, and the two should not be merged. */
.zr-navtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.btn.zr-navtab {
  padding: 10px 18px;
  font-weight: 750;
}

/* Settings field rows. auto-fit with a min() floor so a single column never
   exceeds a 320px viewport -- the inline versions used a bare minmax(280px,
   1fr), which is what pushed /admin/settings to 325px and the .env tab to
   348px at 320. */
.zr-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
}

.zr-settings-grid--snug {
  gap: 14px;
}

/* A wide field beside a narrow one, collapsing to a single column on mobile.
   The inline `2fr 1fr` it replaces could not. */
.zr-settings-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

@media (max-width: 768px) {
  .zr-settings-split {
    grid-template-columns: 1fr;
  }
}

/* .zr-form-section__title sets `margin: 0`, and both rules are (0,1,0), so the
   title needs the compound selector to take a bottom margin at all. */
.zr-form-section__title.zr-section--tight {
  margin-bottom: 16px;
}

/* An .env variable name: the key in mono, its human label in the body face. */
.zr-env-key {
  color: var(--blue);
  font-family: var(--font-mono);
  font-weight: 750;
}

.zr-env-key__label {
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 600;
}

/* A secret input with its reveal button alongside. */
.zr-input-reveal {
  display: flex;
  gap: 6px;
}

.zr-input-reveal > input {
  flex: 1;
  min-width: 0;
}

/* The explanatory line between a field's label row and its control. */
.zr-field-note {
  margin-bottom: 8px;
}

.zr-form-footer--spaced {
  margin-top: 24px;
}

/* -------------------------------------------------------------------------- */
/* Bulk data import & export (admin/import_export.php)                        */
/* -------------------------------------------------------------------------- */

/* A panel title whose right-hand controls should sit level with the heading
   rather than centred against a heading + subtitle block. */
.paneltitle.zr-paneltitle--top {
  align-items: flex-start;
}

/* A file picker styled as a drop target: dashed edge, same height and ground
   as the text inputs beside it. */
.zr-file-input {
  width: 100%;
  height: 44px;
  padding: 6px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--input-bg);
}

/* An export row inside a .zr-form-box: a labelled description on the left, its
   download button on the right, wrapping before either is squeezed. */
.zr-form-box.zr-export-tile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* The description column takes the slack on a wide card, so the button stays
   beside it exactly as the inline layout had it. The 140px floor is what makes
   flex-wrap useful rather than decorative: below that the button drops to its
   own line and the description gets the full width, instead of being squeezed
   to a 48px ribbon the way it is at 320px without it. */
.zr-export-tile__body {
  flex: 1 1 140px;
  min-width: 140px;
}

.zr-export-tile__title {
  display: block;
  color: var(--text);
  font-size: 14.5px;
}

/* -------------------------------------------------------------------------- */
/* Cloud hosting page (public/hosting.php)                                    */
/* -------------------------------------------------------------------------- */

/* This class was in the markup with no rule behind it -- one of the six the
   markup guard has been reporting. The padding it needed was sitting in an
   inline style on the same element. */
.zr-hosting-page {
  padding: 40px 0 80px;
}

.zr-hosting-hero .eyebrow {
  margin-bottom: 16px;
}

.zr-hosting-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.5vw, 48px);
}

.zr-hosting-hero .lead {
  max-width: 680px;
  margin: 0 auto;
}

/* The two words either side of the billing switch. NOTE: these are static.
   app.js writes data-billing-cycle on the wrapper and swaps the prices, but no
   rule reads that attribute, so the highlight does not follow the toggle. That
   is pre-existing behaviour, preserved here rather than quietly changed. */
.zr-billing-label {
  color: var(--text);
}

.zr-billing-label--on {
  color: var(--blue);
  font-weight: 800;
}

.zr-billing-save {
  margin-left: 6px;
}

.zr-hosting-card__kicker {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zr-hosting-card__kicker--accent {
  color: var(--blue);
}

.zr-hosting-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.zr-hosting-card__blurb {
  margin-bottom: 20px;
  line-height: 1.5;
}

.zr-hosting-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.zr-hosting-price__amount {
  color: var(--text);
  font-size: 36px;
  font-weight: 900;
}

/* The checkmarks carried stroke="#10b981" on all eighteen SVGs -- Tailwind's
   emerald-500, not a palette colour. CLAUDE.md section 2 assigns
   --dyna-green-500 to active checkmarks, which is what --green resolves to. A
   CSS rule beats a presentation attribute, and the attributes are gone anyway. */
.zr-feature-checklist svg {
  flex: none;
  stroke: var(--green);
}

/* Technical infrastructure panel. */
.zr-infra-panel {
  margin-bottom: 60px;
  padding: 48px 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.zr-infra-panel h2 {
  margin-bottom: 36px;
  font-size: 26px;
  text-align: center;
}

.zr-infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 32px;
}

.zr-infra-item__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 16px;
}

.zr-infra-item__title--blue { color: var(--blue); }
.zr-infra-item__title--emerald { color: var(--emerald); }
.zr-infra-item__title--primary { color: var(--primary); }
.zr-infra-item__title--amber { color: var(--amber); }

.zr-infra-item p {
  line-height: 1.6;
}

.zr-faq-teaser {
  text-align: center;
}

.zr-faq-teaser h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.zr-faq-teaser p {
  margin-bottom: 20px;
}

/* The tier grid had the same un-collapsible floor as the infra grid: a bare
   minmax(280px, 1fr) cannot fit a 320px viewport once the page padding is
   taken out. */
.zr-hosting-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

/* The infra panel's 36px side padding is most of a phone's width. */
@media (max-width: 520px) {
  .zr-infra-panel {
    padding: 32px 20px;
  }

  .zr-infra-grid {
    gap: 24px;
  }
}

/* -------------------------------------------------------------------------- */
/* Website builder studio (customer/builder_editor.php)                       */
/* -------------------------------------------------------------------------- */

/* THE bug on this route. Grid items default to min-width: auto, so the canvas
   column took its min-content width -- 366px -- and held the whole grid open
   inside a 288px container at 320px. .split, .g2, .g3 and .g4 all got this
   rule in 527506b; .builder-grid was missed, and the inline grid style on the
   element hid the consequence by looking like the obvious culprit instead. */
.builder-grid > * {
  min-width: 0;
}

/* Studio header: the panel tabs on the left, publish state on the right. Wraps
   -- unwrapped it ran to 343px at a 320px viewport. */
.card.zr-studio-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 20px;
  border-radius: 14px;
}

/* A pill group sharing one recessed track -- the viewport switcher. */
.row.zr-segmented {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface2);
}

.btn.zr-btn-glow {
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 32%, transparent);
}

/* The two flanking studio columns. position: sticky is dropped below 768px by
   the tabbed-pane rules. */
.card.zr-builder-aside {
  position: sticky;
  top: 90px;
  padding: 20px;
  border-radius: 16px;
}

.zr-builder-aside__title {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zr-builder-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zr-builder-nav .slink {
  padding: 10px 12px;
  border-radius: 10px;
}

.zr-builder-nav__rule {
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Browser-mockup frame around the editor. */
.zr-preview-frame {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.zr-preview-frame__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface2);
}

.zr-preview-dots {
  display: flex;
  flex: none;
  gap: 6px;
}

.zr-preview-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

/* Were #ef4444 / #f59e0b / #10b981 inline. */
.zr-preview-dot--red { background: var(--red); }
.zr-preview-dot--amber { background: var(--amber); }
.zr-preview-dot--green { background: var(--green); }

.zr-preview-frame__url {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  max-width: 420px;
  margin-left: 12px;
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.zr-preview-frame__lock {
  display: inline-flex;
  flex: none;
  color: var(--green);
}

.zr-preview-frame__host {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zr-preview-frame__body {
  padding: 28px;
}

.zr-builder-section__title {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 15px;
}

select.zr-select-lg {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 750;
}

.zr-fact__val--ok {
  color: var(--green);
}

.zr-section--xs {
  margin-bottom: 12px;
}

.btn.zr-btn-40 {
  height: 40px;
  min-height: 40px;
  font-size: 13px;
}

/* The editor column's padding is most of a phone's width. */
@media (max-width: 520px) {
  .zr-preview-frame__body {
    padding: 18px 14px;
  }

  .zr-preview-frame__chrome {
    padding: 12px 14px;
  }
}

/* -------------------------------------------------------------------------- */
/* DNS Zone Studio (customer/dns.php)                                         */
/* -------------------------------------------------------------------------- */

/* Eyebrow and its status tag on one line above the page title. */
.zr-eyebrow-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

/* Two accents the icon set was missing. */
.zr-icon--purple { color: var(--purple); }
.zr-icon--emerald { color: var(--emerald); }

/* A KPI figure carrying a status colour rather than the default heading tone.
   Written on .metric so it clears that rule's own colour at equal weight. */
.metric.zr-kpi-value--ok {
  color: var(--green);
}

/* A panel title with a hairline under it. .paneltitle already supplies the
   flex row and the 18px gap below, so this adds only the rule itself. */
.zr-paneltitle--rule {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

/* Trailing badge aligned to the first line when the heading block runs to two. */
.zr-paneltitle--start {
  align-items: flex-start;
}

/* `.table td.zr-empty` (0,1,1) was silently out-ranking `.zr-empty--roomy`
   (0,1,0), so the roomier empty state has never applied inside a table. */
.table td.zr-empty--roomy {
  padding: 36px;
}

.zr-empty__icon {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.zr-empty__title {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.zr-empty__text {
  margin-top: 4px;
  font-size: 13px;
}

/* The record-type chip: a squared monospace badge, not the pill `.tag` default. */
.tag.zr-record-type {
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
}

/* The add-record form's submit sits in a `.field` beside the inputs, so it
   matches their 44px height and fills its own grid column. */
.btn.zr-dns-submit {
  width: 100%;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 750;
  white-space: nowrap;
}

/* A DS digest: long hex that must wrap rather than widen the row. */
.zr-digest {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface2);
  font-size: 12px;
  word-break: break-all;
}

/* DS key fields. min() so a single column cannot exceed a 320px viewport. */
.zr-ds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

/* Companion to input.zr-input-sm; (0,1,1) so it clears the grouped base rule. */
select.zr-input-sm {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.zr-input-sm--mono {
  font-family: var(--font-mono);
}

/* An action row already spaced by the block above it. */
.zr-form-actions--flush {
  margin-top: 0;
}

.btn.zr-ds-submit {
  height: 38px;
  padding: 0 20px;
  font-weight: 750;
}

/* Email routing options, side by side until they cannot be. */
.zr-email-routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.zr-email-route__title {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.zr-email-route__title--blue { color: var(--blue); }
.zr-email-route__title--purple { color: var(--purple); }

.zr-email-route__body {
  margin: 0 0 10px;
  line-height: 1.5;
}

.btn.zr-email-route__cta {
  width: 100%;
  font-size: 11.5px;
}

/* The add-record form collapsed to one column at 768px through a second class
   on the element (.dns-form-grid) that existed only to fight this one. That
   class is gone; the breakpoint it owned is restated here on .zr-dns-form
   itself. It sits after the 860px and 620px rules, so at every width below
   768 this is the last matching declaration and wins on source order. */
@media (max-width: 768px) {
  .zr-dns-form {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------- */
/* Public marketing and content pages (templates/public/)                     */
/* -------------------------------------------------------------------------- */

/* Page wrappers. Each of these class names was already ON its element with the
   rule sitting inline beside it, so they read as undefined to the markup guard
   (the same shape as .zr-hosting-page in bbd3f03). Defining them retires four
   of the five entries on that list. */
.zr-pricing-page,
.zr-reseller-page {
  padding: 40px 0 80px;
}

.zr-faq-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 0 80px;
}

.zr-blog-index {
  max-width: 1080px;
  margin: 0 auto;
}

.zr-legal-page {
  max-width: 860px;
  margin: 0 auto;
}

/* Marketing hero: the eyebrow, the oversized title and the centred standfirst.
   Shared by /pricing, /reseller and /faq, which had three near-identical
   copies inline (max-width 680/720/640, margin-bottom 32/32/28). */
.zr-page-eyebrow {
  margin-bottom: 16px;
}

/* h1.* so these clear `.pageh h1` (0,1,1), which otherwise wins and collapses
   the headline to the in-app 28px. */
h1.zr-page-title {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.5vw, 48px);
}

.zr-page-lead {
  max-width: 700px;
  margin: 0 auto 32px;
}

.zr-page-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Filter field above the pricing table. */

/* An eyebrow inside a page header. `.pagehead .eyebrow` already said this; the
   public templates use `.pageh`, which is the class that actually has a base
   rule, so the same gap had to be restated inline on every one of them. */
.pageh .eyebrow {
  margin-bottom: 8px;
}

/* input.* so it clears the grouped input[type="search"] base rule at (0,1,1);
   at (0,1,0) this lost, and the field rendered full-width at the base padding. */
input.zr-filter-input {
  width: 220px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.zr-filter-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Shown by public/js/app.js, which writes display directly, so the resting
   state has to be a real rule rather than the `hidden` attribute -- an
   attribute the script would leave behind on a visible element. */
.zr-filter-empty {
  display: none;
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

.tag.zr-tag-category {
  background: var(--surface2);
  color: var(--text-secondary);
  text-transform: capitalize;
}

/* A row of chips that wraps: pricing perks, API scopes on a token. */
.zr-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Feature and benefit cards. min() so one card cannot exceed a 320px viewport. */
.zr-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.zr-feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
}

.zr-feature-icon--green {
  background: var(--green-light);
  color: var(--emerald);
}

.zr-feature-icon--primary {
  color: var(--primary);
}

.zr-feature-icon--amber {
  background: var(--amber-light);
  color: var(--amber);
}

.zr-feature-title {
  margin-bottom: 8px;
  font-size: 17px;
}

.zr-feature-text {
  line-height: 1.6;
}

/* Closing call to action. /pricing, /reseller and /faq each carried their own
   copy of this inline, differing only in padding and radius. */
.card.zr-cta-card {
  padding: 44px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  text-align: center;
}

.zr-cta-title {
  margin-bottom: 12px;
  font-size: 28px;
}

.zr-cta-text {
  max-width: 540px;
  margin: 0 auto 24px;
}

.zr-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--blue-light);
  color: var(--blue);
}

/* Reseller profit calculator. */
.zr-calc-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.zr-calc-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
}

.zr-calc-slider {
  width: 100%;
  accent-color: var(--blue);
}

.zr-calc-slider--green {
  accent-color: var(--emerald);
}

.zr-calc-note {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface2);
  color: var(--muted);
  font-size: 12.5px;
}

.zr-calc-result-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zr-calc-result-value {
  margin-bottom: 6px;
  color: var(--emerald);
  font-size: 42px;
  font-weight: 900;
}

.zr-calc-result-sub {
  margin-bottom: 20px;
}

.btn.zr-calc-cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* API example panel on /reseller. */
.zr-api-panel {
  margin-bottom: 60px;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.zr-api-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.zr-api-panel__title {
  font-size: 20px;
}

/* FAQ accordion. */
.zr-faq-search {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.zr-faq-search__icon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  display: flex;
  align-items: center;
  color: var(--muted);
  pointer-events: none;
}

input.zr-faq-search__input {
  height: 52px;
  padding: 0 20px 0 50px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-size: 15.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zr-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.card.zr-faq-item {
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zr-faq-item__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.zr-faq-item__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.tag.zr-faq-item__cat {
  width: fit-content;
  font-size: 10px;
  font-weight: 800;
}

.zr-faq-item__q {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.35;
}

.zr-faq-chevron {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface2);
  color: var(--muted);
  transition: transform 0.2s ease;
}

.zr-faq-answer {
  margin-top: 4px;
  padding: 16px 26px 24px;
  border-top: 1px solid var(--line-light);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* Blog index cards. */
.zr-post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zr-post-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.zr-post-card__date {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.zr-post-card__title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.35;
}

.zr-post-card__excerpt {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.zr-post-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.zr-post-card__link {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.zr-span-full {
  grid-column: 1 / -1;
}

/* Long-form legal and article bodies. */
.card.zr-prose {
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
  background: #FFFFFF;
}

.card.zr-prose h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: -0.3px;
}

.card.zr-prose h2:first-of-type {
  margin-top: 0;
}

.card.zr-prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 24px 0 8px;
}

.card.zr-prose p {
  margin: 0 0 16px;
  color: var(--text-body);
}

.card.zr-prose ul,
.card.zr-prose ol {
  margin: 0 0 20px 24px;
  padding: 0;
  color: var(--text-body);
}

.card.zr-prose li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.card.zr-prose strong {
  color: var(--brand-navy);
  font-weight: 700;
}

.card.zr-prose a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card.zr-prose a:hover {
  color: var(--brand-navy);
}

.card.zr-prose table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card.zr-prose th {
  background: #F8FAFC;
  font-weight: 700;
  color: var(--brand-navy);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  text-align: left;
}

.card.zr-prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-body);
}

.card.zr-prose tr:last-child td {
  border-bottom: none;
}

/* Public status board. */
.zr-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.zr-status-label {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zr-status-state {
  margin: 8px 0 4px;
}

.zr-status-checked {
  margin: 0;
}

/* Centred head of the reseller profit calculator. */
.zr-calc-head {
  margin-bottom: 32px;
  text-align: center;
}

.zr-calc-eyebrow {
  margin-bottom: 8px;
}

.zr-calc-title {
  font-size: 26px;
}

/* The live figures the calculator writes into. */
.zr-calc-val--blue { color: var(--blue); }
.zr-calc-val--green { color: var(--emerald); }
.zr-calc-val--text { color: var(--text); }

/* The reseller benefit cards run a size up from the pricing feature cards. */
.zr-feature-title--lg {
  font-size: 18px;
}

/* Section titles a step down from the marketing hero: /blog and the legal
   pages, which sit inside a .pageh rather than a full-bleed hero. */
h1.zr-page-title--sm {
  font-size: clamp(28px, 4vw, 38px);
}

.zr-pagehead--loose {
  margin-bottom: 36px;
}

/* The FAQ's closing banner heading is an h3, a step down from the h2 the other
   two closing cards use. */
.zr-cta-title--sm {
  font-size: 1.45rem;
}

.zr-faq-head {
  margin-bottom: 40px;
  text-align: center;
}

/* Preserved rather than unified to the .btn default: that default computes to
   a 41px box, and these would have dropped under the 44px touch target
   CLAUDE.md section 3 requires. */
.btn.zr-cta-btn {
  padding: 12px 24px;
  border-radius: 12px;
}

/* -------------------------------------------------------------------------- */
/* Checkout (customer/cart.php)                                               */
/* -------------------------------------------------------------------------- */

.zr-checkout-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

.zr-checkout-head {
  margin-bottom: 36px;
  text-align: center;
}

h1.zr-page-title--md {
  font-size: clamp(28px, 4.5vw, 42px);
}

.zr-page-lead--narrow {
  max-width: 540px;
  margin-bottom: 0;
}

/* `.field` supplies a 6px gap and the label added 6px of its own margin, so
   label-to-control has always been 12px here. Stated once, the way
   `.zr-auth-form > .field` does, rather than left to stack. */
.zr-checkout-grid .field {
  gap: 12px;
}

/* The checkout's controls are a size up from the dense in-app default.
   Written as tag-qualified selectors so they clear the grouped base rule for
   input[type=...] and select, which is (0,1,1). */
input.zr-checkout-input,
select.zr-checkout-input {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
}

select.zr-checkout-input--bold {
  font-weight: 700;
}

/* The numbered step marker beside a section heading. */
/* A field nudged away from the one above it inside the same .form grid. */
.zr-field--gap-top {
  margin-top: 6px;
}

.zr-step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

/* The selected payment gateway, shown as a chosen option rather than a list. */
.zr-gateway {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--blue);
  border-radius: 12px;
  background: var(--blue-light);
}

.zr-gateway__id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zr-gateway__name {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.zr-gateway__meta {
  color: var(--muted);
  font-size: 12px;
}

.zr-gateway__icon,
.zr-gateway__check {
  flex: none;
  color: var(--blue);
}

.zr-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface2);
}

.zr-guarantee__icon {
  flex: none;
  color: var(--green);
}

.zr-guarantee__text {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.zr-guarantee__text strong {
  color: var(--text);
}

.btn.zr-checkout-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 28%, transparent);
  font-size: 16px;
  font-weight: 800;
}

/* Order summary column. */
.card.zr-order-summary {
  position: sticky;
  top: 90px;
  background: var(--surface2);
}

.st.zr-summary-label {
  padding-left: 0;
  letter-spacing: 0.1em;
}

.zr-summary-domain {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.zr-summary-domain__label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zr-summary-domain__value {
  margin: 0;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 19px;
  word-break: break-all;
}

.zr-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zr-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.zr-summary-row__value {
  color: var(--text);
  font-family: var(--font-mono);
}

.zr-summary-rule {
  margin: 12px 0 6px;
  border: 0;
  border-top: 1px solid var(--line);
}

.zr-summary-row--total {
  align-items: baseline;
  font-size: 16px;
}

.zr-summary-total__label {
  color: var(--text);
  font-size: 15px;
}

.zr-summary-total__value {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 900;
}

.zr-summary-total__ccy {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.zr-summary-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.zr-summary-foot svg {
  flex: none;
}

/* -------------------------------------------------------------------------- */
/* API keys (customer/api_keys.php)                                           */
/* -------------------------------------------------------------------------- */

/* The one-time reveal panel. Its three hardcoded greens became tokens, so it
   now follows the theme instead of staying light-mode green in dark mode. */
.card.zr-key-reveal {
  margin-bottom: 24px;
  border-color: var(--green);
  background: var(--success);
}

.zr-key-reveal__title {
  margin-top: 0;
  color: var(--success-text);
}

.zr-key-reveal__note {
  margin-bottom: 12px;
  color: var(--success-text);
}

.zr-key-reveal__value {
  display: block;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--blue);
  font-weight: 700;
}

.zr-fieldset {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.zr-fieldset__legend {
  padding: 0 8px;
  font-weight: 700;
}

.zr-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 10px;
}

.zr-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn.zr-btn-48 {
  min-height: 48px;
}

/* A panel tinted against the page rather than raised off it. */
.card.zr-card-alt {
  background: var(--surface2);
}

.zr-code-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zr-code-step__label {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.zr-code-block {
  margin: 0;
  overflow-x: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.zr-code-block--alt {
  color: var(--purple);
}

/* -------------------------------------------------------------------------- */
/* Domain portfolio (customer/subdomains.php)                                 */
/* -------------------------------------------------------------------------- */

.zr-domain-handle {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 15.5px;
}

.zr-exp-row {
  margin-top: 5px;
}

/* Shown by the portfolio filter when nothing matches; `.is-filtered-out`
   hides it the rest of the time. */
.zr-portfolio-empty {
  margin: 0;
  padding: 28px 12px;
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Shared workspace primitives (customer/ long tail)                          */
/* -------------------------------------------------------------------------- */

/* A form laid out as one .field column, roomier than the 6px inside a field. */
.field.zr-form-stack-lg {
  gap: 18px;
}

.field.zr-form-stack-md {
  gap: 16px;
}

/* The tall variant of .zr-btn-block (which is width-only, and also worn by a
   developer-portal link that must stay 40px). Written with .btn so it
   out-ranks .btn.small. */
.btn.zr-btn-block--lg {
  min-height: 48px;
  font-size: 1rem;
}

/* A single-purpose form panel that should not run the full column width. */
.card.zr-form-card {
  max-width: 720px;
}

/* A paragraph directly under a .paneltitle, which already supplies the gap. */
.zr-note-flush {
  margin-top: 0;
}

.zr-stack-14 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Emphasis that takes the heading colour rather than the body colour. */
.zr-strong-heading {
  color: var(--heading-color);
}

/* A link that reads as text until hovered — a table row's subject line. */
.zr-link-plain {
  color: var(--heading-color);
  font-weight: 600;
  text-decoration: none;
}

.zr-link-plain:hover,
.zr-link-plain:focus-visible {
  text-decoration: underline;
}

/* Support thread. `.dot` has no standalone rule in this stylesheet -- only
   `.zrh-radar-row .dot` -- so these markers had no size or radius at all and
   rendered as zero-width spans. The author colour was PHP-interpolated inline,
   which is why it never looked obviously broken. */
.zr-msg-dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--green);
}

.zr-msg-dot--admin {
  background: var(--purple);
}

.zr-msg-body {
  margin-top: 6px;
  line-height: 1.55;
}

.zr-msg-empty {
  padding: 12px 0;
  color: var(--muted);
}

/* `.muted` on a table cell has never applied: `.table td` (0,1,1) and the
   bare-table rule (0,2,1) both set `color` and out-rank it. Fifteen cells in
   eleven templates carried the class to no effect. Scoped to win both contests. */
.table td.muted,
.zr-app-content table:not(.table) td.muted {
  color: var(--muted);
}

/* Same contest for an identifier cell: the accent colour has to out-rank `.table td`. */
.table td.zr-ident,
.zr-app-content table:not(.table) td.zr-ident {
  color: var(--blue);
}

/* A section that follows a grid rather than a card, at the 18px step. */
.zr-section-top--snug-sm {
  margin-top: 18px;
}

/* The second line of an activity row -- a notification body under its title. */
.zr-activity-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Activity stream -- a notification row, a ticket message. Deleted by the
   2539e6d rewrite while the templates kept the classes; restored at the
   prototype's values. The dot is scoped: a bare `.dot` would leak its
   margin into `.zrh-radar-row .dot`. */
.activity {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.activity .dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* -------------------------------------------------------------------------- */
/* 2FA setup (customer/setup_2fa.php)                                         */
/* -------------------------------------------------------------------------- */

.card.zr-2fa-card {
  max-width: 620px;
  margin: 40px auto 60px;
}

.zr-2fa-head {
  margin-bottom: 28px;
  text-align: center;
}

/* The shield mark. Was an indigo tint -- rgba(79,70,229,.1) -- on a Dynadot
   page; the primary tint token is the same idea in the right hue. */
.zr-2fa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--blue-light);
  color: var(--primary);
}

.zr-2fa-title {
  margin: 0 0 6px;
  color: var(--heading-color);
  font-size: 1.6rem;
}

.zr-2fa-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Step labels override the base `label` size, weight and colour; the
   uppercase and tracking it supplies are kept. */
.zr-2fa-step__label {
  display: block;
  margin-bottom: 8px;
  color: var(--heading-color);
  font-size: 0.9rem;
  font-weight: 700;
}

.zr-2fa-step__label--center {
  text-align: center;
}

.zr-2fa-step__hint {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* The TOTP secret. Rendered value preserved: the generic `monospace` family,
   not var(--font-mono). Raise separately if it should take the token. */
.zr-2fa-secret {
  position: relative;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
}

/* Eight 8-character codes; two columns fit at 320px (verified). */
.zr-2fa-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: center;
}

.zr-2fa-code {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
}

/* Tag-qualified so it clears the grouped base input rule at (0,1,1). The
   text treatment comes from .zr-otp-input; this is the box. */
input.zr-2fa-pin {
  min-height: 52px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-weight: 800;
}

/* -------------------------------------------------------------------------- */
/* Custom domains (customer/custom_domains.php)                               */
/* -------------------------------------------------------------------------- */

/* A button that sits beside a 44px field in a .zr-form-row. */
.btn.zr-btn-field {
  min-height: 44px;
}

/* -------------------------------------------------------------------------- */
/* Hosting connection guides (customer/hosting_guides.php)                    */
/* -------------------------------------------------------------------------- */

/* A guide card in the 3-up grid: the footer button pins to the bottom edge
   so the row of cards reads as one height. */
.card.zr-guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zr-guide-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.zr-guide-card__title {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.zr-guide-card__blurb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.zr-guide-card__records-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zr-guide-records {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface2);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.zr-guide-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.zr-guide-record__value {
  color: var(--text);
  font-size: 12px;
}

.zr-guide-card__foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.zr-guide-card__foot > .btn {
  width: 100%;
}

/* -------------------------------------------------------------------------- */
/* Search / home hero (customer/search.php) -- inline-style extraction        */
/* -------------------------------------------------------------------------- */

/* The floating proof badges. Their hex was Tailwind slate/green on a Dynadot
   page; the tokens are the same roles in the brand hue. `.ok` is written after
   `.val` so "val ok" reads green at 600. */
.zrh-badge-float .val {
  color: var(--dyna-navy-950);
  font-weight: 600;
}

.zrh-badge-float .lbl {
  color: var(--muted);
}

.zrh-badge-float .ok {
  color: var(--dyna-green-500);
}

/* A live-status dot that breathes. The small variant takes its parent's
   colour so a kicker's dot matches the kicker. */
.zrh-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dyna-green-500);
  animation: zrh-pulse 1.6s infinite;
}

.zrh-pulse-dot--sm {
  width: 6px;
  height: 6px;
  background: currentColor;
}

/* A kicker on a navy surface. Was #60A5FA on the radar and #93C5FD on the
   ship band -- two hand-picked light blues -- now one token; 5.3:1 on navy. */
.zrh-kicker--on-dark {
  color: var(--dyna-blue-500);
}

/* Inside a centred head the kicker is an inline-flex box, so this only
   affects its own content; kept because the markup set it. */
.zrh-head-center .zrh-kicker {
  justify-content: center;
}

/* Bulk matrix: one block per query, and a denser card than the single grid. */
.zrh-bulk-query-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.zrh-bulk-query {
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

.zrh-res-card--compact .zrh-res-dom {
  font-size: 16px;
}

.zrh-res-card--compact .zrh-res-price b {
  font-size: 18px;
}

.zrh-res-card--compact .zrh-reserve-btn {
  padding: 8px 14px;
  font-size: 13px;
}

.zrh-ticker-item .ago {
  color: var(--dyna-navy-muted);
}

/* The right-hand side of a split section head: currency picker + link. */
.zrh-head-split__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Namespace price tier. The colours were PHP-interpolated inline; the tiers
   take the same tokens `.tag.ok` / `.tag.warn` and the primary tint use. */
.zrh-ns-tag--free {
  background: var(--blue-light);
  color: var(--primary);
}

.zrh-ns-tag--premium {
  background: var(--warning);
  color: var(--warning-text);
}

.zrh-ns-tag--available {
  background: var(--success);
  color: var(--success-text);
}

.zrh-mkt-row:last-child {
  margin-bottom: 0;
}

.zrh-radar-rows {
  padding: 8px 0;
}

/* Terminal chrome: the three window lights. */
.zrh-term-bar i:nth-child(1) { background: var(--red); }
.zrh-term-bar i:nth-child(2) { background: var(--amber); }
.zrh-term-bar i:nth-child(3) { background: var(--dyna-green-500); }

/* First output line after the commands. */
.zrh-term-body .zrh-term-break {
  margin-top: 10px;
}

/* -------------------------------------------------------------------------- */
/* Restorations (2539e6d deleted these; the markup kept using them)           */
/* -------------------------------------------------------------------------- */

/* The revenue chart frame. Prototype values, with the light/dark gradient
   pair collapsed onto the surface tokens, which already follow the theme. */
.chart {
  height: 245px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(var(--surface2), var(--surface));
}

.chart svg {
  width: 100%;
  height: 100%;
}

/* Every KPI caption in the app carried `margin-top: 6px` inline (22 of 23),
   so 6px is what has always rendered; the base `.trend` 8px only ever reached
   one element. Preserved here rather than reconciled to the stylesheet. */
.kpi .trend {
  margin-top: 6px;
}

/* -------------------------------------------------------------------------- */
/* Admin long tail: dashboard, security, system_health, operations            */
/* -------------------------------------------------------------------------- */

/* Emphasis in the accent / success colour without the mono treatment of
   .zr-ident -- an audit action name, a release version. */
.zr-strong-accent {
  color: var(--blue);
}

.zr-strong-success {
  color: var(--green);
}

/* Roomier steps of the heading subline. */
.zr-subtext--roomy {
  margin-top: 4px;
}

.zr-subtext--md {
  margin-top: 8px;
}

.zr-section--xxs {
  margin-bottom: 10px;
}

/* A two-up KPI grid inside a card (the card supplies the outer spacing). */
.kpis.zr-kpis--2 {
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

/* Dashboard diagnostics: a stacked list of subsystem rows. */
.zr-diag-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zr-diag-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface2);
}

.zr-diag-item__name {
  font-size: 13.5px;
}

/* Audit log details cell: a bounded, clipped column. Written with the parent
   so it out-ranks `.table td`. */
.table td.zr-audit-details {
  max-width: 320px;
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
}

/* System health: a subsystem status card in the 3-up grid, footer pinned. */
.card.zr-status-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.paneltitle.zr-status-card__head {
  margin-bottom: 12px;
}

.paneltitle h3.zr-status-card__title {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zr-status-card__body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

.zr-status-card__foot {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Operations: the installed/latest version panel and an update-log entry. */
.zr-version-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface2);
}

.zr-log-item {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface2);
  font-size: 13px;
}

/* -------------------------------------------------------------------------- */
/* Admin long tail: search_results, customer_detail, order_detail,            */
/* customers, orders                                                          */
/* -------------------------------------------------------------------------- */

/* A KPI whose value is a word (ACTIVE, SUSPENDED), sized under the 30px figure. */
.kpi-value.kpi-value--word {
  font-size: 1.35rem;
}

/* Order detail: a KPI carrying a name or a status tag instead of a metric. */
.zr-kpi-text {
  margin-top: 10px;
  font-weight: 750;
}

.zr-kpi-tag-row {
  margin-top: 12px;
}

/* The leading button of an inline pair in a table's action cell. */
.btn.zr-btn-lead {
  margin-right: 6px;
}

/* Theme placeholders inside `.theme-card .preview`. 2539e6d deleted these with
   `.theme`; websites.php kept them and drew three empty divs. Prototype values
   on the surface/line tokens. */
.mini-line {
  width: 55%;
  height: 8px;
  border-radius: 8px;
  background: var(--line);
}

.mini-card {
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.mini-btn {
  width: 34%;
  height: 27px;
  border-radius: 8px;
  background: var(--blue);
}

/* -------------------------------------------------------------------------- */
/* customer/ tail: builder, websites                                          */
/* -------------------------------------------------------------------------- */

/* The selected theme's name, a shade larger than body. */
.zr-theme-name {
  margin: 0;
  font-size: 1.05rem;
}

/* A section-level heading in a page head (an h2, not the page's h1). */
.pageh h2.zr-pageh-h2 {
  margin: 0;
}

.zr-empty-cta {
  margin-top: 14px;
}

/* -------------------------------------------------------------------------- */
/* TLD Inventory Filter Buttons & Disabled State                              */
/* -------------------------------------------------------------------------- */
.disabled,
.btn.disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.zr-filter-btn {
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 12px;
  transition: all 0.15s ease;
}

.zr-filter-btn.active {
  background: var(--blue, #0096F7) !important;
  color: #ffffff !important;
  border-color: var(--blue, #0096F7) !important;
}

.zr-edit-row {
  background: rgba(0, 150, 247, 0.03);
}

/* ==========================================================================
   PROTOTYPE DESIGN SYSTEM: Spaceship.com × Dynadot (Integrated)
   ========================================================================== */
/* ==========================================================================
       DESIGN SYSTEM: Spaceship.com × Dynadot Inspired High-Performance Palette
       ========================================================================== */
    :root {
      /* Brand Color System */
      --brand-primary: #0096F7;        /* Dynadot electric cyan/sky blue */
      --brand-primary-hover: #0080D4;
      --brand-primary-light: #EBF6FE;
      --brand-primary-glow: rgba(0, 150, 247, 0.22);
      
      --brand-navy: #031242;           /* Spaceship cosmic deep navy */
      --brand-navy-surface: #071952;
      --brand-navy-light: #0D2576;
      --brand-navy-dark: #020B29;
      
      --brand-cta: #FF8A00;            /* High-conversion fiery orange CTA */
      --brand-cta-hover: #E67A00;
      --brand-cta-glow: rgba(255, 138, 0, 0.35);

      --color-success: #10B981;
      --color-success-bg: #ECFDF5;
      --color-warning: #F59E0B;
      --color-danger: #EF4444;

      /* Neutral Surfaces */
      --bg-canvas: #FAFBFD;
      --bg-surface: #FFFFFF;
      --bg-surface-subtle: #F3F6FB;
      --bg-surface-alt: #EBF0F8;
      
      --border-subtle: rgba(3, 18, 66, 0.08);
      --border-medium: rgba(3, 18, 66, 0.14);
      --border-active: #0096F7;

      /* Typography */
      --text-main: #031242;
      --text-body: #3E4D68;
      --text-muted: #7384A2;
      --text-inverse: #FFFFFF;

      /* Elevation & Shadows */
      --shadow-sm: 0 2px 8px rgba(3, 18, 66, 0.04);
      --shadow-md: 0 8px 24px rgba(3, 18, 66, 0.08);
      --shadow-lg: 0 16px 40px rgba(3, 18, 66, 0.12);
      --shadow-glow: 0 0 32px rgba(0, 150, 247, 0.25);
      --shadow-cta: 0 8px 24px rgba(255, 138, 0, 0.32);

      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 20px;
      --radius-xl: 28px;
      --radius-full: 9999px;

      --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
      --transition-smooth: 260ms cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Base Reset & Core Styles */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
      font-size: 16px;
      -webkit-text-size-adjust: 100%;
    }

    body {
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: var(--bg-canvas);
      color: var(--text-body);
      line-height: 1.6;
      overflow-x: hidden;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    a {
      color: inherit;
      text-decoration: none;
      transition: color var(--transition-fast);
    }

    button, input, select {
      font-family: inherit;
      border: none;
      outline: none;
      background: none;
    }

    .container {
      width: 100%;
      max-width: 1240px;
      margin-left: auto;
      margin-right: auto;
      padding-left: 24px;
      padding-right: 24px;
    }

    @media (max-width: 480px) {
      .container {
        padding-left: 16px;
        padding-right: 16px;
      }
    }

    /* ==========================================================================
       TOP ANNOUNCEMENT BAR & UTILITY STRIP (DISMISSIBLE)
       ========================================================================== */
    .promo-strip {
      background: linear-gradient(90deg, #031242 0%, #071952 50%, #031242 100%);
      color: #FFFFFF;
      font-size: 0.8125rem;
      padding: 8px 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      position: relative;
      z-index: 50;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      transition: opacity 220ms ease, max-height 220ms ease, padding 220ms ease;
    }

    .promo-strip.is-hidden {
      display: none !important;
    }

    .promo-badge {
      background: rgba(255, 138, 0, 0.22);
      color: #FFB356;
      border: 1px solid rgba(255, 138, 0, 0.45);
      padding: 2px 8px;
      border-radius: var(--radius-full);
      font-weight: 700;
      font-size: 0.72rem;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }

    .promo-text {
      color: #E2E8F0;
      font-weight: 500;
      line-height: 1.4;
    }

    .promo-link {
      color: var(--brand-primary);
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }

    .promo-link:hover {
      text-decoration: underline;
      color: #55B8FF;
    }

    .promo-actions-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .promo-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-left: auto;
      flex-shrink: 0;
    }

    .currency-pill {
      background: rgba(255, 255, 255, 0.1);
      border-radius: var(--radius-full);
      padding: 2px 10px;
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      font-size: 0.75rem;
      font-weight: 600;
      color: #FFFFFF;
      transition: background var(--transition-fast);
      user-select: none;
    }

    .currency-pill:hover {
      background: rgba(255, 255, 255, 0.18);
    }

    .promo-close {
      background: rgba(255, 255, 255, 0.12);
      border: none;
      color: #CBD5E1;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
      flex-shrink: 0;
    }

    .promo-close:hover {
      background: rgba(255, 255, 255, 0.28);
      color: #FFFFFF;
      transform: scale(1.08);
    }

    @media (max-width: 768px) {
      .promo-strip {
        font-size: 0.75rem;
        padding: 6px 12px;
        justify-content: space-between;
        gap: 8px;
      }
      .promo-badge {
        display: none;
      }
      .currency-pill {
        display: none;
      }
    }

    /* ==========================================================================
       MAIN NAVIGATION (Glassmorphism Navbar)
       ========================================================================== */
    .navbar {
      position: sticky;
      top: 0;
      z-index: 40;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-subtle);
      transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
    }

    .nav-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      font-size: 1.35rem;
      color: var(--brand-navy);
      letter-spacing: -0.5px;
    }

    .brand-icon {
      width: 38px;
      height: 38px;
      background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-surface) 100%);
      color: var(--brand-primary);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 12px var(--brand-primary-glow);
    }

    .brand-icon svg {
      width: 22px;
      height: 22px;
    }

    .brand-accent {
      color: var(--brand-primary);
    }

    .zr-topbar-inner,
    .container-wide {
      max-width: 1440px !important;
      width: 100%;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 16px;
      list-style: none;
    }

    .nav-link {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text-body);
      display: inline-flex;
      align-items: center;
      gap: 5px;
      position: relative;
      padding: 6px 0;
      white-space: nowrap;
    }

    .nav-link:hover, .nav-link.active {
      color: var(--brand-primary);
    }

    .nav-badge-pill {
      background: var(--brand-primary-light);
      color: var(--brand-primary);
      font-size: 0.68rem;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: var(--radius-full);
      text-transform: uppercase;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .btn-login {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-main);
      padding: 9px 18px;
      border-radius: var(--radius-full);
      transition: background var(--transition-fast);
    }

    .btn-login:hover {
      background: var(--bg-surface-subtle);
    }

    .btn-signup {
      background: var(--brand-cta);
      color: #FFFFFF;
      font-size: 0.9rem;
      font-weight: 700;
      padding: 10px 22px;
      border-radius: var(--radius-full);
      box-shadow: var(--shadow-cta);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
      cursor: pointer;
    }

    .btn-signup:hover {
      background: var(--brand-cta-hover);
      transform: translateY(-1px);
      box-shadow: 0 10px 26px rgba(255, 138, 0, 0.42);
    }

    .hamburger-btn {
      display: none;
      flex-direction: column;
      gap: 5px;
      padding: 8px;
      cursor: pointer;
    }

    .hamburger-btn span {
      width: 22px;
      height: 2px;
      background: var(--brand-navy);
      border-radius: 2px;
      transition: transform var(--transition-fast);
    }

    @media (max-width: 1200px) {
      .nav-links {
        display: none;
      }
      .btn-login {
        display: none;
      }
      .hamburger-btn {
        display: flex;
      }
    }

    @media (max-width: 480px) {
      .nav-actions .btn-signup span {
        display: none;
      }
      .nav-actions .btn-signup {
        padding: 9px 14px;
      }
    }

    /* Mobile Drawer */
    .mobile-menu-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(3, 18, 66, 0.4);
      backdrop-filter: blur(4px);
      z-index: 90;
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--transition-smooth);
    }

    .mobile-menu-overlay.open {
      opacity: 1;
      pointer-events: auto;
    }

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: 80%;
      max-width: 320px;
      background: #FFFFFF;
      z-index: 100;
      transform: translateX(100%);
      transition: transform var(--transition-smooth), visibility var(--transition-smooth);
      padding: 24px;
      display: flex;
      flex-direction: column;
      box-shadow: -8px 0 32px rgba(3, 18, 66, 0.15);
      visibility: hidden;
      pointer-events: none;
    }

    .mobile-drawer.open {
      transform: translateX(0);
      visibility: visible;
      pointer-events: auto;
    }

    .drawer-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 28px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .drawer-close {
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--text-muted);
    }

    .drawer-links {
      display: flex;
      flex-direction: column;
      gap: 16px;
      list-style: none;
      margin-bottom: auto;
    }

    .drawer-link {
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--brand-navy);
      padding: 8px 0;
    }

    .drawer-actions {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding-top: 20px;
      border-top: 1px solid var(--border-subtle);
    }

    /* ==========================================================================
       HERO SECTION WITH SPACESHIP OMNISEARCH
       ========================================================================== */
    .hero-section {
      background: radial-gradient(circle at 50% -10%, rgba(0, 150, 247, 0.15) 0%, transparent 60%),
                  linear-gradient(180deg, #FFFFFF 0%, var(--bg-canvas) 100%);
      padding: 64px 0 54px;
      position: relative;
      overflow: hidden;
    }

    .hero-header {
      text-align: center;
      max-width: 780px;
      margin: 0 auto 36px;
    }

    .hero-tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--brand-primary-light);
      color: var(--brand-primary);
      border: 1px solid rgba(0, 150, 247, 0.25);
      border-radius: var(--radius-full);
      padding: 5px 14px;
      font-size: 0.8125rem;
      font-weight: 700;
      margin-bottom: 18px;
    }

    .pulse-dot {
      width: 7px;
      height: 7px;
      background: var(--brand-primary);
      border-radius: 50%;
      box-shadow: 0 0 0 0 rgba(0, 150, 247, 0.6);
      animation: pulseGlow 2s infinite;
    }

    @keyframes pulseGlow {
      0% { box-shadow: 0 0 0 0 rgba(0, 150, 247, 0.6); }
      70% { box-shadow: 0 0 0 8px rgba(0, 150, 247, 0); }
      100% { box-shadow: 0 0 0 0 rgba(0, 150, 247, 0); }
    }

    .hero-title {
      font-size: clamp(2.2rem, 5vw, 3.75rem);
      font-weight: 800;
      color: var(--brand-navy);
      line-height: 1.15;
      letter-spacing: -1.2px;
      margin-bottom: 16px;
    }

    .gradient-text {
      background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-primary) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero-subtitle {
      font-size: clamp(1rem, 2vw, 1.2rem);
      color: var(--text-body);
      max-width: 660px;
      margin: 0 auto;
      line-height: 1.6;
    }

    /* Omnisearch Container */
    .omnisearch-wrapper {
      max-width: 860px;
      margin: 0 auto;
      background: #FFFFFF;
      border: 1px solid var(--border-medium);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 150, 247, 0.08);
      padding: 12px;
      transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    }

    .omnisearch-wrapper:focus-within {
      border-color: var(--border-active);
      box-shadow: var(--shadow-lg), 0 0 0 4px var(--brand-primary-glow);
    }

    /* Mode Filter Tabs */
    .search-mode-tabs {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 4px 8px 10px;
      border-bottom: 1px solid var(--border-subtle);
      overflow-x: auto;
      scrollbar-width: none;
    }

    .search-mode-tabs::-webkit-scrollbar {
      display: none;
    }

    .mode-tab {
      font-size: 0.8125rem;
      font-weight: 600;
      color: var(--text-muted);
      padding: 5px 12px;
      border-radius: var(--radius-full);
      cursor: pointer;
      white-space: nowrap;
      transition: all var(--transition-fast);
    }

    .mode-tab:hover {
      color: var(--brand-navy);
      background: var(--bg-surface-subtle);
    }

    .mode-tab.active {
      color: var(--brand-primary);
      background: var(--brand-primary-light);
      font-weight: 700;
    }

    /* Main Input Box */
    .omnisearch-box {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 6px 6px 6px 12px;
    }

    .search-icon-box {
      color: var(--brand-primary);
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }

    .search-icon-box svg {
      width: 24px;
      height: 24px;
    }

    .search-input-field {
      flex: 1;
      font-size: 1.15rem;
      font-weight: 600;
      color: var(--brand-navy);
      width: 100%;
    }

    .search-input-field::placeholder {
      color: #94A3B8;
      font-weight: 400;
    }

    .search-action-btn {
      background: var(--brand-cta);
      color: #FFFFFF;
      font-size: 1.05rem;
      font-weight: 700;
      padding: 13px 30px;
      border-radius: var(--radius-lg);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      box-shadow: var(--shadow-cta);
      transition: all var(--transition-fast);
      flex-shrink: 0;
    }

    .search-action-btn:hover {
      background: var(--brand-cta-hover);
      transform: translateY(-1px);
      box-shadow: 0 10px 24px rgba(255, 138, 0, 0.4);
    }

    /* Quick TLD Badges Bar */
    .tld-pills-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 10px 4px;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .tld-pills-bar::-webkit-scrollbar {
      display: none;
    }

    .tld-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--bg-surface-subtle);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-full);
      padding: 5px 12px;
      font-size: 0.8125rem;
      font-weight: 600;
      color: var(--text-body);
      cursor: pointer;
      white-space: nowrap;
      transition: all var(--transition-fast);
    }

    .tld-pill:hover {
      border-color: var(--brand-primary);
      background: #FFFFFF;
      transform: translateY(-1px);
    }

    .pill-free-badge {
      background: var(--color-success);
      color: #FFFFFF;
      font-size: 0.68rem;
      font-weight: 800;
      padding: 1px 6px;
      border-radius: var(--radius-full);
    }

    .pill-price {
      color: var(--brand-navy);
      font-weight: 700;
    }

    /* Mobile Adaptations for Omnisearch (< 540px) */
    @media (max-width: 540px) {
      .omnisearch-wrapper {
        border-radius: var(--radius-lg);
        padding: 10px;
      }
      .omnisearch-box {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 4px;
      }
      .search-input-field {
        font-size: 1rem;
        padding: 8px 4px;
      }
      .search-action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        border-radius: var(--radius-md);
      }
    }

    .omnisearch-bulk-box {
      border-top: 1px solid var(--border-subtle);
      margin-top: 10px;
    }

    /* Live Simulated Results Container */
    .live-results-card {
      margin-top: 14px;
      border-top: 1px solid var(--border-subtle);
      padding-top: 14px;
      display: none;
    }

    .results-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.8125rem;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 10px;
      padding: 0 6px;
    }

    .result-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      border-radius: var(--radius-md);
      background: var(--bg-surface-subtle);
      margin-bottom: 8px;
      transition: background var(--transition-fast);
    }

    .result-row:hover {
      background: var(--brand-primary-light);
    }

    .result-domain-info {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .result-status-indicator {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--color-success);
    }

    .result-domain-name {
      font-weight: 700;
      font-size: 1rem;
      color: var(--brand-navy);
      font-family: 'JetBrains Mono', monospace;
    }

    .result-tag {
      font-size: 0.72rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: var(--radius-full);
      text-transform: uppercase;
    }

    .result-tag.free {
      background: rgba(16, 185, 129, 0.15);
      color: var(--color-success);
    }

    .result-tag.popular {
      background: rgba(0, 150, 247, 0.15);
      color: var(--brand-primary);
    }

    .result-pricing-action {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .result-price-box {
      text-align: right;
    }

    .result-price {
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--brand-navy);
    }

    .result-price.free {
      color: var(--color-success);
    }

    .result-price-sub {
      font-size: 0.72rem;
      color: var(--text-muted);
    }

    .btn-claim-free {
      background: #10B981;
      color: #FFFFFF;
      font-weight: 700;
      font-size: 0.875rem;
      padding: 9px 18px;
      border-radius: var(--radius-full);
      cursor: pointer;
      transition: background var(--transition-fast), transform var(--transition-fast);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .btn-claim-free:hover {
      background: #059669;
      transform: translateY(-1px);
    }

    .btn-add-cart {
      background: var(--brand-primary);
      color: #FFFFFF;
      font-weight: 700;
      font-size: 0.875rem;
      padding: 9px 18px;
      border-radius: var(--radius-full);
      cursor: pointer;
      transition: background var(--transition-fast), transform var(--transition-fast);
    }

    .btn-add-cart:hover {
      background: var(--brand-primary-hover);
      transform: translateY(-1px);
    }

    @media (max-width: 480px) {
      .result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
      }
      .result-pricing-action {
        width: 100%;
        justify-content: space-between;
      }
    }

    /* ==========================================================================
       LIVE REGISTRATION TICKER (MARQUEE)
       ========================================================================== */
    .ticker-section {
      background: #FFFFFF;
      border-top: 1px solid var(--border-subtle);
      border-bottom: 1px solid var(--border-subtle);
      padding: 14px 0;
      overflow: hidden;
      position: relative;
    }

    .ticker-container {
      display: flex;
      align-items: center;
      gap: 20px;
      width: max-content;
      animation: tickerMarquee 36s linear infinite;
    }

    .ticker-container:hover {
      animation-play-state: paused;
    }

    @keyframes tickerMarquee {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    .ticker-item {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.84rem;
      color: var(--text-body);
      background: var(--bg-surface-subtle);
      padding: 5px 12px;
      border-radius: var(--radius-full);
      border: 1px solid var(--border-subtle);
    }

    .ticker-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--brand-primary);
    }

    .ticker-domain {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 600;
      color: var(--brand-navy);
    }

    .ticker-time {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    /* ==========================================================================
       SPACESHIP-INSPIRED LAUNCHPAD / PRODUCT ECOSYSTEM TABS
       ========================================================================== */
    .launchpad-section {
      padding: 72px 0;
      background: #FFFFFF;
    }

    .section-head {
      text-align: center;
      max-width: 680px;
      margin: 0 auto 44px;
    }

    .section-eyebrow {
      font-size: 0.8125rem;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--brand-primary);
      margin-bottom: 10px;
      display: inline-block;
    }

    .section-title {
      font-size: clamp(1.75rem, 3.5vw, 2.4rem);
      font-weight: 800;
      color: var(--brand-navy);
      line-height: 1.2;
      letter-spacing: -0.8px;
      margin-bottom: 12px;
    }

    .section-subtitle {
      font-size: 1.05rem;
      color: var(--text-body);
    }

    /* Segmented Tab Controls */
    .ecosystem-tabs {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-bottom: 32px;
      flex-wrap: wrap;
    }

    .ecosystem-tab-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      border-radius: var(--radius-full);
      background: var(--bg-surface-subtle);
      border: 1px solid var(--border-subtle);
      font-size: 0.92rem;
      font-weight: 700;
      color: var(--text-body);
      cursor: pointer;
      transition: all var(--transition-fast);
    }

    .ecosystem-tab-btn:hover {
      background: #FFFFFF;
      border-color: var(--border-medium);
      color: var(--brand-navy);
    }

    .ecosystem-tab-btn.active {
      background: var(--brand-navy);
      color: #FFFFFF;
      border-color: var(--brand-navy);
      box-shadow: var(--shadow-md);
    }

    /* Tab Content Card */
    .ecosystem-card {
      background: var(--bg-surface-subtle);
      border: 1px solid var(--border-medium);
      border-radius: var(--radius-xl);
      padding: 40px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
      box-shadow: var(--shadow-sm);
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
    }

    @media (max-width: 900px) {
      .ecosystem-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 28px;
      }
    }

    @media (max-width: 480px) {
      .ecosystem-card {
        padding: 20px 14px;
        gap: 20px;
      }
    }

    .ecosystem-info {
      min-width: 0;
      max-width: 100%;
    }

    .ecosystem-info h3 {
      font-size: 1.6rem;
      font-weight: 800;
      color: var(--brand-navy);
      margin-bottom: 14px;
      letter-spacing: -0.5px;
    }

    .ecosystem-info p {
      font-size: 1rem;
      color: var(--text-body);
      margin-bottom: 22px;
      line-height: 1.6;
    }

    .feature-checklist {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 28px;
    }

    .checklist-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 0.95rem;
      color: var(--text-body);
      font-weight: 500;
    }

    .check-icon {
      color: var(--color-success);
      font-weight: 800;
      flex-shrink: 0;
    }

    .ecosystem-preview {
      background: #020B29;
      border-radius: var(--radius-lg);
      border: 1px solid rgba(255, 255, 255, 0.1);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
    }

    .preview-header {
      background: rgba(255, 255, 255, 0.05);
      padding: 10px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .preview-dots {
      display: flex;
      gap: 6px;
    }

    .preview-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
    }

    .preview-dot.red { background: #EF4444; }
    .preview-dot.yellow { background: #F59E0B; }
    .preview-dot.green { background: #10B981; }

    .preview-title {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.75rem;
      color: #94A3B8;
    }

    .preview-content {
      padding: 18px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.82rem;
      color: #E2E8F0;
      line-height: 1.6;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      max-width: 100%;
      box-sizing: border-box;
    }

    @media (max-width: 480px) {
      .preview-content {
        padding: 14px 12px;
        font-size: 0.75rem;
      }
    }

    .code-comment { color: #64748B; }
    .code-key { color: #38BDF8; }
    .code-val { color: #A7F3D0; }
    .code-accent { color: #F59E0B; }

    /* ==========================================================================
       REAL DNS & EDGE INFRASTRUCTURE TELEMETRY
       ========================================================================== */
    .radar-section {
      padding: 72px 0;
      background: var(--bg-canvas);
      border-top: 1px solid var(--border-subtle);
    }

    .radar-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
    }

    .radar-node-card {
      background: #FFFFFF;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 22px;
      box-shadow: var(--shadow-sm);
      transition: all var(--transition-fast);
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .radar-node-card:hover {
      border-color: var(--brand-primary);
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    .node-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .node-location {
      font-weight: 700;
      font-size: 1.05rem;
      color: var(--brand-navy);
    }

    .node-status-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--color-success);
      background: var(--color-success-bg);
      padding: 2px 8px;
      border-radius: var(--radius-full);
      text-transform: uppercase;
    }

    .node-engine {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .node-latency {
      display: flex;
      align-items: baseline;
      gap: 4px;
    }

    .latency-val {
      font-size: 1.75rem;
      font-weight: 800;
      color: var(--brand-navy);
      letter-spacing: -0.5px;
    }

    .latency-unit {
      font-size: 0.85rem;
      color: var(--text-muted);
      font-weight: 600;
    }

    .node-desc {
      font-size: 0.82rem;
      color: var(--text-body);
      line-height: 1.45;
    }

    .node-bar {
      height: 6px;
      width: 100%;
      background: var(--bg-surface-subtle);
      border-radius: 3px;
      overflow: hidden;
      margin-top: 4px;
    }

    .node-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--brand-primary) 0%, var(--color-success) 100%);
      border-radius: 3px;
    }

    /* ==========================================================================
       CORE FEATURE HIGHLIGHTS (6 REAL CAPABILITIES)
       ========================================================================== */
    .features-section {
      padding: 72px 0;
      background: #FFFFFF;
      border-top: 1px solid var(--border-subtle);
    }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
      gap: 24px;
    }

    .feature-box {
      background: var(--bg-canvas);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 30px;
      transition: all var(--transition-fast);
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
    }

    .feature-box:hover {
      border-color: var(--brand-primary);
      background: #FFFFFF;
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    @media (max-width: 480px) {
      .features-grid {
        gap: 16px;
      }
      .feature-box {
        padding: 20px 16px;
      }
    }

    .feature-icon-wrapper {
      width: 46px;
      height: 46px;
      border-radius: var(--radius-md);
      background: var(--brand-primary-light);
      color: var(--brand-primary);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 4px;
    }

    .feature-icon-wrapper svg {
      width: 24px;
      height: 24px;
    }

    .feature-title {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--brand-navy);
      letter-spacing: -0.3px;
    }

    .feature-desc {
      font-size: 0.92rem;
      color: var(--text-body);
      line-height: 1.6;
    }

    /* ==========================================================================
       ZEROREGISTRAR VS GENERIC REGISTRARS COMPARISON TABLE
       ========================================================================== */
    .comparison-section {
      padding: 72px 0;
      background: var(--bg-canvas);
      border-top: 1px solid var(--border-subtle);
    }

    .comparison-card {
      background: #FFFFFF;
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-xl);
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      box-shadow: var(--shadow-md);
    }

    .comparison-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 640px;
      text-align: left;
    }

    .comparison-table th, .comparison-table td {
      padding: 16px 22px;
      border-bottom: 1px solid var(--border-subtle);
      font-size: 0.92rem;
    }

    .comparison-table th {
      background: var(--bg-surface-subtle);
      font-weight: 700;
      color: var(--brand-navy);
      font-size: 0.95rem;
    }

    .comparison-table .highlight-col {
      background: var(--brand-primary-light);
      color: var(--brand-navy);
      font-weight: 700;
      border-left: 2px solid var(--brand-primary);
      border-right: 2px solid var(--brand-primary);
    }

    .comparison-table th.highlight-col {
      color: var(--brand-primary);
      border-top: 3px solid var(--brand-primary);
    }

    /* ==========================================================================
       INTERACTIVE FAQ SECTION
       ========================================================================== */
    .faq-section {
      padding: 72px 0;
      background: #FFFFFF;
      border-top: 1px solid var(--border-subtle);
    }

    .faq-wrapper {
      max-width: 780px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .faq-item {
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      background: var(--bg-canvas);
      overflow: hidden;
      transition: all var(--transition-fast);
    }

    .faq-item.active {
      border-color: var(--brand-primary);
      background: #FFFFFF;
      box-shadow: var(--shadow-sm);
    }

    .faq-trigger {
      width: 100%;
      padding: 18px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      text-align: left;
      font-size: 1.02rem;
      font-weight: 700;
      color: var(--brand-navy);
      cursor: pointer;
    }

    .faq-icon-arrow {
      font-size: 1.2rem;
      color: var(--text-muted);
      transition: transform var(--transition-fast);
    }

    .faq-item.active .faq-icon-arrow {
      transform: rotate(180deg);
      color: var(--brand-primary);
    }

    .faq-body {
      padding: 0 22px 20px 22px;
      font-size: 0.95rem;
      color: var(--text-body);
      line-height: 1.6;
      display: none;
    }

    .faq-item.active .faq-body {
      display: block;
    }

    /* ==========================================================================
       HIGH-IMPACT BOTTOM CTA
       ========================================================================== */
    .cta-banner {
      background: linear-gradient(135deg, #031242 0%, #071952 50%, #0A1128 100%);
      color: #FFFFFF;
      border-radius: var(--radius-xl);
      padding: 60px 32px;
      text-align: center;
      position: relative;
      overflow: hidden;
      margin: 36px auto 72px;
      max-width: 1120px;
      box-shadow: var(--shadow-lg);
      box-sizing: border-box;
    }

    .cta-banner::before {
      content: '';
      position: absolute;
      top: -100px;
      left: 50%;
      transform: translateX(-50%);
      width: 500px;
      height: 300px;
      background: radial-gradient(circle, rgba(0, 150, 247, 0.35) 0%, transparent 70%);
      pointer-events: none;
    }

    .cta-title {
      font-size: clamp(1.8rem, 4vw, 2.6rem);
      font-weight: 800;
      letter-spacing: -0.8px;
      margin-bottom: 14px;
      color: #FFFFFF;
    }

    .cta-desc {
      font-size: 1.1rem;
      color: #CBD5E1;
      max-width: 620px;
      margin: 0 auto 30px;
      line-height: 1.6;
    }

    .cta-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    @media (max-width: 480px) {
      .cta-banner {
        padding: 36px 18px;
        margin: 24px auto 48px;
      }
      .cta-actions .btn-signup,
      .cta-actions .btn-login {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
      }
    }

    /* ==========================================================================
       FOOTER
       ========================================================================== */
    .footer {
      background: #020B29;
      color: #94A3B8;
      padding: 64px 0 32px;
      margin-top: auto;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 0.92rem;
    }

    .footer-grid,
    .footergrid,
    .zr-footer-grid {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
      gap: 36px;
      margin-bottom: 48px;
    }

    @media (max-width: 992px) {
      .footer-grid,
      .footergrid,
      .zr-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
      }
    }

    @media (max-width: 540px) {
      .footer-grid,
      .footergrid,
      .zr-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }
    }

    .footer-brand h4 {
      font-size: 1.35rem;
      font-weight: 800;
      color: #FFFFFF;
      margin-bottom: 12px;
    }

    .footer-col h5 {
      color: #FFFFFF;
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 16px;
    }

    .footer-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer-links a:hover {
      color: var(--brand-primary);
    }

    .footer-bottom {
      padding-top: 24px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 0.8125rem;
    }

    /* ==========================================================================
       MOBILE FLOATING DOCK (< 480px)
       ========================================================================== */
    .mobile-dock {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(12px);
      border-top: 1px solid var(--border-medium);
      padding: 10px 16px;
      z-index: 80;
      box-shadow: 0 -4px 16px rgba(3, 18, 66, 0.08);
    }

    .mobile-dock-btn {
      background: var(--brand-cta);
      color: #FFFFFF;
      font-weight: 700;
      font-size: 0.95rem;
      padding: 12px;
      border-radius: var(--radius-full);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 4px 14px rgba(255, 138, 0, 0.35);
    }

    @media (max-width: 480px) {
      .mobile-dock {
        display: block;
      }
      body {
        padding-bottom: 60px;
      }
    }

    /* ==========================================================================
       REGISTRAR COMPLIANCE & ICANN SUITE PAGES
       ========================================================================== */
    .zr-whois-page,
    .zr-abuse-page,
    .zr-contact-page,
    .zr-privacy-page,
    .zr-nonpublic-data-page,
    .zr-legal-hub {
      position: relative;
      width: 100%;
      min-height: calc(100vh - 380px);
    }

    .faq-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    /* ==========================================================================
       RESPONSIVE UTILITIES & SMALL-SCREEN (<400px) ENHANCEMENTS
       ========================================================================== */
    .tablewrap {
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .card.zr-prose table,
    .zr-prose table {
      display: block;
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .zr-contact-layout {
      display: grid;
      grid-template-columns: 3fr 2fr;
      gap: 32px;
      align-items: start;
    }

    @media (max-width: 768px) {
      .zr-contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
      }
    }

    .zr-form-2col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 16px;
    }

    @media (max-width: 600px) {
      .zr-form-2col {
        grid-template-columns: 1fr;
        gap: 14px;
      }
    }

    .zr-form-card {
      border-radius: var(--radius-xl);
      border: 1px solid var(--border-medium);
      box-shadow: var(--shadow-md);
      padding: 32px;
      background: #FFFFFF;
      margin-bottom: 30px;
    }

    @media (max-width: 540px) {
      .zr-form-card {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
      }
    }

    .zr-grid-responsive-2col {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
      gap: 20px;
      margin-bottom: 20px;
    }

    @media (max-width: 600px) {
      .zr-grid-responsive-2col {
        grid-template-columns: 1fr;
      }
    }

    .zr-whois-search-form {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
    }

    @media (max-width: 540px) {
      .zr-whois-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
      }
      .zr-whois-search-form .search-action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
      }
    }

    .zr-legal-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
      gap: 24px;
      margin-bottom: 48px;
    }

    .zr-privacy-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
      gap: 28px;
      margin-bottom: 56px;
    }

    pre.zr-code-body,
    .zr-code-box pre {
      max-width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      word-break: break-word;
    }

    @media (max-width: 360px) {
      .container {
        padding-left: 12px;
        padding-right: 12px;
      }
      .hero-title {
        font-size: 1.65rem;
      }
      .search-action-btn {
        font-size: 0.95rem;
        padding: 11px 16px;
      }
    }

/* ==========================================================================
   Email Hub, Promotional Campaigns & Templates Engine
   ========================================================================== */
.zr-email-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .zr-email-hub-grid {
    grid-template-columns: 1fr;
  }
}

.zr-audience-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  margin-bottom: 12px;
  position: relative;
}

.zr-audience-card:hover {
  border-color: var(--primary);
}

.zr-audience-card.is-active {
  border-color: var(--primary);
  background: rgba(0, 150, 247, 0.05);
}

.zr-audience-radio {
  margin: 0;
  accent-color: var(--primary);
}

.zr-panel-title--md {
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}

.zr-audience-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zr-audience-count-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.zr-merge-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.zr-merge-tag-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--primary-dark);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.zr-merge-tag-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.zr-email-preview-wrapper {
  position: sticky;
  top: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.zr-email-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.zr-device-toggle {
  display: flex;
  gap: 4px;
  background: var(--card);
  padding: 3px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
}

.zr-device-btn {
  padding: 4px 10px;
  font-size: 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: var(--r-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zr-device-btn.is-active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.zr-email-preview-stage {
  padding: 24px 16px;
  background: #070b14;
  display: flex;
  justify-content: center;
  min-height: 520px;
  overflow: auto;
}

.zr-email-preview-frame {
  width: 100%;
  max-width: 600px;
  min-height: 520px;
  border: none;
  border-radius: 12px;
  background: #151f32;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zr-email-preview-frame.is-mobile {
  max-width: 360px;
}

.zr-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.zr-template-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.zr-template-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.zr-template-card__header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zr-template-card__body {
  padding: 20px;
  flex: 1;
}

.zr-template-card__footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.zr-user-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
}

.zr-user-search-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.zr-user-search-item:last-child {
  border-bottom: none;
}

.zr-user-search-item:hover {
  background: rgba(0, 150, 247, 0.1);
}

.zr-preview-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 18, 66, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.zr-preview-modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.zr-preview-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
}

.zr-preview-modal-body {
  padding: 24px;
  background: #070b14;
  overflow-y: auto;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   ENTERPRISE CAPABILITY SUITE (Pillars 1 - 5)
   ========================================================================== */

/* 1. Prepaid Wallet & Credits */
.zr-wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .zr-wallet-grid {
    grid-template-columns: 1fr;
  }
}

.zr-wallet-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, var(--card) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

.zr-wallet-hero__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.zr-wallet-hero__balance {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 6px;
}

.zr-wallet-hero__currency {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  vertical-align: middle;
  margin-left: 6px;
}

.zr-wallet-hero__perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.zr-wallet-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.zr-wallet-perk__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: rgba(0, 150, 247, 0.12);
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.zr-wallet-deposit {
  padding: 24px;
}

.zr-wallet-deposit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zr-preset-grid--sm {
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.zr-preset--amt {
  align-items: center;
  text-align: center;
  padding: 8px 6px;
}

.zr-preset__val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.zr-input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.zr-input-prefix {
  position: absolute;
  left: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
  font-family: var(--font-mono);
}

.zr-input-prefixed {
  padding-left: 32px !important;
}

/* 2. Customer Activity & Audit Trail */
.zr-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.zr-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.zr-filter-pill:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--primary);
}

.zr-filter-pill--active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.zr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.zr-dot--purple { background: #a855f7; }
.zr-dot--blue { background: #3b82f6; }
.zr-dot--cyan { background: #06b6d4; }
.zr-dot--green { background: #10b981; }

.zr-filter-pill--active .zr-dot {
  background: #fff;
}

.zr-truncate-cell {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zr-details-pop summary {
  cursor: pointer;
  list-style: none;
}

.zr-details-pop summary::-webkit-details-marker {
  display: none;
}

.zr-details-pop pre {
  margin-top: 8px;
  max-height: 180px;
  overflow: auto;
  background: var(--surface2);
  padding: 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-size: 11px;
}

/* 3. DNS Service Presets & Bundles */
.zr-preset-bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.zr-preset-bundle-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.zr-preset-bundle-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.zr-preset-bundle-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.zr-preset-bundle-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.zr-preset-bundle-card__records {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zr-record-wizards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

/* 4. Domain Security & Anti-Theft Protection */
.zr-security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .zr-security-grid {
    grid-template-columns: 1fr;
  }
}

.zr-security-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface2);
  gap: 14px;
}

.zr-security-box__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.zr-security-box__actions {
  display: flex;
}

.zr-epp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.zr-epp-code-box {
  display: flex;
  align-items: center;
}

.zr-epp-code-masked {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.zr-epp-code-revealed {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 150, 247, 0.1);
  padding: 3px 8px;
  border-radius: var(--r-xs);
}

.zr-epp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cyan, .tag.cyan {
  background: #E0F2FE;
  color: #0369A1;
}

.zr-btn-full {
  width: 100%;
  justify-content: center;
}

.zr-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.zr-nowrap {
  white-space: nowrap;
}

.zr-pre-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
}

.zr-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.zr-wallet-hero__badge {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}




