/* Brilla design system — deep royal blue brand, cool paper background, sky highlight.
   RTL-first (Arabic). Light/dark via prefers-color-scheme on CSS custom properties. */

:root {
    --paper: #F8FBFF;
    --paper-raised: #FFFFFF;
    --ink: #061121;
    --ink-soft: #3D5570;
    --ink-faint: #7C93AC;
    --line: #D9E7F4;
    --line-strong: #A9C6E2;
    --accent: #1E73BE;
    --accent-ink: #FFFFFF;
    --accent-dark: #0F2FA0;
    --accent-tint: #E8F2FB;
    --brand-deep: #0F2FA0;
    --highlight: #9FDCFF;
    --warn: #B8791A;
    --warn-tint: #FFF4D6;
    --good: #1E8E5A;
    --good-tint: #E3F5EC;
    --bad: #C0392B;
    --bad-tint: #FBE9E7;
    --bad-ink: #FFFFFF;
    --shadow: 0 2px 12px rgba(6, 17, 33, .08);
    --radius: 6px;
    --radius-lg: 10px;
    --font-head: 'Poppins', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-body: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;

    /* dark chrome bands (topbar + footer) — deliberately dark in BOTH schemes so the
       deep-blue Brilla wordmark plate and the light band text stay consistent. */
    --band: #061121;
    --band-raised: #0C1B2E;
    --band-ink: #C6D9EC;
    --band-ink-strong: #FFFFFF;
    --band-faint: #7C93AC;
    --band-line: #1B3050;

    /* fixed brand gradient — identical in both schemes (always carries white text) */
    --brand-grad-from: #0F2FA0;
    --brand-grad-to: #1E73BE;
    --on-brand: #FFFFFF;

    /* hero artwork field — fixed in both schemes, matches hero-global-network.svg */
    --hero-field: #061121;
    --hero-ink: #FFFFFF;
    --hero-ink-soft: #D7E7F6;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #061121;
        --paper-raised: #0C1B2E;
        --ink: #E8F2FB;
        --ink-soft: #9FB6CC;
        --ink-faint: #6E8399;
        --line: #17293F;
        --line-strong: #2A4159;
        --accent: #4FA3E8;
        --accent-ink: #04101E;
        --accent-dark: #9FDCFF;
        --accent-tint: #0E2438;
        --brand-deep: #9FDCFF;
        --highlight: #9FDCFF;
        --warn: #E0A352;
        --warn-tint: #33260F;
        --good: #5CBF92;
        --good-tint: #102C1F;
        --bad: #E57368;
        --bad-tint: #331612;
        --bad-ink: #04101E;
        --shadow: 0 2px 16px rgba(0, 0, 0, .45);

        --band: #04101E;
        --band-raised: #0C1B2E;
        --band-ink: #9FB6CC;
        --band-ink-strong: #FFFFFF;
        --band-faint: #6E8399;
        --band-line: #17293F;
    }
}

* { box-sizing: border-box; }
/* Tells the browser which palette to paint native widgets with (select popups, date
   pickers, scrollbars, checkboxes) so they match the rest of the page in both schemes. */
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
@media (prefers-color-scheme: dark) {
    html { color-scheme: dark; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.65;
    font-size: 16px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 .6em;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { padding-inline-start: 1.2em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: .5em;
}
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    padding: .8em 1.5em;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
    text-decoration: none;
    line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); padding: .6em .9em; }
.btn-block { width: 100%; }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.btn-danger { background: var(--bad); color: var(--bad-ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- header ---------- */
.topbar {
    background: var(--band);
    color: var(--band-ink);
    font-size: .82rem;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-block: 7px; }
.topbar-offices { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar a { color: var(--band-ink); }
.topbar a:hover { color: var(--band-ink-strong); }

.site-header {
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
}
.site-header .container { display: flex; align-items: center; gap: 20px; padding-block: 14px; }
/* ---------- logo (image wordmark) ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-img { height: 44px; width: auto; display: block; border-radius: var(--radius); }
.logo-tag {
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 600;
    color: var(--ink-faint);
    line-height: 1.35;
    max-width: 130px;
    border-inline-start: 2px solid var(--line-strong);
    padding-inline-start: 10px;
}
/* The wordmark is deep-blue-on-transparent, so on the dark scheme (navy header/panels)
   it gets a light plate to stay legible. */
@media (prefers-color-scheme: dark) {
    .logo-img {
        background: rgba(255, 255, 255, .94);
        padding: 4px 9px;
        box-shadow: 0 0 0 1px rgba(159, 220, 255, .25);
    }
}
/* The footer band is dark navy in BOTH schemes, so its logo is always plated. */
.footer-logo {
    height: 38px;
    width: auto;
    display: block;
    background: rgba(255, 255, 255, .95);
    padding: 5px 10px;
    border-radius: var(--radius);
    margin-bottom: 14px;
}

.main-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 12px; flex: 1; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
    display: block;
    padding: 10px 12px;
    color: var(--ink);
    font-weight: 600;
    font-size: .93rem;
    border-radius: var(--radius);
    white-space: nowrap;
}
.main-nav > ul > li > a:hover { background: var(--accent-tint); color: var(--accent-dark); text-decoration: none; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown {
    display: none;
    position: absolute;
    inset-inline-start: 0;
    top: 100%;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    min-width: 220px;
    padding: 6px;
    border-radius: var(--radius);
    z-index: 50;
}
.dropdown a { display: block; padding: 8px 10px; color: var(--ink-soft); font-size: .88rem; border-radius: var(--radius); }
.dropdown a:hover { background: var(--accent-tint); color: var(--accent-dark); text-decoration: none; }
.show-mobile-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.header-actions-end { margin-inline-start: auto; }
.header-search { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.header-search input { border: 0; padding: 7px 10px; font-size: .85rem; width: 140px; background: transparent; color: var(--ink); }
.header-search input:focus { outline: none; }
.header-search button { border: 0; background: var(--paper); padding: 7px 10px; cursor: pointer; color: var(--ink-soft); }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 7px 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--band); color: var(--band-ink); margin-top: 64px; }
.site-footer a { color: var(--band-ink); }
.site-footer a:hover { color: var(--band-ink-strong); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 52px 0 32px; }
.footer-grid h4 { color: var(--band-ink-strong); font-size: .95rem; margin-bottom: 1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.footer-about p { color: var(--band-faint); font-size: .9rem; }
.footer-newsletter { display: flex; margin-top: 10px; border: 1px solid var(--band-line); border-radius: var(--radius); overflow: hidden; }
.footer-newsletter input { flex: 1; border: 0; padding: 9px 10px; background: var(--band-raised); color: var(--band-ink-strong); font-size: .85rem; }
.footer-newsletter input:focus { outline: none; }
.footer-newsletter button { border: 0; background: var(--accent); color: var(--accent-ink); padding: 9px 14px; cursor: pointer; font-weight: 700; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { border: 1px solid var(--band-line); border-radius: var(--radius); padding: 6px 10px; font-size: .8rem; }
.footer-bottom { border-top: 1px solid var(--band-line); padding: 16px 0; font-size: .82rem; color: var(--band-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.admin-footer { margin-top: 44px; }
.admin-footer .footer-bottom { border-top: 0; }
.countries-strip { border-top: 1px solid var(--band-line); padding: 14px 0; font-size: .82rem; color: var(--band-faint); }
.countries-strip strong { color: var(--band-ink); }

/* ---------- hero ---------- */
/* Original SVG artwork (assets/img/hero-global-network.svg) sits behind a navy gradient
   overlay so the headline and both CTA buttons stay clearly legible. */
.hero {
    position: relative;
    padding: 88px 0 78px;
    border-bottom: 1px solid var(--band-line);
    background-color: var(--hero-field);
    background-image: url("../img/hero-global-network.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(6, 17, 33, .94) 0%, rgba(6, 17, 33, .80) 38%, rgba(6, 17, 33, .28) 100%);
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 620px; color: var(--hero-ink); text-shadow: 0 1px 18px rgba(6, 17, 33, .6); }
.hero .eyebrow { color: var(--highlight); }
.hero-lead { font-size: 1.1rem; max-width: 560px; color: var(--hero-ink-soft); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .btn-primary { background: var(--highlight); color: var(--hero-field); }
.hero .btn-primary:hover { background: var(--hero-ink); }
.hero .btn-outline { color: var(--hero-ink); border-color: rgba(255, 255, 255, .55); background: rgba(6, 17, 33, .35); }
.hero .btn-outline:hover { border-color: var(--highlight); color: var(--highlight); background: rgba(159, 220, 255, .12); }
.hero-art {
    border: 1px solid rgba(159, 220, 255, .28);
    background: rgba(6, 17, 33, .42);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .35);
}
.hero-art-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hero-art-cell {
    border: 1px solid rgba(159, 220, 255, .22);
    border-radius: var(--radius);
    padding: 16px 10px;
    text-align: center;
    font-size: .8rem;
    color: var(--hero-ink-soft);
    background: rgba(15, 47, 160, .22);
}
.hero-art-cell strong { display: block; color: var(--highlight); font-family: var(--font-head); font-size: 1.3rem; }

/* ---------- page-header band (every page except the homepage) ---------- */
/* A compact echo of the hero: the same deep-brand -> ink navy gradient carrying the page
   eyebrow, <h1> and optional intro, with hero-global-network.svg layered over it at low
   opacity as texture. The gradient uses the FIXED brand tokens (identical in both colour
   schemes) rather than --brand-deep/--ink, which invert under the dark scheme and would
   flip this band to a light plate under white text. Rendered from includes/header.php,
   includes/account-nav.php and includes/admin-header.php. */
.page-head {
    position: relative;
    overflow: hidden;
    padding: 34px 0 32px;
    background: linear-gradient(270deg, var(--hero-field) 0%, var(--brand-grad-from) 100%);
    border-bottom: 1px solid var(--band-line);
}
.page-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/hero-global-network.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .2;
    pointer-events: none;
}
.page-head > .container { position: relative; z-index: 1; }
.page-head .eyebrow { color: var(--highlight); margin-bottom: .3em; }
.page-head h1 {
    color: var(--on-brand);
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
.page-head-intro {
    color: var(--hero-ink-soft);
    max-width: 760px;
    margin: .7em 0 0;
    font-size: .97rem;
}
.page-head-intro a { color: var(--highlight); }
/* The band already supplies the top spacing, so the first section below it tightens up. */
.page-head + .section { padding-top: 36px; }

/* ---------- stats ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-raised); }
.stat-item { padding: 22px 16px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat-item:first-child { border-inline-start: 0; }
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--accent-dark); }
.stat-label { font-size: .85rem; color: var(--ink-soft); }

/* ---------- cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* Grid items default to min-width:auto, so one long label or wide table inside a column
   drags the whole page sideways on narrow screens instead of scrolling inside its own
   .table-wrap. Only affects the overflow case; desktop track sizing is unchanged. */
.grid-2 > *, .grid-3 > * { min-width: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }

.card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.card-narrow { max-width: 680px; }
/* Live thumbnail beside the admin product image_url field. */
.img-preview {
    max-width: 140px;
    max-height: 100px;
    width: auto;
    margin-top: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}
.img-preview[hidden] { display: none; }
.card-hover { transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }

.cat-card { display: block; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; text-align: start; }
.cat-card:hover { border-color: var(--accent); text-decoration: none; }
/* Original line-art SVG icons (assets/img/icon-*.svg) sit on a tinted brand tile. */
.cat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius);
    background: var(--accent-tint);
    border: 1px solid var(--line);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-icon img { width: 32px; height: 32px; aspect-ratio: 1 / 1; display: block; }
.cat-card h3 { margin-bottom: .3em; font-size: 1.05rem; color: var(--ink); }
.cat-card p { font-size: .87rem; margin-bottom: 0; }

.feature-card { border-inline-start: 3px solid var(--accent); padding-inline-start: 18px; }
.feature-card h3 { font-size: 1.05rem; }
.feature-card p { font-size: .9rem; }

.office-card { border: 1px solid var(--line); background: var(--paper-raised); border-radius: var(--radius-lg); overflow: hidden; }
.office-card-head { background: var(--accent-tint); color: var(--accent-dark); padding: 14px 20px; font-family: var(--font-head); font-weight: 800; }
.office-card-body { padding: 20px; font-size: .92rem; }
.office-card-body dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.office-card-body dt { color: var(--ink-faint); font-size: .82rem; }
.office-card-body dd { margin: 0; }

.map-placeholder {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 10px, var(--paper-raised) 10px, var(--paper-raised) 20px);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-faint);
    font-size: .85rem;
    text-align: center;
    padding: 20px;
}

/* ---------- supply-chain figure (original SVG) ---------- */
.supply-figure { margin: 40px 0 0; }
.supply-figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 420;
    display: block;
}
.supply-figure figcaption {
    text-align: center;
    font-size: .88rem;
    color: var(--ink-faint);
    margin-top: 10px;
}

.logo-strip { display: flex; flex-wrap: wrap; gap: 14px; }
.logo-strip-center { justify-content: center; }
.logo-chip { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px; color: var(--ink-faint); font-family: var(--font-head); font-weight: 700; background: var(--paper-raised); }

.cta-band {
    background: linear-gradient(120deg, var(--brand-grad-from) 0%, var(--brand-grad-to) 100%);
    color: var(--on-brand);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}
.cta-band h2 { color: var(--on-brand); }
.cta-band p { color: rgba(255, 255, 255, .88); }
.cta-band .btn-outline { border-color: rgba(255, 255, 255, .6); color: var(--on-brand); background: transparent; }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, .14); border-color: var(--on-brand); color: var(--on-brand); }

/* ---------- process timeline ---------- */
.process-line { display: flex; gap: 0; counter-reset: step; flex-wrap: wrap; }
.process-step { flex: 1; min-width: 160px; position: relative; padding: 0 14px 14px; text-align: center; }
.process-step::before {
    counter-increment: step;
    content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin: 0 auto 12px;
    border: 2px solid var(--accent); color: var(--accent); font-family: var(--font-head); font-weight: 800;
    border-radius: 50%; background: var(--paper-raised);
}
.process-step:not(:last-child)::after {
    content: ""; position: absolute; top: 19px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line-strong); z-index: -1;
}
.process-step h3 { font-size: .95rem; margin-bottom: .3em; }
.process-step p { font-size: .82rem; }

