/* Layout: navy side drawer (fixed on desktop, off-canvas on phones) + sticky top bar + one content column;
   phones get a bottom tab bar with a raised "new subscriber" button; every form opens as a bottom sheet. */
:root {
  --bg: #FFF8F4;
  --surface: #ffffff;
  --surface-2: #FFF3EC;
  --surface-3: #F7EAE2;
  --line: #F0E2DC;
  --line-strong: #E2CEC5;
  --ink: #1A1325;
  --ink-2: #3A3346;
  --muted: #5B5368;
  --primary: #D9142F;
  --primary-2: #B80F26;
  --primary-ink: #ffffff;
  --primary-soft: #FFF0EB;
  --grad: linear-gradient(135deg, #E8203A 0%, #D9142F 55%, #FF4A1F 100%);
  --navy: #17111F;
  --navy-2: #231A30;
  --navy-line: rgba(255, 255, 255, .09);
  --navy-ink: #FAF8F5;
  --navy-muted: #B9B0CC;
  --good: #15803d;
  --good-soft: #e2f5e9;
  --warn: #b26b00;
  --warn-soft: #fdf1d9;
  --bad: #d12f2f;
  --bad-soft: #fde6e6;
  --violet: #6e45d6;
  --violet-soft: #efe8fd;
  --info: #0b6f8c;
  --info-soft: #ddf2f8;
  --campaign: linear-gradient(135deg, #FF4A1F, #E0123E);
  --chart: #D9142F;
  --shadow-sm: 0 1px 2px rgba(26, 19, 37, .05);
  --shadow: 0 1px 2px rgba(26, 19, 37, .04), 0 12px 32px -14px rgba(26, 19, 37, .14);
  --shadow-lg: 0 24px 60px -20px rgba(26, 19, 37, .32);
  --shadow-primary: 0 10px 24px -10px rgba(217, 20, 47, .52);
  --r-xl: 26px;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;
  --f-brand: "Outfit", "IBM Plex Sans Arabic", sans-serif;
  --f-ui: "IBM Plex Sans Arabic", "Outfit", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Outfit", Tahoma, sans-serif;
  --f-mono: "Outfit", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --drawer-w: 284px;
  --topbar-h: 68px;
  --tabbar-h: 70px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120D18; --surface: #1A1325; --surface-2: #241B33; --surface-3: #2E2340; --line: #332747; --line-strong: #463760;
    --ink: #FAF8F5; --ink-2: #D8D1E6; --muted: #9E94B2;
    --primary: #FF4A2A; --primary-2: #E8203A; --primary-soft: #311724;
    --navy: #0E0A14; --navy-2: #17111F;
    --good: #45d37e; --good-soft: #0f2a1a; --warn: #f3b544; --warn-soft: #2d230c; --bad: #ff7272; --bad-soft: #351718;
    --violet: #ab90ff; --violet-soft: #231a40; --info: #4cc6e0; --info-soft: #0d2a33;
    --chart: #FF5A2A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #120D18; --surface: #1A1325; --surface-2: #241B33; --surface-3: #2E2340; --line: #332747; --line-strong: #463760;
  --ink: #FAF8F5; --ink-2: #D8D1E6; --muted: #9E94B2;
  --primary: #FF4A2A; --primary-2: #E8203A; --primary-soft: #311724;
  --navy: #0E0A14; --navy-2: #17111F;
  --good: #45d37e; --good-soft: #0f2a1a; --warn: #f3b544; --warn-soft: #2d230c; --bad: #ff7272; --bad-soft: #351718;
  --violet: #ab90ff; --violet-soft: #231a40; --info: #4cc6e0; --info-soft: #0d2a33;
  --chart: #FF5A2A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -16px rgba(0, 0, 0, .7);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--f-body); font-size: 15px; line-height: 1.55; -webkit-tap-highlight-color: transparent; min-height: 100dvh; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-ui); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: 1.35rem; } h2 { font-size: 1.12rem; } h3 { font-size: 1rem; } h4 { font-size: .92rem; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
svg.i { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); letter-spacing: .01em; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- shell ---------- */
.shell { min-height: 100dvh; }
.main-col { min-width: 0; min-height: 100dvh; display: flex; flex-direction: column; }
.content { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 16px; padding-block: 18px calc(var(--tabbar-h) + 36px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 18px; align-content: start; }
@media (min-width: 1024px) {
  .main-col { margin-inline-start: var(--drawer-w); }
  .content { padding-inline: 32px; padding-block: 26px 48px; gap: 22px; }
}

/* drawer */
.drawer { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 40; width: var(--drawer-w); max-width: 86vw; background: var(--navy); color: var(--navy-ink); display: flex; flex-direction: column; padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; }
[dir="ltr"] .drawer { transform: translateX(-105%); }
.drawer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 60% at 100% 0%, rgba(255, 74, 31, .22), transparent 60%), radial-gradient(90% 50% at 0% 100%, rgba(224, 18, 62, .14), transparent 70%); pointer-events: none; }
.drawer > * { position: relative; }
body.drawer-open .drawer { transform: none; }
.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(15, 10, 22, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) {
  .drawer { transform: none !important; box-shadow: none; }
  .scrim { display: none; }
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; background: #1A1325; border: 1px solid rgba(255, 74, 31, .28); display: grid; place-items: center; flex: none; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
.brand-mark svg { width: 32px; height: 32px; }
.brand b { display: block; font-family: var(--f-ui); font-size: 1.12rem; font-weight: 700; letter-spacing: .01em; }
.brand small { color: var(--navy-muted); font-size: .82rem; }
.nav { display: grid; gap: 4px; margin-top: 6px; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; color: var(--navy-ink); font-family: var(--f-ui); font-size: 1rem; border: 1px solid transparent; transition: background .15s; }
.nav a svg { color: var(--navy-muted); width: 22px; height: 22px; }
.nav a:hover { background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { background: linear-gradient(135deg, rgba(224, 18, 62, .25), rgba(255, 74, 31, .1)); border-color: rgba(255, 90, 42, .45); font-weight: 600; }
.nav a[aria-current="page"] svg { color: #FF8A65; }
.nav .badge { margin-inline-start: auto; }
.nav-sep { height: 1px; background: var(--navy-line); margin: 10px 8px; }
.nav-label { color: var(--navy-muted); font-size: .74rem; letter-spacing: .06em; padding: 8px 14px 2px; }
.drawer-foot { margin-top: auto; padding-top: 18px; }
.wallet-mini { border-radius: 20px; padding: 16px; background: linear-gradient(160deg, #2A1B38, #1A1228); border: 1px solid rgba(255, 90, 42, .28); display: grid; gap: 10px; }
.wallet-mini span { color: var(--navy-muted); font-size: .84rem; }
.wallet-mini b { font-family: var(--f-ui); font-size: 1.85rem; font-weight: 700; direction: ltr; text-align: end; }
.wallet-mini .meter { background: rgba(255, 255, 255, .12); }
.wallet-mini .meter i { background: linear-gradient(90deg, #E0123E, #FF4A1F, #FFB21E); }
.wallet-mini .row { display: flex; justify-content: space-between; color: var(--navy-muted); font-size: .76rem; }
.wallet-mini .btn { background: #fff; color: #1A1325; border: 0; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 16px 0; display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .title { flex: 1; min-width: 0; }
.topbar .title h1 { font-size: 1.12rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .title small { display: block; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; color: var(--ink-2); box-shadow: var(--shadow-sm); flex: none; }
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn.plain { border-color: transparent; background: transparent; box-shadow: none; }
.icon-btn .dot { position: absolute; top: 7px; inset-inline-start: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--good); border: 2px solid var(--surface); }
.icon-btn .dot.off { background: var(--bad); }
.icon-btn.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: #e5484d; color: #fff; font: 600 .72rem/21px var(--f-ui); text-align: center; }
.icon-btn .badge { position: absolute; top: -7px; inset-inline-end: -7px; border: 2px solid var(--bg); line-height: 17px; height: 21px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 600 1rem var(--f-ui); background: var(--grad); border: 0; flex: none; box-shadow: var(--shadow-primary); }
.avatar.sm { width: 38px; height: 38px; font-size: .9rem; box-shadow: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.35rem; }
@media (min-width: 1024px) { .menu-btn { display: none; } }
@media (max-width: 420px) { .hide-xs { display: none !important; } }

/* bottom tab bar */
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.tabbar a, .tabbar button { height: var(--tabbar-h); display: grid; place-items: center; align-content: center; gap: 3px; color: var(--muted); font: 500 .7rem var(--f-ui); background: none; border: 0; padding: 0 2px; }
.tabbar svg { width: 23px; height: 23px; }
.tabbar [aria-current="page"] { color: var(--primary); }
.tabbar .fab { width: 58px; height: 58px; border-radius: 20px; margin: -26px auto 0; background: var(--grad); color: #fff; box-shadow: var(--shadow-primary); display: grid; place-items: center; }
.tabbar .fab svg { width: 28px; height: 28px; }
@media (min-width: 1024px) { .tabbar { display: none; } }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.card-pad { padding: 18px; }
@media (min-width: 720px) { .card-pad { padding: 22px; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 18px 0; }
.card-head h2 { font-size: 1.08rem; }
.card-head small { display: block; color: var(--muted); font-size: .8rem; font-family: var(--f-body); font-weight: 400; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.section-title h2 { display: flex; align-items: center; gap: 10px; }
.dot-title { display: inline-flex; align-items: center; gap: 10px; }
.dot-title::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); flex: none; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font: 500 .88rem var(--f-ui); background: none; border: 0; padding: 4px 0; }
.link svg { width: 18px; height: 18px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 .95rem var(--f-ui); white-space: nowrap; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .15s, border-color .15s, background .15s; }
.btn:hover { border-color: var(--line-strong); }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-primary); }
.btn-primary:hover { border-color: transparent; filter: brightness(1.05); }
.btn-soft { background: var(--primary-soft); color: var(--primary); border-color: transparent; box-shadow: none; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-danger { color: var(--bad); }
.btn-danger.solid { background: var(--bad); color: #fff; border-color: transparent; }
.btn-good { background: var(--good); color: #fff; border-color: transparent; }
.btn-campaign { background: var(--campaign); color: #fff; border-color: transparent; }
.btn-sm { min-height: 36px; padding: 0 12px; border-radius: 11px; font-size: .84rem; }
.btn-sm svg { width: 17px; height: 17px; }
.btn-lg { min-height: 54px; font-size: 1.02rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 auto; }

/* quick actions (home) */
.quick { display: flex; flex-wrap: wrap; gap: 10px; }
.quick .btn { min-height: 54px; border-radius: 16px; padding: 0 18px; font-size: .98rem; }
@media (max-width: 560px) {
  .quick { display: grid; grid-template-columns: 1fr 1fr; }
  .quick .btn { padding: 0 10px; font-size: .9rem; white-space: normal; line-height: 1.25; }
  .quick .btn:first-child, .quick .btn:last-child:nth-child(even) { grid-column: 1 / -1; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.stat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 6px; box-shadow: var(--shadow); text-align: start; color: inherit; min-width: 0; }
a.stat:hover, button.stat:hover { border-color: var(--line-strong); }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tile { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.tile svg { width: 24px; height: 24px; }
.tile.green { background: var(--good-soft); color: var(--good); }
.tile.violet { background: var(--violet-soft); color: var(--violet); }
.tile.amber { background: var(--warn-soft); color: var(--warn); }
.tile.red { background: var(--bad-soft); color: var(--bad); }
.tile.cyan { background: var(--info-soft); color: var(--info); }
.tile.sm { width: 40px; height: 40px; border-radius: 12px; }
.tile.sm svg { width: 20px; height: 20px; }
.stat b { font: 700 1.9rem/1.1 var(--f-ui); letter-spacing: -.01em; }
.stat .label { color: var(--muted); font-size: .9rem; }
.stat .go { color: var(--primary); font: 500 .82rem var(--f-ui); display: inline-flex; align-items: center; gap: 2px; }
.stat .go svg { width: 16px; height: 16px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.kpi span { display: block; color: var(--muted); font-size: .8rem; }
.kpi b { font: 600 1.2rem var(--f-ui); }

/* ---------- activity chart ---------- */
.chart-card { padding: 18px; display: grid; gap: 14px; }
.series-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.series-tabs button { text-align: start; background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 2px 8px; color: var(--muted); font-size: .8rem; min-width: 0; }
.series-tabs button b { display: block; color: var(--ink); font: 700 1.55rem/1.2 var(--f-ui); }
.series-tabs button[aria-pressed="true"] { border-bottom-color: var(--chart); color: var(--ink-2); }
@media (max-width: 480px) { .series-tabs button b { font-size: 1.25rem; } .series-tabs button { font-size: .72rem; } }
.chart { position: relative; color: var(--chart); touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font: 11px var(--f-body); font-variant-numeric: tabular-nums; }
.chart .cross { stroke: var(--line-strong); stroke-width: 1; }
.chart.loading { opacity: .45; transition: opacity .2s; }
.chart-tip { position: absolute; top: 0; z-index: 2; pointer-events: none; min-width: 150px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .8rem; display: grid; gap: 4px; }
.chart-tip .tip-date { color: var(--muted); font-size: .76rem; }
.chart-tip .tip-row { display: flex; align-items: center; gap: 8px; }
.chart-tip .tip-row b { font: 600 .95rem var(--f-ui); min-width: 1.6em; }
.chart-tip .key { width: 14px; height: 2px; border-radius: 2px; background: var(--chart); flex: none; }
.chart-tip .key.dim { background: var(--line-strong); }
.chart-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.field > label, .label { font: 500 .86rem var(--f-ui); color: var(--ink-2); display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; min-width: 0; }
.field .opt { color: var(--muted); font-weight: 400; font-size: .78rem; }
.input, select.input, textarea.input { width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.6; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.input.ltr { text-align: left; }
.input.big { font: 500 1.15rem var(--f-mono); letter-spacing: .03em; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366758c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: left 14px center; padding-inline-end: 14px; padding-inline-start: 14px; }
[dir="rtl"] select.input { padding-left: 40px; }
.input-group { display: flex; gap: 8px; align-items: stretch; }
.input-group.wrap { flex-wrap: wrap; }
.input-group.wrap .input { flex: 1 1 140px; }
.input-group.wrap .btn { flex: 1 1 auto; }
.input-group .input { flex: 1; }
.input-group .icon-btn { width: 50px; height: auto; min-height: 50px; border-radius: 14px; color: var(--primary); }
.hint { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; min-height: 1.2em; }
.hint svg { width: 16px; height: 16px; }
.hint.ok { color: var(--good); }
.hint.bad { color: var(--bad); }
.hint.warn { color: var(--warn); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 460px) { .row2.stack-xs { grid-template-columns: minmax(0, 1fr); } }
.msg { padding: 11px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: .9rem; display: flex; gap: 8px; align-items: flex-start; }
.msg.info { background: var(--info-soft); color: var(--info); }
.msg.warn { background: var(--warn-soft); color: var(--warn); }
.msg svg { width: 18px; height: 18px; margin-top: 2px; }

/* switch rows */
.switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.switch-row .grow b { display: block; font: 600 .95rem var(--f-ui); }
.switch-row .grow small { color: var(--muted); font-size: .78rem; }
.switch { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: inset-inline-start .2s; }
.switch:checked { background: var(--primary); }
.switch:checked::after { inset-inline-start: 23px; }

/* segmented & chips */
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-3); overflow-x: auto; scrollbar-width: none; }
.segmented button { flex: 1; min-height: 40px; padding: 0 12px; border-radius: 11px; border: 0; background: none; color: var(--muted); font: 500 .88rem var(--f-ui); white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented button small { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar, .segmented::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 .86rem var(--f-ui); white-space: nowrap; }
.chip .n { color: var(--muted); font-size: .78rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] .n { color: inherit; opacity: .7; }
.chip .swatch { width: 9px; height: 9px; border-radius: 50%; background: var(--co, var(--primary)); }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font: 500 .76rem var(--f-ui); white-space: nowrap; background: var(--surface-3); color: var(--muted); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.s-active, .pill.s-done { background: var(--good-soft); color: var(--good); }
.pill.s-expiring, .pill.s-open { background: var(--warn-soft); color: var(--warn); }
.pill.s-expired, .pill.s-rejected { background: var(--bad-soft); color: var(--bad); }
.pill.s-frozen { background: var(--violet-soft); color: var(--violet); }
.pill.s-pending { background: var(--info-soft); color: var(--info); }
.pill.s-disconnected { background: var(--surface-3); color: var(--muted); }
.pill.campaign { background: var(--campaign); color: #fff; }
.pill.campaign::before { display: none; }

/* meter */
.meter { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--good); }
.meter.warn i { background: var(--warn); }
.meter.bad i { background: var(--bad); }
.meter.primary i { background: var(--primary); }

/* ---------- lists & cards ---------- */
.list { display: grid; gap: 12px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 10px; box-shadow: var(--shadow-sm); min-width: 0; }
.item.clickable { cursor: pointer; transition: border-color .15s, transform .12s; }
.item.clickable:hover { border-color: var(--line-strong); }
.item-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.item-title { font: 600 1rem var(--f-ui); }
.item-sub { color: var(--muted); font-size: .84rem; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.co-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--co, var(--line-strong)); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--co, #999) 18%, transparent); }
.phone { font: 600 1.08rem var(--f-mono); letter-spacing: .02em; direction: ltr; unicode-bidi: isolate; }
.line-meter { display: grid; gap: 6px; }
.line-meter .row { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 34px 18px; color: var(--muted); border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface-2); }
.empty .tile { width: 56px; height: 56px; border-radius: 18px; }
.empty b { color: var(--ink); font: 600 1rem var(--f-ui); }
.op-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.op-row:last-child { border-bottom: 0; }
.op-row .amt { font: 600 .98rem var(--f-ui); direction: ltr; white-space: nowrap; }
.plus { color: var(--good); } .minus { color: var(--bad); }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0; }
.kv > div { padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.kv > div:nth-child(odd) { color: var(--muted); font-size: .88rem; }
.kv > div:nth-child(even) { font-weight: 500; text-align: end; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }

/* search */
.search-box { position: relative; }
.search-box svg.lead { position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; pointer-events: none; }
.search-box .input { padding-inline-start: 46px; min-height: 52px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.search-results { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 15; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 60vh; overflow-y: auto; }
.search-results .res { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 10px; border: 0; background: none; border-radius: 12px; color: inherit; }
.search-results .res:hover, .search-results .res:focus { background: var(--surface-2); }
.search-results .group { padding: 8px 10px 4px; color: var(--muted); font-size: .74rem; letter-spacing: .04em; }

/* ---------- wizard ---------- */
.wizard { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1024px) { .wizard { grid-template-columns: minmax(0, 1fr) 340px; } .wizard .summary { position: sticky; top: calc(var(--topbar-h) + 20px); } }
.stepper { display: flex; align-items: center; padding: 16px 18px; gap: 0; }
.step { display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--muted); font: 500 .74rem var(--f-ui); flex: none; }
.step .circle { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); background: var(--surface); color: var(--muted); font: 600 1.05rem var(--f-ui); transition: all .2s; }
.step.current .circle { border-color: var(--primary); background: var(--grad); color: #fff; box-shadow: 0 0 0 5px var(--primary-soft); }
.step.done .circle { border-color: var(--good); background: var(--good); color: #fff; }
.step.done .circle svg { width: 22px; height: 22px; }
.step.current { color: var(--ink); }
.step-line { flex: 1; height: 3px; border-radius: 3px; background: var(--line); margin: 0 6px 22px; }
.step-line.done { background: var(--good); }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); gap: 12px; }
@media (min-width: 560px) { .co-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.co-tile { display: grid; justify-items: center; gap: 12px; padding: 18px 12px 16px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--surface-2); color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.co-tile:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.co-tile[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 4px var(--primary-soft); }
.co-tile b { font: 600 1rem var(--f-ui); }
.co-tile small { color: var(--muted); font-size: .76rem; margin-top: -8px; }
.co-logo { width: 84px; height: 84px; border-radius: 18px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(0, 0, 0, .06); }
.co-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.co-logo .mono { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font: 700 1.6rem var(--f-ui); background: linear-gradient(145deg, color-mix(in srgb, var(--co, #4b5563) 78%, #fff), var(--co, #4b5563)); }
.co-logo .mono.word { font-size: .98rem; line-height: 1.15; padding: 6px; text-align: center; overflow-wrap: anywhere; letter-spacing: -.01em; }
.co-logo.sm { width: 46px; height: 46px; border-radius: 13px; }
.co-logo.sm .mono { font-size: 1rem; }
.co-logo.xs { width: 34px; height: 34px; border-radius: 10px; }
.co-logo.xs .mono { font-size: .82rem; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.pkg-card { position: relative; display: grid; gap: 10px; text-align: start; padding: 18px 18px 0; border-radius: 22px; border: 1.5px solid var(--line); background: var(--surface); color: inherit; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; box-shadow: var(--shadow-sm); }
.pkg-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.pkg-card[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.pkg-card.campaign { border-color: color-mix(in srgb, #e8336d 45%, var(--line)); }
.pkg-card .pkg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pkg-card .pkg-name { font: 600 1rem/1.4 var(--f-ui); }
.pkg-data { display: flex; align-items: baseline; gap: 6px; direction: ltr; justify-content: flex-end; }
.pkg-data b { font: 700 3rem/1 var(--f-ui); letter-spacing: -.02em; }
.pkg-data span { color: var(--muted); font: 500 1.05rem var(--f-ui); }
.pkg-specs { display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; direction: ltr; color: var(--ink-2); font: 500 .86rem var(--f-ui); }
.pkg-specs span { display: inline-flex; align-items: center; gap: 5px; }
.pkg-specs svg { width: 17px; height: 17px; color: var(--primary); }
.pkg-price { display: flex; align-items: baseline; gap: 10px; justify-content: flex-end; padding: 12px 0 14px; border-top: 1px dashed var(--line-strong); direction: ltr; }
.pkg-price b { font: 700 1.75rem var(--f-ui); }
.pkg-price s { color: var(--muted); font: 500 1rem var(--f-ui); }
.pkg-price small { color: var(--muted); font-size: .8rem; direction: rtl; }
.pkg-tag { margin: 0 -18px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: 600 .74rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; }
.pkg-card.inactive { opacity: .6; }
.months { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.months button { min-height: 64px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; align-content: center; gap: 2px; font: 600 1rem var(--f-ui); color: var(--ink); padding: 4px; }
.months button small { color: var(--muted); font: 400 .7rem var(--f-body); }
.months button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.sim-stock { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.sim-stock button { flex: none; display: grid; gap: 2px; text-align: start; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: inherit; font-size: .74rem; }
.sim-stock button b { font: 500 .86rem var(--f-mono); direction: ltr; }
.sim-stock button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.summary { padding: 18px; display: grid; gap: 14px; }
.summary-pkg { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.summary-pkg b { font: 600 .95rem/1.4 var(--f-ui); display: block; }
.summary-pkg small { color: var(--muted); font-size: .78rem; }
.summary .kv > div:nth-child(even).unset { color: var(--muted); font-weight: 400; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); }
.total-row b { font: 700 1.5rem var(--f-ui); direction: ltr; }
.balance-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.balance-preview div { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.balance-preview span { display: block; color: var(--muted); font-size: .74rem; }
.balance-preview b { font: 600 1.02rem var(--f-ui); direction: ltr; display: block; text-align: end; }
.step-foot { display: flex; gap: 10px; justify-content: space-between; padding-top: 6px; }
.step-foot .btn-primary { min-width: 160px; }
.success { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 28px 12px 12px; }
.success-mark { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #fff; box-shadow: 0 0 0 10px var(--good-soft); }
.success-mark.pending { background: var(--info); box-shadow: 0 0 0 10px var(--info-soft); }
.success-mark svg { width: 44px; height: 44px; }
@media (prefers-reduced-motion: no-preference) { .success-mark { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); } @keyframes pop { from { transform: scale(.5); opacity: 0; } } }

/* offers */
.offer-card { position: relative; border-radius: var(--r-lg); padding: 18px; background: var(--surface); border: 1.5px solid color-mix(in srgb, #e8336d 30%, var(--line)); display: grid; gap: 10px; overflow: hidden; box-shadow: var(--shadow); }
.offer-card::after { content: ""; position: absolute; inset-block-start: -40px; inset-inline-end: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 51, 109, .14), transparent 70%); pointer-events: none; }
.offer-price { display: flex; align-items: baseline; gap: 10px; direction: ltr; justify-content: flex-end; }
.offer-price b { font: 700 1.9rem var(--f-ui); color: #e8336d; }
.offer-price s { color: var(--muted); }
.offer-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.offer-strip > * { flex: 0 0 min(86%, 340px); scroll-snap-align: start; }

/* wallet */
.wallet { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px; color: #FAF8F5; background: linear-gradient(150deg, #2B1A3A 0%, #1C1329 55%, #120C1C 100%); box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.wallet::before { content: ""; position: absolute; inset-block-start: -60px; inset-inline-start: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 74, 31, .35), transparent 65%); }
.wallet > * { position: relative; }
.wallet small { color: #B9B0CC; font-size: .85rem; }
.wallet .amount { font: 700 2.6rem/1.05 var(--f-ui); direction: ltr; text-align: end; letter-spacing: -.01em; }
.wallet .meter { background: rgba(255, 255, 255, .14); height: 8px; }
.wallet .meter i { background: linear-gradient(90deg, #E0123E, #FF4A1F, #FFB21E); }
.wallet .meter.warn i { background: linear-gradient(90deg, #ffc35a, #ff8f5a); }
.wallet .row { display: flex; justify-content: space-between; gap: 10px; color: #B9B0CC; font-size: .8rem; flex-wrap: wrap; }
.wallet .row b { color: #fff; font-family: var(--f-ui); font-weight: 600; }
.wallet .btn { background: #fff; color: #1A1325; border: 0; }
.wallet .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; }

/* tables (reports) */
.report-head { padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.report-head .kicker { color: var(--muted); font: 500 .8rem var(--f-ui); }
.report-head h2 { color: var(--primary); display: flex; align-items: center; gap: 8px; font-size: 1.08rem; }
.report-head h2 svg { width: 20px; height: 20px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-row .input { min-height: 42px; width: auto; padding-block: 8px; font-size: .9rem; }
.table-card { overflow: hidden; }
.table-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.table-tools .search-box { flex: 1 1 260px; }
.table-tools .search-box .input { min-height: 46px; box-shadow: none; }
.rows-select { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 14px; min-height: 46px; }
.rows-select select { border: 0; background: none; font: 600 .95rem var(--f-ui); color: var(--ink); padding: 0 4px; }
.export { display: grid; grid-template-columns: repeat(5, auto); gap: 8px; }
@media (max-width: 560px) { .export { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; } .export .btn { padding: 0 8px; } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
table.data th, table.data td { padding: 12px 16px; text-align: start; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--surface-2); color: var(--muted); font: 500 .82rem var(--f-ui); position: sticky; top: 0; }
table.data thead th button { background: none; border: 0; padding: 0; color: inherit; font: inherit; display: inline-flex; align-items: center; gap: 4px; }
table.data thead th button svg { width: 14px; height: 14px; opacity: .5; }
table.data thead th[aria-sort] button { color: var(--ink); }
table.data thead th[aria-sort] button svg { opacity: 1; }
table.data thead tr.filters th { padding: 8px 10px; background: var(--surface); }
table.data thead tr.filters input { width: 100%; min-width: 90px; min-height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); padding: 6px 10px; font-size: .84rem; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td.ltr, table.data td.money { direction: ltr; text-align: end; }
table.data td.money, table.data td.numc { font-variant-numeric: tabular-nums; }
table.data tfoot th { background: var(--surface-2); font: 600 .86rem var(--f-ui); border-bottom: 0; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager button { min-width: 42px; min-height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 .88rem var(--f-ui); padding: 0 12px; }
.pager button[aria-current="page"] { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.pager button[disabled] { opacity: .45; }
.report-list { display: grid; gap: 4px; }
.report-list .group { color: var(--muted); font: 500 .76rem var(--f-ui); letter-spacing: .05em; padding: 12px 4px 4px; }
.report-list button { display: flex; align-items: center; gap: 12px; text-align: start; padding: 12px; border-radius: 14px; border: 1px solid transparent; background: none; color: inherit; font: 500 .95rem var(--f-ui); }
.report-list button:hover { background: var(--surface-2); }
.report-list button[aria-current="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.report-list .no { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-size: .8rem; flex: none; }

/* ---------- sheets ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(5, 10, 20, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: min(640px, 100%); max-height: 92dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet.wide { width: min(820px, 100%); }
.sheet-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 22px 20px 14px; border-bottom: 1px solid var(--line); }
.sheet-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 42px; height: 5px; border-radius: 5px; background: var(--line-strong); transform: translateX(-50%); }
.sheet-head .grow h2 { font-size: 1.1rem; }
.sheet-head .grow small { display: block; color: var(--muted); font-size: .82rem; }
.sheet-body { overflow-y: auto; padding: 18px 20px; display: grid; gap: 16px; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; }
@media (min-width: 720px) { .overlay { align-items: center; padding: 24px; } .sheet { border-radius: 26px; } .sheet-head::before { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .overlay { animation: fade .2s ease-out; }
  .sheet { animation: up .28s cubic-bezier(.2, .8, .2, 1); }
  @keyframes fade { from { opacity: 0; } }
  @keyframes up { from { transform: translateY(40px); opacity: .4; } }
}
.action-list { display: grid; gap: 6px; }
.action-list button, .action-list a { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 12px; border-radius: 14px; border: 0; background: none; color: inherit; font: 500 .98rem var(--f-ui); text-align: start; }
.action-list button:hover, .action-list a:hover { background: var(--surface-2); }
.action-list .danger { color: var(--bad); }
.action-list .danger .tile { background: var(--bad-soft); color: var(--bad); }
.thumb { width: 100%; max-height: 260px; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.qr { width: 220px; height: 220px; margin: 0 auto; border-radius: 16px; background: #fff; padding: 10px; object-fit: contain; border: 1px solid var(--line); }
.upload { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--line-strong); background: var(--surface-2); cursor: pointer; }
.upload input { display: none; }
.upload img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }

/* notifications */
.notif { display: flex; gap: 12px; padding: 12px; border-radius: 16px; align-items: flex-start; color: inherit; }
.notif.unread { background: var(--primary-soft); }
.notif .grow b { display: block; font: 600 .94rem var(--f-ui); }
.notif .grow p { color: var(--ink-2); font-size: .86rem; }
.notif time { color: var(--muted); font-size: .74rem; }
.alert-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: inherit; }
.alert-card .grow b { display: block; font: 600 .95rem var(--f-ui); }
.alert-card .grow small { color: var(--muted); }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 90; inset-inline: 16px; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px)); margin: 0 auto; max-width: 460px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font: 500 .92rem var(--f-ui); }
.toast svg { width: 20px; height: 20px; color: #4ade80; flex: none; }
.toast.error svg { color: #ff8a8a; }
@media (min-width: 1024px) { .toast { bottom: 28px; } }
@media (prefers-reduced-motion: no-preference) { .toast { animation: up .25s ease-out; } }

/* ---------- skeleton ---------- */
.skel { border-radius: 14px; background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- scanner ---------- */
.scanner { position: fixed; inset: 0; z-index: 80; background: #000; display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.scanner video { width: 100%; height: 100%; object-fit: cover; grid-row: 1 / -1; grid-column: 1; }
.scanner .bar { grid-column: 1; z-index: 1; display: flex; align-items: center; gap: 10px; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px; background: linear-gradient(rgba(0, 0, 0, .7), transparent); }
.scanner .frame { grid-row: 2; grid-column: 1; z-index: 1; align-self: center; justify-self: center; width: min(82vw, 420px); height: 150px; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .85); position: relative; }
.scanner .frame::after { content: ""; position: absolute; inset-inline: 12px; top: 50%; height: 2px; background: #ff5a5a; box-shadow: 0 0 12px #ff5a5a; }
.scanner .foot { grid-row: 3; grid-column: 1; z-index: 1; padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, rgba(0, 0, 0, .8)); display: grid; gap: 10px; }
.scanner .codes { display: flex; gap: 6px; flex-wrap: wrap; max-height: 90px; overflow-y: auto; }
.scanner .codes span { font: 500 .78rem var(--f-mono); background: rgba(255, 255, 255, .15); padding: 4px 8px; border-radius: 8px; direction: ltr; }
.scanner .icon-btn { background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; box-shadow: none; }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .login { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.login-art { position: relative; overflow: hidden; background: var(--navy); color: #FAF8F5; padding: calc(28px + env(safe-area-inset-top, 0px)) 24px 64px; display: grid; align-content: space-between; gap: 30px; }
.login-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 85% 10%, rgba(255, 74, 31, .42), transparent 60%), radial-gradient(60% 60% at 10% 100%, rgba(255, 178, 30, .18), transparent 70%); }
.login-art > * { position: relative; }
.login-art h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; font-weight: 700; max-width: 14ch; }
.login-art p { color: #B9B0CC; max-width: 40ch; margin-top: 10px; }
.login-feats { display: grid; gap: 12px; }
.login-feats div { display: flex; align-items: center; gap: 12px; color: #EAE4F2; font-size: .92rem; }
.login-feats .tile { background: rgba(255, 255, 255, .08); color: #FFB21E; }
@media (max-width: 959px) { .login-feats { display: none; } .login-art { padding-bottom: 72px; } }
.login-form { display: grid; align-content: center; justify-items: center; padding: 0 18px 40px; }
.login-card { width: min(420px, 100%); margin-top: -48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 26px 22px; display: grid; gap: 16px; }
@media (min-width: 960px) { .login-card { margin-top: 0; padding: 34px 32px; } }
.login-card h2 { font-size: 1.35rem; }
.login-card p { color: var(--muted); font-size: .9rem; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 52px; }
.pw-wrap button { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); }

/* ---------- misc ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head p { color: var(--muted); font-size: .88rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .search-box { flex: 1 1 240px; }
.two-col { display: grid; gap: 18px; }
@media (min-width: 1024px) { .two-col { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.agent-card .money { font: 700 1.35rem var(--f-ui); direction: ltr; }
.divider { height: 1px; background: var(--line); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 8px; background: var(--surface-3); color: var(--muted); font: 600 .7rem var(--f-ui); letter-spacing: .08em; }
.offline-bar { position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); z-index: 19; background: var(--warn-soft); color: var(--warn); text-align: center; font: 500 .84rem var(--f-ui); padding: 8px 16px; }
.fade-in { animation: fade .25s ease-out; }

/* ---------- WhatsApp support ---------- */
.icon-btn.wa-btn { background: #1c9e4b; border-color: transparent; color: #fff; }
.icon-btn.wa-btn:hover { background: #168a40; border-color: transparent; }
.icon-btn.wa-btn svg { width: 24px; height: 24px; }
.wa-link { color: #1c9e4b; gap: 8px; }
:root[data-theme="dark"] .wa-link { color: #45d37e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wa-link { color: #45d37e; } }

/* ---------- messages ---------- */
.thread .thread-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.thread time { color: var(--muted); font-size: .74rem; flex: none; }
.thread-last { color: var(--ink-2); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread.unread .item-title, .thread.unread .thread-last { font-weight: 700; color: var(--ink); }
.thread .grow { min-width: 0; }
.chat { display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; padding: 0;
  height: max(380px, calc(100dvh - var(--topbar-h) - var(--tabbar-h) - 86px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))); }
@media (min-width: 1024px) { .chat { height: max(420px, calc(100dvh - var(--topbar-h) - 56px)); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.chat-head .grow { min-width: 0; }
.chat-head small { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-log { overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); }
.chat-day { align-self: center; margin: 8px 0 4px; }
.chat-day span { font-size: .72rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.bubble { align-self: flex-start; max-width: min(78%, 560px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; border-end-start-radius: 6px; padding: 8px 12px 6px; box-shadow: var(--shadow-sm); }
.bubble.mine { align-self: flex-end; background: var(--primary-soft); border-color: transparent; border-end-start-radius: 18px; border-end-end-radius: 6px; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.bubble .meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 2px; font-size: .7rem; color: var(--muted); direction: ltr; }
.bubble .ticks { display: inline-flex; }
.bubble .ticks svg { width: 14px; height: 14px; }
.bubble .ticks svg + svg { margin-inline-start: -9px; }
.bubble .ticks.read { color: var(--primary); }
.chat-empty { margin: auto; display: grid; justify-items: center; gap: 10px; color: var(--muted); text-align: center; max-width: 280px; }
.chat-empty svg { width: 36px; height: 36px; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form .input { flex: 1; resize: none; min-height: 48px; max-height: 140px; line-height: 1.5; padding-block: 11px; }
.chat-send { width: 50px; min-height: 48px; padding: 0; flex: none; }
.chat-send svg { transform: scaleX(-1); }

/* ---------- catalog: one system's controls ---------- */
.sys-bar { display: grid; gap: 12px; }
.sys-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sys-row .grow { min-width: 0; }
.sys-row small { display: block; color: var(--muted); font-size: .8rem; }
.sys-row + .sys-row { padding-top: 12px; border-top: 1px solid var(--line); }
.segmented button svg { width: 16px; height: 16px; margin-inline-end: 4px; vertical-align: -3px; }

/* The manager's system health card */
.health { display: grid; gap: 4px; margin-top: 8px; }
.health-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; color: inherit; text-decoration: none; }
.health-row:hover { background: var(--surface-2); }
.health-row .grow { display: grid; gap: 2px; min-width: 0; }
.health-row small { color: var(--muted); overflow-wrap: anywhere; }
.health-row svg { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* Agent price sheet: one collapsible block per company */
.pr-group { border-bottom: 1px solid var(--line); padding: 4px 0; }
.pr-group > summary { cursor: pointer; padding: 12px 4px; list-style: none; display: flex; gap: 8px; align-items: center; }
.pr-group > summary::-webkit-details-marker { display: none; }
.pr-group > summary::before { content: '›'; transform: rotate(90deg); color: var(--muted); transition: transform .15s; }
.pr-group[open] > summary::before { transform: rotate(-90deg); }
.pr-show { display: grid; justify-items: center; gap: 2px; cursor: pointer; }
.pr-show small { color: var(--muted); font-size: .7rem; }
.cp-row { padding: 10px 0; border-bottom: 1px solid var(--line); gap: 8px; flex-wrap: wrap; }
/* ---------- customer shop (/shop) — Authentic Warm Hot eSIM & Telecom Storefront ---------- */
html:has(body.shop) { max-width: 100%; overflow-x: hidden; }
body.shop {
  --bg: #FFF8F4;
  --surface: #ffffff;
  --surface-2: #FFF3EC;
  --surface-3: #F7EAE2;
  --line: #F0E2DC;
  --line-strong: #E2CEC5;
  --ink: #1A1325;
  --ink-2: #3A3346;
  --muted: #5B5368;
  --primary: #D9142F;
  --primary-2: #B80F26;
  --primary-ink: #ffffff;
  --primary-soft: #FFF0EB;
  --grad: linear-gradient(135deg, #E8203A 0%, #D9142F 55%, #FF4A1F 100%);
  --navy: #17111F;
  --navy-2: #231A30;
  --shadow-sm: 0 1px 2px rgba(26, 19, 37, .05);
  --shadow: 0 1px 3px rgba(26, 19, 37, .05), 0 10px 26px -12px rgba(26, 19, 37, .12);
  --shadow-lg: 0 20px 44px -18px rgba(26, 19, 37, .22);
  --shadow-primary: 0 8px 20px -8px rgba(217, 20, 47, .42);
  --f-brand: "Outfit", "IBM Plex Sans Arabic", sans-serif;
  --f-ui: "IBM Plex Sans Arabic", "Outfit", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Outfit", Tahoma, sans-serif;
  --f-mono: "Outfit", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.shop {
    --bg: #120D18;
    --surface: #1A1325;
    --surface-2: #241B33;
    --surface-3: #2E2340;
    --line: #332747;
    --line-strong: #463760;
    --ink: #FAF8F5;
    --ink-2: #D8D1E6;
    --muted: #9E94B2;
    --primary: #FF4A2A;
    --primary-2: #E8203A;
    --primary-soft: #311724;
    --navy: #0E0A14;
    --navy-2: #17111F;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -16px rgba(0, 0, 0, .65);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .75);
  }
}
:root[data-theme="dark"] body.shop {
  --bg: #120D18;
  --surface: #1A1325;
  --surface-2: #241B33;
  --surface-3: #2E2340;
  --line: #332747;
  --line-strong: #463760;
  --ink: #FAF8F5;
  --ink-2: #D8D1E6;
  --muted: #9E94B2;
  --primary: #FF4A2A;
  --primary-2: #E8203A;
  --primary-soft: #311724;
  --navy: #0E0A14;
  --navy-2: #17111F;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -16px rgba(0, 0, 0, .65);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .75);
}
#shop { min-height: 100dvh; display: flex; flex-direction: column; width: 100%; max-width: 100%; overflow-x: hidden; }
.icon-btn.sm { width: 38px; height: 38px; border-radius: 11px; }
.icon-btn.sm svg { width: 18px; height: 18px; }

/* Header & Navigation Dock — Hot eSIM Visual Identity */
.shop-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; width: 100%; max-width: 100%; box-sizing: border-box; }
.shop-top-inner { width: min(100%, 1160px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; min-width: 0; }
.shop-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; flex: 1 1 auto; }
.shop-brand-mark { width: 42px; height: 42px; border-radius: 12px; background: #1A1325; border: 1px solid rgba(255, 74, 31, .26); padding: 4px; box-sizing: border-box; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(26, 19, 37, .18); flex: none; }
.shop-brand-mark svg, .shop-brand-mark .hsim-logo-svg { width: 100%; height: 100%; display: block; }
.shop-brand-mark.sm { width: 36px; height: 36px; border-radius: 9px; padding: 3px; }
.shop-brand-text { display: grid; gap: 2px; min-width: 0; }
.shop-brand-title-row { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; }
.brand-lockup { display: inline-flex; align-items: baseline; gap: 4px; direction: ltr; line-height: 1; flex-shrink: 0; }
.brand-word-hot { font: 800 1.32rem/1 var(--f-brand); letter-spacing: -.02em; color: #E8203A; }
:root[data-theme="dark"] .brand-word-hot { color: #FF5A2A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-word-hot { color: #FF5A2A; } }
.brand-word-esim { font: 600 1.32rem/1 var(--f-brand); letter-spacing: -.02em; color: var(--ink); }
.brand-word-custom { font: 700 1.12rem/1.15 var(--f-ui); color: var(--ink); letter-spacing: -.01em; }
.shop-brand-monogram { padding: 2px 7px; border-radius: 6px; background: #1c1917; border: 1px solid rgba(225, 29, 72, .38); color: #fda4af; font: 700 .68rem var(--f-brand); letter-spacing: .04em; }
.shop-brand-text small { display: inline-flex; align-items: center; gap: 6px; font: 500 .74rem var(--f-body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); display: inline-block; flex: none; }

.shop-nav { display: flex; gap: 4px; flex-wrap: nowrap; align-items: center; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); flex-shrink: 0; }
.shop-nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink-2); font: 600 .82rem var(--f-ui); text-decoration: none; cursor: pointer; white-space: nowrap; transition: all .15s ease; }
.shop-nav-link svg { width: 16px; height: 16px; color: var(--muted); flex: none; transition: color .15s ease; }
.shop-nav-link:hover { background: var(--surface); color: var(--ink); }
.shop-nav-link.active { background: var(--surface); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 26%, var(--line)); box-shadow: var(--shadow-sm); }
.shop-nav-link.active svg { color: var(--primary); }

/* Mobile Bottom Navigation Dock (Hidden on Desktop, Thumb-Friendly on Phones) */
.shop-bottom-nav { display: none; }

.shop-utils { display: flex; align-items: center; gap: 8px; flex: none; }
.shop-wa-btn { border-color: color-mix(in srgb, #16a34a 35%, var(--line)) !important; color: var(--ink) !important; white-space: nowrap; }
.shop-wa-btn svg { color: #16a34a; flex: none; }
.shop-wa-btn:hover { background: rgba(22, 163, 74, .08) !important; border-color: #16a34a !important; color: #15803d !important; }
.shop-main { flex: 1; width: min(100%, 1160px); max-width: 100%; margin: 0 auto; padding: 18px 16px 52px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; box-sizing: border-box; }
.shop-main > * { min-width: 0; max-width: 100%; box-sizing: border-box; }

/* Authentic HOT eSIM & Telecom Hero */
.esim-hero { padding: clamp(18px, 3vw, 28px); border-radius: 22px; background: linear-gradient(135deg, #181514 0%, #241c1a 56%, #311a1d 100%); color: #faf8f5; border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.esim-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 15% 15%, rgba(225, 29, 72, .12), transparent 60%), radial-gradient(50% 70% at 85% 90%, rgba(251, 191, 36, .08), transparent 60%); pointer-events: none; }
.esim-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, .85fr); gap: 22px; align-items: center; }
@media (max-width: 860px) { .esim-hero-grid { grid-template-columns: 1fr; gap: 14px; } }
.esim-hero-copy { display: grid; gap: 12px; }
.esim-hero-kicker { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; background: rgba(28, 25, 23, .7); border: 1px solid rgba(251, 113, 133, .35); color: #fecdd3; font: 600 .76rem var(--f-ui); }
.kicker-monogram { padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, #fde68a, #f59e0b); color: #1c1917; font: 700 .68rem var(--f-brand); letter-spacing: .04em; flex: none; }
.esim-hero-copy h1 { margin: 0; font: 700 clamp(1.32rem, 3vw, 1.95rem)/1.3 var(--f-ui); color: #fff; letter-spacing: -.01em; }
.esim-hero-copy p { margin: 0; color: #d6d3d1; font: 500 clamp(.9rem, 1.7vw, 1rem)/1.6 var(--f-body); max-width: 54ch; }
.esim-search-box { display: flex; align-items: center; gap: 10px; background: #ffffff; color: #1c1917; border-radius: 14px; padding: 5px 14px; max-width: 560px; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
:root[data-theme="dark"] .esim-search-box { background: #1c1917; color: #f5f3ef; border-color: rgba(214, 211, 209, .2); }
.esim-search-ic { color: var(--primary); display: grid; place-items: center; flex: none; }
.esim-search-ic svg { width: 19px; height: 19px; }
.esim-search-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: 500 .95rem var(--f-body); min-height: 40px; outline: none; }

/* Hero Quick Action Buttons */
.esim-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.esim-hero-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 11px; font: 600 .83rem var(--f-ui); text-decoration: none; cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.esim-hero-btn svg { width: 16px; height: 16px; flex: none; }
.esim-hero-btn.primary { background: linear-gradient(135deg, #e11d48, #be123c); color: #fff; border: 1px solid rgba(253, 164, 175, .32); box-shadow: 0 6px 16px rgba(225, 29, 72, .26); }
.esim-hero-btn.primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.esim-hero-btn.ghost { background: rgba(255, 255, 255, .08); color: #f5f3ef; border: 1px solid rgba(255, 255, 255, .18); }
.esim-hero-btn.ghost svg { color: #fda4af; }
.esim-hero-btn.ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(253, 164, 175, .45); color: #fff; }

.esim-trust-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .8rem; color: #d6d3d1; padding-top: 2px; }
.esim-trust-row > span { display: inline-flex; align-items: center; gap: 6px; }
.esim-trust-row > span svg { width: 15px; height: 15px; color: #fbbf24; flex: none; }

/* Visual Digital H-SIM Showcase Card inside Hero */
.esim-showcase-card { padding: 20px; border-radius: 20px; background: linear-gradient(145deg, rgba(38, 34, 32, .95), rgba(24, 21, 20, .98)); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 18px 36px rgba(0, 0, 0, .32); display: grid; gap: 14px; position: relative; }
.esim-showcase-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.esim-showcase-emblems { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.esim-showcase-emblems .hsim-logo-svg { width: 38px; height: 38px; }
.esim-showcase-tag { display: block; font: 700 .66rem var(--f-mono); letter-spacing: .08em; color: #fbbf24; margin-bottom: 3px; }
.esim-showcase-top strong { font: 700 1.04rem var(--f-ui); color: #fff; }
.esim-showcase-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.esim-showcase-specs small { display: block; font-size: .69rem; color: #a8a29e; margin-bottom: 2px; }
.esim-showcase-specs b { font-size: .79rem; color: #f5f3ef; }
.esim-pass-journey { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 12px; border-radius: 11px; background: rgba(225, 29, 72, .1); border: 1px dashed rgba(251, 113, 133, .32); font-size: .74rem; color: #f5f3ef; }
.esim-pass-step { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.esim-pass-step i { width: 18px; height: 18px; border-radius: 50%; background: rgba(251, 191, 36, .2); color: #fbbf24; font: 700 .68rem var(--f-mono); display: grid; place-items: center; flex: none; }
.esim-pass-arrow { color: #fda4af; font-weight: 700; opacity: .75; }
.esim-showcase-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .76rem; color: #d6d3d1; flex-wrap: wrap; }
.esim-showcase-status { display: inline-flex; align-items: center; gap: 6px; color: #34d399; font-weight: 600; }

/* SIM & H-SIM Vector Chip Emblems */
.esim-chip-svg { width: 38px; height: 30px; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .14)); }
.esim-chip-svg.lg { width: 46px; height: 36px; }
.esim-sim-svg { width: 26px; height: 32px; color: var(--co, var(--primary)); flex: none; }

/* Unified Filter Toolbar: Service Type Tabs & Carrier Pills */
.esim-controls { display: grid; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.esim-type-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x proximity; }
.esim-type-tabs::-webkit-scrollbar { display: none; }
.esim-type-tab { scroll-snap-align: start; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink-2); font: 600 .85rem var(--f-ui); cursor: pointer; white-space: nowrap; transition: all .15s; }
.esim-type-tab svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.esim-type-tab small { padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); font: 600 .73rem var(--f-mono); }
.esim-type-tab:hover { border-color: var(--line-strong); color: var(--ink); }
.esim-type-tab[aria-selected="true"] { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 24%, transparent); }
.esim-type-tab[aria-selected="true"] svg { color: #fff; }
.esim-type-tab[aria-selected="true"] small { background: rgba(255, 255, 255, .22); color: #fff; }

.esim-carrier-strip { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; border-top: 1px solid var(--line); -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x proximity; }
.esim-carrier-strip::-webkit-scrollbar { display: none; }
.esim-carrier-pill { scroll-snap-align: start; display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; white-space: nowrap; transition: all .15s; }
.esim-carrier-pill:hover { border-color: var(--line-strong); background: var(--surface); }
.esim-carrier-pill[aria-pressed="true"] { border-color: var(--co, var(--primary)); background: color-mix(in srgb, var(--co, var(--primary)) 10%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--co, var(--primary)) 16%, transparent); }
.esim-carrier-all-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--surface); color: var(--primary); display: grid; place-items: center; border: 1px solid var(--line); flex: none; }
.esim-carrier-all-ic svg { width: 17px; height: 17px; }
.esim-carrier-meta { display: grid; text-align: start; line-height: 1.22; }
.esim-carrier-meta b { font-size: .84rem; }
.esim-carrier-meta small { font-size: .72rem; color: var(--muted); }

/* Proprietary H-SIM Telecom Pass Grid & Cards */
.esim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr)); gap: 16px; }
.esim-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; overflow: hidden; }
.esim-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: var(--co, var(--primary)); opacity: .9; }
.esim-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--co, var(--primary)) 55%, var(--line)); }
.esim-card.is-featured { border-color: color-mix(in srgb, var(--co, var(--primary)) 65%, var(--line)); }

.esim-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-top: 2px; }
.esim-card-carrier { display: flex; align-items: center; gap: 10px; min-width: 0; }
.esim-card-titles { min-width: 0; }
.esim-carrier-label { display: block; font-size: .74rem; font-weight: 700; color: var(--muted); }
.esim-plan-title { margin: 1px 0 0; font: 700 1.04rem/1.3 var(--f-ui); color: var(--ink); }
.esim-card-emblem { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; }
.esim-chip-tag { padding: 2px 7px; border-radius: 6px; background: rgba(245, 158, 11, .14); color: #b45309; font: 700 .64rem var(--f-mono); letter-spacing: .04em; }
:root[data-theme="dark"] .esim-chip-tag { background: rgba(245, 158, 11, .2); color: #fbbf24; }
.esim-sim-tag { padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font: 700 .66rem var(--f-ui); }

.esim-card-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.esim-flag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font: 600 .73rem var(--f-ui); }
.esim-flag svg { width: 13px; height: 13px; }
.esim-flag.featured { background: var(--primary-soft); color: var(--primary); }
.esim-flag.discount { background: var(--good-soft); color: var(--good); }

/* H-SIM High-Contrast Data & Validity Readout Banner */
.esim-data-banner { padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--co, var(--primary)) 8%, var(--surface-2)), var(--surface-2)); border: 1px solid color-mix(in srgb, var(--co, var(--primary)) 24%, var(--line)); display: grid; gap: 9px; }
.esim-data-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.esim-data-col { display: grid; gap: 2px; }
.esim-data-col.end { text-align: end; }
.esim-data-col small { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--muted); font-weight: 600; }
.esim-data-col small svg { width: 14px; height: 14px; color: var(--co, var(--primary)); }
.esim-data-col.end small { justify-content: flex-end; }
.esim-data-col strong { font: 800 clamp(1.12rem, 3.8vw, 1.24rem)/1.15 var(--f-mono); color: var(--ink); letter-spacing: -.02em; }
.esim-data-col b { font: 700 .92rem/1.2 var(--f-ui); color: var(--ink); }
.esim-data-sep { width: 1px; height: 28px; background: color-mix(in srgb, var(--co, var(--primary)) 25%, var(--line)); flex: none; }

/* Specification Table Rows inside Plan Card */
.esim-spec-box { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 7px; }
.esim-spec-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .83rem; padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent); flex-wrap: wrap; }
.esim-spec-row:first-child { padding-top: 0; border-top: 0; }
.esim-spec-k { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.esim-spec-k svg { width: 15px; height: 15px; color: var(--co, var(--primary)); flex: none; }
.esim-spec-v { color: var(--ink); font-weight: 600; text-align: end; }
.esim-spec-row.highlight .esim-spec-v { font: 700 1.05rem var(--f-mono); color: var(--ink); }
.esim-spec-row.esim-qr-row .esim-spec-v { color: var(--primary); font-size: .79rem; }
.esim-gb-meter { height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.esim-gb-meter > span { display: block; height: 100%; border-radius: 999px; background: var(--co, var(--primary)); }

.esim-plan-desc { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* Perforated SIM-Pass Ticket Footer & Action Buttons */
.esim-card-foot { position: relative; margin-top: auto; padding-top: 14px; border-top: 1.5px dashed color-mix(in srgb, var(--co, var(--primary)) 28%, var(--line)); display: grid; gap: 10px; }
.esim-card-foot::before, .esim-card-foot::after { content: ""; position: absolute; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 1.5px solid color-mix(in srgb, var(--co, var(--primary)) 35%, var(--line)); pointer-events: none; }
.esim-card-foot::before { inset-inline-start: -26px; }
.esim-card-foot::after { inset-inline-end: -26px; }
.esim-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.esim-price-block { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.esim-price-label { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.esim-daily-hint { color: var(--muted); font-size: .72rem; }
.esim-price-val { display: flex; align-items: baseline; gap: 6px; }
.esim-price-val s { color: var(--muted); font-size: .84rem; }
.esim-price-val b { font: 800 1.35rem var(--f-mono); color: var(--ink); }

.esim-card-btns { width: 100%; display: grid; gap: 8px; }
.esim-card-btns.has-two { grid-template-columns: 1fr 1.22fr; }
.esim-card-btns.has-one { grid-template-columns: 1fr; }
.esim-card-btns .btn { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: .86rem; justify-content: center; white-space: nowrap; }
.esim-card-btns .btn svg { width: 16px; height: 16px; flex: none; }

/* H-SIM Brand Charter Pillars Section */
.esim-brand-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 4px; }
.esim-pillar-card { display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .15s ease, transform .15s ease; }
.esim-pillar-card:hover { border-color: color-mix(in srgb, var(--primary) 42%, var(--line)); transform: translateY(-1px); }
.esim-pillar-ic { width: 42px; height: 42px; border-radius: 12px; background: #1c1917; color: #fda4af; display: grid; place-items: center; flex: none; border: 1px solid rgba(225, 29, 72, .28); box-shadow: 0 4px 10px rgba(28, 25, 23, .12); }
.esim-pillar-ic svg { width: 22px; height: 22px; }
.esim-pillar-ic .esim-chip-svg { width: 28px; height: 22px; }
.esim-pillar-card > div { display: grid; gap: 4px; }
.esim-pillar-card strong, .esim-pillar-card h3 { margin: 0; font: 700 .94rem var(--f-ui); color: var(--ink); }
.esim-pillar-card p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.62; }

/* Checkout, Payment & Order Cards (With Proper Card Padding & Strict Mobile Containment) */
.shop .card.empty { padding: 32px 20px; width: min(100%, 660px); max-width: 100%; min-width: 0; box-sizing: border-box; justify-self: center; }
.shop-form, .shop-pay, .shop-status, .shop-qr-modern, .shop-instant-box { padding: clamp(16px, 3vw, 26px); border-radius: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; width: min(100%, 680px); max-width: 100%; min-width: 0; box-sizing: border-box; justify-self: center; box-shadow: var(--shadow-sm); }
.shop-form > *, .shop-pay > *, .shop-status > *, .shop-qr-modern > *, .shop-instant-box > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
.shop-card-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.esim-checkout-head { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; max-width: 100%; box-sizing: border-box; }
.pele-checkout-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-width: 0; }
.pele-checkout-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 180px; }
.pele-checkout-titles { display: grid; gap: 2px; min-width: 0; }
.pele-checkout-titles strong { font: 800 1.06rem/1.25 var(--f-ui); color: var(--ink); word-break: break-word; }
.pele-checkout-cap { display: inline-flex; align-items: center; border-radius: 12px; overflow: hidden; border: 1.5px solid color-mix(in srgb, var(--co, var(--primary)) 35%, var(--line)); background: var(--surface); flex-shrink: 0; direction: ltr; }
.pele-checkout-maincap { padding: 6px 11px; background: color-mix(in srgb, var(--co, var(--primary)) 12%, var(--surface)); color: var(--co, var(--primary)); font: 800 .95rem/1.1 var(--f-mono); }
.pele-checkout-price { padding: 6px 12px; font: 800 1.05rem/1.1 var(--f-mono); color: var(--ink); }
.pele-checkout-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 6px; padding-top: 10px; border-top: 1px dashed var(--line); min-width: 0; }
.esim-ready-notice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); color: var(--ink); min-width: 0; }
.esim-ready-notice > svg { width: 24px; height: 24px; color: var(--primary); flex: none; }
.shop-mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; min-width: 0; }
.shop-mode-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-align: start; cursor: pointer; transition: all .15s; min-width: 0; }
.shop-mode-card svg { width: 20px; height: 20px; color: var(--primary); }
.shop-mode-card small { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.shop-mode-card[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.shop-breakdown-box { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.shop-breakdown-box h4 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ink); flex-wrap: wrap; }
.shop-breakdown-box h4 svg { width: 17px; height: 17px; color: var(--good); }
.shop-bd-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); flex-wrap: wrap; }
.shop-bd-total { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 1.02rem; color: var(--ink); flex-wrap: wrap; }
.esim-consent-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: .84rem; min-width: 0; }
.esim-consent-label { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: var(--ink-2); flex: 1; min-width: min(100%, 220px); font-weight: 500; }
.esim-consent-label input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; cursor: pointer; }
.link-btn { border: 0; background: none; color: var(--primary); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 2px 4px; }

/* Instant QR, Steps Bar & Order Status */
.shop-amount { font: 700 1.38rem var(--f-mono); color: var(--primary); }
.shop-pay h3 { margin: 0; font: 700 1.02rem var(--f-ui); color: var(--ink); }
.shop-pay-kvs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.shop-kv { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; min-width: 0; }
.shop-kv > span { color: var(--muted); font-size: .84rem; min-width: 90px; }
.shop-kv > b { flex: 1; font: 700 .98rem var(--f-ui); color: var(--ink); min-width: 0; word-break: break-word; }
.shop-kv > b.ltr { text-align: end; }
.shop-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; width: 100%; }
.shop-steps span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font: 600 .78rem var(--f-ui); min-width: 0; }
.shop-steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-style: normal; font-size: .74rem; flex: none; }
.shop-steps .done { color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, var(--line)); background: var(--good-soft); }
.shop-steps .done i { background: var(--good); color: #fff; }
.shop-steps .current { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.shop-steps .current i { background: var(--primary); color: #fff; }
.shop-instant-box { border: 1.5px solid var(--primary); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, var(--surface)), var(--surface)); }
.shop-qr-modern { text-align: center; border: 2px solid var(--good); }
.shop-qr-badge { justify-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--good-soft); color: var(--good); font: 700 .82rem var(--f-ui); }
.shop-qr-badge svg { width: 16px; height: 16px; }
.shop-qr-frame { justify-self: center; padding: 14px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-md); max-width: 100%; }
.shop-qr-frame img { width: min(250px, 100%); height: auto; aspect-ratio: 1; display: block; }
.esim-qr-details { text-align: start; min-width: 0; }
.shop-lpa-box { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.shop-lpa-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.shop-lpa-row code { padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; overflow-wrap: anywhere; max-width: 100%; }
.shop-qr-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; text-align: start; min-width: 0; }
.shop-qr-guide-col { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: .84rem; min-width: 0; }
.shop-qr-guide-col ol { margin: 8px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; color: var(--ink-2); }
.tile.pulse { animation: shop-pulse 1.6s ease-in-out infinite; }
@keyframes shop-pulse { 50% { box-shadow: 0 0 0 8px var(--primary-soft); } }
@media (prefers-reduced-motion: reduce) { .tile.pulse { animation: none; } }

/* Shop Layout & Button Utilities */
.shop .row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.shop .between { justify-content: space-between; }
.shop .btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.shop .btn.primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.03); }
.shop .btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.shop .btn.ghost:hover:not(:disabled) { background: var(--surface-2); border-color: var(--primary); color: var(--primary); }
.shop .btn.lg { min-height: 50px; font-size: .98rem; border-radius: 14px; width: 100%; }
.shop .upload-box { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: var(--surface-2); color: var(--ink); font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; box-sizing: border-box; text-align: center; }
.shop .upload-box:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.shop .upload-box svg { width: 20px; height: 20px; flex: none; }

/* Dedicated Secondary Pages (Compat, Terms, eSIM Policy, Guarantee, Track) */
.esim-page-wrap { width: min(100%, 920px); max-width: 100%; min-width: 0; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; box-sizing: border-box; }
.esim-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.esim-page-head h1 { margin: 6px 0 4px; font: 700 clamp(1.3rem, 2.5vw, 1.75rem) var(--f-ui); color: var(--ink); }
.esim-page-head p { margin: 0; font-size: .92rem; }
#compat-page-body, #compat-sheet-body, .esim-legal-page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.esim-page-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, var(--primary-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line)); box-shadow: var(--shadow-sm); }

/* Compatibility Page & Sheet */
.esim-eid-check { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent); }
.esim-eid-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.esim-eid-icon svg { width: 22px; height: 22px; }
.esim-eid-check kbd, .esim-legal-list kbd { padding: 2px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font: 700 .82rem var(--f-mono); }

.esim-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.esim-info-card { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow-sm); }
.esim-info-card strong, .esim-info-card h4 { margin: 0; font: 700 .96rem var(--f-ui); color: var(--ink); }
.esim-info-card p { margin: 0; font-size: .85rem; line-height: 1.65; }
.esim-step-num { width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font: 700 .88rem var(--f-mono); display: grid; place-items: center; }
.esim-step-num svg { width: 17px; height: 17px; }

.esim-compat-search-card { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line)); display: grid; gap: 12px; box-shadow: var(--shadow-sm); }
.esim-sec-title { display: inline-flex; align-items: center; gap: 8px; font: 700 .94rem var(--f-ui); color: var(--ink); }
.esim-sec-title svg { width: 19px; height: 19px; color: var(--primary); flex: none; }
.esim-compat-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.esim-compat-search-row input { flex: 1 1 220px; }
.esim-compat-result { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; font-size: .88rem; border: 1px solid var(--line); }
.esim-compat-result svg { width: 20px; height: 20px; flex: none; }
.esim-compat-result.is-ok { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 35%, transparent); color: var(--ink); }
.esim-compat-result.is-ok svg { color: var(--good); }
.esim-compat-result.is-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: var(--ink); }
.esim-compat-result.is-warn svg { color: var(--warn); }
.esim-compat-result.is-bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); color: var(--ink); }
.esim-compat-result.is-bad svg { color: var(--bad); }

.esim-brand-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 8px; }
.esim-brand-tab { min-height: 48px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-2); font: 600 .85rem var(--f-ui); cursor: pointer; transition: all .15s; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-decoration: none; }
.esim-brand-tab small { font-size: .74rem; font-weight: 500; opacity: .8; }
.esim-brand-tab:hover { border-color: var(--primary); color: var(--primary); }
.esim-brand-tab[aria-selected="true"], .esim-brand-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.esim-brand-tab[aria-selected="true"] small, .esim-brand-tab.active small { color: rgba(255, 255, 255, .88); }
.esim-compat-steps-box { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 6px; }
.esim-compat-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--ink-2); font-size: .82rem; }
.esim-compat-note svg { width: 16px; height: 16px; color: var(--warn); flex: none; margin-top: 2px; }

.esim-compat-box, .esim-legal-panel { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.esim-compat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.esim-compat-list li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--ink); }
.esim-compat-list li svg { width: 16px; height: 16px; color: var(--good); flex: none; }

/* Legal, Policy & Guarantee Pages */
.esim-legal-hero { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, var(--primary-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line)); }
.esim-legal-hero h3 { margin: 0 0 4px; font: 700 1.08rem var(--f-ui); color: var(--ink); }
.esim-legal-hero p { margin: 0; font-size: .88rem; line-height: 1.6; }
.esim-legal-page-body .esim-legal-panel h4, .esim-legal-panel h4 { margin: 0 0 10px; font: 700 1rem var(--f-ui); color: var(--ink); }
.esim-legal-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); line-height: 1.7; }
.esim-policy-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.esim-policy-table { width: 100%; border-collapse: collapse; font-size: .86rem; text-align: start; }
.esim-policy-table th, .esim-policy-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.esim-policy-table th { background: var(--surface-2); font: 700 .8rem var(--f-ui); color: var(--ink-2); white-space: nowrap; }
.esim-policy-table tr:last-child td { border-bottom: 0; }

/* Track Order Page */
.esim-track-card { padding: clamp(16px, 3vw, 24px); border-radius: 18px; border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); box-shadow: var(--shadow-sm); }
.esim-track-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; width: 100%; }
.esim-track-form .field { flex: 1 1 240px; margin: 0; }
.esim-track-form .btn.lg { width: auto; min-width: 190px; }

/* Footer */
.shop-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 24px 16px; margin-top: auto; }
.shop-footer-inner { width: min(100%, 1160px); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.shop-footer-brand { max-width: 440px; }
.shop-footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-footer-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font: 600 .8rem var(--f-ui); text-decoration: none; transition: all .15s ease; }
.shop-footer-link svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.shop-footer-link:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); }
.shop-footer-link:hover svg { color: var(--primary); }
.shop-footer-link.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.shop-footer-link.active svg { color: var(--primary); }

/* ============================================================================
   Pelephone Israeli-eSIM Style Layout (Preserving Our Brand Colors & Fonts)
   ============================================================================ */

/* 1. Hero Banner (.pele-hero-slider / .pele-top-banner / .pele-flex-bnr) */
.pele-hero-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background: radial-gradient(500px 260px at 85% 0%, rgba(255, 74, 31, .28), transparent 70%), linear-gradient(135deg, #17111F 0%, #23182D 55%, #341724 100%);
  color: #FAF8F5;
  box-shadow: 0 14px 32px -14px rgba(23, 17, 31, .42);
}
.pele-hero-overlay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 3.8vw, 42px) clamp(32px, 4.5vw, 50px);
  width: 100%;
  box-sizing: border-box;
}
.pele-top-banner {
  flex: 1 1 540px;
  min-width: 0;
  width: 100%;
}
.pele-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pele-banner-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
}
.pele-banner-logo .brand-word-hot { color: #FF5A2A; }
.pele-banner-logo .brand-word-esim,
.pele-banner-logo .brand-word-custom { color: #FFFFFF; }
.pele-banner-mark {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.pele-banner-mark .hsim-logo-svg { width: 26px; height: 26px; }
.pele-banner-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(225, 29, 72, .2);
  border: 1px solid rgba(251, 113, 133, .35);
  color: #fecdd3;
  font: 700 .76rem/1 var(--f-brand);
  letter-spacing: .03em;
}
.pele-top-banner h1 {
  margin: 14px 0 20px;
  font: 700 clamp(1.42rem, 3.1vw, 2.35rem)/1.3 var(--f-ui);
  color: #faf8f5;
  letter-spacing: -.01em;
}
.pele-flex-bnr {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.pele-bnr-col {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  min-width: 0;
}
.pele-bnr-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(225, 29, 72, .18);
  border: 1px solid rgba(251, 113, 133, .3);
  color: #fda4af;
  display: grid;
  place-items: center;
  flex: none;
}
.pele-bnr-ic svg { width: 20px; height: 20px; }
.pele-bnr-col b {
  font: 600 .9rem/1.38 var(--f-ui);
  color: #faf8f5;
  min-width: 0;
}

/* Visual eSIM Card Art in Banner */
.pele-hero-illustration {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pele-sim-card-art {
  width: 255px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1.5px solid rgba(255, 255, 255, .18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .25);
  transform: rotate(-3deg);
  display: grid;
  gap: 18px;
}
.pele-sim-art-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pele-sim-art-top span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(225, 29, 72, .24);
  color: #fecdd3;
  font: 700 .78rem var(--f-brand);
}
.pele-sim-art-top .esim-chip-svg.lg { width: 46px; height: 36px; }
.pele-sim-art-mid {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pele-sim-art-mid .hsim-logo-svg { width: 42px; height: 42px; flex: none; }
.pele-sim-art-mid strong {
  display: block;
  font: 800 1.15rem/1.1 var(--f-brand);
  color: #faf8f5;
}
.pele-sim-art-mid small {
  display: block;
  font: 500 .78rem var(--f-body);
  color: #d6d3d1;
  margin-top: 3px;
}

/* 2. Sub-Navigation Bar (.pele-adv-wrap / .pele-adv-feature) */
.pele-adv-wrap {
  position: sticky;
  top: 64px;
  z-index: 19;
  margin: -22px auto 2px;
  width: min(100% - 24px, 1040px);
  max-width: 100%;
  box-sizing: border-box;
}
.pele-adv-feature {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  min-height: 54px;
  overflow: hidden;
  box-shadow: 0 10px 26px -10px rgba(28, 25, 23, .14);
}
.pele-adv-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-inline-end: 1px solid var(--line);
  min-width: 0;
}
.pele-adv-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 10px;
  color: var(--ink);
  font: 600 .9rem var(--f-ui);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
  text-align: center;
}
.pele-adv-link a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.pele-btn-special-adv {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #292524 0%, var(--primary) 100%);
  padding: 0 12px;
  min-width: 0;
}
.pele-btn-special-adv a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font: 700 .9rem var(--f-ui);
  text-decoration: none;
  text-align: center;
}
.pele-btn-special-adv:hover {
  filter: brightness(1.06);
}

/* 3. Content Sections & Organized Filter Card */
.pele-content-section {
  scroll-margin-top: 120px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.pele-filter-bar {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}
.pele-filter-bar .esim-type-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 8px;
  width: 100%;
  overflow: visible;
  padding: 0;
}
.pele-filter-bar .esim-type-tab {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  font-size: .84rem;
}
.pele-co-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.pele-co-pill {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font: 600 .8rem var(--f-ui);
  cursor: pointer;
  transition: all .15s ease;
}
.pele-co-pill:hover { border-color: var(--primary); color: var(--primary); }
.pele-co-pill[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 24%, transparent);
}

/* 4. Pelephone-Style Package Cards (.pele-packs / .pele-pack-card) */
.pele-packs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 305px), 1fr));
  gap: 20px;
  padding: 4px 0 8px;
  width: 100%;
  min-width: 0;
}
.pele-pack-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--surface);
  border-radius: 24px;
  border: 1.5px solid var(--line);
  box-shadow: 0 6px 20px rgba(28, 25, 23, .06);
  padding: 18px 18px 16px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pele-pack-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(28, 25, 23, .14);
}
.pele-pack-card.is-featured {
  border-color: var(--primary);
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--primary) 22%, rgba(28, 25, 23, .1));
}

/* Card Top Header Row: 5G Pill on one side + Circular Duration Badge on the other */
.pele-pack-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  margin-bottom: 4px;
}
.pele-best-offer {
  display: inline-flex;
  align-items: center;
}
.pele-5g-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font: 700 .78rem/1.1 var(--f-brand);
}
.pele-5g-pill i {
  font-style: italic;
  color: var(--primary-2);
}
.pele-5g-pill b {
  background: var(--primary);
  color: #fff;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: .66rem;
  margin-left: 3px;
}

/* Circular Duration Badge (.pele-superlative) — Neatly aligned inside card header */
.pele-superlative {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #881337 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--surface);
  box-shadow: 0 5px 12px rgba(190, 18, 60, .22);
  flex: none;
}
.pele-superlative > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.02;
}
.pele-superlative span:first-child {
  font: 800 1.04rem/1 var(--f-mono);
}
.pele-superlative span:last-child {
  font: 600 .64rem/1.05 var(--f-ui);
}

/* Split Capacity | Price Header (.pele-pack-top) */
.pele-pack-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 4px 0 10px;
  direction: ltr;
}
.pele-pack-name {
  font: 800 clamp(1.85rem, 4.5vw, 2.3rem)/1 var(--f-mono);
  color: var(--ink);
  letter-spacing: -.03em;
  padding-right: 14px;
}
.pele-pack-price {
  font: 800 clamp(1.75rem, 4.2vw, 2.1rem)/1 var(--f-mono);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: 14px;
  display: inline-flex;
  align-items: baseline;
}
.pele-pack-price span {
  font-size: 1.1rem;
  font-weight: 700;
  margin-left: 2px;
}

/* Carrier + Package Subtitle */
.pele-pack-carrier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 700 .88rem var(--f-ui);
  margin-bottom: 10px;
  max-width: 100%;
}
.pele-pack-carrier span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Structured Features & Apps Box inside Card */
.pele-pack-body-box {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px 10px;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.pele-new-txt {
  font: 600 .82rem/1.3 var(--f-ui);
  color: var(--ink-2);
  margin: 0;
}
.pele-all-apps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  width: 100%;
}
.pele-app-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}
.pele-app-badge svg {
  width: 16px;
  height: 16px;
}
.pele-pack-specs-list {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: right;
}
.pele-pack-spec-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.pele-pack-spec-row.is-bonus {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 26%, var(--line));
}
.pele-spec-ic {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: none;
}
.pele-pack-spec-row.is-bonus .pele-spec-ic {
  background: var(--surface);
}
.pele-spec-ic svg {
  width: 13px;
  height: 13px;
}
.pele-pack-spec-row span,
.pele-pack-spec-row b {
  font: 600 .82rem/1.35 var(--f-body);
  color: var(--ink);
  min-width: 0;
  word-break: break-word;
}

