/* ==========================================================================
   Webnet FZE storefront — design tokens + components.
   Identity: deep navy/near-black base, a single gold accent, monospace for
   numbers and IDs, sharp 6px radii, thin lines. Spacing scale: 4 / 8 / 12 /
   16 / 24 / 32 / 48 / 64 / 96px (rem multiples).
   ========================================================================== */

:root {
    --bg: #0a0e16;
    --bg-soft: #0e1420;
    --surface: #121926;
    --surface-2: #172031;
    --line: #263145;
    --line-soft: #1b2436;

    --text: #e9edf4;
    --muted: #9aa6bb;
    --faint: #7e8aa3; /* 4.5:1+ on every surface it sits on — content-bearing labels use this */

    --gold: #d9a24b;
    --gold-bright: #e7b65e;
    --gold-dim: rgba(217, 162, 75, 0.13);
    --gold-ink: #17120a;

    --green: #4fbe8f;
    --red: #e0685c;
    --blue: #6ea3d8;
    --amber: #e0b15e;
    --badge-muted: #7a86a0;

    --radius: 6px;
    --radius-lg: 10px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    --shell: 1160px;
    --header-h: 64px;
}

/* ---- reset + base ---------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    padding-bottom: calc(64px + env(safe-area-inset-bottom)); /* room for the mobile nav */
}

@media (min-width: 760px) {
    body {
        padding-bottom: 0;
    }
}

::selection {
    background: var(--gold);
    color: var(--gold-ink);
}

h1, h2, h3, h4 {
    line-height: 1.15;
    margin: 0 0 0.6rem;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--text);
}

h1 { font-size: clamp(2.05rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.12rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }

a {
    color: var(--gold-bright);
    text-decoration: none;
}

a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg { max-width: 100%; }

:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
    border-radius: 2px;
}

.shell {
    width: min(100% - 32px, var(--shell));
    margin-inline: auto;
}

.shell-narrow {
    width: min(100% - 32px, 780px);
    margin-inline: auto;
}

.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0.01em; }
.muted { color: var(--muted); }

.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.lede {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 60ch;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 12px; top: -48px;
    z-index: 60;
    background: var(--gold);
    color: var(--gold-ink);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-weight: 700;
    transition: top 0.15s ease;
}

.skip-link:focus { top: 12px; }

/* ---- buttons ---------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-gold {
    background: var(--gold);
    color: var(--gold-ink);
}

.btn-gold:hover { background: var(--gold-bright); }

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

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

.btn-block { width: 100%; }

button.btn { appearance: none; }

.btn[disabled] {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* ---- header + nav ------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 22, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

.header-row {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
}

.brand:hover { text-decoration: none; }

.brand-mark { color: var(--gold); flex: none; }

.brand-word i {
    font-style: normal;
    color: var(--gold);
    margin-left: 6px;
}

.main-nav {
    display: none;
    gap: 26px;
    margin-inline: auto;
}

.main-nav a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.main-nav a:hover { color: var(--gold-bright); text-decoration: none; }

.header-cta { margin-left: auto; }

.main-nav + .header-cta { margin-left: 0; }

@media (min-width: 900px) {
    .main-nav { display: flex; }
    .header-cta { margin-left: 0; }
}

/* currency switcher (AED | USD) — session-backed, sits next to the CTA */
.cur-switch {
    display: flex;
    align-items: center;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(14, 20, 32, 0.6);
}