/* ---------- status timeline (shipments) ---------- */
.status-timeline { display: flex; align-items: flex-start; gap: 0; }
.status-node { flex: 1; text-align: center; position: relative; }
.status-node .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--line-strong); margin: 0 auto 8px; border: 3px solid var(--paper-raised); box-shadow: 0 0 0 1px var(--line-strong); }
.status-node.done .dot { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.status-node.current .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.status-node:not(:last-child)::after { content: ""; position: absolute; top: 8px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line-strong); z-index: -1; }
.status-node.done:not(:last-child)::after { background: var(--accent); }
.status-node span { font-size: .78rem; color: var(--ink-soft); }
.status-node.current span { color: var(--accent-dark); font-weight: 700; }

/* ---------- badges / pills ---------- */
/* The neutral base doubles as the fallback surface, so a status with no dedicated
   modifier still renders as a readable pill instead of invisible text. */
.pill {
    display: inline-block;
    padding: .3em .8em;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    border: 1px solid transparent;
    background: var(--accent-tint);
    color: var(--accent-dark);
}
.pill-pending { background: var(--warn-tint); color: var(--warn); }
.pill-quoted, .pill-processing, .pill-customs, .pill-in_transit, .pill-answered { background: var(--accent-tint); color: var(--accent-dark); }
.pill-accepted, .pill-active, .pill-delivered, .pill-paid, .pill-confirmed, .pill-shipped, .pill-closed { background: var(--good-tint); color: var(--good); }
.pill-rejected, .pill-due, .pill-open { background: var(--bad-tint); color: var(--bad); }
/* Live carrier quote vs. internal fallback tariff — see includes/shipping.php. */
.pill-live { background: var(--good-tint); color: var(--good); }
.pill-estimate { background: var(--warn-tint); color: var(--warn); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--ink-faint); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=search], input[type=date], input[type=file], select, textarea {
    width: 100%;
    padding: .7em .8em;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--paper-raised);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .95rem;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input:hover:not([disabled]), select:hover, textarea:hover { border-color: var(--accent); }
input[disabled], select[disabled], textarea[disabled] { background: var(--paper); color: var(--ink-faint); cursor: not-allowed; }
::placeholder { color: var(--ink-faint); opacity: 1; }
/* Native selects keep their own arrow (drawing one would mean hardcoding a colour), but
   the reserved end padding stops long Arabic option labels running under it. */
select { padding-inline-end: 2em; }
/* The unstyled native "choose file" control was the loudest un-themed element on the
   RFQ and CSV-import forms — this turns it into a small brand-tinted button. */
input[type=file] { padding: .45em .6em; font-size: .88rem; cursor: pointer; }
input[type=file]::file-selector-button {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .82rem;
    padding: .5em 1.1em;
    margin-inline-end: 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--accent-tint);
    color: var(--accent-dark);
    cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.checkbox-row input { width: auto; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 4px; margin: 0 0 20px; background: var(--paper-raised); }
legend { font-family: var(--font-head); font-weight: 800; padding: 0 8px; font-size: .95rem; color: var(--accent-dark); }

.alert { padding: 14px 18px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 20px; border: 1px solid transparent; border-inline-start-width: 4px; }
.alert :last-child { margin-bottom: 0; }
.alert a { color: inherit; text-decoration: underline; }
.alert-success { background: var(--good-tint); color: var(--good); border-color: var(--good); }
.alert-error { background: var(--bad-tint); color: var(--bad); border-color: var(--bad); }
.alert-info { background: var(--accent-tint); color: var(--accent-dark); border-color: var(--accent); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--paper-raised); }
th, td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: var(--paper); font-family: var(--font-head); font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line-strong); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--accent-tint); }
tfoot td { background: var(--paper); font-weight: 700; color: var(--ink); border-bottom: 0; border-top: 1px solid var(--line-strong); }
td.total-label { text-align: end; }
/* Buttons and forms sitting inside a cell shouldn't inherit the cell's nowrap/baseline. */
td form { margin: 0; }
td .btn { vertical-align: middle; }
/* Empty-state row: a centred, roomy "nothing here yet" instead of a cramped grey cell. */
tbody tr.empty-row:hover { background: transparent; }
td.empty-cell {
    text-align: center;
    white-space: normal;
    padding: 34px 16px;
    color: var(--ink-faint);
    font-size: .9rem;
}
/* Support replies render as a full-width continuation row under their ticket. */
td.detail-cell { white-space: normal; background: var(--paper); color: var(--ink-soft); }

/* ---------- product catalog ---------- */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filter-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; background: var(--paper-raised); position: sticky; top: 84px; }
.filter-box h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; color: var(--ink-soft); }
.filter-group { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.filter-group:last-child { border-bottom: 0; }
.filter-option { display: flex; align-items: center; gap: 8px; font-size: .88rem; margin-bottom: 8px; }
.filter-option input { width: auto; }
.product-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); display: flex; flex-direction: column; overflow: hidden; }
.product-thumb { aspect-ratio: 4/3; background: var(--accent-tint); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-faint); font-size: .8rem; overflow: hidden; }
.product-thumb img, .gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb.is-placeholder img, .gallery-main.is-placeholder img { object-fit: contain; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand { font-size: .75rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.product-body h3 { font-size: 1rem; margin: 0; }
.product-body h3 a { color: var(--ink); }
.product-price { font-family: var(--font-head); font-weight: 800; color: var(--accent-dark); font-size: 1.1rem; margin-top: 4px; }
.product-actions { display: flex; gap: 8px; padding: 0 16px 16px; align-items: stretch; }
.product-action-form { flex: 1; display: flex; }
.product-actions .btn { white-space: nowrap; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font-size: .85rem;
    font-family: var(--font-head);
    font-weight: 700;
    background: var(--paper-raised);
    color: var(--ink-soft);
    line-height: 1.2;
}
.pagination a:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.pagination .active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- product detail ---------- */
.pd-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; }
/* Grid items default to min-width:auto, so the shipping-quote table inside the detail
   column would widen the whole page instead of scrolling inside its own .table-wrap. */
.pd-grid > * { min-width: 0; }
.gallery-main { aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--accent-tint); display: flex; align-items: center; justify-content: center; color: var(--ink-faint); overflow: hidden; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.gallery-thumbs div { flex: 1; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 26px 0 18px; flex-wrap: wrap; }
.tab-btn {
    background: transparent;
    border: 0;
    padding: 10px 16px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    color: var(--ink-faint);
    border-bottom: 2px solid transparent;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.tab-btn:hover { color: var(--accent); background: var(--accent-tint); }
.tab-btn.active { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-tint); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.spec-table td:first-child { color: var(--ink-faint); width: 220px; }
/* The product name lives in the branded band above, so this is a visual repeat of it at
   the top of the detail column — same weight as the old <h1>, but not a second one. */
.pd-title { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: .5em; }
.product-price-lg { font-size: 1.6rem; margin: 14px 0; }
/* app.js injects either a .table-wrap or an .alert here, both of which bring their own
   surface — so this only owns spacing, never a second border. */
.shipping-calc-result > :last-child { margin-bottom: 0; }

/* ---------- account / admin shell ---------- */
/* The dashboard now lines up with the public .container width instead of bleeding to the
   window edges, and the side-nav reads as a card like every other panel on the site. */
.dash-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0 26px;
    align-items: start;
    min-height: 60vh;
    width: 100%;
    max-width: 1180px;
    margin: 28px auto 0;
    padding: 0 20px;
}
.dash-side {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px 0;
    position: sticky;
    top: 84px;
    overflow: hidden;
}
.dash-side .side-head { padding: 0 18px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.dash-side .side-head strong { display: block; font-family: var(--font-head); color: var(--ink); line-height: 1.35; }
.dash-side nav ul { list-style: none; margin: 0; padding: 0; }
.dash-side nav a {
    display: block;
    padding: 10px 18px;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 600;
    border-inline-start: 3px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dash-side nav a:hover { background: var(--accent-tint); color: var(--accent-dark); text-decoration: none; }
.dash-side nav a.active { border-inline-start-color: var(--accent); color: var(--accent-dark); background: var(--accent-tint); }
/* min-width:0 lets .table-wrap scroll inside this grid column instead of stretching the
   whole shell (grid items default to min-width:auto, which blew wide admin tables out). */
.dash-main { min-width: 0; padding-bottom: 8px; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.dash-card {
    border: 1px solid var(--line);
    background: var(--paper-raised);
    border-radius: var(--radius-lg);
    padding: 20px;
    border-top: 3px solid var(--accent);
}
.dash-card .num { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--accent-dark); line-height: 1.15; }
.dash-card .lbl { font-size: .85rem; color: var(--ink-soft); }
.dash-main > h3, .dash-main > h4 { margin-top: 28px; }
.dash-main > h3:first-child, .dash-main > h4:first-child { margin-top: 0; }
.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
/* An action-only row (the <h1> now lives in the branded band above) keeps its controls
   on the trailing edge rather than being pushed around by space-between. */
.page-title-row.actions-only { justify-content: flex-end; }

.rfq-cart-row { display: grid; grid-template-columns: 1fr 100px 120px 40px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rfq-cart-row input[type=number] { width: 80px; }
.input-qty { width: 84px; min-width: 84px; }
.input-price { width: 130px; min-width: 130px; }
.input-code { text-transform: uppercase; }
.w-dest { max-width: 280px; }
.w-postal { max-width: 180px; }
.totals-card { max-width: 440px; }
.totals-grand { font-size: 1.1rem; color: var(--ink); }
.removal-row { gap: 10px; margin: 14px 0 30px; }
.removal-row:empty { margin: 0; }

/* ---------- multi-carrier rate comparison (product page + RFQ + estimate page) ---------- */
.quote-compare { margin: 18px 0 4px; }
.quote-compare h4 { margin: 0 0 10px; font-size: 1rem; }
.quote-table { font-size: .9rem; }
.quote-table th { white-space: nowrap; }
.quote-row-best > td { background: var(--good-tint); }
.quote-row-best > td:first-child { border-start-start-radius: var(--radius); border-end-start-radius: var(--radius); }
.quote-row-best > td:last-child { border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); }

/* Long constant lists ("ينقص: DHL_API_KEY، ...") wrap instead of stretching the table row,
   which every other cell keeps at white-space:nowrap. */
.cell-note { white-space: normal; overflow-wrap: break-word; max-width: 26ch; }

/* Weight / L / W / H block in admin/products.php — required for accurate live rating. */
.ship-fields { border-color: var(--line-strong); }
.ship-fields legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- standalone admin sign-in (admin/login.php has no shared chrome) ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.auth-page .page-head { text-align: center; }
.auth-body { flex: 1; display: flex; justify-content: center; padding: 38px 20px 56px; }
.auth-card-wrap { width: 100%; max-width: 420px; }
.auth-logo { height: 50px; margin: 0 auto 20px; }

/* ---------- utility ---------- */
.text-center { text-align: center; }
/* Named reading widths, replacing the ad-hoc inline max-width styles these pages carried. */
.container-sm { max-width: 480px; }
.container-md { max-width: 680px; }
.container-lg { max-width: 940px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.w-qty { max-width: 110px; }
.inline-form { display: inline; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-faint); }
.small { font-size: .85rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
    /* free up header width for the nav — the wordmark alone still carries the brand.
       The admin header has no nav, so it keeps its tagline. */
    .site-header .logo-tag { display: none; }
    .site-header.header-admin .logo-tag { display: block; }
}
@media (max-width: 980px) {
    .hero-grid, .pd-grid { grid-template-columns: 1fr; }
    .grid-3, .grid-4, .stats-strip, .footer-grid, .dash-cards { grid-template-columns: repeat(2, 1fr); }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .catalog-layout { grid-template-columns: 1fr; }
    .filter-box { position: static; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-shell { grid-template-columns: 1fr; gap: 20px; }
    .dash-side { position: static; }
}
@media (max-width: 760px) {
    .header-search { display: none; }
    /* Drawer is offset with inset-inline-start (direction-aware) rather than a percentage
       translateX — browsers flip percentage translates under dir=rtl, which slid the closed
       drawer INTO view from the left instead of off the right edge. */
    .main-nav { position: fixed; inset-inline-start: -100vw; top: 0; height: 100vh; width: 82%; max-width: 320px;
        background: var(--paper-raised); z-index: 60; visibility: hidden; opacity: 0;
        transition: inset-inline-start .22s ease, opacity .22s ease, visibility .22s ease;
        box-shadow: -8px 0 24px rgba(0,0,0,.2); padding: 20px; overflow-y: auto; }
    .main-nav.open { inset-inline-start: 0; visibility: visible; opacity: 1; }
    .main-nav > ul { flex-direction: column; }
    .dropdown { position: static; display: block; box-shadow: none; border: 0; padding-inline-start: 12px; }
    .nav-toggle { display: block; }
    .show-mobile-only { display: block; }
    .grid-2, .grid-3, .grid-4, .stats-strip, .footer-grid, .form-grid, .dash-cards { grid-template-columns: 1fr; }
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr; }
    .stat-item { border-inline-start: 0; border-top: 1px solid var(--line); }
    .stat-item:first-child { border-top: 0; }
    .process-line { flex-direction: column; }
    .process-step::after { display: none; }
    .site-header .container { flex-wrap: wrap; }
    .logo-img { height: 34px; }
    .logo-tag { display: none; }
    .hero { padding: 56px 0 48px; }
    .page-head { padding: 26px 0 24px; }
    .page-head + .section { padding-top: 28px; }
    .dash-shell { margin-top: 20px; }
    .rfq-cart-row { grid-template-columns: 1fr; gap: 6px; }
    .status-timeline { flex-wrap: wrap; gap: 12px; }
    .status-node { flex: 0 0 calc(50% - 6px); }
    .status-node:not(:last-child)::after { display: none; }
}

/* ---- Language switch + English (LTR) typography ---- */
.topbar-lang { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lang-switch {
    border: 1px solid var(--band-line); border-radius: var(--radius); padding: 2px 10px;
    font-weight: 700; color: var(--band-ink-strong) !important; white-space: nowrap;
}
.lang-switch:hover { background: rgba(255,255,255,.08); }
html[lang="en"] {
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
    --font-head: 'Poppins', 'Inter', 'Segoe UI', Arial, sans-serif;
}
html[lang="en"] body { letter-spacing: 0; }
.text-start { text-align: start; }

/* ---- Form validation + international phone field ---- */
.field-error { color: var(--bad); font-size: .8rem; margin-top: 4px; }
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--bad) !important; }
.iti { width: 100%; display: block; }
.iti input.js-phone { width: 100%; }
.iti__country-container { direction: ltr; }
.iti--separate-dial-code .iti__selected-dial-code { direction: ltr; unicode-bidi: isolate; }
.iti__dropdown-content { z-index: 60; }
html[dir="rtl"] .iti__search-input { text-align: right; }
.city-field select, .city-field input { width: 100%; }

/* =====================================================================
   Homepage — vivid edition (index.php only)
   Spectrum hues + deep navy/indigo bands, moving ribbons, glow, reveal.
   Every animation is switched off under prefers-reduced-motion.
   ===================================================================== */
:root {
    --sp-red: #FF3D6E;
    --sp-orange: #FF8A1F;
    --sp-amber: #FFC21A;
    --sp-green: #19D38F;
    --sp-sky: #1FB6FF;
    --sp-indigo: #5B5CFF;
    --sp-violet: #B54DFF;
    --deep-1: #050B1F;
    --deep-2: #0B1640;
    --deep-3: #1B0E45;
    --spectrum: linear-gradient(90deg, var(--sp-red), var(--sp-orange), var(--sp-amber), var(--sp-green), var(--sp-sky), var(--sp-indigo), var(--sp-violet), var(--sp-red));
}

/* ---------- hero: moving aurora light over the network artwork ---------- */
.hero-vivid { padding: 104px 0 96px; }
.hero-vivid .aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; mix-blend-mode: screen; }
.hero-vivid .aurora span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .45; }
.hero-vivid .aurora .a1 { background: radial-gradient(circle, var(--sp-violet), transparent 65%); top: -18vmax; inset-inline-start: -8vmax; animation: aurora-1 18s ease-in-out infinite alternate; }
.hero-vivid .aurora .a2 { background: radial-gradient(circle, var(--sp-sky), transparent 65%); bottom: -24vmax; inset-inline-end: -10vmax; animation: aurora-2 22s ease-in-out infinite alternate; }
.hero-vivid .aurora .a3 { background: radial-gradient(circle, var(--sp-red), transparent 65%); top: 20%; inset-inline-end: 25%; width: 30vmax; height: 30vmax; opacity: .28; animation: aurora-3 26s ease-in-out infinite alternate; }
@keyframes aurora-1 { to { transform: translate(14vmax, 8vmax) scale(1.15); } }
@keyframes aurora-2 { to { transform: translate(-12vmax, -10vmax) scale(1.1); } }
@keyframes aurora-3 { to { transform: translate(-10vmax, 6vmax) scale(1.25); } }
.hero-vivid h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; }

