/* =====================================================================
   eSIM Hub — design system + components
   All styling lives here (no inline styles). Built on a fluid type and
   spacing scale so layouts read well from mobile up to 1920px and beyond.
   ===================================================================== */

/* ---- Design tokens --------------------------------------------------- */
:root {
    /* Brand + neutrals (light theme) */
    --brand-50:  #eef5ff;
    --brand-100: #d9e8ff;
    --brand-200: #bcd6ff;
    --brand-300: #8ebcff;
    --brand-400: #5a97ff;
    --brand-500: #2f73f6;
    --brand-600: #1c61f2;
    --brand-700: #1549c9;
    --brand-800: #173da0;
    --brand-900: #18377e;

    --ink:     #0f1b2d;
    --body:    #3a475b;
    --muted:   #64748b;
    --line:    #e4e9f0;
    --line-2:  #eef1f6;
    --bg:      #f6f8fc;
    --surface: #ffffff;
    --ok-50:   #e7f8ef;
    --ok-600:  #138a52;
    --err-50:  #fdeceb;
    --err-600: #d23b34;

    /* Fluid type scale (min .. max across 360px .. 1600px viewports) */
    --fs-xs:   clamp(0.78rem, 0.75rem + 0.12vw, 0.86rem);
    --fs-sm:   clamp(0.88rem, 0.84rem + 0.18vw, 0.98rem);
    --fs-base: clamp(1rem,    0.95rem + 0.25vw, 1.16rem);
    --fs-md:   clamp(1.15rem, 1.05rem + 0.45vw, 1.45rem);
    --fs-lg:   clamp(1.4rem,  1.2rem + 0.9vw,   2rem);
    --fs-xl:   clamp(1.85rem, 1.45rem + 1.8vw,  3rem);
    --fs-2xl:  clamp(2.4rem,  1.7rem + 3.1vw,   4.4rem);

    /* Fluid spacing scale — generous by default (room to breathe) */
    --sp-1: clamp(0.35rem, 0.3rem + 0.2vw, 0.55rem);
    --sp-2: clamp(0.6rem,  0.5rem + 0.4vw, 0.9rem);
    --sp-3: clamp(0.9rem,  0.75rem + 0.6vw, 1.4rem);
    --sp-4: clamp(1.3rem,  1rem + 1vw,      2.1rem);
    --sp-5: clamp(1.9rem,  1.4rem + 1.8vw,  3.2rem);
    --sp-6: clamp(2.8rem,  2rem + 3vw,      5rem);
    --sp-7: clamp(4rem,    2.8rem + 4.5vw,  7.5rem);

    /* Structure */
    --container: 1240px;
    --gutter: clamp(1.1rem, 0.6rem + 3vw, 3.5rem);
    --radius:   14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06), 0 1px 3px rgba(15, 27, 45, 0.05);
    --shadow:    0 6px 18px rgba(15, 27, 45, 0.07), 0 2px 6px rgba(15, 27, 45, 0.05);
    --shadow-lg: 0 24px 60px rgba(20, 50, 110, 0.14);

    --ring: 0 0 0 4px var(--brand-100);
}

/* ---- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h2 { line-height: 1.2; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-800); }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.9em; }

:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 6px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Layout helpers -------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.site-main { flex: 1 0 auto; }

.section { padding-block: var(--sp-6); }
.section--muted { background: var(--surface); border-block: 1px solid var(--line); }
.section__title {
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-4);
}

.eyebrow {
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-600);
    margin-bottom: var(--sp-1);
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}
.accent { color: var(--brand-600); }

/* ---- Flags (vendored SVGs, sized in em to scale with context) -------- */
.flag {
    display: inline-block;
    width: 1.5em;
    height: 1.125em;            /* 4:3 ratio */
    border-radius: 3px;
    object-fit: cover;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(15, 27, 45, 0.10), 0 1px 2px rgba(15, 27, 45, 0.10);
}
.flag--fallback {
    display: inline-grid;
    place-items: center;
    width: 1.7em;
    height: 1.2em;
    font-size: 0.5em;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--brand-700);
    background: var(--brand-50);
    box-shadow: inset 0 0 0 1px var(--brand-100);
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
    --btn-pad-y: 0.7em;
    --btn-pad-x: 1.3em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    padding: var(--btn-pad-y) var(--btn-pad-x);
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--brand-600);
    color: #fff;
    box-shadow: 0 8px 20px rgba(28, 97, 242, 0.28);
}
.btn--primary:hover { background: var(--brand-700); color: #fff; box-shadow: 0 10px 26px rgba(28, 97, 242, 0.34); }

.btn--ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--brand-300); color: var(--brand-700); }

