/* =====================================================================
   H2osim — premium flat black & white design system
   ===================================================================== */

/* Smooth cross-document navigation (Chromium). Turns the hard page-swap
   into a quick crossfade so navigating feels seamless even when a page
   isn't prerendered. Disabled for reduced-motion users. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) { animation: none !important; }
}

:root {
    --black: #0a0a0a;
    --ink: #111111;
    --gray-900: #1a1a1a;
    --gray-700: #3d3d3d;
    --gray-500: #767676;
    --gray-400: #9a9a9a;
    --gray-300: #d6d6d6;
    --gray-200: #e7e7e7;
    --gray-100: #f3f3f3;
    --gray-50: #f9f9f9;
    --white: #ffffff;

    --bg: var(--white);
    --fg: var(--ink);
    --card: var(--white);        /* raised surfaces: cards, inputs, menus */
    --on-ink: var(--white);      /* text/icons that sit on an --ink fill */
    --ink-strong: #000000;       /* hover state of ink fills */
    --cta-bg: var(--ink);        /* CTA band background */
    --header-bg: rgba(255,255,255,.82);
    --flag-ring: rgba(0,0,0,.08); /* hairline around flag images */
    --muted: var(--gray-500);
    --line: var(--gray-200);
    --line-strong: var(--gray-300);
    --surface: var(--gray-50);
    --surface-2: var(--gray-100);
    color-scheme: light;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
    --shadow: 0 6px 24px rgba(0,0,0,.07);
    --shadow-lg: 0 18px 50px rgba(0,0,0,.12);

    --container: 1180px;
    --container-narrow: 760px;
    --header-h: 70px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* Coverage map (the single accent: green = available) */
    --map-land: #e9e9e9;
    --map-stroke: #ffffff;
    --map-soft: #c9c9c9;
    --green: #16a34a;
    --green-strong: #0f7a39;
    --green-soft: #dcf3e6;
}

/* =====================================================================
   Dark theme — toggled via [data-theme="dark"] on <html>.
   Accents (--ink) flip to light; --on-ink/--card carry the contrasting
   text so chips, badges and primary buttons stay legible.
   ===================================================================== */
[data-theme="dark"] {
    --ink: #f4f4f5;
    --gray-900: #e9e9ec;
    --gray-700: #c4c4ca;
    --gray-500: #9b9ba3;
    --gray-400: #6f6f78;

    --bg: #0b0b0d;
    --fg: #ececf0;
    --card: #18181b;
    --on-ink: #0b0b0d;
    --ink-strong: #ffffff;
    --cta-bg: #141417;
    --header-bg: rgba(13,13,15,.82);
    --flag-ring: rgba(255,255,255,.14);

    --muted: #9b9ba3;
    --line: rgba(255,255,255,.10);
    --line-strong: rgba(255,255,255,.18);
    --surface: #141417;
    --surface-2: #202024;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.5);
    --shadow: 0 6px 24px rgba(0,0,0,.5);
    --shadow-lg: 0 18px 50px rgba(0,0,0,.6);

    --map-land: #2a2a2f;
    --map-stroke: #0b0b0d;
    --map-soft: #3c3c43;
    --green-soft: rgba(22,163,74,.18);

    color-scheme: dark;
}
/* Brand mark keeps its inverted look in dark (light tile, dark glyph). */
[data-theme="dark"] .brand-mark { background: var(--ink); color: var(--on-ink); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--fg);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* Guard against accidental horizontal scroll on phones (overflowing wide
       elements, RTL artefacts). `clip` keeps position:sticky working, unlike
       `hidden`, which would create a scroll container and break the headers. */
    overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; inset-inline-start: 12px; top: -60px; z-index: 200;
    background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 8px;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.thin { font-weight: 400; color: var(--muted); }
.text-ok { color: var(--ink); }
.text-soon { color: var(--gray-500); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 999px;
    padding: 11px 22px; font-weight: 600; font-size: .95rem;
    transition: transform .15s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
    white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--ink); color: var(--card); }
.btn-primary:hover { background: var(--ink-strong); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink); }
.btn-invert { background: var(--card); color: var(--ink); }
.btn-invert:hover { box-shadow: var(--shadow-lg); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 6px; font-size: .9rem; }
.link-btn:hover { color: var(--ink); }