.spectrum-bar {
    display: block; width: 140px; height: 5px; border-radius: 99px; margin: 4px 0 20px;
    background: var(--spectrum); background-size: 200% 100%;
    animation: spectrum-slide 4s linear infinite;
    box-shadow: 0 0 18px rgba(181, 77, 255, .55);
}
@keyframes spectrum-slide { to { background-position: 200% 0; } }

.eyebrow-glow {
    background: var(--spectrum); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent !important;
    animation: spectrum-slide 6s linear infinite;
}
.eyebrow-pill {
    display: inline-block; padding: .3em .9em; border-radius: 99px; color: #fff !important;
    background: linear-gradient(90deg, var(--sp-indigo), var(--sp-violet));
    box-shadow: 0 6px 18px rgba(91, 92, 255, .3);
}

.btn-glow {
    position: relative; isolation: isolate;
    background: linear-gradient(90deg, var(--sp-amber), var(--sp-orange)) !important;
    color: #1A0B00 !important; border: 0;
    box-shadow: 0 8px 26px rgba(255, 138, 31, .45);
}
.btn-glow:hover { box-shadow: 0 10px 34px rgba(255, 194, 26, .6); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--deep-2); font-weight: 800; box-shadow: 0 10px 28px rgba(5, 11, 31, .35); }
.btn-light:hover { color: var(--sp-indigo); transform: translateY(-1px); }