.btn--sm { font-size: var(--fs-sm); --btn-pad-y: 0.55em; --btn-pad-x: 1em; }
.btn--lg { font-size: var(--fs-md); --btn-pad-y: 0.8em; --btn-pad-x: 1.7em; }
.btn--block { width: 100%; }

/* ---- Header ---------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-3);
    padding-block: clamp(0.7rem, 0.5rem + 0.6vw, 1.1rem);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); font-weight: 800; }
.brand__mark {
    display: grid; place-items: center;
    width: 2.2rem; height: 2.2rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff; font-size: 0.85rem; font-weight: 800; letter-spacing: -0.03em;
}
.brand__name { font-size: var(--fs-md); letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: clamp(0.6rem, 0.3rem + 1vw, 1.8rem); }
.site-nav__link { color: var(--body); font-weight: 500; font-size: var(--fs-sm); }
.site-nav__link:hover { color: var(--brand-700); }
@media (max-width: 640px) {
    .site-nav__link:not(.btn) { display: none; }
}

/* ---- Flash ----------------------------------------------------------- */
.flash-stack { margin-top: var(--sp-3); display: grid; gap: var(--sp-2); }
.flash {
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.flash--success { background: var(--ok-50);  border-color: #bfe7d1; color: var(--ok-600); }
.flash--error   { background: var(--err-50); border-color: #f4c8c5; color: var(--err-600); }
.flash--info    { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }

/* ---- Hero ------------------------------------------------------------ */
.hero {
    background:
        radial-gradient(1200px 500px at 100% -10%, var(--brand-100), transparent 60%),
        radial-gradient(900px 400px at -10% 10%, #e9f7ff, transparent 55%);
    padding-block: var(--sp-7);
}
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: var(--sp-6);
}
@media (max-width: 880px) {
    .hero__inner { grid-template-columns: 1fr; gap: var(--sp-5); }
    .hero__art { order: -1; }
}
.hero__title { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.hero__lede { font-size: var(--fs-md); color: var(--body); max-width: 38ch; }

.picker {
    margin-top: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--sp-4);
    box-shadow: var(--shadow);
    max-width: 560px;
}
.picker__label { display: block; font-weight: 600; color: var(--ink); margin-bottom: var(--sp-2); }
.picker__row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.picker__row .select-wrap { flex: 1 1 240px; }
.picker__hint { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }

/* Phone art */
.hero__art { display: grid; place-items: center; }
.phone-card {
    width: clamp(180px, 22vw, 260px);
    aspect-ratio: 9 / 17;
    border-radius: 34px;
    background: linear-gradient(165deg, var(--brand-600), var(--brand-800));
    box-shadow: var(--shadow-lg);
    padding: 14px;
    position: relative;
}
.phone-card__notch {
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 36%; height: 18px; background: rgba(0,0,0,0.35); border-radius: 0 0 14px 14px;
}
.phone-card__screen {
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
    color: #fff; text-align: center;
}
.phone-card__flag { font-size: clamp(2.5rem, 6vw, 4rem); }
.phone-card__signal { font-weight: 700; letter-spacing: 0.08em; }
.phone-card__label { font-size: var(--fs-sm); opacity: 0.85; }

/* ---- Steps ----------------------------------------------------------- */
.steps {
    list-style: none; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-4);
}
.step {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: var(--sp-4);
    box-shadow: var(--shadow-sm);
}
.step__num {
    display: grid; place-items: center;
    width: 2.6rem; height: 2.6rem; border-radius: 12px;
    background: var(--brand-50); color: var(--brand-700);
    font-weight: 800; font-size: var(--fs-md); margin-bottom: var(--sp-2);
}
.step__title { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.step__text { color: var(--body); }

/* ---- Destination grid ------------------------------------------------ */
.dest-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--sp-3);
}
.dest-card {
    display: flex; flex-direction: column; gap: 0.35rem;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: var(--sp-3);
    box-shadow: var(--shadow-sm);
    transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease;
}
.dest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.dest-card__flag { font-size: 1.9rem; line-height: 1; }
.dest-card__name { font-weight: 700; color: var(--ink); }
.dest-card__cta { font-size: var(--fs-sm); color: var(--brand-600); font-weight: 600; }

/* ---- Breadcrumb ------------------------------------------------------ */
.crumbs { display: flex; gap: 0.5rem; align-items: center; font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-3); }

