@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cairo:wght@400;500;600;700&display=swap');

/* ZaidHost billing: Minimal Violet (AR + EN)
   Unlayered on purpose so it wins over Tailwind's layered utilities.
   Loaded after layouts/colors.blade.php, so it overrides the color tokens. */

/* ---------- Tokens (HSL triples, same format Paymenter uses) ---------- */
:root {
    --color-primary: 262 83% 58%;          /* #7c3aed */
    --color-secondary: 262 60% 66%;
    --color-neutral: 258 22% 91%;
    --color-base: 255 28% 12%;
    --color-muted: 255 9% 45%;
    --color-inverted: 0 0% 100%;
    --color-background: 0 0% 100%;
    --color-background-secondary: 260 30% 98%;

    --zh-radius: 12px;
    --zh-radius-lg: 16px;
    --zh-ring: 0 0 0 3px hsl(var(--color-primary) / .16);
    --zh-shadow: 0 1px 2px hsl(255 30% 20% / .05);
    --zh-shadow-hover: 0 6px 20px hsl(255 30% 20% / .08);
}

.dark {
    --color-primary: 262 90% 68%;
    --color-secondary: 262 60% 72%;
    --color-neutral: 255 13% 19%;
    --color-base: 260 20% 96%;
    --color-muted: 255 8% 62%;
    --color-inverted: 255 28% 10%;
    --color-background: 255 22% 8%;
    --color-background-secondary: 255 17% 11%;

    --zh-shadow: 0 1px 2px #0006;
    --zh-shadow-hover: 0 6px 20px #0008;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
html, body, button, input, select, textarea {
    font-family: Inter, Cairo, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html[lang^="ar"] body,
html[lang^="ar"] button,
html[lang^="ar"] input,
html[lang^="ar"] select,
html[lang^="ar"] textarea {
    font-family: Cairo, Inter, ui-sans-serif, system-ui, sans-serif;
}
body {
    background-color: hsl(var(--color-background));
    color: hsl(var(--color-base));
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::selection { background: hsl(var(--color-primary) / .22); }
main h1, main h2, main h3 { letter-spacing: -.01em; font-weight: 700; }
html[dir="rtl"] main h1,
html[dir="rtl"] main h2,
html[dir="rtl"] main h3 { letter-spacing: 0; }
a { transition: color .15s ease; }

/* ---------- Navbar: clean, light, sticky ---------- */
nav.fixed.top-0 {
    background: hsl(var(--color-background) / .86);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid hsl(var(--color-neutral));
    box-shadow: none;
}
nav.fixed.top-0 .text-xl.font-bold {
    color: hsl(var(--color-base));
    font-size: 1.25rem;
    font-weight: 700;
}
nav.fixed.top-0 a:not(.bg-primary):hover { color: hsl(var(--color-primary)); }

/* ---------- Buttons ---------- */
button.bg-primary,
a.bg-primary {
    background-color: hsl(var(--color-primary));
    background-image: none;
    border-radius: var(--zh-radius);
    font-weight: 600;
    box-shadow: none;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
button.bg-primary:hover,
a.bg-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px hsl(var(--color-primary) / .28);
}
button.bg-primary:active,
a.bg-primary:active { transform: none; box-shadow: none; }
button.bg-background-secondary.border,
a.bg-background-secondary.border { border-radius: var(--zh-radius); }

/* ---------- Cards / panels ---------- */
.card,
.bg-background-secondary.border {
    border-radius: var(--zh-radius-lg);
    border-color: hsl(var(--color-neutral));
    box-shadow: var(--zh-shadow);
}
a.bg-background-secondary.border:hover,
a.card:hover {
    border-color: hsl(var(--color-primary) / .45);
    box-shadow: var(--zh-shadow-hover);
}

/* ---------- Forms ---------- */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    border-radius: 10px;
    border-color: hsl(var(--color-neutral));
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: hsl(var(--color-primary));
    box-shadow: var(--zh-ring);
}
input[type="checkbox"]:checked,
input[type="radio"]:checked { background-color: hsl(var(--color-primary)); }

/* ---------- Tables (invoices, services, tickets) ---------- */
table { border-collapse: separate; border-spacing: 0; }
table th {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: hsl(var(--color-muted));
}
html[dir="rtl"] table th { letter-spacing: 0; text-transform: none; }
table tbody tr { transition: background-color .15s ease; }
table tbody tr:hover { background-color: hsl(var(--color-primary) / .04); }

/* ---------- Footer: minimal ---------- */
footer.zh-foot {
    width: 100%;
    margin-top: 4rem;
    background: hsl(var(--color-background-secondary));
    border-top: 1px solid hsl(var(--color-neutral));
    color: hsl(var(--color-muted));
}
footer.zh-foot .zh-fg {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    padding: 3rem 0 2rem;
}
footer.zh-foot .zh-flogo {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: hsl(var(--color-base));
}
footer.zh-foot p { margin-top: .9rem; font-size: .9rem; line-height: 1.7; max-width: 22rem; }
footer.zh-foot h4 {
    margin-bottom: .9rem;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: hsl(var(--color-base));
}
html[dir="rtl"] footer.zh-foot h4 { letter-spacing: 0; text-transform: none; font-size: .9rem; }
footer.zh-foot ul { list-style: none; margin: 0; padding: 0; }
footer.zh-foot li { margin-bottom: .55rem; }
footer.zh-foot li a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .9rem;
    color: hsl(var(--color-muted));
}
footer.zh-foot li a:hover { color: hsl(var(--color-primary)); }
footer.zh-foot .zh-cp {
    padding: 1.25rem 0 1.75rem;
    border-top: 1px solid hsl(var(--color-neutral));
    font-size: .8rem;
}
@media (max-width: 768px) {
    footer.zh-foot .zh-fg { grid-template-columns: 1fr 1fr; gap: 2rem; padding-top: 2.25rem; }
    footer.zh-foot .zh-fg > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Scrollbar ---------- */
* { scrollbar-width: thin; scrollbar-color: hsl(var(--color-neutral)) transparent; }

/* =====================================================================
   Part 2: pages built with zh-* classes (home, plans, product page)
   ===================================================================== */
.dark { --color-primary: 262 83% 64%; --color-inverted: 0 0% 100%; }

.zh-pw { opacity: .8; }
footer.zh-foot { flex: 1 1 100%; }
footer.zh-foot .zh-cp {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
}

/* ---------- Hero ---------- */
.zh-home { overflow-x: clip; }
.zh-hero {
    position: relative;
    overflow: hidden;
    margin-top: -4rem;
    padding: 9rem 0 6rem;
    color: hsl(var(--color-base));
    background:
        radial-gradient(60% 70% at 85% 10%, hsl(var(--color-primary) / .10), transparent 65%),
        radial-gradient(50% 60% at 10% 90%, hsl(var(--color-primary) / .06), transparent 70%),
        hsl(var(--color-background));
    border-bottom: 1px solid hsl(var(--color-neutral));
}
.zh-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
}
.zh-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
html[dir="rtl"] .zh-hero h1 { letter-spacing: 0; }
.zh-hero h1 b { color: hsl(var(--color-primary)); font-weight: 800; }
.zh-hero p { color: hsl(var(--color-muted)); font-size: 17px; line-height: 1.9; margin: 18px 0 28px; max-width: 540px; }
.zh-bt { display: flex; gap: 12px; flex-wrap: wrap; }
.zh-st { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; color: hsl(var(--color-muted)); font-weight: 600; font-size: 14px; }
.zh-st span { display: flex; align-items: center; gap: 8px; }
.zh-st svg { color: hsl(var(--color-primary)); }
.zh-st b { color: hsl(var(--color-base)); }
.zh-wave { display: none; }

.zh-hv { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: auto; }
.zh-core {
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: clamp(44px, 8vw, 76px);
    color: #fff;
    background: linear-gradient(145deg, hsl(262 83% 62%), hsl(268 80% 50%));
    box-shadow: 0 0 0 14px hsl(var(--color-primary) / .08), 0 0 0 32px hsl(var(--color-primary) / .04), 0 20px 40px hsl(var(--color-primary) / .25);
}
.zh-chip {
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: hsl(var(--color-primary));
    background: hsl(var(--color-background));
    border: 1px solid hsl(var(--color-neutral));
    box-shadow: var(--zh-shadow-hover);
    animation: zh-fl 6s ease-in-out infinite;
}
.zh-c1 { top: 6%; left: 14%; }
.zh-c2 { top: 10%; right: 8%; animation-delay: -1s; }
.zh-c3 { bottom: 10%; left: 6%; animation-delay: -2s; }
.zh-c4 { bottom: 6%; right: 16%; animation-delay: -3s; }
.zh-c5 { top: 44%; right: -1%; animation-delay: -4s; }

/* ---------- Buttons (home / plans) ---------- */
.zh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--zh-radius);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
    color: hsl(var(--color-base));
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.zh-btn:hover { transform: translateY(-1px); }
.zh-btn-p { background: hsl(var(--color-primary)); color: #fff; }
.zh-btn-p:hover { box-shadow: 0 6px 16px hsl(var(--color-primary) / .3); filter: brightness(1.06); }
.zh-btn-o { border-color: hsl(var(--color-neutral)); background: hsl(var(--color-background)); }
.zh-btn-o:hover { border-color: hsl(var(--color-primary) / .5); color: hsl(var(--color-primary)); }
.zh-btn-s { background: hsl(var(--color-primary) / .1); color: hsl(var(--color-primary)); }
.zh-btn-s:hover { background: hsl(var(--color-primary) / .16); }
.zh-center { display: flex; justify-content: center; margin-top: 2.25rem; }

/* ---------- Sections ---------- */
.zh-h2 { text-align: center; font-size: 28px; font-weight: 700; margin: 72px 0 36px; }
.zh-h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: hsl(var(--color-primary));
    margin: 12px auto 0;
}
.zh-h2-top { margin-top: 2.5rem; }
.zh-lead { max-width: 44rem; margin: -1rem auto 2rem; text-align: center; color: hsl(var(--color-muted)); }