/* hero cells — each region in its own hue, floating gently */
.hero-vivid .hero-art { background: rgba(5, 11, 31, .5); border-color: rgba(255, 255, 255, .14); }
.hero-vivid .hero-art-cell { --c: var(--sp-sky); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, transparent), rgba(5, 11, 31, .35)); box-shadow: 0 0 0 0 transparent, inset 0 1px 0 rgba(255,255,255,.08); animation: float 6s ease-in-out infinite; transition: box-shadow .25s ease, transform .25s ease; }
.hero-vivid .hero-art-cell strong { color: #fff; text-shadow: 0 0 16px var(--c); font-size: 1.5rem; }
.hero-vivid .hero-art-cell:hover { box-shadow: 0 0 28px color-mix(in srgb, var(--c) 60%, transparent); }
.hero-vivid .hero-art-cell.c-red { --c: var(--sp-red); animation-delay: -1.5s; }
.hero-vivid .hero-art-cell.c-violet { --c: var(--sp-violet); animation-delay: -3s; }
.hero-vivid .hero-art-cell.c-green { --c: var(--sp-green); animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- moving ribbons ---------- */
.ribbon { position: relative; overflow: hidden; padding: 14px 0; z-index: 2; }
.ribbon-track { display: flex; width: max-content; direction: ltr; animation: ribbon-move 38s linear infinite; }
.ribbon-reverse .ribbon-track { animation-direction: reverse; animation-duration: 44s; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-list { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; flex-shrink: 0; }
.ribbon-list li { display: inline-flex; align-items: center; gap: 12px; padding: 0 26px; white-space: nowrap; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
@keyframes ribbon-move { to { transform: translateX(-50%); } }
.ribbon-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ribbon-dot.d0 { background: var(--sp-red); } .ribbon-dot.d1 { background: var(--sp-orange); } .ribbon-dot.d2 { background: var(--sp-amber); }
.ribbon-dot.d3 { background: var(--sp-green); } .ribbon-dot.d4 { background: var(--sp-sky); } .ribbon-dot.d5 { background: var(--sp-indigo); } .ribbon-dot.d6 { background: var(--sp-violet); }

.ribbon-spectrum { background: var(--spectrum); background-size: 300% 100%; animation: spectrum-slide 14s linear infinite; transform: skewY(-1.2deg); margin: -14px 0 0; box-shadow: 0 14px 40px rgba(91, 92, 255, .25); }
.ribbon-spectrum .ribbon-list li { color: #fff; text-shadow: 0 1px 2px rgba(5, 11, 31, .55); }
.ribbon-spectrum .ribbon-dot { background: #fff !important; box-shadow: 0 0 10px rgba(255, 255, 255, .9); }
.ribbon-dark { background: linear-gradient(90deg, var(--deep-1), var(--deep-3), var(--deep-1)); border-block: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; }
.ribbon-dark .ribbon-list li { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .7); font-size: 1.6rem; text-transform: uppercase; }
.ribbon-dark .ribbon-list li:nth-child(3n+1) { color: #fff; -webkit-text-stroke: 0; }
.ribbon-dark .ribbon-dot { box-shadow: 0 0 12px currentColor; }

/* ---------- stats on a deep band, numbers in spectrum gradients ---------- */
.stats-band { background: radial-gradient(1200px 400px at 15% 0%, rgba(91, 92, 255, .35), transparent 60%), radial-gradient(900px 400px at 90% 100%, rgba(255, 61, 110, .25), transparent 60%), linear-gradient(180deg, var(--deep-2), var(--deep-1)); padding: 72px 0 64px; margin-top: -10px; }
.stats-vivid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-v { position: relative; padding: 26px 20px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
.stat-v::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--g); }
.stat-v .stat-num { font-size: 3rem; line-height: 1.1; background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-v .stat-label { color: #C9D6EE; font-size: .88rem; }
.stat-v.s1 { --g: linear-gradient(90deg, var(--sp-red), var(--sp-orange)); }
.stat-v.s2 { --g: linear-gradient(90deg, var(--sp-amber), var(--sp-green)); }
.stat-v.s3 { --g: linear-gradient(90deg, var(--sp-sky), var(--sp-indigo)); }
.stat-v.s4 { --g: linear-gradient(90deg, var(--sp-violet), var(--sp-red)); }

/* ---------- categories: soft colour mesh + a hue per card ---------- */
.cats-vivid { position: relative; overflow: hidden; background: var(--paper); }
.cats-vivid .mesh { position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background: radial-gradient(520px 340px at 8% 12%, rgba(255, 61, 110, .16), transparent 70%), radial-gradient(520px 340px at 92% 18%, rgba(31, 182, 255, .18), transparent 70%), radial-gradient(620px 380px at 50% 100%, rgba(181, 77, 255, .14), transparent 70%), radial-gradient(420px 300px at 80% 80%, rgba(25, 211, 143, .14), transparent 70%); }
.cats-vivid > .container { position: relative; }
.cats-vivid h2, .offices-vivid h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cat-vivid { --c: var(--sp-sky); --c2: var(--sp-indigo); position: relative; overflow: hidden; border-radius: 18px; padding: 26px; border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, var(--paper-raised)), var(--paper-raised)); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.cat-vivid::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c), var(--c2)); }
.cat-vivid::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; inset-inline-end: -60px; bottom: -70px; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); transition: transform .4s ease; pointer-events: none; }
.cat-vivid:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 18px 40px color-mix(in srgb, var(--c) 28%, transparent); }
.cat-vivid:hover::after { transform: scale(1.5); }
.cat-vivid .cat-icon { width: 60px; height: 60px; border: 0; border-radius: 16px; background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 40%, transparent); transition: transform .3s ease; }
.cat-vivid:hover .cat-icon { transform: rotate(-6deg) scale(1.06); }
.cat-vivid .cat-icon img { filter: brightness(0) invert(1); }
.cat-vivid h3 { font-size: 1.15rem; }
.cat-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 800; font-size: .88rem; color: color-mix(in srgb, var(--c) 75%, var(--ink)); }
.cat-arrow { display: inline-block; transition: transform .25s ease; }
html[dir="rtl"] .cat-arrow { transform: scaleX(-1); }
.cat-vivid:hover .cat-arrow { transform: translateX(5px); }
html[dir="rtl"] .cat-vivid:hover .cat-arrow { transform: scaleX(-1) translateX(5px); }
.h-red { --c: var(--sp-red); --c2: var(--sp-orange); }
.h-orange { --c: var(--sp-orange); --c2: var(--sp-amber); }
.h-amber { --c: #E8A800; --c2: var(--sp-green); }
.h-green { --c: var(--sp-green); --c2: var(--sp-sky); }
.h-sky { --c: var(--sp-sky); --c2: var(--sp-indigo); }
.h-violet { --c: var(--sp-violet); --c2: var(--sp-red); }

/* ---------- why Brilla: deep indigo band with glass cards ---------- */
.why-vivid { position: relative; overflow: hidden; padding: 88px 0; color: #DCE6F7; background: linear-gradient(135deg, var(--deep-1) 0%, var(--deep-3) 55%, var(--deep-2) 100%); }
.why-vivid .why-glow { position: absolute; inset: -20%; pointer-events: none; background: conic-gradient(from 0deg at 50% 50%, rgba(255, 61, 110, .18), rgba(255, 194, 26, .12), rgba(25, 211, 143, .14), rgba(31, 182, 255, .18), rgba(181, 77, 255, .2), rgba(255, 61, 110, .18)); filter: blur(80px); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.why-vivid > .container { position: relative; }
.why-vivid h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.feat-vivid { --c: var(--sp-sky); position: relative; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 26px 22px; background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.feat-vivid:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 0 34px color-mix(in srgb, var(--c) 45%, transparent); }
.feat-vivid h3 { color: #fff; }
.feat-vivid p { color: #B9C7E0; }
.feat-num { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; margin-bottom: 14px; background: linear-gradient(135deg, var(--c), #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feat-vivid.f1 { --c: var(--sp-red); } .feat-vivid.f2 { --c: var(--sp-amber); } .feat-vivid.f3 { --c: var(--sp-green); } .feat-vivid.f4 { --c: var(--sp-violet); }

/* ---------- supply figure + offices ---------- */
.supply-vivid { background: var(--paper); }
.supply-frame { margin: 0; padding: 22px; border-radius: 22px; background: var(--paper-raised); border: 1px solid var(--line); position: relative; box-shadow: 0 20px 50px rgba(6, 17, 33, .08); }
.supply-frame::before { content: ""; position: absolute; inset: -2px; border-radius: 24px; padding: 2px; background: var(--spectrum); background-size: 200% 100%; animation: spectrum-slide 10s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.offices-vivid { background: linear-gradient(180deg, var(--paper), var(--paper-raised)); padding-top: 24px; }
.office-vivid { border-radius: 18px; border: 0; box-shadow: 0 14px 34px rgba(6, 17, 33, .1); transition: transform .25s ease, box-shadow .25s ease; }
.office-vivid:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(6, 17, 33, .16); }
.office-vivid .office-card-head { color: #fff; padding: 18px 22px; font-size: 1.05rem; }
.office-vivid.o-us .office-card-head { background: linear-gradient(120deg, #1B3FD8, var(--sp-sky)); }
.office-vivid.o-cn .office-card-head { background: linear-gradient(120deg, #D21F3C, var(--sp-amber)); }
.office-vivid.o-hk .office-card-head { background: linear-gradient(120deg, var(--sp-violet), var(--sp-red)); }
.office-vivid.o-sa .office-card-head { background: linear-gradient(120deg, #006C35, #1FA463); }
.office-vivid dd a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ---------- final call to action: animated spectrum ---------- */
.cta-section { background: var(--paper-raised); padding-top: 24px; }
.cta-vivid { position: relative; overflow: hidden; border-radius: 26px; padding: 60px 40px; background: linear-gradient(120deg, var(--sp-indigo), var(--sp-violet), var(--sp-red), var(--sp-orange), var(--sp-indigo)); background-size: 300% 300%; animation: cta-flow 12s ease infinite; box-shadow: 0 24px 60px rgba(91, 92, 255, .35); }
.cta-vivid::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; inset-inline-start: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); animation: shimmer 5.5s ease-in-out infinite; pointer-events: none; }
.cta-vivid > * { position: relative; z-index: 1; }
.cta-vivid h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); text-shadow: 0 2px 14px rgba(5, 11, 31, .35); }
.cta-vivid p { color: #fff; font-size: 1.05rem; }
@keyframes cta-flow { 50% { background-position: 100% 50%; } }
@keyframes shimmer { 0% { inset-inline-start: -60%; } 60%, 100% { inset-inline-start: 130%; } }

/* ---------- scroll reveal (enabled by app.js; content stays visible without JS) ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }
.reveal-on .grid-3 > .reveal:nth-child(3n+2), .reveal-on .grid-4 > .reveal:nth-child(4n+2), .reveal-on .stats-vivid > .reveal:nth-child(2) { transition-delay: .08s; }
.reveal-on .grid-3 > .reveal:nth-child(3n), .reveal-on .grid-4 > .reveal:nth-child(4n+3), .reveal-on .stats-vivid > .reveal:nth-child(3) { transition-delay: .16s; }
.reveal-on .grid-4 > .reveal:nth-child(4n), .reveal-on .stats-vivid > .reveal:nth-child(4) { transition-delay: .24s; }

@media (max-width: 980px) {
    .stats-vivid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .stats-vivid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-v .stat-num { font-size: 2.3rem; }
    .hero-vivid { padding: 64px 0 60px; }
    .ribbon-list li { font-size: .95rem; padding: 0 18px; }
    .ribbon-dark .ribbon-list li { font-size: 1.2rem; }
    .why-vivid { padding: 64px 0; }
    .cta-vivid { padding: 44px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-vivid .aurora span, .spectrum-bar, .eyebrow-glow, .hero-vivid .hero-art-cell, .ribbon-spectrum,
    .why-vivid .why-glow, .supply-frame::before, .cta-vivid, .cta-vivid::after { animation: none !important; }
    .ribbon-track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
    .ribbon-list[aria-hidden="true"] { display: none; }
    .ribbon-list { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
    .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- full-width feature slider (homepage) ---------- */
.hero-slider { position: relative; background: var(--deep-1); color: #fff; overflow: hidden; }
.hs-viewport { position: relative; height: clamp(440px, 46vw, 620px); }
.hs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; display: flex; align-items: center; }
.hs-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.hs-media, .hs-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-media img { object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.hs-slide.is-active .hs-media img { transform: scale(1); }
.hs-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(5, 11, 31, .92) 0%, rgba(5, 11, 31, .72) 38%, rgba(5, 11, 31, .15) 75%, rgba(5, 11, 31, .05) 100%); }
html[dir="rtl"] .hs-slide::before { background: linear-gradient(270deg, rgba(5, 11, 31, .92) 0%, rgba(5, 11, 31, .72) 38%, rgba(5, 11, 31, .15) 75%, rgba(5, 11, 31, .05) 100%); }
.hs-slide::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 40%; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(5, 11, 31, .85), transparent); }
.hs-content { position: relative; z-index: 2; width: 100%; padding-bottom: 70px; }
.hs-content > * { max-width: 560px; }
.hs-tag { display: inline-block; padding: .35em 1em; border-radius: 99px; font-weight: 800; font-size: .82rem; letter-spacing: .02em; color: #fff;
    background: linear-gradient(90deg, var(--c), var(--c2)); box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 45%, transparent); }
.hs-title { color: #fff; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.15; margin: 16px 0 12px; text-shadow: 0 2px 20px rgba(5, 11, 31, .6); }
.hs-text { color: #D5E1F5; font-size: 1.08rem; margin-bottom: 24px; }
.hs-btn { color: #fff; border: 0; font-weight: 800; background: linear-gradient(90deg, var(--c), var(--c2)); box-shadow: 0 10px 28px color-mix(in srgb, var(--c) 50%, transparent); }
.hs-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px color-mix(in srgb, var(--c) 65%, transparent); }
.hs-btn:hover .cat-arrow { transform: translateX(5px); }
html[dir="rtl"] .hs-btn:hover .cat-arrow { transform: scaleX(-1) translateX(5px); }
/* staggered entrance of the text on the active slide */
.hs-slide .hs-content > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.hs-slide.is-active .hs-content > * { opacity: 1; transform: none; }
.hs-slide.is-active .hs-content > :nth-child(1) { transition-delay: .25s; }
.hs-slide.is-active .hs-content > :nth-child(2) { transition-delay: .4s; }
.hs-slide.is-active .hs-content > :nth-child(3) { transition-delay: .55s; }
.hs-slide.is-active .hs-content > :nth-child(4) { transition-delay: .7s; }

.hs-controls { position: absolute; inset-inline: 0; bottom: 22px; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hs-dots { display: flex; gap: 10px; flex: 1; max-width: 760px; }
.hs-dot { flex: 1; min-width: 0; background: none; border: 0; padding: 6px 0; cursor: pointer; color: rgba(255, 255, 255, .62); text-align: start; font: inherit; }
.hs-dot-label { display: block; font-size: .78rem; font-weight: 700; margin-bottom: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s ease; }
.hs-dot.is-active .hs-dot-label, .hs-dot:hover .hs-dot-label { color: #fff; }
.hs-dot-bar { display: block; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.hs-dot-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--c), var(--c2)); }
.hs-dot.is-done .hs-dot-bar > span { width: 100%; }
.hs-dot.is-active .hs-dot-bar > span { width: 100%; }
.hero-slider.is-playing .hs-dot.is-active .hs-dot-bar > span { width: 0; animation: hs-progress var(--hs-dur, 6.5s) linear forwards; }
.hero-slider.is-paused .hs-dot.is-active .hs-dot-bar > span { animation-play-state: paused; }
@keyframes hs-progress { to { width: 100%; } }
.hs-arrows { display: flex; gap: 8px; }
.hs-arrow, .hs-pause { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(5, 11, 31, .45); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.hs-pause { font-size: .8rem; letter-spacing: -1px; }
.hs-arrow:hover, .hs-pause:hover { background: rgba(255, 255, 255, .18); border-color: #fff; transform: scale(1.06); }
.hs-arrow:focus-visible, .hs-pause:focus-visible, .hs-dot:focus-visible, .hs-btn:focus-visible { outline: 3px solid var(--sp-amber); outline-offset: 3px; }
html[dir="rtl"] .hs-arrow span { display: inline-block; transform: scaleX(-1); }
.hero-slider:not(.is-ready) .hs-controls { display: none; }

@media (max-width: 760px) {
    .hs-viewport { height: 560px; }
    .hs-slide { align-items: flex-end; }
    .hs-slide::before, html[dir="rtl"] .hs-slide::before { background: linear-gradient(0deg, rgba(5, 11, 31, .95) 0%, rgba(5, 11, 31, .78) 45%, rgba(5, 11, 31, .2) 100%); }
    .hs-content { padding-bottom: 96px; }
    .hs-text { font-size: .98rem; }
    .hs-dot-label { display: none; }
    .hs-controls { bottom: 18px; }
    .hs-arrow, .hs-pause { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    .hs-slide, .hs-media img, .hs-slide .hs-content > * { transition: none !important; }
    .hs-media img { transform: none !important; }
}

/* admin: homepage slider management */
.slide-thumb { width: 120px; height: 68px; object-fit: cover; border-radius: 8px; display: block; }
.slide-thumb-lg { width: 100%; max-width: 420px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 10px; }
.hs-tag-mini { display: inline-block; padding: 2px 10px; border-radius: 99px; color: #fff; font-size: .75rem; font-weight: 700; background: linear-gradient(90deg, var(--c), var(--c2)); margin-bottom: 4px; }
.inline-form { display: inline; margin: 0; }
.nowrap { white-space: nowrap; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* =====================================================================
   Inner pages — vivid edition (same palette and motion as the homepage)
   ===================================================================== */
/* ---------- page header: deep indigo band with drifting aurora + spectrum edge ---------- */
.page-head {
    padding: 64px 0 58px;
    background: linear-gradient(135deg, var(--deep-1) 0%, var(--deep-3) 55%, var(--deep-2) 100%);
    border-bottom: 0;
}
.page-head::before { opacity: .14; mix-blend-mode: screen; }
.page-head .aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; mix-blend-mode: screen; }
.page-head .aurora span { position: absolute; width: 34vmax; height: 34vmax; border-radius: 50%; filter: blur(70px); opacity: .42; }
.page-head .aurora .a1 { background: radial-gradient(circle, var(--sp-violet), transparent 65%); top: -16vmax; inset-inline-start: -6vmax; animation: aurora-1 18s ease-in-out infinite alternate; }
.page-head .aurora .a2 { background: radial-gradient(circle, var(--sp-sky), transparent 65%); bottom: -22vmax; inset-inline-end: -8vmax; animation: aurora-2 22s ease-in-out infinite alternate; }
.page-head .aurora .a3 { background: radial-gradient(circle, var(--sp-red), transparent 65%); top: 10%; inset-inline-end: 30%; width: 22vmax; height: 22vmax; opacity: .26; animation: aurora-3 26s ease-in-out infinite alternate; }
.page-head .eyebrow { display: inline-block; padding: .3em .95em; border-radius: 99px; color: #fff; background: linear-gradient(90deg, var(--sp-indigo), var(--sp-violet)); box-shadow: 0 6px 18px rgba(91, 92, 255, .35); margin-bottom: .9em; }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.15; max-width: 900px; text-shadow: 0 2px 20px rgba(5, 11, 31, .5); }
.page-head .spectrum-bar { margin: 18px 0 4px; }
.page-head-intro { color: #C9D6EE; font-size: 1.05rem; max-width: 820px; margin-top: 14px; }
.page-head-edge { position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--spectrum); background-size: 200% 100%; animation: spectrum-slide 12s linear infinite; z-index: 1; }
.page-head + .section { padding-top: 56px; }

/* ---------- softer, colourful section backgrounds ---------- */
.section-alt { position: relative; background: radial-gradient(700px 300px at 0% 0%, rgba(91, 92, 255, .07), transparent 70%), radial-gradient(700px 300px at 100% 100%, rgba(255, 61, 110, .06), transparent 70%), var(--paper-raised); border-color: var(--line); }
.section-mesh { position: relative; overflow: hidden; }
.section-mesh::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
    background: radial-gradient(520px 340px at 6% 10%, rgba(255, 61, 110, .12), transparent 70%), radial-gradient(520px 340px at 94% 16%, rgba(31, 182, 255, .14), transparent 70%), radial-gradient(620px 380px at 50% 100%, rgba(25, 211, 143, .1), transparent 70%); }
.section-mesh > .container { position: relative; }
.section-head h2, .section h2 { letter-spacing: -.01em; }
.section-head .eyebrow, .eyebrow.glow { background: var(--spectrum); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: spectrum-slide 6s linear infinite; }

/* defaults sit at zero specificity so the h-* hue classes always win */
:where(.card-v, .pstep) { --c: var(--sp-sky); --c2: var(--sp-indigo); }
/* ---------- generic cards pick up a hue (classes h-red … h-violet from the homepage) ---------- */
.card-v { position: relative; overflow: hidden; border-radius: 18px; padding: 28px; background: var(--paper-raised);
    border: 1px solid color-mix(in srgb, var(--c) 26%, var(--line)); box-shadow: 0 10px 30px rgba(6, 17, 33, .06); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card-v::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c), var(--c2)); }
.card-v::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; inset-inline-end: -60px; bottom: -70px; pointer-events: none;
    background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); transition: transform .4s ease; }
.card-v:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 18px 40px color-mix(in srgb, var(--c) 26%, transparent); }
.card-v:hover::after { transform: scale(1.5); }
.card-v > * { position: relative; z-index: 1; }
.card-v h3 { font-size: 1.15rem; }
.card-v .eyebrow { color: color-mix(in srgb, var(--c) 80%, var(--ink)); }
.card-v ul { padding-inline-start: 1.1em; margin: 0; }
.card-v li { margin-bottom: .45em; }
.card-v li::marker { color: var(--c); }
.icon-badge { width: 58px; height: 58px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 40%, transparent); transition: transform .3s ease; font-size: 1.6rem; color: #fff; }
.icon-badge img { filter: brightness(0) invert(1); width: 30px; height: 30px; }
.card-v:hover .icon-badge { transform: rotate(-6deg) scale(1.06); }
.big-num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; margin-bottom: 12px; display: inline-block;
    background: linear-gradient(135deg, var(--c), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- process timeline in colour ---------- */
.process-v { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; position: relative; }
.process-v::before { content: ""; position: absolute; top: 30px; inset-inline: 8%; height: 3px; border-radius: 3px; background: var(--spectrum); background-size: 200% 100%; animation: spectrum-slide 10s linear infinite; opacity: .7; }
.pstep { position: relative; text-align: center; padding: 0 6px; }
.pstep::before { counter-increment: step; content: counter(step); position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 auto 16px;
    border-radius: 50%; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; background: linear-gradient(135deg, var(--c), var(--c2));
    box-shadow: 0 0 0 6px var(--paper-raised), 0 10px 24px color-mix(in srgb, var(--c) 45%, transparent); transition: transform .3s ease; }
.pstep:hover::before { transform: scale(1.1) rotate(-6deg); }
.pstep h3 { font-size: 1rem; margin-bottom: .35em; }
.pstep p { font-size: .86rem; }

/* ---------- client chips / trust badges ---------- */
.chip-v { --c: var(--sp-sky); border-radius: 99px; padding: 12px 24px; font-family: var(--font-head); font-weight: 800; color: var(--ink); background: var(--paper-raised);
    border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 14%, transparent); transition: transform .25s ease, box-shadow .25s ease; }
.chip-v:hover { transform: translateY(-3px); box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 30%, transparent); }
.chip-v:nth-child(7n+1) { --c: var(--sp-red); } .chip-v:nth-child(7n+2) { --c: var(--sp-orange); } .chip-v:nth-child(7n+3) { --c: var(--sp-amber); }
.chip-v:nth-child(7n+4) { --c: var(--sp-green); } .chip-v:nth-child(7n+5) { --c: var(--sp-sky); } .chip-v:nth-child(7n+6) { --c: var(--sp-indigo); } .chip-v:nth-child(7n) { --c: var(--sp-violet); }
.chip-v::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-inline-end: 10px; box-shadow: 0 0 10px var(--c); vertical-align: middle; }
.flag-title { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.1rem; margin: 28px 0 14px; }

/* ---------- deep band reused on inner pages (why-vivid already styled) ---------- */
.band-v { position: relative; overflow: hidden; padding: 80px 0; color: #DCE6F7; background: linear-gradient(135deg, var(--deep-1) 0%, var(--deep-3) 55%, var(--deep-2) 100%); }
.band-v .why-glow { position: absolute; inset: -20%; pointer-events: none; background: conic-gradient(from 0deg at 50% 50%, rgba(255, 61, 110, .16), rgba(255, 194, 26, .1), rgba(25, 211, 143, .12), rgba(31, 182, 255, .14), rgba(181, 77, 255, .16), rgba(255, 61, 110, .16)); filter: blur(80px); animation: spin 40s linear infinite; }
.band-v > .container { position: relative; }
.band-v h2 { color: #fff; }
.band-v .section-head p { color: #B9C7E0; }

/* ---------- products listing ---------- */
.filter-box { border-radius: 18px !important; border: 1px solid var(--line); background: var(--paper-raised); box-shadow: 0 10px 30px rgba(6, 17, 33, .06); position: relative; overflow: hidden; }
.filter-box::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--spectrum); background-size: 200% 100%; animation: spectrum-slide 10s linear infinite; }
.filter-group h4, .filter-box h4 { font-family: var(--font-head); }
.filter-option input[type=checkbox], .filter-option input[type=radio] { accent-color: var(--sp-indigo); }
.product-grid .product-card { --c: var(--sp-sky); --c2: var(--sp-indigo); border-radius: 18px; position: relative; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; box-shadow: 0 8px 24px rgba(6, 17, 33, .05); }
.product-grid .product-card:nth-child(6n+1) { --c: var(--sp-red); --c2: var(--sp-orange); }
.product-grid .product-card:nth-child(6n+2) { --c: var(--sp-orange); --c2: var(--sp-amber); }
.product-grid .product-card:nth-child(6n+3) { --c: var(--sp-green); --c2: var(--sp-sky); }
.product-grid .product-card:nth-child(6n+4) { --c: var(--sp-sky); --c2: var(--sp-indigo); }
.product-grid .product-card:nth-child(6n+5) { --c: var(--sp-indigo); --c2: var(--sp-violet); }
.product-grid .product-card:nth-child(6n) { --c: var(--sp-violet); --c2: var(--sp-red); }
.product-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; z-index: 2; background: linear-gradient(90deg, var(--c, var(--sp-sky)), var(--c2, var(--sp-indigo))); opacity: .85; }
.product-grid .product-card:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 18px 40px color-mix(in srgb, var(--c) 25%, transparent); }
.product-thumb { background: #fff; position: relative; }
.product-thumb img { object-fit: contain; padding: 6px; transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-price { background: linear-gradient(90deg, var(--c, var(--sp-indigo)), var(--c2, var(--sp-violet))); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.2rem; }
.pagination .active { background: linear-gradient(90deg, var(--sp-indigo), var(--sp-violet)); border-color: transparent; box-shadow: 0 6px 16px rgba(91, 92, 255, .35); }

/* ---------- product detail ---------- */
.gallery-main { background: #fff; border-radius: 20px; position: relative; box-shadow: 0 20px 50px rgba(6, 17, 33, .1); }
.gallery-main::before { content: ""; position: absolute; inset: -2px; border-radius: 22px; padding: 2px; background: var(--spectrum); background-size: 200% 100%; animation: spectrum-slide 10s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.gallery-main img { object-fit: contain; padding: 14px; }
.pd-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.product-price-lg { font-size: 2rem; --c: var(--sp-indigo); --c2: var(--sp-violet); }
.tab-btn.active { color: #fff; background: linear-gradient(90deg, var(--sp-indigo), var(--sp-violet)); border-color: transparent; }
.spec-table tr:nth-child(odd) td { background: color-mix(in srgb, var(--sp-indigo) 5%, transparent); }

/* ---------- forms & auth cards ---------- */
.card-glow { position: relative; border-radius: 20px; border: 1px solid var(--line); background: var(--paper-raised); box-shadow: 0 20px 50px rgba(6, 17, 33, .08); padding: 30px; }
.card-glow::before { content: ""; position: absolute; inset: -2px; border-radius: 22px; padding: 2px; background: var(--spectrum); background-size: 200% 100%; animation: spectrum-slide 12s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.auth-page .card { border-radius: 20px; box-shadow: 0 20px 50px rgba(6, 17, 33, .1); border-top: 4px solid transparent; border-image: var(--spectrum) 1; border-image-slice: 1 0 0 0; }
input:focus, select:focus, textarea:focus { border-color: var(--sp-indigo) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-indigo) 20%, transparent) !important; outline: none; }
.btn-primary { background: linear-gradient(90deg, #1B3FD8, var(--sp-indigo)); border-color: transparent; box-shadow: 0 8px 22px rgba(91, 92, 255, .3); }
.btn-primary:hover { background: linear-gradient(90deg, var(--sp-indigo), var(--sp-violet)); border-color: transparent; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(91, 92, 255, .42); }

@media (max-width: 980px) {
    .process-v { grid-template-columns: 1fr 1fr; }
    .process-v::before { display: none; }
}
@media (max-width: 760px) {
    .page-head { padding: 44px 0 40px; }
    .process-v { grid-template-columns: 1fr; }
    .band-v { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
    .page-head .aurora span, .page-head-edge, .process-v::before, .band-v .why-glow, .filter-box::before, .gallery-main::before, .card-glow::before,
    .section-head .eyebrow, .eyebrow.glow { animation: none !important; }
    .card-v, .chip-v, .product-card, .pstep::before { transition: none; }
}

/* ---------- homepage: waving flags of the markets we deliver to ---------- */
.ribbon-flags { direction: ltr; background: radial-gradient(800px 200px at 20% 0%, rgba(91, 92, 255, .3), transparent 70%), radial-gradient(800px 200px at 80% 100%, rgba(255, 61, 110, .2), transparent 70%), linear-gradient(90deg, var(--deep-1), var(--deep-3), var(--deep-1)); border-block: 1px solid rgba(255, 255, 255, .08); padding: 26px 0 22px; }
.ribbon-flags .ribbon-list li { padding: 0 22px; }
.ribbon-flags .ribbon-track { animation-duration: 40s; }
.ribbon-flags figcaption { direction: rtl; }
html[dir="ltr"] .ribbon-flags figcaption { direction: ltr; }
.flag-wave { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.flag-cloth { position: relative; display: block; width: 92px; height: 62px; border-radius: 8px; overflow: hidden; transform-origin: 0 50%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .18); animation: flag-sway 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); transition: transform .3s ease, box-shadow .3s ease; }
html[dir="rtl"] .flag-cloth { transform-origin: 100% 50%; }
.flag-cloth img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* moving folds: light and shade bands drift across the cloth */
.flag-cloth::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
    background: repeating-linear-gradient(100deg, rgba(0, 0, 0, .38) 0%, rgba(255, 255, 255, .55) 12%, rgba(0, 0, 0, .3) 25%);
    background-size: 200% 100%; animation: flag-folds 2.6s linear infinite; animation-delay: var(--d, 0s); }
/* glossy top light */
.flag-cloth::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 45%, rgba(0, 0, 0, .18)); }
.flag-wave figcaption { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .9rem; letter-spacing: .01em; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.flag-wave:hover .flag-cloth { animation-play-state: paused; transform: scale(1.12) rotate(-3deg); box-shadow: 0 16px 34px rgba(0, 0, 0, .55), 0 0 22px rgba(159, 220, 255, .5), 0 0 0 1px rgba(255, 255, 255, .4); }
@keyframes flag-sway { 0%, 100% { transform: perspective(240px) rotateY(0deg) skewY(0deg); } 30% { transform: perspective(240px) rotateY(-14deg) skewY(-2deg); } 65% { transform: perspective(240px) rotateY(9deg) skewY(1.5deg); } }
@keyframes flag-folds { to { background-position: -200% 0; } }
@media (max-width: 760px) { .flag-cloth { width: 72px; height: 48px; } .ribbon-flags .ribbon-list li { padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .flag-cloth, .flag-cloth::after { animation: none !important; } }
.cta-vivid h2, .cta-vivid h3 { color: #fff; }

/* ---------- inline info icon with hover/focus tooltip (e.g. postal code fields) ---------- */
.info-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-inline-start: 6px; vertical-align: middle;
    border-radius: 50%; background: linear-gradient(135deg, var(--sp-sky), var(--sp-indigo)); color: #fff; font: italic 800 .72rem/1 Georgia, serif; cursor: help; outline: none; }
.info-tip:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-indigo) 35%, transparent); }
.info-tip-text { position: absolute; bottom: calc(100% + 10px); inset-inline-start: 50%; transform: translateX(50%) translateY(4px); width: max-content; max-width: 240px;
    padding: 9px 12px; border-radius: 10px; background: var(--deep-2); color: #fff; font: 500 .8rem/1.5 var(--font-body); font-style: normal; text-align: start; white-space: normal;
    box-shadow: 0 10px 26px rgba(5, 11, 31, .35); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease; z-index: 20; pointer-events: none; }
html[dir="ltr"] .info-tip-text { transform: translateX(-50%) translateY(4px); }
.info-tip-text::after { content: ""; position: absolute; top: 100%; inset-inline-start: 50%; margin-inline-start: -6px; border: 6px solid transparent; border-top-color: var(--deep-2); }
.info-tip:hover .info-tip-text, .info-tip:focus .info-tip-text { opacity: 1; visibility: visible; transform: translateX(50%) translateY(0); }
html[dir="ltr"] .info-tip:hover .info-tip-text, html[dir="ltr"] .info-tip:focus .info-tip-text { transform: translateX(-50%) translateY(0); }

/* Clients — logo wall */
.logo-wall { --cols: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 980px; margin: 22px auto 40px; }
.logo-wall > .logo-tile { flex: 0 0 calc((100% - (var(--cols) - 1) * 16px) / var(--cols)); }
.logo-wall:last-child { margin-bottom: 0; }
.logo-tile { background: #fff; border-radius: 16px; height: 116px; padding: 18px 24px; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(3, 8, 30, .28); transition: transform .25s ease, box-shadow .25s ease; }
.logo-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(3, 8, 30, .38); }
.logo-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-tile-text { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--ink); text-align: center; line-height: 1.3; }
@media (max-width: 900px) { .logo-wall { --cols: 3; } }
@media (max-width: 560px) { .logo-wall { --cols: 2; gap: 12px; } .logo-wall > .logo-tile { flex-basis: calc((100% - 12px) / 2); height: 92px; padding: 14px 16px; } }
/* "Why Brilla" heading — the eyebrow promoted to the section title */
.eyebrow.eyebrow-xl { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: .02em; text-transform: none; margin: 0 0 .2em; line-height: 1.3; }

/* =====================================================================
   Header v2 — one clean row: logo | menu | search · sign-in · quote
   ===================================================================== */
.hdr-v2 { --hdr-h: 46px; position: sticky; top: 0; z-index: 40; isolation: isolate;
    background: color-mix(in srgb, var(--paper-raised) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--line); transition: box-shadow .3s ease, background .3s ease; }
.hdr-v2::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--spectrum);
    background-size: 200% 100%; animation: spectrum-slide 8s linear infinite; opacity: .85; }
.hdr-v2.is-scrolled { box-shadow: 0 10px 30px rgba(6, 17, 33, .10); }
/* soft light that follows the cursor across the bar */
.hdr-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s ease;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(91, 92, 255, .13), rgba(31, 182, 255, .07) 40%, transparent 70%); }
.hdr-v2:hover .hdr-glow { opacity: 1; }
.hdr-v2 .hdr-row { max-width: 1340px; display: flex; align-items: center; gap: 18px; padding-block: 12px; transition: padding .3s ease; }
.hdr-v2.is-scrolled .hdr-row { padding-block: 8px; }

/* logo: tagline sits under the wordmark */
.hdr-logo { display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; }
.hdr-logo .logo-img { height: 40px; transition: height .3s ease, transform .3s ease; }
.hdr-logo:hover .logo-img { transform: scale(1.04); }
.hdr-v2.is-scrolled .hdr-logo .logo-img { height: 34px; }
.hdr-tag { font-size: .62rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-faint); white-space: nowrap; line-height: 1; }
.hdr-v2.is-scrolled .hdr-tag { display: none; }

/* menu */
.hdr-nav { position: relative; flex: 1; justify-content: center; margin: 0; }
.hdr-nav > ul { gap: 4px; align-items: center; }
.hdr-nav .nav-link { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; height: var(--hdr-h); padding: 0 13px;
    border-radius: 14px; color: var(--ink); font-weight: 700; font-size: .92rem; white-space: nowrap; text-decoration: none; transition: color .2s ease; }
.hdr-nav .nav-link:hover, .hdr-nav .nav-link:focus-visible { color: var(--accent-dark); text-decoration: none; background: transparent; }
.nav-emoji { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-size: 1rem; line-height: 1;
    background: color-mix(in srgb, var(--accent) 9%, transparent); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .25s ease; }
.hdr-nav .nav-link:hover .nav-emoji, .hdr-nav .nav-link:focus-visible .nav-emoji { transform: translateY(-3px) rotate(-10deg) scale(1.18); background: color-mix(in srgb, var(--sp-amber) 30%, transparent); }
.hdr-nav .nav-link.is-current { color: var(--accent-dark); }
.hdr-nav .nav-link.is-current::after { content: ""; position: absolute; inset-inline: 14px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--spectrum); background-size: 200% 100%; animation: spectrum-slide 5s linear infinite; }
.hdr-nav .nav-link.is-current .nav-emoji { background: color-mix(in srgb, var(--sp-indigo) 18%, transparent); }
/* the pill that glides to whichever item the pointer is on */
.nav-blob { position: absolute; z-index: 0; top: 0; left: 0; height: var(--hdr-h); width: 0; border-radius: 14px; opacity: 0; pointer-events: none;
    background: linear-gradient(135deg, color-mix(in srgb, var(--sp-sky) 16%, transparent), color-mix(in srgb, var(--sp-violet) 16%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sp-indigo) 22%, transparent);
    transition: transform .38s cubic-bezier(.22, 1, .36, 1), width .38s cubic-bezier(.22, 1, .36, 1), opacity .25s ease; }
.hdr-nav.blob-on .nav-blob { opacity: 1; }

/* products mega-menu */
.hdr-nav .has-dropdown .mega { display: grid; grid-template-columns: repeat(2, minmax(210px, 1fr)); gap: 4px; padding: 10px; min-width: 470px;
    inset-inline-start: 50%; translate: calc(var(--dir, 1) * -50%) 8px; border: 1px solid var(--line); border-radius: 18px;
    background: var(--paper-raised); box-shadow: 0 24px 60px rgba(6, 17, 33, .18); opacity: 0; visibility: hidden;
    transition: opacity .22s ease, translate .22s ease, visibility .22s; }
[dir="rtl"] .hdr-nav .has-dropdown .mega { --dir: -1; }
.hdr-nav .has-dropdown .mega::before { content: ""; position: absolute; inset-inline: 0; top: -12px; height: 12px; }
.hdr-nav .has-dropdown:hover .mega, .hdr-nav .has-dropdown:focus-within .mega { display: grid; opacity: 1; visibility: visible; translate: calc(var(--dir, 1) * -50%) 2px; }
.hdr-nav .mega a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .88rem; }
.hdr-nav .mega a:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--accent-dark); text-decoration: none; }
.dd-emoji { display: inline-grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; font-size: 1.05rem;
    background: color-mix(in srgb, var(--accent) 9%, transparent); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.hdr-nav .mega a:hover .dd-emoji { transform: scale(1.15) rotate(-8deg); }
.hdr-nav .mega .dd-all { grid-column: 1 / -1; justify-content: center; margin-top: 4px; font-weight: 800; color: #fff;
    background: linear-gradient(90deg, var(--sp-indigo), var(--sp-violet)); }
.hdr-nav .mega .dd-all:hover { color: #fff; filter: brightness(1.08); background: linear-gradient(90deg, var(--sp-indigo), var(--sp-violet)); }

/* actions — every control the same height, on one line */
.hdr-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hdr-icon-btn, .hdr-btn { height: var(--hdr-h); border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
    font-family: inherit; font-weight: 800; font-size: .9rem; white-space: nowrap; cursor: pointer; text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease; }
.hdr-icon-btn { width: var(--hdr-h); padding: 0; border: 1px solid var(--line-strong); background: var(--paper-raised); color: var(--ink); }
.hdr-icon-btn:hover, .hdr-icon-btn[aria-expanded="true"] { border-color: var(--sp-indigo); color: var(--sp-indigo); box-shadow: 0 6px 18px rgba(91, 92, 255, .22); transform: translateY(-1px); }
.hdr-btn { gap: 8px; padding: 0 16px; text-decoration: none; }
.hdr-btn:hover { text-decoration: none; }
.hdr-btn-ghost { border: 1px solid var(--line-strong); background: var(--paper-raised); color: var(--ink); }
.hdr-btn-ghost:hover { border-color: var(--sp-indigo); color: var(--sp-indigo); box-shadow: 0 6px 18px rgba(91, 92, 255, .2); transform: translateY(-1px); }
.hdr-btn-cta { position: relative; overflow: hidden; border: 0; color: #fff; background: linear-gradient(120deg, var(--sp-indigo), var(--sp-violet) 55%, var(--sp-red));
    background-size: 160% 100%; box-shadow: 0 8px 22px rgba(91, 92, 255, .35); }
.hdr-btn-cta:hover { color: #fff; background-position: 100% 0; box-shadow: 0 12px 30px rgba(181, 77, 255, .45); }
.hdr-btn-cta::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); translate: -120% 0; }
.hdr-btn-cta:hover::after { translate: 120% 0; transition: translate .7s ease; }
.hdr-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center;
    background: #fff; color: var(--sp-indigo); font-size: .75rem; font-weight: 900; line-height: 1; }
.hdr-badge.bump { animation: hdr-bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes hdr-bump { 40% { transform: scale(1.45); } }

/* search panel that slides down under the bar */
.hdr-search { border-top: 1px solid var(--line); background: var(--paper-raised); animation: hdr-drop .25s ease; }
.hdr-search[hidden] { display: none; }
@keyframes hdr-drop { from { opacity: 0; transform: translateY(-8px); } }
.hdr-search-form { width: 100%; max-width: 860px; margin-inline: auto; display: flex; align-items: center; gap: 10px; padding-block: 14px; }
.hdr-search-form .hdr-search-ico { font-size: 1.2rem; }
.hdr-search-form input { flex: 1 1 auto; width: 100%; max-width: none; min-width: 0; height: var(--hdr-h); padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-strong);
    background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; }
.hdr-search-form input:focus { outline: none; border-color: var(--sp-indigo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sp-indigo) 18%, transparent); }
.hdr-search-close { width: var(--hdr-h); height: var(--hdr-h); border-radius: 14px; border: 0; background: transparent; color: var(--ink-faint); font-size: 1.1rem; cursor: pointer; }
.hdr-search-close:hover { background: color-mix(in srgb, var(--sp-red) 12%, transparent); color: var(--sp-red); }