/* ---- Header ---- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.03em; font-size: 1.22rem; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: var(--card); border-radius: 10px; }
.main-nav { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav-link { padding: 9px 14px; border-radius: 999px; font-weight: 500; color: var(--gray-700); transition: background .2s, color .2s; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.is-active { color: var(--ink); font-weight: 600; background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.theme-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); transition: border-color .2s, background .2s, color .2s; }
.theme-toggle:hover { border-color: var(--ink); background: var(--surface-2); }
.theme-toggle svg { display: block; }
.theme-toggle .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-moon { display: block; }

.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 12px; font-weight: 600; font-size: .85rem; color: var(--ink); }
.lang-btn:hover { border-color: var(--ink); }
.lang-menu {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 6px; min-width: 200px;
    display: none; flex-direction: column; gap: 2px; z-index: 120;
}
.lang-switch.open .lang-menu { display: flex; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: .9rem; }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a.is-active { background: var(--ink); color: var(--card); }
.lang-code { font-weight: 700; width: 26px; font-size: .8rem; }
.lang-native { color: inherit; }

.cart-link { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); }
.cart-link:hover { border-color: var(--ink); background: var(--surface-2); }
.cart-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 19px; height: 19px; padding: 0 5px; background: var(--ink); color: var(--card); border-radius: 999px; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.cart-count.is-empty { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 11px; background: transparent; align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
.mobile-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---- Sections ---- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; text-align: start; max-width: none; gap: 20px; }
.section-head-row p { margin-top: 6px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

/* ---- Hero ---- */
.hero { padding: clamp(48px, 7vw, 90px) 0 clamp(40px, 6vw, 70px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-title { margin-bottom: 18px; }
.hero-sub { font-size: 1.15rem; color: var(--gray-700); max-width: 520px; margin-bottom: 24px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-inline-start: 30px; min-height: 20px; display: flex; align-items: center; color: var(--gray-700); }
.hero-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--ink); }
.hero-points li::after { content: ""; position: absolute; inset-inline-start: 7px; top: 50%; width: 5px; height: 9px; margin-top: -7px; border-right: 2px solid var(--on-ink); border-bottom: 2px solid var(--on-ink); transform: rotate(45deg); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { display: grid; place-items: center; }
.esim-card {
    position: relative; width: 100%; max-width: 360px; aspect-ratio: 1.6 / 1;
    background: linear-gradient(150deg, #0c0c0c, #2a2a2a);
    border-radius: 22px; padding: 26px; color: #fff; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; justify-content: space-between;
}
.esim-card::after { content: ""; position: absolute; inset: 0; border-radius: 22px; background: radial-gradient(120% 120% at 80% 0%, rgba(255,255,255,.16), transparent 50%); }
.esim-chip { width: 46px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #e9e9e9, #b9b9b9); position: relative; }
.esim-chip::before { content: ""; position: absolute; inset: 7px 5px; border: 1px solid rgba(0,0,0,.25); border-radius: 4px; }
.esim-lines { display: grid; gap: 7px; }
.esim-lines span { height: 7px; border-radius: 4px; background: rgba(255,255,255,.22); }
.esim-lines span:nth-child(1) { width: 70%; } .esim-lines span:nth-child(2) { width: 50%; } .esim-lines span:nth-child(3) { width: 60%; }
.esim-brand { font-weight: 700; letter-spacing: .04em; opacity: .9; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; transition: box-shadow .25s, transform .25s var(--ease); }
.step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-weight: 800; margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; }

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.features-compact { grid-template-columns: repeat(2, 1fr); }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); margin-bottom: 16px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---- Country grid / cards ---- */
.country-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.country-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.country-name { min-width: 0; overflow-wrap: anywhere; }
.country-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.country-card.is-unavailable { opacity: .72; }
.country-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.flag { display: inline-flex; line-height: 1; }

/* ---- Flag images (real flags — emoji flags don't render on Windows) ---- */
.flag-img {
    display: inline-block; flex: none; vertical-align: middle;
    width: 34px; height: 25px; border-radius: 4px; object-fit: cover;
    background: var(--surface-2); box-shadow: 0 0 0 1px var(--flag-ring);
}
.flag-img.flag-sm { width: 22px; height: 16px; border-radius: 3px; }
.flag-img.flag-lg { width: 64px; height: 47px; border-radius: 8px; }
.flag-fallback { display: inline-grid; place-items: center; color: var(--muted); }
img.flag-img.flag-broken {
    font-size: 0; color: transparent;
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 2.5 15.4 0 18M12 3c-2.5 2.6-2.5 15.4 0 18'/%3E%3C/svg%3E") center/64% no-repeat;
}
.summary-item-name { display: inline-flex; align-items: center; gap: 7px; }
.badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; }
.badge-pop { background: var(--ink); color: var(--on-ink); }
.country-name { margin: 8px 0 0; font-size: 1.18rem; }
.country-meta { color: var(--muted); font-size: .88rem; display: flex; gap: 6px; align-items: center; }
.country-meta .dot { opacity: .5; }
.country-card-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; }
.price { display: flex; flex-direction: column; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.price small { font-weight: 500; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.country-status { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); }
.country-status.ok { color: var(--ink); }
.country-status.soon { color: var(--muted); }

/* ---- Shop toolbar ---- */
.shop-toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.search-field { position: relative; flex: 1; min-width: 240px; }
.search-field svg { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input { width: 100%; padding: 13px 18px 13px 46px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .95rem; background: var(--card); }
.is-rtl .search-field input { padding: 13px 46px 13px 18px; }
.search-field input:focus { outline: none; border-color: var(--ink); }
.toolbar-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.chip-group { display: inline-flex; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 999px; }
.chip { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--gray-700); transition: .2s; }
.chip.is-active { background: var(--ink); color: var(--on-ink); }
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.blog-cats .chip { background: var(--surface-2); }
.blog-cats .chip.is-active { background: var(--ink); color: var(--on-ink); }
.select-field select { appearance: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 38px 10px 16px; font-size: .9rem; font-weight: 600; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
[data-theme="dark"] .select-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f4f4f5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.result-count { color: var(--muted); font-size: .9rem; margin: 6px 0 22px; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state-lg { padding: 80px 20px; }
.empty-illustration { display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--surface-2); color: var(--gray-400); margin-bottom: 20px; }

/* ---- Page head ---- */
.page-head { padding: clamp(40px, 6vw, 70px) 0 0; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lead { color: var(--muted); font-size: 1.1rem; max-width: 620px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--ink); }

/* ---- Country detail ---- */
.page-head-country { background: var(--surface); border-bottom: 1px solid var(--line); padding-bottom: 36px; }
.country-hero { display: flex; align-items: center; gap: 22px; }
.country-hero-flag { font-size: 4rem; line-height: 1; }
.country-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pill { background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; font-size: .85rem; }
.pill-ok { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pill-soon { color: var(--muted); }
.pill-accent { background: var(--accent, var(--ink)); color: var(--on-ink); border-color: transparent; font-weight: 600; }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn-sm { padding: 7px 13px; font-size: .85rem; }
.link-btn-danger { display: inline-flex; align-items: center; gap: 6px; color: #c0392b; }
.link-btn-danger:hover { color: #e74c3c; }
.country-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.country-main h2 { margin-top: 8px; font-size: 1.5rem; }
.coverage, .advantages, .country-faq { margin-top: 44px; }
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.zone { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); font-weight: 500; font-size: .92rem; }
.zone svg { color: var(--ink); flex-shrink: 0; }

.country-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.buy-box { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 26px; background: var(--card); box-shadow: var(--shadow); }
.buy-box-price { display: flex; flex-direction: column; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.buy-box-price small { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.buy-box-price strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.buy-box-price span { color: var(--muted); font-size: .88rem; }
.buy-box-rows { display: grid; gap: 12px; margin-bottom: 22px; }
.buy-row { display: flex; justify-content: space-between; font-size: .92rem; }
.buy-row span { color: var(--muted); }
.qty-field { margin-bottom: 14px; }
.qty-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.qty-control button { width: 42px; height: 44px; border: 0; background: var(--card); font-size: 1.3rem; color: var(--ink); }
.qty-control button:hover { background: var(--surface-2); }
.qty-control input { width: 54px; height: 44px; border: 0; text-align: center; font-size: 1rem; font-weight: 600; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-control-sm button { width: 34px; height: 36px; font-size: 1.1rem; }
.qty-control-sm input { width: 42px; height: 36px; }
.buy-form .btn { margin-top: 10px; }
.buy-soon { text-align: center; color: var(--muted); margin: 10px 0; }

/* ---- Cart ---- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.cart-flag { font-size: 2rem; }
.cart-item-info { display: flex; flex-direction: column; }
.cart-item-info .muted { font-size: .85rem; }
.cart-line-total { font-weight: 700; min-width: 70px; text-align: end; }
.cart-remove { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--muted); }
.cart-remove:hover { border-color: var(--ink); color: var(--ink); }
.cart-summary { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 26px; background: var(--card); box-shadow: var(--shadow); }
.cart-summary h2 { font-size: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.summary-row strong { font-size: 1.5rem; font-weight: 800; }
.cart-summary .btn { margin-bottom: 10px; }
.cart-clear-form { text-align: center; margin-top: 6px; }

/* ---- Checkout ---- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.checkout-form { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; background: var(--card); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; background: var(--card); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.field-hint { display: block; color: var(--muted); font-size: .85rem; margin-top: 7px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 20px; }
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-warning { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--gray-900); }
.alert-error { background: #1a1a1a; color: #fff; }
.payment-note { color: var(--muted); font-size: .9rem; }
.agree-note { text-align: center; color: var(--muted); font-size: .82rem; margin: 14px 0 0; }
.checkout-summary { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 26px; background: var(--surface); position: sticky; top: calc(var(--header-h) + 20px); }
.checkout-summary h2 { font-size: 1.15rem; }
.summary-items { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.summary-total strong { font-size: 1.6rem; font-weight: 800; }

/* ---- Order confirmation ---- */
.order-confirm { text-align: center; }
.order-check { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--ink); color: var(--on-ink); margin-bottom: 22px; }
.order-card { text-align: start; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 26px; margin: 30px 0; background: var(--card); }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-row span:first-child { color: var(--muted); }
.order-items { padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-items-label { color: var(--muted); display: block; margin-bottom: 10px; }
.order-items ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; }
.order-total strong { font-size: 1.3rem; }
.order-next { text-align: start; background: var(--surface); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.order-next h2 { font-size: 1.15rem; }
.order-next p { margin: 0; color: var(--gray-700); }
.order-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.status-badge { font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); }

/* ---- Blog ---- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-grid-lg { gap: 28px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: transform .2s var(--ease), box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-body { padding: 24px; }
.post-card h2, .post-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.post-cat { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.post-meta { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); }
.post-readmore { font-weight: 600; color: var(--ink); }

.article-head { padding: clamp(40px, 6vw, 64px) 0 30px; }
.article-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; margin-top: 12px; }
.article-meta .dot { opacity: .5; }
.article-body { margin: 30px 0; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); }
.tag { background: var(--surface-2); padding: 6px 13px; border-radius: 999px; font-size: .85rem; font-weight: 500; }
.tag:hover { background: var(--ink); color: var(--on-ink); }
.article-cta { text-align: center; background: var(--surface); border-radius: var(--radius-lg); padding: 40px; margin: 30px 0 10px; }

/* ---- Prose ---- */
.prose { font-size: 1.05rem; color: var(--gray-900); }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-inline-start: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; }
.faq-item summary { padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--gray-700); }

/* ---- Help ---- */
.help-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.help-h2 { font-size: 1.4rem; margin-bottom: 18px; margin-top: 8px; }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 44px; }
.help-card { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-weight: 600; transition: .2s; }
.help-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.help-card svg { color: var(--muted); }
.help-contact, .help-nav { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 26px; background: var(--surface); position: sticky; top: calc(var(--header-h) + 20px); }
.help-contact .btn { margin-top: 10px; }
.help-nav ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; }
.help-nav a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--gray-700); }
.help-nav a:hover, .help-nav a.is-active { background: var(--card); color: var(--ink); font-weight: 600; }