.zh-ft { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 2.5rem; position: relative; z-index: 2; }
.zh-card,
.zh-et,
.zh-sp {
    background: hsl(var(--color-background-secondary));
    border: 1px solid hsl(var(--color-neutral));
    border-radius: var(--zh-radius-lg);
    text-align: center;
    box-shadow: var(--zh-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.zh-card { padding: 26px 20px; }
.zh-et { padding: 22px 14px; }
.zh-sp { padding: 28px 22px; }
.zh-card:hover, .zh-et:hover, .zh-sp:hover {
    transform: translateY(-3px);
    border-color: hsl(var(--color-primary) / .4);
    box-shadow: var(--zh-shadow-hover);
}
.zh-ci { width: 40px; height: 40px; display: block; margin: 0 auto 12px; color: hsl(var(--color-primary)); }
.zh-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.zh-card p, .zh-et p, .zh-sp p { color: hsl(var(--color-muted)); font-size: 14px; line-height: 1.8; }

.zh-eg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.zh-px { width: 52px; height: 52px; border-radius: 10px; margin: 0 auto 10px; display: block; image-rendering: pixelated; }
.zh-et h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

.zh-svc { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); margin-top: 1rem; }
.zh-svc-card { display: flex; flex-direction: column; gap: .75rem; text-align: start; }
.zh-svc-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.zh-svc-card .zh-btn { margin-top: auto; }

.zh-stp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.zh-n {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: hsl(var(--color-primary) / .1);
    color: hsl(var(--color-primary));
    font-size: 19px;
    font-weight: 700;
}
.zh-sp h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }

.zh-fq { max-width: 820px; margin: auto; }
.zh-fq details {
    background: hsl(var(--color-background-secondary));
    border: 1px solid hsl(var(--color-neutral));
    border-radius: 14px;
    margin-bottom: 10px;
    padding: 0 20px;
    transition: border-color .2s;
}
.zh-fq details[open] { border-color: hsl(var(--color-primary) / .55); }
.zh-fq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 16px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.zh-fq summary::-webkit-details-marker { display: none; }
.zh-fq summary::after { content: '+'; color: hsl(var(--color-primary)); font-size: 22px; line-height: 1; }
.zh-fq details[open] summary::after { content: '\2212'; }
.zh-fq details p { padding: 0 0 16px; color: hsl(var(--color-muted)); line-height: 1.9; font-size: 15px; }

.zh-cta-box {
    position: relative;
    overflow: hidden;
    margin-top: 56px;
    padding: 34px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #fff;
    border-radius: 20px;
    background: linear-gradient(110deg, hsl(268 80% 48%), hsl(262 83% 58%));
}
.zh-cta-box h3 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.zh-cta-box .zh-btn-p { background: #fff; color: hsl(262 83% 48%); }
.zh-cta-box .zh-btn-o { background: transparent; border-color: #ffffff66; color: #fff; }
.zh-cta-mob { width: 150px; height: 150px; flex: none; border-radius: 14px; image-rendering: pixelated; animation: zh-fl 6s ease-in-out infinite; }

/* ---------- Plans page ---------- */
.zh-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.5rem; }
.zh-pill {
    padding: .4rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid hsl(var(--color-neutral));
    background: hsl(var(--color-background));
    transition: border-color .15s ease, color .15s ease;
}
.zh-pill:hover { border-color: hsl(var(--color-primary) / .5); color: hsl(var(--color-primary)); }
.zh-pill-on, .zh-pill-on:hover { color: #fff; border-color: transparent; background: hsl(var(--color-primary)); }

.zh-pl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: center; padding: 10px 0 1rem; }
.zh-pc {
    position: relative;
    padding: 26px;
    border-radius: 20px;
    background: hsl(var(--color-background-secondary));
    border: 1px solid hsl(var(--color-neutral));
    box-shadow: var(--zh-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.zh-pc:hover { transform: translateY(-4px); box-shadow: var(--zh-shadow-hover); border-color: hsl(var(--color-primary) / .4); }
.zh-pc h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.zh-mob { width: 44px; height: 44px; border-radius: 8px; flex: none; image-rendering: pixelated; }
.zh-pr { margin: 10px 0 16px; font-size: 15px; color: hsl(var(--color-muted)); }
.zh-pr b { font-size: 38px; color: hsl(var(--color-primary)); font-weight: 800; margin: 0 6px; }
.zh-pc ul { background: hsl(var(--color-background)); border: 1px solid hsl(var(--color-neutral)); border-radius: 14px; padding: 8px 16px; margin-bottom: 18px; }
.zh-pc li { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-weight: 500; font-size: 14px; }
.zh-pc li + li { border-top: 1px dashed hsl(var(--color-neutral)); }
.zh-pc li svg { color: hsl(var(--color-primary)); flex: none; }
.zh-pbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    border-radius: var(--zh-radius);
    font-weight: 600;
    color: hsl(var(--color-primary));
    background: transparent;
    border: 1px solid hsl(var(--color-primary) / .55);
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.zh-pbtn:hover { background: hsl(var(--color-primary)); color: #fff; transform: translateY(-1px); }
.zh-pbtn-f, .zh-pbtn-f:hover { background: hsl(var(--color-primary)); color: #fff; border-color: transparent; }
.zh-pbtn-f:hover { filter: brightness(1.08); }
.zh-pbtn-off { opacity: .5; cursor: not-allowed; }
.zh-pbtn-off:hover { transform: none; background: transparent; color: hsl(var(--color-primary)); }
.zh-pc-f {
    border: 2px solid hsl(var(--color-primary));
    transform: scale(1.03);
    box-shadow: 0 0 0 6px hsl(var(--color-primary) / .08), var(--zh-shadow-hover);
}
.zh-pc-f:hover { transform: scale(1.03) translateY(-4px); }
.zh-bd {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    background: hsl(var(--color-primary));
}

/* ---------- Single plan page ---------- */
.zh-pp { max-width: 860px; margin: 0 auto; }
.zh-pp-card {
    background: hsl(var(--color-background-secondary));
    border: 1px solid hsl(var(--color-neutral));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--zh-shadow);
}
.zh-pp-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    padding: 28px 32px;
    background: hsl(var(--color-primary) / .06);
    border-bottom: 1px solid hsl(var(--color-neutral));
    color: hsl(var(--color-base));
}
.zh-pp-name { font-size: 30px; font-weight: 800; line-height: 1.2; }
.zh-pp-sub { color: hsl(var(--color-muted)); font-size: 14px; margin-top: 4px; }
.zh-pp-price { text-align: start; }
.zh-pp-amount { display: block; font-size: 30px; font-weight: 800; color: hsl(var(--color-primary)); line-height: 1.2; }
.zh-pp-per { font-size: 13px; color: hsl(var(--color-muted)); }
.zh-pp-badge {
    display: inline-block; margin-bottom: 8px; padding: 2px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 600; background: hsl(var(--color-primary) / .12); color: hsl(var(--color-primary));
}
.zh-pp-badge-out { background: hsl(var(--color-error) / .12); color: hsl(var(--color-error)); }
.zh-pp-body { padding: 28px 32px 32px; }
.zh-pp-img { width: 100%; max-height: 260px; object-fit: contain; margin-bottom: 20px; }
.zh-pp-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.zh-pp-specs {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px;
    margin: 0 0 22px; padding: 0; list-style: none;
}
.zh-pp-specs li, .zh-chips li {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 12px; font-weight: 500; font-size: 14px;
    background: hsl(var(--color-background));
    border: 1px solid hsl(var(--color-neutral));
}
.zh-pp-specs li::before, .zh-chips li::before { content: "\2713"; color: hsl(var(--color-primary)); font-weight: 800; }
.zh-pp-perks {
    display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 26px; padding: 14px 0 0; list-style: none;
    border-top: 1px dashed hsl(var(--color-neutral)); font-size: 13px; color: hsl(var(--color-muted));
}
.zh-pp-perks li::before { content: "\25CF"; color: hsl(var(--color-primary)); margin-inline-end: 6px; font-size: 8px; }
.zh-pp-cta { display: block; }
.zh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.zh-chips li { padding: 8px 14px; font-size: 14px; }

/* ---------- Motion (subtle) ---------- */
.zh-rv { animation: zh-up .55s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--d, 0s); }
@keyframes zh-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes zh-fl { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .zh-hero-grid, .zh-pl { grid-template-columns: 1fr; }
    .zh-hero { padding: 7.5rem 0 4.5rem; }
    .zh-ft { grid-template-columns: 1fr 1fr; }
    .zh-stp { grid-template-columns: 1fr; }
    .zh-eg { grid-template-columns: 1fr 1fr; }
    .zh-pc-f, .zh-pc-f:hover { transform: none; }
    .zh-cta-box { flex-direction: column; text-align: center; padding: 30px 20px; }
    .zh-cta-mob { display: none; }
    .zh-bt { justify-content: center; }
}
@media (max-width: 600px) {
    .zh-pp-head, .zh-pp-body { padding-inline: 20px; }
    .zh-pp-name { font-size: 26px; }
}
@media (max-width: 520px) {
    .zh-ft, .zh-eg { grid-template-columns: 1fr; }
    .zh-st { gap: 16px; }
}
@media (min-width: 768px) and (max-width: 1279px) {
    nav.fixed.top-0 .ml-6 > a,
    nav.fixed.top-0 .ml-6 span { padding-inline: .5rem; font-size: 13px; }
}

/* =====================================================================
   Part 3: hero background (animated grid by default, video if provided)
   Drop public/media/hero.mp4 (+ optional hero.webm, hero.jpg poster).
   ===================================================================== */
.zh-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.zh-hero-grid { z-index: 1; }

.zh-bg-grid {
    position: absolute;
    inset: -60px;
    background-image:
        linear-gradient(hsl(var(--color-primary) / .10) 1px, transparent 1px),
        linear-gradient(90deg, hsl(var(--color-primary) / .10) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(70% 80% at 50% 45%, #000 20%, transparent 75%);
    mask-image: radial-gradient(70% 80% at 50% 45%, #000 20%, transparent 75%);
    animation: zh-grid 14s linear infinite;
}
.zh-bg-glow {
    position: absolute;
    width: 560px;
    height: 560px;
    top: -140px;
    inset-inline-end: -120px;
    border-radius: 50%;
    background: radial-gradient(hsl(var(--color-primary) / .22), transparent 68%);
    animation: zh-glow 12s ease-in-out infinite alternate;
}
.zh-bg-glow::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    top: 420px;
    inset-inline-end: 620px;
    border-radius: 50%;
    background: radial-gradient(hsl(262 83% 70% / .16), transparent 68%);
}
@keyframes zh-grid { to { transform: translate(56px, 56px); } }
@keyframes zh-glow { to { transform: translate(-60px, 50px) scale(1.12); } }

/* video mode */
.zh-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zh-bg-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, hsl(262 60% 8% / .28), hsl(262 55% 6% / .62));
}
.zh-has-video { color: #fff; border-bottom-color: transparent; background: hsl(262 55% 8%); }
.zh-has-video h1 { color: #fff; }
.zh-has-video h1 b { color: hsl(262 95% 82%); }
.zh-has-video p { color: #e5defa; }
.zh-has-video .zh-st { color: #d9cff7; }
.zh-has-video .zh-st b { color: #fff; }
.zh-has-video .zh-st svg { color: hsl(262 95% 80%); }
.zh-has-video .zh-btn-o { background: #ffffff14; border-color: #ffffff55; color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zh-has-video .zh-btn-o:hover { background: #ffffff26; color: #fff; border-color: #fff; }
.zh-has-video .zh-btn-p { background: #fff; color: hsl(262 83% 45%); }
.zh-has-video .zh-chip { background: #ffffff1c; border-color: #ffffff40; color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none; }

@media (max-width: 700px) {
    .zh-bg-video { display: none; }          /* save mobile data: fall back to the poster/shade */
    .zh-has-video .zh-bg { background: hsl(262 55% 8%) center / cover; }
}
@media (prefers-reduced-motion: reduce) { .zh-bg-video { display: none; } }

/* =====================================================================
   Part 4: domain search card (under the hero)
   ===================================================================== */
.zh-dm { position: relative; z-index: 3; margin-top: -3.6rem; }
.zh-dm-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 26px 28px 22px;
    background: hsl(var(--color-background));
    border: 1px solid hsl(var(--color-neutral));
    border-radius: 20px;
    box-shadow: 0 18px 50px hsl(255 30% 20% / .12);
}
.dark .zh-dm-card { box-shadow: 0 18px 50px #000a; }
.zh-dm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.zh-dm-ic {
    flex: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    border-radius: 14px;
    color: hsl(var(--color-primary));
    background: hsl(var(--color-primary) / .1);
}
.zh-dm-head h2 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.zh-dm-head p { margin-top: 2px; font-size: 14px; color: hsl(var(--color-muted)); }

.zh-dm-form { display: flex; gap: 10px; }
.zh-dm-form input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    font-size: 16px;
    border-radius: 12px;
    text-align: start;
    background: hsl(var(--color-background-secondary));
}
.zh-dm-form .zh-btn { height: 52px; padding: 0 28px; }
.zh-dm-form .zh-btn[disabled] { opacity: .7; cursor: wait; transform: none; }

.zh-dm-tlds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.zh-dm-tld {
    padding: 4px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--color-muted));
    background: hsl(var(--color-background-secondary));
    border: 1px solid hsl(var(--color-neutral));
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease;
}
.zh-dm-tld:hover { color: hsl(var(--color-primary)); border-color: hsl(var(--color-primary) / .5); }

.zh-dm-out { margin-top: 18px; padding-top: 16px; border-top: 1px dashed hsl(var(--color-neutral)); }
.zh-dm-err { font-size: 14px; color: hsl(var(--color-error)); }
.zh-dm-note { margin-bottom: 10px; font-size: 13px; color: hsl(var(--color-muted)); }
.zh-dm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.zh-dm-r {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid hsl(var(--color-neutral));
    background: hsl(var(--color-background-secondary));
}
.zh-dm-name { flex: 1; min-width: 0; font-weight: 600; direction: ltr; text-align: start; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.zh-dm-badge { flex: none; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.zh-dm-available { border-color: hsl(var(--color-success) / .4); }
.zh-dm-available .zh-dm-badge { color: hsl(var(--color-success)); background: hsl(var(--color-success) / .12); }
.zh-dm-taken .zh-dm-name { opacity: .65; }
.zh-dm-taken .zh-dm-badge { color: hsl(var(--color-error)); background: hsl(var(--color-error) / .1); }
.zh-dm-unknown .zh-dm-badge { color: hsl(var(--color-muted)); background: hsl(var(--color-neutral)); }
.zh-dm-act { flex: none; padding: 7px 16px; font-size: 13px; }
.zh-dm-hint { margin-top: 12px; font-size: 12px; color: hsl(var(--color-muted)); }

.zh-dm-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid hsl(var(--color-neutral));
    font-size: 14px;
    color: hsl(var(--color-muted));
}
@media (max-width: 600px) {
    .zh-dm { margin-top: -2.4rem; }
    .zh-dm-card { padding: 20px 16px 18px; }
    .zh-dm-form { flex-direction: column; }
    .zh-dm-form .zh-btn { width: 100%; }
    .zh-dm-r { flex-wrap: wrap; }
    .zh-dm-act { width: 100%; }
}