/* mobile drawer bits */
.nav-mobile-search form { display: flex; gap: 8px; margin: 10px 0 6px; }
.nav-mobile-search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.nav-mobile-search button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--sp-indigo); color: #fff; cursor: pointer; }
.nav-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(5, 11, 31, .45); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.nav-scrim.on { opacity: 1; visibility: visible; }

@media (max-width: 1320px) {
    .hdr-btn-ghost .hdr-btn-text { display: none; }
    .hdr-btn-ghost { width: var(--hdr-h); padding: 0; }
    .hdr-nav .nav-link { padding: 0 10px; gap: 6px; }
}
@media (max-width: 1120px) {
    .hdr-nav .nav-link { padding: 0 8px; gap: 5px; font-size: .87rem; }
    .hdr-nav > ul { gap: 0; }
}
@media (max-width: 1010px) {
    .hdr-nav .nav-emoji { display: none; }
}
@media (max-width: 1100px) {
    .hdr-v2 { --hdr-h: 42px; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper-raised); }
    .hdr-v2.nav-open { z-index: 70; }
    .hdr-v2 .hdr-row { flex-wrap: nowrap; gap: 10px; }
    .hdr-actions { margin-inline-start: auto; gap: 8px; }
    .hdr-v2 .nav-toggle { display: inline-flex; }
    .hdr-btn-ghost { display: none; }
    .hdr-nav { position: fixed; inset-inline-start: -100vw; top: 0; height: 100vh; width: 84%; max-width: 330px; flex: none; display: block;
        background: var(--paper-raised); z-index: 60; visibility: hidden; opacity: 0; padding: 22px 16px; overflow-y: auto;
        box-shadow: -8px 0 24px rgba(0, 0, 0, .2); transition: inset-inline-start .25s ease, opacity .25s ease, visibility .25s; }
    .hdr-nav.open { inset-inline-start: 0; visibility: visible; opacity: 1; }
    .hdr-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .hdr-nav .nav-emoji { display: inline-grid; }
    .hdr-nav .nav-link { height: 48px; font-size: 1rem; }
    .nav-blob { display: none; }
    /* categories live on the products page; the drawer stays short */
    .hdr-nav .has-dropdown .mega, .hdr-nav .has-dropdown:hover .mega, .hdr-nav .has-dropdown:focus-within .mega { display: none; }
    .show-mobile-only { display: block; }
    .hdr-tag { display: none; }
}
@media (max-width: 480px) {
    .hdr-btn-cta .hdr-btn-text { display: none; }
    .hdr-btn-cta { padding: 0 12px; }
}
@media (min-width: 1101px) { .hdr-v2 .nav-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .hdr-v2::after, .hdr-nav .nav-link.is-current::after { animation: none; }
    .nav-blob, .nav-emoji, .dd-emoji, .hdr-btn, .hdr-icon-btn, .hdr-btn-cta::after, .hdr-logo .logo-img { transition: none !important; }
    .hdr-glow { display: none; }
}