/* Action Buttons inside Card (.pele-pack-btns) */
.pele-pack-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  margin-bottom: 6px;
}
.pele-btn-b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  padding: 0 8px;
  border-radius: 12px;
  font: 600 .84rem/1.2 var(--f-ui);
  text-decoration: none;
  transition: all .18s ease;
  margin: 0;
  box-sizing: border-box;
  white-space: nowrap;
}
.pele-btn-b.order-b {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  box-shadow: 0 5px 12px -4px color-mix(in srgb, var(--primary) 55%, transparent);
}
.pele-btn-b.order-b:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.pele-btn-b.order-c {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.pele-btn-b.order-c:hover {
  background: var(--primary-soft);
}
.pele-lnk-inc {
  background: none;
  border: 0;
  padding: 4px 8px;
  margin-top: 2px;
  color: var(--ink-2);
  font: 600 .8rem var(--f-ui);
  text-decoration: underline;
  cursor: pointer;
}
.pele-lnk-inc:hover {
  color: var(--primary);
}

/* 5. "Everything You Need to Know" Interactive Icon Tabs (.pele-imp-info) */
.pele-imp-info {
  background: radial-gradient(460px 220px at 85% 0%, rgba(255, 74, 31, .22), transparent 70%), linear-gradient(135deg, #17111F 0%, #23182D 55%, #341724 100%);
  border-radius: 24px;
  padding: 28px 20px;
  color: #FAF8F5;
  text-align: center;
  box-shadow: 0 12px 28px rgba(23, 17, 31, .18);
  width: 100%;
  box-sizing: border-box;
}
.pele-main-sec h2 {
  margin: 0 0 20px;
  font: 700 clamp(1.2rem, 2.5vw, 1.75rem)/1.32 var(--f-ui);
  color: #faf8f5;
}
.pele-icns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
.pele-icn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(250, 248, 245, .92);
  text-decoration: none;
  cursor: pointer;
  padding: 14px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: all .2s ease;
  min-width: 0;
}
.pele-icn-svg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(253, 164, 175, .36);
  display: grid;
  place-items: center;
  color: #fda4af;
  transition: all .2s ease;
  flex: none;
}
.pele-icn-svg svg { width: 26px; height: 26px; }
.pele-icn-item span:last-child {
  font: 600 .88rem/1.35 var(--f-ui);
  text-align: center;
}
.pele-icn-item:hover,
.pele-icn-item.active {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(253, 164, 175, .5);
  color: #fff;
  transform: translateY(-2px);
}
.pele-icn-item.active .pele-icn-svg {
  background: var(--primary);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .24);
}
.pele-main-sec-info {
  background: var(--surface);
  border: 1.5px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 22px;
  margin-top: 12px;
  padding: 24px 20px;
  position: relative;
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
}
.pele-close-main-info {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.pele-close-main-info:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pele-close-main-info svg { width: 17px; height: 17px; }
.pele-txt3 {
  font: 700 1.05rem var(--f-ui);
  color: var(--primary);
  margin-bottom: 6px;
  padding-inline-end: 36px;
}
.pele-dtls p {
  margin: 0 0 10px;
  font-size: .9rem;
  line-height: 1.72;
  color: var(--ink-2);
}
.pele-dtls a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}
.pele-info-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--ink);
  margin-top: 10px;
  font-size: .86rem;
}
.pele-info-highlight svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex: none;
  margin-top: 2px;
}