.cur-switch a {
    padding: 5px 12px;
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.cur-switch a:hover { color: var(--gold-bright); text-decoration: none; }

.cur-switch a[aria-current="true"] {
    background: var(--gold-dim);
    color: var(--gold-bright);
}

/* tiny currency tag beside amounts in the admin order table */
.cur-badge {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: var(--faint);
    vertical-align: 1px;
}

@media (min-width: 900px) {
    .cur-switch { margin-left: 0; }
}

/* mobile bottom nav */
.bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(14, 20, 32, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav a {
    padding: 12px 4px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.bottom-nav a:hover { color: var(--gold-bright); text-decoration: none; }

@media (min-width: 760px) {
    .bottom-nav { display: none; }
}

/* ---- hero --------------------------------------------------------------- */

.hero {
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--line-soft);
    background:
        radial-gradient(1100px 480px at 78% -10%, rgba(217, 162, 75, 0.07), transparent 60%),
        var(--bg);
}

.hero-grid { display: grid; gap: 40px; }

@media (min-width: 1000px) {
    .hero { padding: 96px 0 88px; }
    .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
}

.hero-copy h1 { max-width: 22ch; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 24px;
}

.hero-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-trust li {
    padding-left: 18px;
    position: relative;
}

.hero-trust li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.62em;
    width: 7px; height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
}

.hero-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.panel-title {
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.spec-list { margin: 0; }

.spec-list > div {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px dotted var(--line);
    font-size: 0.9rem;
}

.spec-list > div:last-child { border-bottom: 0; }

.spec-list dt {
    font-family: var(--mono);
    color: var(--gold);
    font-weight: 700;
}

.spec-list dd {
    margin: 0;
    color: var(--muted);
}

.panel-foot {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    color: var(--faint);
    font-size: 0.82rem;
}

/* ---- catalog ------------------------------------------------------------ */

.section-head {
    margin-bottom: 32px;
}

.section-head p { color: var(--muted); margin: 0; }

.catalog { padding: 72px 0; }

.catalog-group { margin-bottom: 48px; }

.group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.group-head h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--gold-bright);
}

.group-head p { margin: 0; color: var(--faint); font-size: 0.88rem; }

.svc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 760px) {
    .svc-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    .span-4 { grid-column: span 4; }
    .span-8 { grid-column: span 8; }
}

@media (min-width: 760px) and (max-width: 999px) {
    .span-4 { grid-column: span 6; }
    .span-8 { grid-column: span 12; }
}

.svc-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease;
}

.svc-card:hover { border-color: rgba(217, 162, 75, 0.45); }

.svc-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.svc-sku {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--faint);
    text-transform: uppercase;
}

.svc-price {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--gold-bright);
    font-size: 1.02rem;
    white-space: nowrap;
}

.svc-card h4 { font-size: 1.15rem; }

.svc-tagline { color: var(--muted); font-size: 0.92rem; flex-grow: 1; }

.svc-bullets {
    list-style: none;
    margin: 14px 0 18px;
    padding: 0;
    display: grid;
    gap: 7px;
    font-size: 0.88rem;
    color: var(--muted);
}

.svc-bullets li {
    padding-left: 16px;
    position: relative;
}

.svc-bullets li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55em;
    width: 8px; height: 1px;
    background: var(--gold);
}

.svc-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* intentional edge-filler: the "custom scope" card that closes each grid */
.svc-card--cta {
    border-style: dashed;
    border-color: rgba(217, 162, 75, 0.45);
    background: var(--gold-dim);
}

.svc-card--cta .svc-price {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.svc-time {
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--faint);
    letter-spacing: 0.02em;
}

/* ---- trust band / how it works ------------------------------------------ */

.trust-band {
    border-block: 1px solid var(--line-soft);
    background: var(--bg-soft);
    padding: 48px 0;
}

.trust-grid {
    display: grid;
    gap: 28px;
}

@media (min-width: 900px) {
    .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

.trust-grid h3 { color: var(--gold-bright); font-size: 1.02rem; }

.trust-grid p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.how { padding: 72px 0; }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 28px;
    counter-reset: step;
}

@media (min-width: 900px) {
    .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

.steps li {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.step-num {
    display: block;
    font-family: var(--mono);
    font-weight: 700;
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.steps h3 { font-size: 1.02rem; }

.steps p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---- FAQ ---------------------------------------------------------------- */

.faq {
    padding: 72px 0;
    border-top: 1px solid var(--line-soft);
}

.faq-list details {
    border-bottom: 1px solid var(--line-soft);
}

.faq-list summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.faq-marker {
    position: relative;
    flex: none;
    width: 18px; height: 18px;
}

.faq-marker::before,
.faq-marker::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: var(--gold);
    transition: transform 0.18s ease;
}

.faq-marker::before { width: 14px; height: 2px; }
.faq-marker::after { width: 2px; height: 14px; }

details[open] .faq-marker::after { transform: scaleY(0); }

.faq-list details p {
    color: var(--muted);
    padding: 0 0 18px;
    margin: 0;
    max-width: 68ch;
}

/* ---- CTA band ------------------------------------------------------------- */

.cta-band {
    background: var(--gold-dim);
    border-block: 1px solid rgba(217, 162, 75, 0.35);
    padding: 56px 0;
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cta-inner h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

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

.site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--line-soft);
    padding: 56px 0 28px;
}

.footer-grid {
    display: grid;
    gap: 36px;
}

@media (min-width: 900px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 34ch;
}

.footer-contact {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 0.9rem;
}

.footer-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--faint);
}