/* ---- Plans ----------------------------------------------------------- */
.plans-head { margin-bottom: var(--sp-5); }
.plans-head__title { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.plans-head__lede { color: var(--body); max-width: 60ch; }

.plan-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--sp-3);
}
.plan-card {
    position: relative; display: block; cursor: pointer;
    background: var(--surface); border: 2px solid var(--line);
    border-radius: var(--radius-lg); padding: var(--sp-4);
    box-shadow: var(--shadow-sm);
    transition: border-color .15s ease, box-shadow .18s ease, transform .14s ease;
}
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.plan-card__radio { position: absolute; opacity: 0; pointer-events: none; }
.plan-card:has(.plan-card__radio:checked) { border-color: var(--brand-500); box-shadow: var(--ring), var(--shadow); }
.plan-card__body { display: flex; flex-direction: column; gap: 0.4rem; }
.plan-card__tag {
    align-self: flex-start;
    font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--brand-700); background: var(--brand-50); padding: 0.25em 0.7em; border-radius: var(--radius-pill);
    margin-bottom: 0.2rem;
}
.plan-card__data { font-size: var(--fs-lg); font-weight: 800; color: var(--ink); }
.plan-card__validity { color: var(--muted); font-size: var(--fs-sm); }
.plan-card__price { font-size: var(--fs-md); font-weight: 800; color: var(--brand-700); margin-top: 0.3rem; }
.plan-card__check {
    position: absolute; top: var(--sp-3); right: var(--sp-3);
    width: 1.5rem; height: 1.5rem; border-radius: 50%;
    border: 2px solid var(--line); transition: all .15s ease;
}
.plan-card:has(.plan-card__radio:checked) .plan-card__check {
    border-color: var(--brand-500); background: var(--brand-500);
    box-shadow: inset 0 0 0 4px #fff;
}
.plan-card--feature { border-color: var(--brand-200); }

.plan-grid__actions {
    grid-column: 1 / -1;
    display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
    flex-wrap: wrap; margin-top: var(--sp-3);
}

/* ---- Forms ----------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.form__group { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.form__legend {
    font-size: var(--fs-md); font-weight: 800; color: var(--ink);
    padding: 0; margin-bottom: var(--sp-1);
}
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.field__label { font-weight: 600; color: var(--ink); font-size: var(--fs-sm); }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.field__error { font-size: var(--fs-xs); color: var(--err-600); font-weight: 500; }

.input, .select {
    width: 100%;
    font: inherit; font-size: var(--fs-base);
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75em 0.95em;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #aab4c2; }
.input:focus, .select:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }
.input--error { border-color: var(--err-600); }

.select-wrap { position: relative; }
.select-wrap::after {
    content: ""; position: absolute; right: 1rem; top: 50%;
    width: 0.55rem; height: 0.55rem; transform: translateY(-65%) rotate(45deg);
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    pointer-events: none;
}
.select { appearance: none; padding-right: 2.6rem; cursor: pointer; }

.phone-input { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2); }
.select-wrap--prefix { min-width: 6.5rem; }

.form__fineprint { font-size: var(--fs-xs); color: var(--muted); text-align: center; }

.payment-element { padding: var(--sp-2) 0; }
.payment-sim {
    border: 1px dashed var(--brand-200); background: var(--brand-50);
    border-radius: var(--radius); padding: var(--sp-3); display: grid; gap: 0.4rem;
}
.payment-sim__badge {
    justify-self: start; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--brand-700); background: #fff; border: 1px solid var(--brand-200);
    padding: 0.2em 0.7em; border-radius: var(--radius-pill);
}
.payment-sim__text { font-size: var(--fs-sm); color: var(--body); }

/* ---- Checkout layout ------------------------------------------------- */
.checkout {
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
    gap: var(--sp-5);
    align-items: start;
}
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.checkout__title { font-size: var(--fs-xl); margin-bottom: var(--sp-4); }

.checkout__summary { position: sticky; top: calc(72px + var(--sp-3)); }
@media (max-width: 900px) { .checkout__summary { position: static; order: -1; } }