/* 6. Device Compatibility Accordion (.pele-check-esim / .pele-div-check) */
.pele-check-esim {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 120px;
  width: 100%;
  box-sizing: border-box;
}
.pele-check-esim .h2-1 {
  font: 700 clamp(1.18rem, 2.4vw, 1.65rem)/1.35 var(--f-ui);
  color: var(--ink);
  margin: 0 0 14px;
}
.pele-compat-quick {
  max-width: 560px;
  margin: 0 auto 16px;
}
.pele-div-check {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pele-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, #17111F 0%, #2A1F38 100%);
  color: #FAF8F5;
  font: 700 .95rem var(--f-brand);
  text-decoration: none;
  transition: all .18s ease;
}
.pele-brand-bar:hover,
.pele-brand-bar.on {
  background: var(--grad);
}
.pele-brand-arrow {
  display: inline-grid;
  place-items: center;
  transition: transform .2s ease;
}
.pele-brand-arrow svg { width: 18px; height: 18px; }
.pele-brand-bar.on .pele-brand-arrow {
  transform: rotate(-90deg);
}
.pele-flex-degem {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 7px;
  padding: 12px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-align: left;
}
.pele-flex-degem.on {
  display: grid;
}
.pele-flex-degem span {
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: 600 .8rem/1.3 var(--f-brand);
  color: var(--ink);
}
.pele-not-found {
  margin-top: 16px;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.pele-not-found a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

/* 7. 24/7 Service Strip (.pele-serv / .pele-serv-flex) */
.pele-serv {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}
.pele-serv h2 {
  font: 700 clamp(1.18rem, 2.4vw, 1.65rem)/1.35 var(--f-ui);
  color: var(--ink);
  margin: 0 0 20px;
}
.pele-serv-flex {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}
.pele-serv-flex a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 16px 10px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font: 600 .88rem/1.4 var(--f-ui);
  min-width: 0;
  transition: transform .18s ease, border-color .18s ease, color .18s ease;
}
.pele-serv-flex a:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
}
.pele-serv-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary-soft);
  border: 1.5px solid color-mix(in srgb, var(--primary) 28%, transparent);
  color: var(--primary);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--primary) 35%, transparent);
  flex: none;
}
.pele-serv-badge svg { width: 26px; height: 26px; }