.footer-col h3 {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    padding: 4px 0;
}

.footer-col a:hover { color: var(--gold-bright); text-decoration: none; }

.footer-pay p { color: var(--muted); font-size: 0.88rem; }

.footer-bottom {
    margin-top: 44px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.footer-bottom p {
    margin: 0;
    color: var(--faint);
    font-size: 0.82rem;
}

/* ---- breadcrumbs ------------------------------------------------------------- */

.crumbs { padding: 20px 0 0; }

.crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    color: var(--faint);
}

.crumbs li + li::before {
    content: "/";
    margin-right: 8px;
    color: var(--faint);
}

.crumbs [aria-current] { color: var(--muted); }

/* ---- service detail ------------------------------------------------------------ */

.service-page { padding: 32px 0 72px; }

.service-layout { display: grid; gap: 40px; }

@media (min-width: 1000px) {
    .service-layout { grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); gap: 48px; align-items: start; }
}

.fact-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 26px 0 34px;
}

.fact {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.fact-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--faint);
    margin-bottom: 4px;
}

.fact-value {
    font-weight: 700;
    font-size: 0.95rem;
}

.deliverables {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.deliverables li {
    padding: 10px 14px 10px 38px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    position: relative;
    font-size: 0.94rem;
}

.deliverables li::before {
    content: "";
    position: absolute;
    left: 14px; top: 0.95em;
    width: 12px; height: 7px;
    border-left: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
}

.service-note {
    background: var(--gold-dim);
    border: 1px solid rgba(217, 162, 75, 0.4);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 0.9rem;
}

.terms-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.94rem;
    display: grid;
    gap: 8px;
}

.order-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.order-price {
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-bright);
    margin-bottom: 20px;
}

.order-price span {
    display: block;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--faint);
    letter-spacing: 0.02em;
}

.order-after {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.order-after h3 {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
}

.order-after ol {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 0.88rem;
    display: grid;
    gap: 6px;
}

/* ---- forms --------------------------------------------------------------------- */

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.field .req { color: var(--gold); }

.field .opt {
    color: var(--faint);
    font-weight: 400;
    font-size: 0.8rem;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    padding: 11px 14px;
    transition: border-color 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--gold);
}

.field textarea { resize: vertical; min-height: 110px; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--red);
}

.field-hint {
    color: var(--faint);
    font-size: 0.8rem;
    margin: 6px 0 0;
}

.field-error {
    color: var(--red);
    font-size: 0.84rem;
    margin: 6px 0 0;
    font-weight: 600;
}

.form-alert {
    border: 1px solid rgba(217, 162, 75, 0.5);
    background: var(--gold-dim);
    color: var(--text);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.form-alert--err {
    border-color: rgba(224, 104, 92, 0.55);
    background: rgba(224, 104, 92, 0.1);
}

.form-alert--ok {
    border-color: rgba(79, 190, 143, 0.5);
    background: rgba(79, 190, 143, 0.09);
}

/* ---- state pages (return / failed / status / errors) ------------------------------ */

.state-page { padding: 48px 0 80px; }

.state-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 5vw, 44px);
}

.state-panel--success { border-color: rgba(79, 190, 143, 0.55); }

.state-panel--error { border-color: rgba(224, 104, 92, 0.55); }

.state-panel--muted { border-style: dashed; }

.state-panel h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 14px; }

.state-note { color: var(--muted); font-size: 0.9rem; }

.error-page { padding: 72px 0 96px; text-align: center; }

.error-page .btn { margin: 4px; }

.error-code {
    font-family: var(--mono);
    font-size: clamp(3rem, 9vw, 5rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.error-page h1 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

.error-page p { color: var(--muted); margin-inline: auto; max-width: 52ch; }

.error-catalog {
    list-style: none;
    margin: 36px auto 0;
    padding: 0;
    max-width: 560px;
    text-align: left;
    display: grid;
    gap: 4px;
}

.error-catalog li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.9rem;
}

.error-catalog li span { color: var(--faint); white-space: nowrap; }

/* ---- status lookup ----------------------------------------------------------------- */

.lookup-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 26px 0;
}