.summary-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: var(--sp-4); box-shadow: var(--shadow);
    display: grid; gap: var(--sp-3);
}
.summary-card__title { font-size: var(--fs-md); }
.summary-card__row { display: flex; gap: var(--sp-2); align-items: center; }
.summary-card__flag { font-size: 1.9rem; line-height: 1; }
.summary-card__dest { font-weight: 700; color: var(--ink); }
.summary-card__plan { color: var(--muted); font-size: var(--fs-sm); }
.summary-card__lines { display: grid; gap: 0.5rem; border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.summary-card__lines > div { display: flex; justify-content: space-between; font-size: var(--fs-sm); }
.summary-card__lines dt { color: var(--muted); }
.summary-card__lines dd { color: var(--ink); font-weight: 600; }
.summary-card__total {
    display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid var(--line); padding-top: var(--sp-3);
    font-size: var(--fs-md); font-weight: 800; color: var(--ink);
}

/* ---- Confirmation ---------------------------------------------------- */
.confirm { max-width: 920px; }
.confirm__hero { text-align: center; margin-bottom: var(--sp-5); }
.confirm__check {
    width: 4rem; height: 4rem; border-radius: 50%; margin: 0 auto var(--sp-3);
    display: grid; place-items: center; font-size: 2rem; font-weight: 800;
    color: #fff; background: linear-gradient(135deg, #25c281, var(--ok-600));
    box-shadow: 0 10px 26px rgba(19, 138, 82, 0.35);
}
.confirm__title { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.confirm__lede { color: var(--body); }
.confirm__grid {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--sp-4); align-items: start;
}
@media (max-width: 760px) { .confirm__grid { grid-template-columns: 1fr; } }
.esim-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: var(--sp-4); box-shadow: var(--shadow); text-align: center; display: grid; gap: var(--sp-2); justify-items: center;
}
.esim-card__title { font-size: var(--fs-md); }
.esim-card__qr { border-radius: var(--radius); border: 1px solid var(--line); }
.esim-card__hint { font-size: var(--fs-sm); color: var(--muted); }
.esim-card__meta { display: grid; gap: 0.4rem; width: 100%; }
.esim-card__meta > div { display: flex; justify-content: space-between; font-size: var(--fs-sm); }
.esim-card__meta dt { color: var(--muted); }
.esim-card__meta dd { color: var(--ink); font-weight: 600; }

.confirm__subtitle { font-size: var(--fs-md); margin-bottom: var(--sp-3); }
.confirm__details {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: var(--sp-4); box-shadow: var(--shadow-sm);
}
.confirm__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }

/* Key/value lists */
.kv { display: grid; gap: 0.6rem; }
.kv > div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-sm); border-bottom: 1px dashed var(--line-2); padding-bottom: 0.6rem; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--ink); font-weight: 600; text-align: right; }

.pill { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 0.25em 0.7em; border-radius: var(--radius-pill); }
.pill--ok { background: var(--ok-50); color: var(--ok-600); }

/* ---- Auth ------------------------------------------------------------ */
.auth { display: grid; place-items: center; }
.auth-card {
    width: 100%; max-width: 440px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow);
}
.auth-card--wide { max-width: 620px; }
.auth-card__title { font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.auth-card__lede { color: var(--muted); margin-bottom: var(--sp-4); }
.auth-card__alt { margin-top: var(--sp-4); text-align: center; font-size: var(--fs-sm); color: var(--muted); }

/* ---- Account --------------------------------------------------------- */
.account__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.account__title { font-size: var(--fs-xl); }
.account__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
@media (max-width: 820px) { .account__grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4); box-shadow: var(--shadow-sm); }
.panel__title { font-size: var(--fs-md); margin-bottom: var(--sp-3); }

.order-list { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.order-row {
    display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
    border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3); background: var(--bg);
}
.order-row__main { display: grid; gap: 0.2rem; }
.order-row__dest { font-weight: 700; color: var(--ink); }
.order-row__plan { font-size: var(--fs-sm); color: var(--muted); }
.order-row__meta { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.order-row__code { font-size: var(--fs-xs); color: var(--muted); font-family: ui-monospace, monospace; }
.order-row__price { font-weight: 800; color: var(--ink); }

.empty { text-align: center; padding: var(--sp-5) var(--sp-3); display: grid; gap: var(--sp-3); justify-items: center; }
.empty__text { color: var(--muted); }

/* ---- 404 ------------------------------------------------------------- */
.notfound { text-align: center; padding-block: var(--sp-6); display: grid; gap: var(--sp-3); justify-items: center; }
.notfound__code { font-size: var(--fs-2xl); font-weight: 800; color: var(--brand-200); line-height: 1; }
.notfound__title { font-size: var(--fs-xl); }
.notfound__text { color: var(--muted); max-width: 40ch; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: var(--ink); color: #c7d2e2; margin-top: var(--sp-6); }
.site-footer__inner {
    display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
    padding-block: var(--sp-5);
}
.site-footer .brand__name { color: #fff; }
.site-footer__tag { margin-top: var(--sp-2); color: #8fa0b8; font-size: var(--fs-sm); max-width: 32ch; }
.site-footer__links { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; }
.site-footer__links a { color: #c7d2e2; font-size: var(--fs-sm); }
.site-footer__links a:hover { color: #fff; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,0.08); padding-block: var(--sp-3); font-size: var(--fs-xs); color: #7d8ca6; }

/* ---- Wide-screen polish (1440px+) ------------------------------------ */
@media (min-width: 1440px) {
    :root { --container: 1320px; }
}
@media (min-width: 1800px) {
    :root { --container: 1440px; }
    .hero__inner { gap: var(--sp-7); }
}

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