/* 8. Questions & Answers Accordion (.pele-faq) */
.pele-faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}
.pele-faq h2 {
  font: 700 clamp(1.22rem, 2.4vw, 1.65rem)/1.3 var(--f-ui);
  color: var(--ink);
  margin: 0 auto 12px;
  max-width: 900px;
}
.pele-faq-inner {
  max-width: 900px;
  margin: 0 auto;
}
.pele-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line);
  font: 600 .95rem/1.45 var(--f-ui);
  color: var(--ink);
  cursor: pointer;
  transition: color .15s ease;
}
.pele-faq-question:last-of-type {
  border-bottom: 0;
}
.pele-faq-question:hover,
.pele-faq-question.open {
  color: var(--primary);
}
.pele-faq-arrow {
  display: inline-grid;
  place-items: center;
  transition: transform .2s ease;
  color: var(--primary);
  flex: none;
}
.pele-faq-arrow svg { width: 18px; height: 18px; }
.pele-faq-question.open .pele-faq-arrow {
  transform: rotate(-90deg);
}
.pele-faq-answer {
  display: none;
  padding: 12px 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 12px;
  margin-bottom: 6px;
  font-size: .88rem;
  line-height: 1.72;
  color: var(--ink-2);
}
.pele-faq-answer.open {
  display: block;
}
.pele-faq-answer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