.status-result {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 4vw, 32px);
}

.status-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}

.order-id { font-size: 1.1rem; font-weight: 700; margin: 0 0 2px; color: var(--gold-bright); }

.timeline {
    list-style: none;
    margin: 22px 0;
    padding: 0;
}

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 12px;
    padding-bottom: 22px;
}

.timeline li:last-child { padding-bottom: 4px; }

.tl-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid var(--faint);
    background: var(--surface);
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: 5px; top: 17px; bottom: 0;
    width: 2px;
    background: var(--line);
}

.timeline li:last-child::before { display: none; }

.timeline li.is-done .tl-dot {
    border-color: var(--gold);
    background: var(--gold);
}

.timeline h3 { font-size: 0.95rem; margin: 0; }

.timeline p { margin: 0; font-size: 0.84rem; }

.status-next h2 { font-size: 1.1rem; margin-bottom: 8px; }

.status-next p { color: var(--muted); font-size: 0.94rem; }

.delivery-note,
.delivery-files {
    background: var(--bg-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-top: 14px;
}

.delivery-note h3,
.delivery-files h3 {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
}

.delivery-note p { margin: 0; font-size: 0.92rem; }

.delivery-files ul {
    list-style: none;
    margin: 8px 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
}

/* ---- admin -------------------------------------------------------------------------- */

.admin-bar {
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-soft);
}

.admin-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 58px;
}

.admin-tag {
    font-family: var(--mono);
    font-style: normal;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-left: 14px;
}

.admin-main { padding: 28px 0 80px; }

.admin-login { padding: 64px 0 96px; }

.admin-login-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    margin-inline: auto;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

@media (min-width: 900px) {
    .stat-row { grid-template-columns: repeat(4, 1fr); }
}

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.stat-num {
    display: block;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gold-bright);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.admin-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.admin-filter label { font-size: 0.88rem; color: var(--muted); }

.admin-filter select {
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 9px 12px;
    font: inherit;
    min-width: 220px;
}

.tbl-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
    background: var(--surface);
}

.tbl th {
    text-align: left;
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--faint);
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.tbl td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
    font-size: 0.9rem;
}

.tbl tbody tr:last-child td { border-bottom: 0; }

.tbl tbody tr:hover { background: var(--surface-2); }

.tbl-sub {
    display: block;
    color: var(--faint);
    font-size: 0.78rem;
    margin-top: 2px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid;
}

.badge::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.badge--gold   { color: var(--gold-bright); border-color: rgba(217, 162, 75, 0.5); background: var(--gold-dim); }
.badge--green  { color: var(--green);  border-color: rgba(79, 190, 143, 0.45); background: rgba(79, 190, 143, 0.08); }
.badge--blue   { color: var(--blue);   border-color: rgba(110, 163, 216, 0.45); background: rgba(110, 163, 216, 0.08); }
.badge--red    { color: var(--red);    border-color: rgba(224, 104, 92, 0.5); background: rgba(224, 104, 92, 0.08); }
.badge--amber  { color: var(--amber);  border-color: rgba(224, 177, 94, 0.45); background: rgba(224, 177, 94, 0.08); }
.badge--muted  { color: var(--badge-muted); border-color: var(--line); background: transparent; }

.row-manage { position: relative; }

.row-manage summary { list-style: none; cursor: pointer; }

.row-manage summary::-webkit-details-marker { display: none; }

.row-manage form {
    margin-top: 10px;
    min-width: 250px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    display: grid;
    gap: 8px;
}

.row-manage select,
.row-manage textarea {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
    padding: 8px 10px;
}

.row-manage textarea { resize: vertical; }

/* ---- legal ------------------------------------------------------------------------ */

.legal-page { padding: 40px 0 80px; }

.legal-page h2 { margin-top: 32px; font-size: 1.15rem; }

.legal-page p { color: var(--muted); max-width: 70ch; }

.legal-page .muted { color: var(--faint); font-size: 0.85rem; }

/* ---- motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