/* ---- CTA band ---- */
.cta-band { background: var(--cta-bg); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-bottom: 28px; }

/* ---- Footer ---- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding: 60px 24px 40px; }
.footer-brand .footer-note { color: var(--muted); font-size: .92rem; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: var(--gray-700); font-size: .94rem; }
.footer-col a:hover { color: var(--ink); }
.footer-tg { display: inline-flex !important; align-items: center; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.footer-langs { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-langs a { padding: 4px 8px; border-radius: 6px; font-weight: 600; font-size: .78rem; }
.footer-langs a:hover, .footer-langs a.is-active { background: var(--ink); color: var(--on-ink); }

/* ---- Error ---- */
.error-page { text-align: center; }
.error-code { font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; display: block; margin-bottom: 10px; }
.error-inner .order-actions { margin-top: 24px; }

/* ---- Toast ---- */
.toast {
    position: fixed; bottom: 24px; inset-inline: 0; margin-inline: auto; width: max-content; max-width: 90%;
    background: var(--ink); color: var(--on-ink); padding: 13px 22px; border-radius: 999px; font-weight: 500; font-size: .92rem;
    box-shadow: var(--shadow-lg); transform: translateY(140%); opacity: 0; transition: transform .35s var(--ease), opacity .35s; z-index: 300;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .country-grid { grid-template-columns: repeat(3, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .header-inner { gap: 12px; }
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { order: -1; }
    .esim-card { max-width: 300px; }
    .country-layout, .cart-layout, .checkout-layout, .help-layout { grid-template-columns: 1fr; }
    .country-aside, .cart-summary, .checkout-summary, .help-contact, .help-nav { position: static; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
    .post-grid, .post-grid-lg { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .container { padding: 0 18px; }
    /* Keep the four header controls inside the viewport on small phones
       (incl. RTL, where any overflow shows as a left-side scroll). */
    .header-actions { gap: 6px; }
    .theme-toggle, .cart-link, .nav-toggle { width: 38px; height: 38px; }
    .lang-btn { padding: 7px 9px; }
    .country-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .steps { grid-template-columns: 1fr; }
    .features, .features-compact { grid-template-columns: 1fr; }
    .post-grid, .post-grid-lg, .help-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 18px 30px; }
    .country-card { padding: 16px; }
    .flag { font-size: 1.8rem; }
    .cart-item { grid-template-columns: auto 1fr; row-gap: 12px; }
    .cart-item .qty-control { grid-column: 1 / 2; }
    .cart-line-total { grid-column: 2 / 3; text-align: end; }
    .cart-remove { grid-row: 1; grid-column: 2; justify-self: end; }
    .country-hero-flag { font-size: 3rem; }
}
@media (max-width: 380px) {
    /* Extra breathing room on the very smallest screens. */
    .container { padding: 0 14px; }
    .footer-grid { padding-inline: 14px; }
}
/* Very small phones (≤360px, e.g. iPhone SE / Galaxy A) — stack actions full
   width and trim oversized type so nothing overflows the viewport. */
@media (max-width: 360px) {
    h1 { font-size: clamp(1.7rem, 8vw, 2rem); }
    .btn-lg { padding: 13px 20px; font-size: .96rem; }
    .hero-cta, .order-actions { flex-direction: column; }
    .hero-cta .btn, .order-actions .btn { width: 100%; }
    .buy-box, .checkout-form, .cart-summary, .checkout-summary, .order-card { padding: 18px; }
    .buy-box-price strong { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .lang-native { display: none; }
}

/* =====================================================================
   Large desktops & 4K — use the extra space gracefully (wider container +
   slightly larger base type + denser grids) instead of a lonely column.
   ===================================================================== */
@media (min-width: 1700px) {
    :root { --container: 1360px; }
    body { font-size: 17px; }
}
@media (min-width: 2200px) {
    :root { --container: 1560px; --header-h: 76px; }
    body { font-size: 18px; }
    .country-grid { grid-template-columns: repeat(5, 1fr); }
    .post-grid, .post-grid-lg { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 3000px) {
    /* True 4K and up: keep line length readable but scale UI up a notch. */
    :root { --container: 1840px; }
    body { font-size: 20px; }
    .country-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* =====================================================================
   Interactive coverage map
   ===================================================================== */
.coverage-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.coverage-head h2 { margin: 0 0 8px; }
.coverage-map { position: relative; }
.section-tight { padding-top: 34px; padding-bottom: 10px; }

.coverage-canvas {
    position: relative;
    background: linear-gradient(180deg, var(--card), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(10px, 3vw, 30px);
    overflow: hidden;
}
.world-map { width: 100%; height: auto; display: block; }
.world-map path {
    fill: var(--map-land);
    stroke: var(--map-stroke);
    stroke-width: .4;
    transition: fill .18s var(--ease);
    vector-effect: non-scaling-stroke;
}
.world-map path.is-soon { fill: var(--map-soft); }
.world-map path.is-available { fill: var(--green); }
.world-map path.is-clickable { cursor: pointer; }
.world-map path.is-clickable:hover,
.world-map path.is-clickable:focus { fill: var(--green-strong); outline: none; }
.world-map path.is-available.is-active,
.world-map path.is-active { fill: var(--green-strong); }
.world-map path.is-active { animation: mapPulse 2s var(--ease) infinite; }
@keyframes mapPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* Tooltip */
.coverage-tip {
    position: absolute; z-index: 5; pointer-events: none;
    background: #17181c; color: #fff; border-radius: 10px;
    padding: 8px 12px; font-size: .82rem; line-height: 1.3;
    box-shadow: var(--shadow); max-width: 240px;
    display: flex; flex-direction: column; gap: 3px;
}
.coverage-tip strong { font-weight: 700; }
.coverage-tip .tip-status { font-size: .72rem; opacity: .85; }
.coverage-tip .tip-status.ok { color: #6ee7a0; }
.coverage-tip .tip-status.soon { color: #d6d6d6; }
.coverage-tip .tip-status.none { color: #9a9a9a; }
.coverage-tip .tip-hint { font-size: .68rem; opacity: .6; text-transform: uppercase; letter-spacing: .05em; }

/* Skeleton */
.coverage-skeleton {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 280px; color: var(--muted); font-size: .9rem;
}
.coverage-spinner {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--line-strong); border-top-color: var(--ink);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Legend */
.coverage-legend {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
    margin-top: 18px; font-size: .85rem; color: var(--muted);
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 13px; height: 13px; border-radius: 4px; display: inline-block; border: 1px solid var(--line-strong); }
.legend-dot.is-available { background: var(--green); border-color: var(--green); }
.legend-dot.is-soon { background: var(--map-soft); border-color: var(--map-soft); }
.legend-dot.is-none { background: var(--map-land); }
.legend-count { margin-inline-start: auto; font-weight: 600; color: var(--ink); }

/* Country-page availability status line */
.coverage-status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; margin: 4px 0 18px; }
.coverage-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.coverage-status.is-ok { color: var(--green-strong); }
.coverage-status.is-ok .coverage-status-dot { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.coverage-status.is-soon { color: var(--muted); }
.coverage-status.is-soon .coverage-status-dot { background: var(--map-soft); box-shadow: 0 0 0 4px var(--surface-2); }

@media (max-width: 620px) {
    .coverage-legend { gap: 12px; font-size: .8rem; }
    .legend-count { margin-inline-start: 0; width: 100%; }
}

/* Covered-countries list (product page) */
.covered-list { margin-top: 22px; }
.covered-list-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 14px; }
.covered-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 8px; background: var(--green-soft); color: var(--green-strong); border-radius: 999px; font-size: .8rem; font-weight: 700; }
.country-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.country-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .85rem; font-weight: 500; }
.country-chip .chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.country-chip.is-active { border-color: var(--green); background: var(--green-soft); color: var(--green-strong); font-weight: 600; }

.coverage-tip[hidden] { display: none; }

/* "Open list" toggle (top-left of every map) + the animated list panel */
.coverage-list-toggle {
    position: absolute; top: 12px; inset-inline-start: 12px; z-index: 6;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--card); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 600;
    cursor: pointer; box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.06));
    transition: border-color .15s var(--ease), transform .15s var(--ease), background .15s var(--ease);
}
.coverage-list-toggle:hover { border-color: var(--ink); transform: translateY(-1px); }
.coverage-list-toggle .icon-map { display: none; }
.coverage-map.is-list-open .coverage-list-toggle .icon-list { display: none; }
.coverage-map.is-list-open .coverage-list-toggle .icon-map { display: inline-block; }

/* The map + skeleton fade out, the list fades/slides in. */
.coverage-canvas .world-map,
.coverage-canvas .coverage-skeleton { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.coverage-map.is-list-open .world-map,
.coverage-map.is-list-open .coverage-skeleton { opacity: 0; transform: scale(.98); pointer-events: none; }

.coverage-list {
    position: absolute; inset: 0; z-index: 4;
    padding: clamp(48px, 7vw, 64px) clamp(14px, 3vw, 28px) clamp(14px, 3vw, 24px);
    overflow-y: auto;
    opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.coverage-map.is-list-open .coverage-list { opacity: 1; transform: none; pointer-events: auto; }
.coverage-list[hidden] { display: block; } /* JS clears hidden; keep it in flow for the fade */
.coverage-list-head { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 12px; }
.coverage-list-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 7px 16px;
}
.coverage-list-item { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; padding: 3px 0; }
.coverage-list-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ============================================================
   Order status lookup ("track my order")
   ============================================================ */
.track-form { max-width: 460px; margin: 28px auto 0; }
.track-form .btn-block { width: 100%; margin-top: 6px; }
.track-result {
    display: flex; gap: 16px; align-items: flex-start;
    max-width: 560px; margin: 8px auto 0;
    padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line);
    background: var(--card); box-shadow: var(--shadow-sm);
}
.track-result .track-icon {
    flex-shrink: 0; display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%;
}
.track-ok .track-icon { background: var(--green-soft); color: var(--green-strong); }
.track-wait .track-icon { background: rgba(245,166,35,.16); color: #b9770f; }
.track-err .track-icon { background: rgba(220,38,38,.12); color: #b91c1c; }
.track-msg { margin: 2px 0 0; font-weight: 600; font-size: 1.02rem; }
.track-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--muted); font-size: .9rem; }
.track-contact { display: inline-block; margin-top: 12px; font-weight: 600; }

.footer-track-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
    font-size: .85rem; font-weight: 600;
}

/* ============================================================
   Cookie consent banner (GDPR) — small, bottom, unobtrusive
   ============================================================ */
.consent {
    position: fixed; z-index: 60; inset-inline: 16px; bottom: 16px;
    margin-inline: auto; max-width: 540px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
    padding: 12px 16px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(140%); opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}
.consent.is-visible { transform: translateY(0); opacity: 1; }
.consent-text { margin: 0; flex: 1 1 240px; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.consent-text a { font-weight: 600; white-space: nowrap; }
.consent-actions { display: flex; gap: 8px; margin-inline-start: auto; }
.btn-consent {
    border: 0; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600;
    padding: 8px 16px; border-radius: 999px;
}
.btn-consent-accept { background: var(--ink); color: var(--card); }
.btn-consent-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
@media (prefers-reduced-motion: reduce) {
    .consent { transition: none; }
}

/* --- Payment method chooser (checkout / pay) ----------------------------- */
.pay-methods {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 18px 0;
}
.pay-methods legend {
    font-weight: 600;
    padding: 0 6px;
    font-size: .95rem;
}
.pay-method-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 10px;
    transition: border-color .15s, background .15s;
}
.pay-method-option:first-of-type { margin-top: 4px; }
.pay-method-option:hover { border-color: var(--line-strong); }
.pay-method-option input { margin-top: 3px; flex: none; }
.pay-method-option:has(input:checked) {
    border-color: var(--ink);
    background: var(--surface);
}
.pay-method-body { display: flex; flex-direction: column; gap: 3px; }
.pay-method-name { font-weight: 600; }
.pay-method-desc { color: var(--muted); line-height: 1.4; }
[dir="rtl"] .pay-method-option { text-align: right; }