/* 9. Multi-Column Pelephone-Style Footer (.pele-footer) */
.pele-footer {
  background: #17111F;
  color: #EAE4F2;
  padding: 36px 20px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .08);
  width: 100%;
  box-sizing: border-box;
}
.pele-footer .brand-word-hot { color: #FF5A2A; }
.pele-footer .brand-word-esim,
.pele-footer .brand-word-custom { color: #FFFFFF; }
.pele-footer .muted { color: #B9B0CC !important; }
.pele-footer-wrap {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}
.pele-right-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.pele-foot-net {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pele-net-ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fda4af;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: all .18s ease;
}
.pele-net-ic:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.pele-net-ic svg { width: 18px; height: 18px; }
.pele-left-foot {
  flex: 1 1 320px;
  min-width: 0;
}
.pele-lnks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.pele-lnks > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.pele-lnks .ttl {
  font: 700 .92rem var(--f-ui);
  color: #faf8f5;
  margin: 0 0 4px;
}
.pele-lnks a {
  color: #d6d3d1;
  font-size: .84rem;
  text-decoration: none;
  transition: color .15s;
}
.pele-lnks a:hover,
.pele-lnks a.active {
  color: #fda4af;
  text-decoration: underline;
}

/* ============================================================================
   Payment Security Shield, Copy Cards & Mobile eSIM Install Helpers
   ============================================================================ */
body.shop {
  overflow-x: clip;
}
.shop-sec-shield {
  padding: 13px 15px;
  border-radius: 15px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--good) 10%, var(--surface)), var(--surface-2));
  border: 1.5px solid color-mix(in srgb, var(--good) 32%, var(--line));
  display: grid;
  gap: 8px;
}
.shop-sec-shield-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shop-sec-shield-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--good-soft);
  color: var(--good);
  display: grid;
  place-items: center;
  flex: none;
}
.shop-sec-shield-ic svg { width: 20px; height: 20px; }
.shop-sec-shield-head b {
  display: block;
  font: 700 .88rem/1.3 var(--f-ui);
  color: var(--ink);
}
.shop-sec-shield-head small {
  display: block;
  font-size: .76rem;
  color: var(--muted);
  margin-top: 1px;
}
.shop-sec-shield-list {
  margin: 2px 0 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 4px;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.shop-sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--good-soft);
  color: var(--good);
  font: 700 .74rem var(--f-ui);
}
.shop-sec-tag svg { width: 14px; height: 14px; }
.shop-reserve-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font: 600 .76rem var(--f-ui);
}
.shop-reserve-pill svg { width: 14px; height: 14px; }
.shop-rec-pill {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font: 700 .68rem var(--f-ui);
}
.shop-copy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
}
.shop-kv-meta {
  display: grid;
  gap: 2px;
}
.shop-kv-meta span {
  font-size: .76rem;
  color: var(--muted);
}
.shop-kv-val {
  font-size: 1.06rem;
  color: var(--ink);
}
.shop-copy-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 700;
  transition: all .15s ease;
}
.shop-copy-btn.is-copied,
#copy-code.is-copied {
  background: var(--good) !important;
  color: #fff !important;
  border-color: var(--good) !important;
}
.shop-proof-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid var(--primary);
  flex: none;
}
.shop-qr-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.shop-apple-esim-btn {
  width: 100%;
  max-width: 340px;
  min-height: 46px;
}
.shop-single-phone-tip {
  width: 100%;
  text-align: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 8%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--line));
  font-size: .82rem;
  line-height: 1.65;
}
.shop-single-phone-tip b {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
}
.shop-single-phone-tip p {
  margin: 0;
  color: var(--ink-2);
}