/* FAQ accordion (services page) */
.faq-list { display: grid; gap: 12px; margin-top: 26px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--paper-raised); overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease; }
.faq-item[open] { border-color: color-mix(in srgb, var(--sp-indigo) 40%, var(--line)); box-shadow: 0 14px 34px rgba(91, 92, 255, .12); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--sp-indigo); }
.faq-icon { position: relative; flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--sp-indigo) 12%, transparent); transition: transform .3s ease, background .3s ease; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--sp-indigo); }
.faq-icon::after { transform: rotate(90deg); transition: transform .3s ease; }
.faq-item[open] .faq-icon { background: linear-gradient(135deg, var(--sp-indigo), var(--sp-violet)); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); line-height: 1.8; }

/* ===== Mobile & tablet polish ===== */
.filter-toggle { display: none; }
.filter-box .filter-group:nth-of-type(2) { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 4px; }
.checkbox-row { align-items: flex-start; line-height: 1.6; }
.checkbox-row input { margin-top: .3em; flex-shrink: 0; }

@media (max-width: 900px) {
    .filter-box { padding: 0; overflow: hidden; top: auto; }
    .filter-toggle {
        display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 18px;
        background: none; border: 0; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; text-align: start;
    }
    .filter-box.has-active .filter-toggle::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sp-orange, #ff8a1f); }
    .filter-toggle-icon { margin-inline-start: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s ease; }
    .filter-box.is-open .filter-toggle-icon { transform: translateY(2px) rotate(-135deg); }
    .filter-box form { padding: 4px 18px 18px; }
    .js-filters .filter-box:not(.is-open) form { display: none; }
    .filter-box .filter-group:nth-of-type(1), .filter-box .filter-group:nth-of-type(2) { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
    .filter-box .filter-group h4 { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .topbar { font-size: .78rem; }
    .page-head + .section { padding-top: 28px; }
    .topbar .container { flex-wrap: nowrap; align-items: center; padding-block: 6px; }
    .topbar-offices > span:not(.topbar-mail), .topbar-ship { display: none; }
    .topbar-lang { flex-wrap: nowrap; }
    .hero-vivid h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.3; }
    .hero-vivid p { font-size: .97rem; line-height: 1.85; }
    .section-head h2, .page-head h1 { font-size: clamp(1.45rem, 6.2vw, 1.9rem); line-height: 1.35; }
}

@media (max-width: 600px) {
    .grid-3:has(> .cat-vivid) { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cat-vivid { padding: 16px 14px; border-radius: 16px; }
    .cat-vivid .cat-icon { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 10px; }
    .cat-vivid .cat-icon img { width: 24px; height: 24px; }
    .cat-vivid h3 { font-size: .98rem; line-height: 1.45; }
    .cat-vivid p { display: none; }
    .cat-vivid .cat-go { font-size: .82rem; margin-top: 8px; }
    .cat-vivid::after { width: 110px; height: 110px; }
}

/* ===== Header v3 — folder-tab menu + info strip (desktop ≥1101px) ===== */
.hdr-info, .hdr-inline-search, .hdr-tab-end { display: none; }
@media (max-width: 1100px) {
    .hdr-v3 .hdr-tabbar, .hdr-v3 .hdr-tabbar-in { display: contents; }
}
@media (min-width: 1101px) {
    .hdr-v3 { --tab-h: 50px; --tab-skew: -16deg; --tab-blue-1: #5b93f5; --tab-blue-2: #3d6fdc; --tab-teal-1: #3cc4a6; --tab-teal-2: #1f9f86;
        background: var(--paper-raised); -webkit-backdrop-filter: none; backdrop-filter: none; }
    html[dir="rtl"] .hdr-v3 { --tab-skew: 16deg; }
    .hdr-v3::after { display: none; }

    /* tab bar */
    .hdr-v3 .hdr-tabbar { position: relative; z-index: 2; padding-top: 12px;
        background: linear-gradient(180deg, #eef2f9 0%, #dfe6f2 100%); box-shadow: inset 0 -1px 0 #cfd8e8; }
    .hdr-v3 .hdr-tabbar-in { max-width: 1340px; display: flex; align-items: flex-end; gap: 14px; }
    .hdr-v3 .hdr-nav { flex: 1; display: block; justify-content: flex-start; }
    .hdr-v3 .hdr-nav > ul { display: flex; align-items: flex-end; gap: 0; padding-inline-start: 18px; }
    .hdr-v3 .hdr-nav > ul > li { position: relative; margin-inline-start: -14px; }
    .hdr-v3 .hdr-nav > ul > li:nth-child(1) { z-index: 7; } .hdr-v3 .hdr-nav > ul > li:nth-child(2) { z-index: 6; }
    .hdr-v3 .hdr-nav > ul > li:nth-child(3) { z-index: 5; } .hdr-v3 .hdr-nav > ul > li:nth-child(4) { z-index: 4; }
    .hdr-v3 .hdr-nav > ul > li:nth-child(5) { z-index: 3; } .hdr-v3 .hdr-nav > ul > li:nth-child(6) { z-index: 2; }
    .hdr-v3 .hdr-nav > ul > li:hover, .hdr-v3 .hdr-nav > ul > li:focus-within { z-index: 9; }
    .hdr-v3 .hdr-nav > ul > li:has(> .nav-link.is-current) { z-index: 10; }

    .hdr-v3 .hdr-nav .nav-link { --c1: var(--tab-blue-1); --c2: var(--tab-blue-2); --tx: 50%; --ty: 50%;
        position: relative; isolation: isolate; height: var(--tab-h); padding: 0 34px; gap: 9px; border-radius: 0;
        color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .01em; background: none; text-shadow: 0 1px 1px rgba(10, 30, 80, .25);
        transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), color .25s ease; }
    .hdr-v3 .hdr-nav > ul > li:nth-child(6) > .nav-link { --c1: var(--tab-teal-1); --c2: var(--tab-teal-2); }
    /* the slanted tab body */
    .hdr-v3 .hdr-nav .nav-link::before { content: ""; position: absolute; z-index: -2; inset: 0 2px 0 2px; border-radius: 12px 12px 0 0;
        transform: skewX(var(--tab-skew)); transform-origin: bottom;
        background:
            radial-gradient(120px 70px at var(--tx) var(--ty), rgba(255, 255, 255, .38), transparent 70%),
            linear-gradient(180deg, var(--c1), var(--c2));
        background-size: 100% 100%, 100% 100%;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 3px -2px 10px rgba(20, 40, 90, .18);
        transition: box-shadow .3s ease, filter .3s ease; }
    /* moving shine */
    .hdr-v3 .hdr-nav .nav-link::after { content: ""; position: absolute; z-index: -1; inset: 0 2px; border-radius: 12px 12px 0 0;
        transform: skewX(var(--tab-skew)); transform-origin: bottom; pointer-events: none; overflow: hidden;
        background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%) no-repeat;
        background-size: 250% 100%; background-position: 160% 0; opacity: 0; transition: none; animation: none; }
    .hdr-v3 .hdr-nav .nav-link:hover, .hdr-v3 .hdr-nav .nav-link:focus-visible { color: #fff; transform: translateY(-4px); }
    .hdr-v3 .hdr-nav .nav-link:hover::before, .hdr-v3 .hdr-nav .nav-link:focus-visible::before { filter: brightness(1.08) saturate(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 -6px 22px color-mix(in srgb, var(--c1) 55%, transparent); }
    .hdr-v3 .hdr-nav .nav-link:hover::after, .hdr-v3 .hdr-nav .nav-link:focus-visible::after { opacity: 1; background-position: -60% 0; transition: background-position .8s ease, opacity .2s; }
    .hdr-v3 .hdr-nav .nav-link:focus-visible { outline: none; }
    .hdr-v3 .hdr-nav .nav-link:focus-visible::before { outline: 2px solid #fff; outline-offset: -4px; }

    /* emoji badge */
    .hdr-v3 .hdr-nav .nav-emoji { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-size: 1.05rem;
        background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); text-shadow: none;
        transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .25s ease; }
    .hdr-v3 .hdr-nav .nav-link:hover .nav-emoji, .hdr-v3 .hdr-nav .nav-link:focus-visible .nav-emoji { transform: translateY(-2px) rotate(-12deg) scale(1.2); background: rgba(255, 255, 255, .34); }

    /* active tab: white, merged into the strip below */
    .hdr-v3 .hdr-nav .nav-link.is-current { --c1: #fff; --c2: #fff; height: calc(var(--tab-h) + 6px); margin-bottom: -1px; color: var(--sp-indigo); text-shadow: none; transform: none; }
    .hdr-v3 .hdr-nav .nav-link.is-current::before { box-shadow: 0 -8px 24px rgba(30, 50, 110, .16); filter: none;
        background: radial-gradient(120px 70px at var(--tx) var(--ty), rgba(91, 92, 255, .08), transparent 70%), #fff; }
    .hdr-v3 .hdr-nav .nav-link.is-current .nav-text { font-weight: 800; background: linear-gradient(90deg, var(--sp-indigo), var(--sp-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .hdr-v3 .hdr-nav .nav-link.is-current .nav-emoji { background: linear-gradient(135deg, color-mix(in srgb, var(--sp-indigo) 16%, #fff), color-mix(in srgb, var(--sp-violet) 16%, #fff));
        box-shadow: 0 4px 12px rgba(91, 92, 255, .25); animation: tab-float 3s ease-in-out infinite; }
    .hdr-v3 .hdr-nav .nav-link.is-current::after { opacity: 1; inset: 0 14px auto; height: 3px; top: 0; border-radius: 0 0 3px 3px; transform: none;
        background: var(--spectrum); background-size: 200% 100%; animation: spectrum-slide 5s linear infinite; }
    .hdr-v3 .hdr-nav .nav-link.is-current:hover { transform: none; }
    @keyframes tab-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px) rotate(-4deg); } }

    /* products mega menu sits under the tab */
    .hdr-v3 .hdr-nav .has-dropdown .mega { top: 100%; }

    /* envelope at the end of the tab bar */
    .hdr-v3 .hdr-tab-end { display: inline-grid; place-items: center; width: 46px; height: 40px; margin-bottom: 6px; border-radius: 12px;
        color: var(--tab-blue-2); background: #fff; box-shadow: 0 4px 14px rgba(30, 50, 110, .14); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), color .2s, box-shadow .3s; }
    .hdr-v3 .hdr-tab-end:hover { color: var(--tab-teal-2); transform: translateY(-3px) rotate(-6deg); box-shadow: 0 10px 22px rgba(31, 159, 134, .3); }

    /* info strip */
    .hdr-v3 .hdr-row { position: relative; z-index: 1; padding-block: 14px; gap: 22px; }
    .hdr-v3.is-scrolled .hdr-row { padding-block: 8px; }
    .hdr-v3 .hdr-logo { margin-inline-end: 6px; }
    .hdr-v3 .hdr-info { display: flex; flex: 1; min-width: 0; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
    .hdr-v3 .hdr-info-item { display: flex; align-items: center; gap: 11px; padding-inline: 18px; min-width: 0; border-inline-start: 1px solid var(--line); }
    .hdr-v3 .hdr-info-item:first-child { border-inline-start: 0; }
    .hdr-v3 .hdr-info-ico { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; font-size: 1.15rem;
        background: linear-gradient(135deg, color-mix(in srgb, var(--tab-blue-1) 16%, #fff), color-mix(in srgb, var(--tab-teal-1) 16%, #fff));
        transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
    .hdr-v3 .hdr-info-item:hover .hdr-info-ico { transform: rotate(-10deg) scale(1.12); }
    .hdr-v3 .hdr-info-item strong { display: block; font-size: .84rem; font-weight: 800; color: var(--tab-blue-2); white-space: nowrap; line-height: 1.35; }
    .hdr-v3 .hdr-info-item:nth-child(2) strong { color: var(--tab-teal-2); }
    .hdr-v3 .hdr-info-item small { display: block; font-size: .72rem; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
    .hdr-v3.is-scrolled .hdr-info-item small { display: none; }

    .hdr-v3 .hdr-inline-search { display: flex; align-items: center; gap: 8px; width: 230px; height: 44px; padding-inline: 14px; border-radius: 99px;
        border: 1.5px solid var(--line-strong); background: #f6f8fc; color: var(--ink-faint); transition: border-color .2s, box-shadow .25s, width .3s ease, background .2s; }
    .hdr-v3 .hdr-inline-search:focus-within { width: 280px; border-color: var(--tab-blue-2); background: #fff; color: var(--tab-blue-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tab-blue-1) 20%, transparent); }
    .hdr-v3 .hdr-inline-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0; font: inherit; font-size: .88rem; color: var(--ink); box-shadow: none; }
    .hdr-v3 .hdr-inline-search input:focus { outline: none; }
    .hdr-v3 .hdr-search-toggle { display: none; }
    .hdr-v3 .hdr-actions { margin-inline-start: 0; }
    .hdr-v3 .nav-blob { display: none; }
}
@media (min-width: 1101px) {
    .hdr-v3 .hdr-info-item { flex-shrink: 0; }
    .hdr-v3 .hdr-info-item:nth-child(3) { display: none; }
}
@media (min-width: 1101px) { .topbar-ship { display: none; } }
@media (min-width: 1101px) and (max-width: 1420px) {
    .hdr-v3 .hdr-nav .nav-link { padding: 0 28px; }
}
@media (min-width: 1101px) and (max-width: 1340px) {
    .hdr-v3 .hdr-info-item:nth-child(2) { display: none; }
    .hdr-v3 .hdr-nav .nav-link { padding: 0 24px; font-size: .9rem; }
    .hdr-v3 .hdr-inline-search { width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
    .hdr-v3 .hdr-nav .nav-link, .hdr-v3 .hdr-nav .nav-emoji, .hdr-v3 .hdr-tab-end, .hdr-v3 .hdr-info-ico { transition: none !important; animation: none !important; }
}

/* ===== Header v3 — brand palette (indigo → violet, dark band) ===== */
@media (min-width: 1101px) {
    .hdr-v3 { --tab-blue-1: #7374FF; --tab-blue-2: var(--sp-indigo); --tab-teal-1: var(--sp-violet); --tab-teal-2: #8F35D9; }
    .hdr-v3 .hdr-tabbar { background:
            radial-gradient(600px 120px at 85% 0%, rgba(91, 92, 255, .28), transparent 70%),
            radial-gradient(500px 120px at 15% 0%, rgba(181, 77, 255, .22), transparent 70%),
            linear-gradient(180deg, var(--band) 0%, #0B1438 100%);
        box-shadow: none; }
    html[dir="rtl"] .hdr-v3 .hdr-tabbar { background:
            radial-gradient(600px 120px at 15% 0%, rgba(91, 92, 255, .28), transparent 70%),
            radial-gradient(500px 120px at 85% 0%, rgba(181, 77, 255, .22), transparent 70%),
            linear-gradient(180deg, var(--band) 0%, #0B1438 100%); }
    /* each tab steps along the brand gradient: indigo → violet, contact ends on the CTA pink */
    .hdr-v3 .hdr-nav > ul > li:nth-child(1) > .nav-link { --c1: #7374FF; --c2: #4F50EE; }
    .hdr-v3 .hdr-nav > ul > li:nth-child(2) > .nav-link { --c1: #7F6CFF; --c2: #5D48EE; }
    .hdr-v3 .hdr-nav > ul > li:nth-child(3) > .nav-link { --c1: #8C64FF; --c2: #6A42EC; }
    .hdr-v3 .hdr-nav > ul > li:nth-child(4) > .nav-link { --c1: #9B5CFF; --c2: #783DEA; }
    .hdr-v3 .hdr-nav > ul > li:nth-child(5) > .nav-link { --c1: #AA54FF; --c2: #8638E6; }
    .hdr-v3 .hdr-nav > ul > li:nth-child(6) > .nav-link { --c1: #C34DF0; --c2: #E0457F; }
    .hdr-v3 .hdr-nav > ul > li > .nav-link.is-current { --c1: #fff; --c2: #fff; }
    .hdr-v3 .hdr-nav .nav-link::before { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 3px -2px 12px rgba(0, 0, 0, .35); }
    .hdr-v3 .hdr-nav .nav-link.is-current::before { box-shadow: 0 -8px 26px rgba(91, 92, 255, .35); }

    .hdr-v3 .hdr-tab-end { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--band-line); }
    .hdr-v3 .hdr-tab-end:hover { color: #fff; background: linear-gradient(135deg, var(--sp-indigo), var(--sp-violet)); box-shadow: 0 10px 24px rgba(181, 77, 255, .4); }

    .hdr-v3 .hdr-info-ico { background: linear-gradient(135deg, color-mix(in srgb, var(--sp-indigo) 14%, #fff), color-mix(in srgb, var(--sp-violet) 14%, #fff)); }
    .hdr-v3 .hdr-info-item strong { color: var(--sp-indigo); }
    .hdr-v3 .hdr-info-item:nth-child(2) strong { color: var(--sp-violet); }
    .hdr-v3 .hdr-inline-search:focus-within { border-color: var(--sp-indigo); color: var(--sp-indigo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sp-indigo) 18%, transparent); }
}

/* ===== Admin: mailing list ===== */
.mail-tabs .tab-btn { text-decoration: none; }
.mail-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.mail-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper-raised); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.mail-stat:hover, .mail-stat.on { border-color: var(--sp-indigo); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(91, 92, 255, .14); text-decoration: none; }
.mail-stat span { font-size: 1.3rem; }
.mail-stat strong { font-size: 1.4rem; font-family: var(--font-head); }
.mail-stat small { color: var(--ink-soft); font-size: .78rem; }
.mail-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mail-filter input, .mail-filter select { width: auto; flex: 1 1 140px; min-width: 120px; }
.mail-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.mail-bulk select, .mail-bulk input { width: auto; }
.mail-add summary { cursor: pointer; }
.mail-add .grid-2 { margin-top: 14px; gap: 28px; }
.mail-consent { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 10px 14px; }
.mail-consent legend { font-weight: 700; font-size: .88rem; padding: 0 6px; }
.mail-consent input[name="consent_note"] { margin-top: 6px; }
.mail-editor fieldset { border: 1px solid var(--line); }
.mail-editor legend { font-weight: 800; font-size: 1rem; padding: 0 8px; color: var(--sp-indigo); }
.mail-editor fieldset[disabled] { opacity: .75; }
.mail-block-row { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px dashed var(--line); }
.mail-block-row:first-of-type { border-top: 0; }
.mail-country-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; margin-bottom: 8px; }
.mail-preview { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 14px; background: #eef0f8; }
.mail-actions { white-space: nowrap; }
.mail-actions form { display: inline; }
.mail-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mail-pager { display: flex; flex-wrap: wrap; gap: 4px; }
.pill-subscribed, .pill-sent { background: var(--good-tint); color: var(--good); }
.pill-no_consent, .pill-draft, .pill-archived { background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }
.pill-unsubscribed, .pill-paused { background: var(--warn-tint); color: var(--warn); }
.pill-bounced, .pill-complained { background: color-mix(in srgb, var(--sp-red) 14%, transparent); color: #c4224d; }
.pill-scheduled, .pill-sending { background: color-mix(in srgb, var(--sp-indigo) 14%, transparent); color: var(--sp-indigo); }
@media (max-width: 900px) { .mail-block-row { grid-template-columns: 1fr; } .mail-preview { height: 560px; } }
.mail-editor fieldset { min-width: 0; min-inline-size: 0; }
.mail-editor .field input, .mail-editor .field textarea, .mail-editor .field select,
.mail-settings-grid .field input, .mail-settings-grid .field textarea, .mail-settings-grid .field select,
.mail-add .field input, .mail-add .field select, .mail-add .field textarea { width: 100%; max-width: none; }
.mail-editor .grid-2, .mail-editor .grid-3, .mail-settings-grid { align-items: start; }
.mail-settings-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.dash-main { min-width: 0; }

/* ===== Admin: rich signature editor ===== */
.sig-editor { border: 1px solid var(--border, #dfe3f0); border-radius: 12px; background: #fff; overflow: hidden; }
.sig-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; background: #f6f7fc; border-bottom: 1px solid var(--border, #dfe3f0); }
.sig-btn { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #26304f; font: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.sig-btn:hover, .sig-btn:focus-visible { background: #fff; border-color: #d5d9ea; outline: none; }
.sig-btn.is-on { background: #5b5cff; color: #fff; }
.sig-toolbar.is-source .sig-btn:not([data-cmd="source"]), .sig-toolbar.is-source select, .sig-toolbar.is-source .sig-color { opacity: .35; pointer-events: none; }
.sig-sep { width: 1px; height: 20px; background: #d5d9ea; margin: 0 2px; }
.sig-toolbar select.sig-size { width: auto !important; min-width: 0; height: 32px; padding: 0 6px; font-size: 13px; border-radius: 8px; }
.sig-color { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-weight: 800; color: #26304f; }
.sig-color:hover { background: #fff; }
.sig-color span { pointer-events: none; border-bottom: 3px solid currentColor; line-height: 1.1; }
.sig-hilite span { color: #e6b800; }
.sig-color input[type=color] { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.sig-canvas { min-height: 150px; max-height: 460px; overflow: auto; padding: 14px 16px; font-size: 14px; line-height: 1.8; color: #3c4566; outline: none; }
.sig-canvas:focus { box-shadow: inset 0 0 0 2px rgba(91, 92, 255, .25); }
.sig-canvas p { margin: 0 0 10px; }
.sig-canvas img { max-width: 100%; height: auto; cursor: pointer; vertical-align: middle; }
.sig-canvas img.sig-img-on { outline: 2px solid #5b5cff; outline-offset: 2px; }
.sig-canvas a { color: #5b5cff; }
.sig-editor textarea.sig-source { display: block; width: 100%; min-height: 180px; border: 0; border-radius: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; direction: ltr; text-align: left; }
.sig-panel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; background: #fbfbff; border-top: 1px solid var(--border, #dfe3f0); }
.sig-panel[hidden], .sig-editor textarea.sig-source[hidden], .sig-canvas[hidden] { display: none !important; }
.sig-panel input[type=text], .sig-panel input[type=number] { flex: 1 1 160px; min-width: 0; height: 34px; }
.sig-panel input[type=number] { flex: 0 1 100px; }
.sig-upload { cursor: pointer; }
.sig-status { padding: 0 10px; min-height: 0; }
.sig-status:not(:empty) { padding: 6px 10px; color: #b42318; }
@media (max-width: 560px) { .sig-sep { display: none; } .sig-btn { min-width: 30px; height: 30px; } }

/* ===== Company profile downloads ===== */
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin: 0 auto; }
.profile-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line, #e4e7f2); border-radius: 20px; overflow: hidden; box-shadow: 0 14px 40px rgba(11, 20, 56, .08); transition: transform .25s ease, box-shadow .25s ease; }
.profile-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(11, 20, 56, .14); }
.profile-card.is-primary { border-color: rgba(91, 92, 255, .35); }
.profile-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1a5c; }
.profile-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.profile-card:hover .profile-cover img { transform: scale(1.04); }
.profile-badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #0b1438; font-size: 12px; font-weight: 800; }
.profile-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.profile-body h3 { margin: 0; font-size: 18px; }
.profile-meta { margin: 0 0 8px; color: var(--muted, #6b7393); font-size: 13px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.profile-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); font-weight: 700; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
@media (max-width: 720px) { .profile-grid { grid-template-columns: 1fr; } }