/* ============================================================================
   Mobile Phone Ergonomics & Responsive Refinements (<= 760px & <= 480px)
   ============================================================================ */
@media (max-width: 760px) {
  /* Hide top desktop nav bar and activate thumb-friendly bottom dock */
  .shop-top { padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; }
  .shop-top-inner { gap: 8px; flex-wrap: nowrap; }
  .shop-top .shop-nav { display: none; }
  .shop-brand { gap: 8px; }
  .shop-brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-word-hot { font-size: 1.12rem; }
  .brand-word-esim { font-size: 1.12rem; }
  .brand-word-custom { font-size: .98rem; }
  .shop-brand-text small { font-size: .68rem; max-width: 175px; }
  .shop-utils { gap: 6px; }
  .shop-wa-btn { min-height: 34px; padding: 0 10px; font-size: .78rem; }
  .shop-main { padding: 12px 12px 36px; gap: 14px; }
  .shop-footer,
  .pele-footer { padding: 26px 14px calc(86px + env(safe-area-inset-bottom, 0px)); }

  /* 1. Hero Banner on Tablet/Mobile — 100% Fit & Symmetrical 3-Tile Feature Grid */
  .pele-hero-slider {
    border-radius: 20px;
  }
  .pele-hero-overlay {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 14px 20px;
    gap: 14px;
  }
  .pele-top-banner { flex: none; width: 100%; }
  .pele-hero-illustration { display: none; }
  .pele-banner-logo { padding: 4px 11px 4px 8px; gap: 7px; }
  .pele-banner-mark { width: 24px; height: 24px; }
  .pele-banner-mark .hsim-logo-svg { width: 22px; height: 22px; }
  .pele-banner-tag { font-size: .7rem; padding: 4px 10px; }
  .pele-top-banner h1 {
    font-size: clamp(1.22rem, 4.8vw, 1.55rem);
    line-height: 1.32;
    margin: 12px 0 14px;
  }
  .pele-flex-bnr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .pele-bnr-col {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 10px 6px;
    gap: 7px;
    border-radius: 14px;
    min-width: 0;
  }
  .pele-bnr-ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .pele-bnr-ic svg { width: 18px; height: 18px; }
  .pele-bnr-col b {
    font-size: .75rem;
    line-height: 1.3;
  }

  /* 2. Sub-Navigation Bar on Mobile — Clean 2x2 Grid (No Overflow, No Overlap) */
  .pele-adv-wrap {
    position: relative;
    top: auto;
    width: 100%;
    margin: 0;
    z-index: 5;
  }
  .pele-adv-feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
    border-radius: 16px;
  }
  .pele-adv-link {
    min-height: 44px;
    border-bottom: 1px solid var(--line);
  }
  .pele-adv-link:nth-child(2) {
    border-inline-end: 0;
  }
  .pele-adv-link:nth-child(3) {
    border-bottom: 0;
  }
  .pele-adv-link a {
    padding: 0 8px;
    font-size: .83rem;
    white-space: nowrap;
  }
  .pele-btn-special-adv {
    min-height: 44px;
    padding: 0 8px;
  }
  .pele-btn-special-adv a {
    font-size: .83rem;
    white-space: nowrap;
  }

  /* 3. Filter Card on Mobile */
  .pele-filter-bar {
    padding: 12px;
    border-radius: 18px;
    gap: 10px;
    margin-bottom: 12px;
  }
  .pele-filter-bar .esim-type-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .pele-filter-bar .esim-type-tab {
    min-height: 38px;
    padding: 0 6px;
    font-size: .78rem;
    gap: 5px;
  }
  .pele-filter-bar .esim-type-tab small {
    padding: 1px 6px;
    font-size: .68rem;
  }
  .pele-co-pills {
    gap: 5px;
    padding-top: 8px;
  }
  .pele-co-pill {
    min-height: 32px;
    padding: 0 11px;
    font-size: .76rem;
  }

  /* 4. Package Cards on Mobile — Full Width & Uniform Alignment */
  .pele-packs {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 0;
  }
  .pele-pack-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px 15px 14px;
    border-radius: 20px;
  }
  .pele-superlative {
    width: 48px;
    height: 48px;
  }
  .pele-superlative span:first-child { font-size: .96rem; }
  .pele-superlative span:last-child { font-size: .6rem; }
  .pele-pack-name { font-size: 1.9rem; padding-right: 12px; }
  .pele-pack-price { font-size: 1.8rem; padding-left: 12px; }
  .pele-btn-b {
    height: 42px;
    font-size: .83rem;
  }

  /* 5. Lower Sections on Mobile — Symmetrical Grids & Cohesive Cards */
  .pele-imp-info,
  .pele-check-esim,
  .pele-serv,
  .pele-faq {
    padding: 20px 14px;
    border-radius: 20px;
  }
  .pele-main-sec h2,
  .pele-check-esim .h2-1,
  .pele-serv h2,
  .pele-faq h2 {
    font-size: 1.15rem;
    margin-bottom: 14px;
  }
  .pele-icns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .pele-icn-item {
    padding: 10px 6px;
    gap: 8px;
    border-radius: 14px;
    min-width: 0;
  }
  .pele-icn-svg {
    width: 46px;
    height: 46px;
  }
  .pele-icn-svg svg { width: 22px; height: 22px; }
  .pele-icn-item span:last-child {
    font-size: .75rem;
    line-height: 1.25;
  }
  .pele-main-sec-info {
    padding: 18px 14px;
    border-radius: 18px;
  }
  .pele-serv-flex {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .pele-serv-flex a {
    padding: 12px 6px;
    gap: 8px;
    border-radius: 14px;
    font-size: .75rem;
    line-height: 1.32;
    min-width: 0;
  }
  .pele-serv-badge {
    width: 46px;
    height: 46px;
  }
  .pele-serv-badge svg { width: 22px; height: 22px; }
  .pele-faq-question {
    padding: 13px 4px;
    font-size: .9rem;
  }
  .pele-footer-wrap {
    flex-direction: column;
    gap: 20px;
  }
  .pele-lnks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  /* 6. Checkout, Data Entry ("صفحة البيانات") & Order Pages on Mobile */
  .shop-form,
  .shop-pay,
  .shop-status,
  .shop-qr-modern,
  .shop-instant-box,
  .shop .card.empty {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px 14px;
    border-radius: 20px;
    gap: 14px;
  }
  .shop-card-topbar {
    gap: 8px;
    padding-bottom: 10px;
  }
  .shop-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .shop-steps span {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 8px 4px;
    font-size: .73rem;
    gap: 4px;
    line-height: 1.2;
  }
  .shop-steps i {
    width: 20px;
    height: 20px;
    font-size: .7rem;
  }
  .esim-checkout-head {
    padding: 12px;
    border-radius: 16px;
    gap: 10px;
  }
  .pele-checkout-top {
    gap: 8px;
  }
  .pele-checkout-brand {
    gap: 8px;
    flex: 1 1 140px;
  }
  .pele-checkout-titles strong {
    font-size: .98rem;
  }
  .pele-checkout-maincap {
    padding: 5px 9px;
    font-size: .86rem;
  }
  .pele-checkout-price {
    padding: 5px 10px;
    font-size: .96rem;
  }
  .pele-checkout-specs {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding-top: 8px;
  }
  .shop-mode-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .shop-mode-card {
    padding: 11px 10px;
    border-radius: 13px;
    gap: 4px;
  }
  .shop-mode-card strong {
    font-size: .84rem;
    line-height: 1.3;
  }
  .shop-mode-card small {
    font-size: .72rem;
    line-height: 1.35;
  }
  .esim-ready-notice {
    padding: 10px 12px;
    gap: 10px;
    font-size: .84rem;
  }
  .shop-breakdown-box {
    padding: 12px 13px;
  }
  .esim-consent-wrap {
    padding: 12px;
    gap: 10px;
  }
  .esim-consent-wrap .btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }

  /* Prevent iOS Safari auto-zoom when focusing inputs */
  .esim-search-box input,
  .shop .input,
  .shop select,
  .shop textarea { font-size: 16px !important; }

  /* Fixed Bottom Navigation Dock for Mobile */
  .shop-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 22px rgba(8, 17, 36, .1);
  }
  .shop-bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    padding: 4px 2px;
    border-radius: 11px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: 600 .69rem/1.15 var(--f-ui);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s ease, background .15s ease;
  }
  .shop-bnav-item svg { width: 19px; height: 19px; flex: none; }
  .shop-bnav-item.active {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 11%, transparent);
    font-weight: 700;
  }
  .shop-bnav-ic-wrap { position: relative; display: inline-grid; place-items: center; }
  .shop-bnav-badge {
    position: absolute;
    top: -5px;
    inset-inline-end: -9px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font: 700 .62rem var(--f-mono);
    display: grid;
    place-items: center;
  }
}

@media (max-width: 560px) {
  /* Compact Hero & H-SIM Showcase Pass on Mobile */
  .esim-hero { padding: 16px 14px; border-radius: 18px; }
  .esim-hero-kicker { font-size: .72rem; padding: 4px 10px 4px 6px; max-width: 100%; }
  .esim-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .esim-hero-actions .esim-hero-btn.primary { grid-column: 1 / -1; min-height: 44px; font-size: .88rem; }
  .esim-hero-actions .esim-hero-btn.ghost { min-height: 40px; font-size: .77rem; padding: 0 8px; }
  .esim-trust-row { gap: 6px 12px; font-size: .75rem; }

  .esim-showcase-card { padding: 14px; border-radius: 16px; gap: 10px; }
  .esim-showcase-top strong { font-size: .95rem; }
  .esim-showcase-emblems .esim-chip-svg.lg { width: 38px; height: 30px; }
  .esim-showcase-emblems .hsim-logo-svg { width: 32px; height: 32px; }
  .esim-showcase-specs { padding: 9px 10px; gap: 6px; }
  .esim-showcase-specs b { font-size: .74rem; }
  .esim-pass-journey { flex-wrap: wrap; justify-content: center; gap: 6px 8px; padding: 8px 10px; font-size: .72rem; }

  /* Filter Toolbar & Carrier Strip */
  .esim-controls { padding: 12px; border-radius: 16px; gap: 10px; }
  .esim-type-tab { min-height: 40px; padding: 0 12px; font-size: .8rem; }
  .esim-carrier-pill { padding: 6px 11px; }

  /* Package Cards on Phone Screens */
  .esim-card { padding: 15px; border-radius: 18px; gap: 10px; }
  .esim-card-foot::before { inset-inline-start: -23px; }
  .esim-card-foot::after { inset-inline-end: -23px; }
  .esim-card-btns .btn { min-height: 44px; font-size: .83rem; padding: 0 10px; }

  /* Horizontal Compact 3-Step Progress Bar on Mobile Checkout/Order */
  .shop-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .shop-steps span { flex-direction: column; text-align: center; justify-content: center; padding: 7px 4px; font-size: .7rem; gap: 4px; line-height: 1.25; }
  .shop-steps i { width: 20px; height: 20px; font-size: .7rem; }

  /* Checkout, Consent & Secondary Page CTAs */
  .esim-consent-wrap .btn { width: 100%; justify-content: center; min-height: 40px; }
  .esim-track-form .btn.lg { width: 100%; }
  .esim-page-cta { padding: 15px; }
  .esim-page-cta .btn, .esim-page-cta .row { width: 100%; }
  .esim-page-cta .row .btn { flex: 1; justify-content: center; }
  .esim-compat-box, .esim-legal-panel { padding: 14px 15px; }
  .esim-legal-hero, .esim-eid-check { padding: 14px 15px; gap: 11px; }

  .shop-copy-card { padding: 10px 12px; }
  .shop-qr-actions .btn { width: 100%; justify-content: center; min-height: 44px; }
}

@media (max-width: 390px) {
  .shop-brand-text small { display: none; }
  .shop-wa-btn .shop-wa-label { font-size: .75rem; }
  .esim-card-btns.has-two { grid-template-columns: 1fr; }
  .esim-card-btns.has-two .btn.primary { order: -1; }
  .pele-filter-bar .esim-type-tab small { display: none; }
  .pele-pack-btns { grid-template-columns: 1fr; }
}

@media print {
  .shop-top, .shop-footer, .shop-bottom-nav, .no-print, .shop-pay { display: none !important; }
  body.shop { background: #fff; }
}

/* Manager's packages: a section per company, a compact row per package, and bulk actions toolbar */
.cat-tools { display: grid; gap: 10px; }
.cat-bulk-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; }
.pk-check { display: inline-flex; align-items: center; cursor: pointer; padding: 4px; }
.pk-check input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.cat-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.cat-sort select { width: auto; min-height: 38px; padding-block: 4px; }
.co-sec { padding: 0; overflow: hidden; }
.co-sec > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; cursor: pointer; list-style: none; }
.co-sec > summary::-webkit-details-marker { display: none; }
.co-sec > summary::after { content: "▾"; margin-inline-start: auto; color: var(--muted); transition: transform .15s; }
.co-sec:not([open]) > summary::after { transform: rotate(90deg); }
.co-sec[open] > summary { border-bottom: 1px solid var(--line); }
.co-head { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; }
.co-meta { color: var(--muted); font-size: .84rem; }
.co-sec > .list { padding: 12px; gap: 8px; }
.co-kind { padding: 12px 16px 0; font-size: .9rem; color: var(--ink-2); }
.pk-row { padding: 10px 12px; box-shadow: none; }
.pk-row .item-top { align-items: flex-start; flex-wrap: wrap; }
.pk-row .item-title { font-size: .95rem; }
.pk-row .pill { margin-inline-start: 4px; vertical-align: middle; }
.pk-row.inactive { opacity: .62; }
.pk-row .plus { color: var(--good); }
.pk-row .minus { color: var(--bad, #d33); }
.pk-row .icon-btn.pk-act { width: 38px; height: 38px; border-radius: 12px; box-shadow: none; }
.pk-row .icon-btn.pk-act svg { width: 18px; height: 18px; }

