/* Interactive eSIM walkthrough (scripts/esim-walkthrough.js) */
[data-esim-walkthrough]:empty { display: none; }
.ew {
    --ew-ink: #172033;
    --ew-muted: #5b6475;
    --ew-line: #e3e7ef;
    --ew-brand: #4f46e5;
    --ew-app: #00658d;
    --ew-app-dark: #003952;
    --ew-app-light: #c6e7ff;
    --ew-app-accent: #e2881c;
    --ew-ios-blue: #007aff;
    --ew-ios-green: #34c759;
    --ew-and-primary: #0b57d0;
    --ew-and-container: #d3e3fd;
    position: relative;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid var(--ew-line);
    border-radius: 1.75rem;
    background:
        radial-gradient(circle at 95% 0%, rgba(198, 231, 255, .65), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(238, 242, 255, .9), transparent 40%),
        #fff;
    box-shadow: 0 30px 70px -45px rgba(23, 32, 51, .45);
    color: var(--ew-ink);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: start;
}
.ew *, .ew *::before, .ew *::after { box-sizing: border-box; }
.ew button { font: inherit; cursor: pointer; }
.ew svg { display: block; }

/* Header, platform switch, chapters */
.ew-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.25rem; }
.ew .ew-eyebrow { margin: 0 0 .35rem; color: var(--ew-app); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ew .ew-heading { margin: 0; font-family: inherit; color: var(--ew-ink); font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.ew-platform { display: inline-flex; padding: .3rem; border-radius: 999px; background: #eef1f6; }
.ew-platform button { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: .5rem 1.1rem; border: 0; border-radius: 999px; background: transparent; color: var(--ew-muted); font-size: .92rem; font-weight: 700; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.ew-platform button svg { width: 1.1rem; height: 1.1rem; }
.ew-platform button[aria-checked="true"] { background: #fff; color: var(--ew-ink); box-shadow: 0 4px 14px rgba(23, 32, 51, .12); }
.ew-platform button:focus-visible, .ew-chapters button:focus-visible, .ew-btn:focus-visible, .ew-steplist button:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.ew-apple-logo { width: .95rem; height: .95rem; fill: currentColor; }

.ew-chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.5rem; }
.ew-chapters button { display: flex; align-items: center; gap: .6rem; min-height: 3.2rem; padding: .6rem .85rem; border: 1px solid var(--ew-line); border-radius: 1rem; background: #fff; color: var(--ew-muted); font-size: .9rem; font-weight: 700; text-align: start; transition: border-color .2s ease, background .2s ease; }
.ew-chapters button:hover { border-color: #b9c4d6; }
.ew-chapter-num { display: inline-grid; flex: 0 0 auto; width: 1.7rem; height: 1.7rem; place-items: center; border-radius: 999px; background: #eef1f6; color: var(--ew-muted); font-size: .8rem; font-weight: 800; }
.ew-chapter-short { display: none; }
.ew-chapters button[aria-selected="true"] { border-color: var(--ew-app); background: #f0f8ff; color: var(--ew-ink); }
.ew-chapters button[aria-selected="true"] .ew-chapter-num { background: var(--ew-app); color: #fff; }
.ew-chapters button.is-done .ew-chapter-num { background: #d1fae5; color: #047857; }

/* Stage */
.ew-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ew .ew-progress { height: .3rem; margin-bottom: 1rem; overflow: hidden; border-radius: 999px; background: #eef1f6; }
.ew .ew-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ew-app), #00a8e8); transition: width .35s ease; }
.ew .ew-count { margin: 0 0 .5rem; color: var(--ew-app); font-size: .8rem; font-weight: 800; letter-spacing: .02em; }
.ew .ew-title { margin: 0 0 .55rem; color: var(--ew-ink); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.ew .ew-body { min-height: 3.4em; margin: 0 0 1.25rem; color: #3f4859; font-size: 1.05rem; line-height: 1.65; }
.ew .ew-steplist { display: grid; gap: .2rem; margin: 0 0 1.4rem; padding: 0; list-style: none; counter-reset: ew; }
.ew .ew-steplist li { counter-increment: ew; }
.ew .ew-steplist button { display: flex; width: 100%; align-items: center; gap: .65rem; padding: .45rem .55rem; border: 0; border-radius: .6rem; background: transparent; color: #8a93a5; font-size: .9rem; font-weight: 600; text-align: start; }
.ew .ew-steplist button::before { content: counter(ew); display: inline-grid; flex: 0 0 auto; width: 1.4rem; height: 1.4rem; place-items: center; border: 1.5px solid currentColor; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.ew .ew-steplist button:hover { background: #f4f6fa; color: var(--ew-ink); }
.ew .ew-steplist .is-done button { color: #3f4859; }
.ew .ew-steplist .is-done button::before { content: "✓"; border-color: #10b981; background: #10b981; color: #fff; }
.ew .ew-steplist .is-current button { background: #f0f8ff; color: var(--ew-ink); font-weight: 750; }
.ew .ew-steplist .is-current button::before { border-color: var(--ew-app); background: var(--ew-app); color: #fff; }
.ew-controls { display: flex; gap: .6rem; }
.ew-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.4rem; border-radius: .9rem; font-weight: 750; transition: transform .15s ease, background .15s ease; }
.ew-btn:disabled { opacity: .4; cursor: default; }
.ew-btn-primary { flex: 1 1 auto; border: 0; background: var(--ew-app); color: #fff; box-shadow: 0 12px 24px -12px rgba(0, 101, 141, .7); }
.ew-btn-primary:hover { background: #00557a; }
.ew-btn-ghost { border: 1px solid var(--ew-line); background: #fff; color: var(--ew-ink); }
.ew .ew-hint { margin: .9rem 0 0; color: #8a93a5; font-size: .8rem; }

/* Device frames */
.ew-figure { margin: 0; }
.ew-device { position: relative; width: 300px; height: 620px; padding: 11px; border-radius: 52px; background: linear-gradient(145deg, #3a3a3e, #121214 45%, #2b2b2f); box-shadow: inset 0 0 0 1.5px #55555b, 0 40px 70px -30px rgba(15, 23, 42, .65), 0 10px 25px -12px rgba(15, 23, 42, .4); }
.ew-device-android { border-radius: 44px; background: linear-gradient(145deg, #2f3337, #0e1012 50%, #262a2e); }
.ew-hw::before, .ew-hw::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 2px 2px 0; background: #2a2a2e; }
.ew-hw::before { top: 150px; height: 70px; }
.ew-hw::after { top: 120px; height: 0; }
.ew-device-ios .ew-hw::after { left: -3px; right: auto; top: 110px; height: 30px; border-radius: 2px 0 0 2px; box-shadow: 0 50px 0 #2a2a2e, 0 95px 0 #2a2a2e; }
.ew-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 42px; background: #f2f2f7; isolation: isolate; }
.ew-device-android .ew-screen { border-radius: 34px; background: #f8f9fb; }
.ew-device-ios .ew-screen::before { content: ""; position: absolute; z-index: 30; top: 9px; left: 50%; width: 86px; height: 25px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.ew-device-android .ew-screen::before { content: ""; position: absolute; z-index: 30; top: 11px; left: 50%; width: 11px; height: 11px; transform: translateX(-50%); border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #1d1f22; }
.ew-screen::after { content: ""; position: absolute; z-index: 30; bottom: 7px; left: 50%; width: 104px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: rgba(17, 17, 17, .75); }
.ew-device-android .ew-screen::after { width: 86px; height: 3px; bottom: 8px; }
.ew .ew-figcap { max-width: 300px; margin: .9rem auto 0; color: #8a93a5; font-size: .74rem; line-height: 1.45; text-align: center; }

.ew-screen-inner { position: absolute; inset: 0; display: flex; flex-direction: column; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif; font-size: 13px; color: #111; }
.ew-device-android .ew-screen-inner { font-family: "Google Sans", Roboto, Inter, system-ui, sans-serif; }
.ew { --ew-shift: 22px; }
.ew[dir="rtl"] { --ew-shift: -22px; }
.ew-in-next { animation: ew-in-next .32s cubic-bezier(.2, .7, .2, 1); }
.ew-in-prev { animation: ew-in-prev .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes ew-in-next { from { transform: translateX(var(--ew-shift)); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes ew-in-prev { from { transform: translateX(calc(var(--ew-shift) * -1)); opacity: .2; } to { transform: none; opacity: 1; } }

.ew-status { position: relative; z-index: 25; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; height: 44px; padding: 14px 26px 0 30px; color: #000; font-size: 13.5px; font-weight: 650; }
.ew-device-android .ew-status { height: 36px; padding: 10px 22px 0; font-size: 12.5px; font-weight: 500; }
.ew-status-icons { display: flex; align-items: center; gap: 5px; }
.ew-status-icons svg { height: 10.5px; width: auto; fill: currentColor; }
.ew-status.ew-status-light { position: absolute; left: 0; right: 0; top: 0; color: #fff; }

/* Tap target */
.ew-tap { position: relative; display: block; cursor: pointer; border-radius: 14px; }
.ew-tap:not(.ew-tap-block) { display: inline-block; }
.ew-tap::after { content: ""; position: absolute; inset: -5px; z-index: 5; border: 2.5px solid #ff7a1a; border-radius: 16px; box-shadow: 0 0 0 4px rgba(255, 122, 26, .2); animation: ew-pulse 1.6s ease-in-out infinite; pointer-events: none; }
.ew-tap::before { content: ""; position: absolute; z-index: 6; inset-inline-end: -9px; top: -9px; width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: #ff7a1a; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); animation: ew-dot 1.6s ease-in-out infinite; pointer-events: none; }
.ew-tap.is-pressed { transform: scale(.97); transition: transform .12s ease; }
@keyframes ew-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.03); } }
@keyframes ew-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(.75); } }
.ew-nudge .ew-tap::after { animation: ew-shake .4s ease; }
@keyframes ew-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* Graba SIM app */
.ew-app { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f7f9fc; font-family: Inter, system-ui, sans-serif; color: #191c1e; }
.ew-app-head { padding: 52px 18px 34px; background: linear-gradient(160deg, var(--ew-app-dark), var(--ew-app) 70%, #0a7fae); color: #fff; }
.ew-app-brand { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; font-size: 12px; font-weight: 700; opacity: .9; }
.ew-app-logo { display: inline-grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: #fff; color: var(--ew-app); font-size: 12px; font-weight: 900; }
.ew-screen .ew-app-title { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.ew-screen .ew-app-sub { margin: 3px 0 0; font-size: 12.5px; opacity: .85; }
.ew-app-body { flex: 1 1 auto; padding: 14px 14px 70px; overflow: hidden; }
.ew-app-body-lift { margin-top: -26px; }
.ew-app-search, .ew-app-field { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px -10px rgba(25, 28, 30, .35); }
.ew-app-search svg, .ew-app-field svg { width: 18px; height: 18px; color: var(--ew-app); }
.ew-app-search strong { display: block; font-size: 13.5px; }
.ew-app-search span { color: #6e7881; font-size: 11.5px; }
.ew-app-field { margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.ew-caret { width: 2px; height: 16px; margin-left: -6px; background: var(--ew-app); animation: ew-blink 1s steps(2) infinite; }
@keyframes ew-blink { 50% { opacity: 0; } }
.ew-screen .ew-app-label { margin: 16px 2px 8px; color: #3e4850; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ew-app-card { padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(25, 28, 30, .06), 0 6px 18px -12px rgba(25, 28, 30, .25); }
.ew-app-empty { color: #6e7881; font-size: 12px; text-align: center; }
.ew-app-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ew-app-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 1px 3px rgba(25, 28, 30, .1); }
.ew-flag { display: inline-block; flex: 0 0 auto; width: 22px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.ew-region-ico { display: inline-grid; flex: 0 0 auto; width: 22px; height: 22px; place-items: center; color: var(--ew-app); }
.ew-region-ico svg { width: 18px; height: 18px; }
.ew-app-row { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 14px; background: #fff; margin-bottom: 7px; box-shadow: 0 1px 3px rgba(25, 28, 30, .08); }
.ew-app-row strong { display: block; font-size: 13.5px; }
.ew-app-row span:not(.ew-region-ico) { display: block; color: #6e7881; font-size: 11.5px; }
.ew-app-row > div { flex: 1 1 auto; }
.ew-muted { opacity: .6; }
.ew-chev { width: 7px; height: 12px; color: #a3abb5; }
.ew-app-filters { display: flex; gap: 6px; margin-bottom: 12px; }
.ew-app-filters span { padding: 6px 11px; border-radius: 999px; background: #eceef1; color: #3e4850; font-size: 11.5px; font-weight: 600; }
.ew-app-filters .is-on { background: var(--ew-app); color: #fff; }
.ew-app-plan { display: flex; align-items: center; justify-content: space-between; padding: 14px; margin-bottom: 8px; border: 1.5px solid transparent; border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgba(25, 28, 30, .08); }
.ew-tap .ew-app-plan { border-color: var(--ew-app); background: #f2faff; }
.ew-app-plan strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.ew-app-plan span { color: #6e7881; font-size: 11.5px; }
.ew-app-plan b { color: var(--ew-app); font-size: 16px; font-weight: 800; }
.ew-screen .ew-app-foot { display: block; margin: 10px 2px 0; color: #6e7881; font-size: 10.5px; line-height: 1.4; }
.ew-app-summary .ew-sum-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; color: #3e4850; font-size: 12.5px; }
.ew-sum-row span { display: inline-flex; align-items: center; gap: 7px; }
.ew-sum-row b { color: #191c1e; }
.ew-sum-total { margin-top: 4px; padding-top: 10px !important; border-top: 1px solid #eceef1; font-weight: 700; }
.ew-app-email { margin-top: 10px; }
.ew-app-email span { display: block; color: #6e7881; font-size: 11px; }
.ew-app-email strong { font-size: 13px; }
.ew-pay-btn { display: flex; align-items: center; justify-content: center; gap: 3px; height: 46px; margin-top: 16px; border-radius: 12px; font-size: 18px; font-weight: 600; }
.ew-pay-apple { background: #000; color: #fff; }
.ew-pay-google { background: #000; color: #fff; font-family: Roboto, Inter, sans-serif; font-weight: 500; }
.ew-gpay b { display: inline-grid; width: 22px; height: 22px; place-items: center; margin-right: 5px; border-radius: 50%; background: #fff; font-size: 15px; }
.ew-pay-alt { margin-top: 10px; color: var(--ew-app); font-size: 12.5px; font-weight: 700; text-align: center; }
.ew-apple-mark { width: 16px; height: 18px; margin-right: 3px; fill: currentColor; }
.ew-app-btn { display: flex; align-items: center; justify-content: center; height: 46px; margin-top: 12px; border-radius: 14px; background: var(--ew-app); color: #fff; font-size: 14.5px; font-weight: 700; }
.ew-link { display: block; margin-top: 10px; color: var(--ew-app); font-size: 12px; font-weight: 700; }
.ew-center { text-align: center; }
.ew-app-success { display: flex; flex-direction: column; align-items: center; padding: 60px 18px 26px; background: linear-gradient(160deg, var(--ew-app-dark), var(--ew-app)); color: #fff; text-align: center; }
.ew-success-tick { display: inline-grid; width: 52px; height: 52px; margin-bottom: 12px; place-items: center; border-radius: 50%; background: #10b981; color: #fff; box-shadow: 0 0 0 8px rgba(16, 185, 129, .25); }
.ew-success-tick svg { width: 26px; height: 26px; }
.ew-install-card strong { display: block; margin-bottom: 4px; font-size: 15px; }
.ew-screen .ew-install-card p { margin: 0; color: #3e4850; font-size: 12px; line-height: 1.5; }
.ew-guide-card { margin-bottom: 10px; }
.ew-guide-card strong { display: block; font-size: 14px; }
.ew-screen .ew-guide-card p { margin: 4px 0 8px; color: #3e4850; font-size: 11.5px; line-height: 1.45; }
.ew-qr { display: grid; width: 118px; height: 118px; margin: 4px auto; padding: 9px; place-items: center; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e0e3e6; color: #191c1e; }
.ew-qr-svg { width: 100%; height: 100%; fill: currentColor; }
.ew-code { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #f2f4f7; font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
.ew-code b { padding: 4px 10px; border-radius: 8px; background: var(--ew-app); color: #fff; font-family: Inter, sans-serif; font-size: 11px; }
.ew-app-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 9px 10px 22px; border-top: 1px solid #e6e8eb; background: rgba(255, 255, 255, .96); }
.ew-app-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #6e7881; font-size: 10px; font-weight: 600; }
.ew-app-tabs svg { width: 19px; height: 19px; }
.ew-app-tabs .is-active { color: var(--ew-app); }
.ew-dim::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }

/* Sheets */
.ew-sheet { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; padding: 12px 16px 30px; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -10px 30px rgba(0, 0, 0, .18); animation: ew-sheet .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes ew-sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.ew-grabber { display: block; width: 36px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: #d1d5db; }
.ew-screen .ew-sheet-title { margin: 0 0 12px; font-size: 17px; font-weight: 800; font-family: Inter, sans-serif; }
.ew-sheet-app { font-family: Inter, sans-serif; }
.ew-point { display: flex; gap: 10px; margin-bottom: 10px; }
.ew-point > span { display: inline-grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: rgba(198, 231, 255, .7); color: var(--ew-app); }
.ew-point svg { width: 16px; height: 16px; }
.ew-point strong { display: block; font-size: 12.5px; }
.ew-screen .ew-point p { margin: 1px 0 0; color: #3e4850; font-size: 11px; line-height: 1.4; }
.ew-sheet-apple { padding: 14px 16px 34px; background: #f2f2f7; }
.ew-sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ew-apple-pay { display: inline-flex; align-items: center; gap: 2px; font-size: 18px; font-weight: 600; }
.ew-sheet-x { color: var(--ew-ios-blue); font-size: 14px; }
.ew-ap-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 8px; border-radius: 12px; background: #fff; }
.ew-ap-row > div { flex: 1 1 auto; }
.ew-ap-row strong { display: block; font-size: 13px; }
.ew-ap-row span { color: #8e8e93; font-size: 11.5px; }
.ew-ap-label { display: block; color: #8e8e93; font-size: 10.5px; letter-spacing: .04em; }
.ew-ap-amount { font-size: 22px !important; font-weight: 700; }
.ew-card-chip { flex: 0 0 auto; width: 38px; height: 25px; border-radius: 5px; background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.ew-ap-confirm { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 4px; color: #111; font-size: 13px; font-weight: 600; }
.ew-side-icon { width: 30px; height: 30px; border: 2.5px solid var(--ew-ios-blue); border-radius: 8px; box-shadow: inset -6px 0 0 -3px var(--ew-ios-blue); }
.ew-sheet-google { padding: 18px 18px 30px; font-family: Roboto, Inter, sans-serif; }
.ew-gp-head { margin-bottom: 14px; }
.ew-gpay-logo { font-size: 18px; font-weight: 500; color: #3c4043; }
.ew-screen .ew-gp-merchant { color: #5f6368; font-size: 12.5px; }
.ew-screen .ew-gp-amount { margin-bottom: 14px; font-size: 26px; font-weight: 400; }
.ew-gp-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-block: 1px solid #e8eaed; margin-bottom: 16px; }
.ew-gp-row > div { flex: 1 1 auto; }
.ew-gp-row strong { display: block; font-size: 13px; font-weight: 500; }
.ew-gp-row span { color: #5f6368; font-size: 11.5px; }
.ew-gp-btn { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 22px; background: #1a73e8; color: #fff; font-size: 14px; font-weight: 500; }

/* iOS */
.ew-ios { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: 44px; background: #f2f2f7; }
.ew-ios-bg { position: absolute; inset: 0; background: linear-gradient(180deg, #dfe6f0, #c9d3e1); }
.ew-ios-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 10px 8px; }
.ew-ios-back { display: inline-flex; min-width: 0; align-items: center; gap: 4px; overflow: hidden; color: var(--ew-ios-blue); font-size: 14px; white-space: nowrap; }
.ew-ios-back svg { flex: 0 0 auto; }
.ew-ios-nav-title { padding: 0 6px; }
.ew-ios-back svg { width: 9px; height: 15px; }
.ew-ios-nav-title { font-size: 15px; font-weight: 600; }
.ew-ios-scroll { padding: 6px 14px; }
.ew-ios-group { margin-bottom: 18px; overflow: hidden; border-radius: 11px; background: #fff; }
.ew-ios-cell { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 14px; font-size: 14px; }
.ew-ios-cell + .ew-ios-cell::before, .ew-tap + .ew-ios-cell::before, .ew-ios-cell + .ew-tap .ew-ios-cell::before { content: ""; position: absolute; top: 0; inset-inline-start: 14px; inset-inline-end: 0; height: .5px; background: #c6c6c8; }
.ew-ios-val { display: inline-flex; align-items: center; gap: 7px; color: #8e8e93; }
.ew-ios-cell.is-picked svg { width: 17px; height: 17px; color: var(--ew-ios-blue); }
.ew-screen .ew-ios-caption { margin: 0 14px 6px; color: #6d6d72; font-size: 11.5px; text-transform: uppercase; letter-spacing: .02em; }
.ew-screen .ew-ios-caption-low { text-transform: none; line-height: 1.4; }
.ew-ios-group .ew-tap { border-radius: 11px; }
.ew-ios-group .ew-tap::after { inset: 1px; border-radius: 10px; }
.ew-new { animation: ew-new 1.4s ease; }
@keyframes ew-new { from { background: #e0f2fe; } to { background: transparent; } }
.ew-switch { position: relative; display: inline-block; flex: 0 0 auto; width: 46px; height: 28px; border-radius: 999px; background: #e9e9eb; transition: background .25s ease; }
.ew-switch span { position: absolute; top: 2px; inset-inline-start: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .25s ease; }
.ew-switch.is-on { background: var(--ew-ios-green); }
.ew-switch.is-on span { transform: translateX(18px); }
.ew-ios-sheet { position: absolute; z-index: 10; left: 8px; right: 8px; bottom: 8px; padding: 12px 18px 22px; border-radius: 34px; background: #fff; text-align: center; animation: ew-sheet .35s cubic-bezier(.2, .7, .2, 1); }
.ew-ios-hero { display: grid; width: 64px; height: 64px; margin: 6px auto 12px; place-items: center; border-radius: 18px; background: linear-gradient(145deg, #34c759, #30b350); color: #fff; }
.ew-ios-hero svg { width: 34px; height: 34px; }
.ew-ios-hero-sm { width: 52px; height: 52px; border-radius: 14px; }
.ew-ios-hero-sm svg { width: 28px; height: 28px; }
.ew-screen .ew-ios-sheet-title, .ew-screen .ew-ios-setup-title { margin: 0 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.ew-screen .ew-ios-sheet-text { margin: 0 0 16px; color: #3c3c43; font-size: 13px; line-height: 1.45; }
.ew-ios-sheet .ew-ios-group { background: #f2f2f7; text-align: left; }
.ew-ios-btn { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 14px; background: var(--ew-ios-blue); color: #fff; font-size: 15.5px; font-weight: 600; }
.ew-ios-btn-soft { margin: 6px 0 0; background: #fff; color: var(--ew-ios-blue); }
.ew-ios-setup { flex: 1 1 auto; padding: 22px 16px 0; text-align: center; }
.ew-ios-setup .ew-ios-group { text-align: left; }
.ew-screen .ew-ios-note { margin: -8px 4px 0; color: #6d6d72; font-size: 11.5px; line-height: 1.4; text-align: left; }
.ew-ios-bottom { margin: 0 16px 30px; }

/* Android */
.ew-and { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: 36px; background: #f8f9fb; color: #1f1f1f; }
.ew-and-top { height: 40px; padding: 8px 14px; }
.ew-and-top svg { width: 22px; height: 22px; color: #1f1f1f; }
.ew-screen .ew-and-title { margin: 6px 20px 14px; font-size: 26px; font-weight: 400; letter-spacing: -.01em; }
.ew-and-body { flex: 1 1 auto; padding: 0 12px; }
.ew-and-search { display: flex; align-items: center; gap: 10px; height: 46px; margin: 0 4px 14px; padding: 0 16px; border-radius: 23px; background: #e9eef6; color: #444746; font-size: 14px; }
.ew-and-search svg { width: 18px; height: 18px; }
.ew-and-row { display: flex; align-items: center; gap: 16px; padding: 12px 12px; border-radius: 18px; }
.ew-and-row strong { display: block; font-size: 15px; font-weight: 400; }
.ew-and-row span:not(.ew-and-ico):not(.ew-switch):not(.ew-switch span) { display: block; color: #444746; font-size: 12.5px; }
.ew-and-row > div { flex: 1 1 auto; }
.ew-and-ico { display: inline-grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--ew-and-container); color: #041e49; }
.ew-and-ico svg { width: 19px; height: 19px; }
.ew-and-add strong { color: var(--ew-and-primary); font-weight: 500; }
.ew-and-add .ew-and-ico { background: transparent; color: var(--ew-and-primary); }
.ew-screen .ew-and-sub { margin: 10px 12px 4px; color: var(--ew-and-primary); font-size: 13px; font-weight: 500; }
.ew-and-switch-row { padding-right: 14px; }
.ew-and-switch { width: 52px; height: 32px; background: #e1e3e1; box-shadow: inset 0 0 0 2px #747775; }
.ew-and-switch span { top: 8px; inset-inline-start: 8px; width: 16px; height: 16px; background: #747775; box-shadow: none; transition: transform .25s ease, width .25s ease, height .25s ease, top .25s ease, background .25s ease; }
.ew-and-switch.is-on { background: var(--ew-and-primary); box-shadow: none; }
.ew-and-switch.is-on span { top: 4px; width: 24px; height: 24px; background: #fff; transform: translateX(20px); }
.ew-and-scan { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 36px; background: #111; color: #fff; text-align: center; }
.ew-and-scan .ew-and-top { align-self: stretch; text-align: left; }
.ew-and-scan .ew-and-top svg { color: #fff; }
.ew-screen .ew-and-scan-title { margin: 8px 24px 20px; font-size: 18px; }
.ew-viewfinder { position: relative; width: 190px; height: 190px; border-radius: 24px; background: linear-gradient(135deg, #2a2d31, #1b1d20); box-shadow: 0 0 0 999px rgba(0, 0, 0, .2); }
.ew-viewfinder::before { content: ""; position: absolute; inset: 0; border-radius: 24px; border: 3px solid rgba(255, 255, 255, .9); clip-path: polygon(0 0, 30% 0, 30% 4%, 4% 4%, 4% 30%, 0 30%, 0 70%, 4% 70%, 4% 96%, 30% 96%, 30% 100%, 70% 100%, 70% 96%, 96% 96%, 96% 70%, 100% 70%, 100% 30%, 96% 30%, 96% 4%, 70% 4%, 70% 0, 100% 0, 100% 100%, 0 100%); }
.ew-viewfinder span { position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: #8ab4f8; box-shadow: 0 0 12px #8ab4f8; animation: ew-scan 2s ease-in-out infinite; }
@keyframes ew-scan { 0%, 100% { top: 18%; } 50% { top: 82%; } }
.ew-screen .ew-and-scan-note { margin: 22px 30px 14px; color: #c4c7c5; font-size: 12.5px; line-height: 1.45; }
.ew-and-text-btn { padding: 10px 18px; border-radius: 20px; color: #a8c7fa; font-size: 14px; font-weight: 500; }
.ew-screen .ew-and-help { margin: 0 8px 14px; color: #444746; font-size: 13px; line-height: 1.45; }
.ew-and-input { position: relative; margin: 0 6px; padding: 16px 14px 12px; border: 2px solid var(--ew-and-primary); border-radius: 6px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.ew-and-input-label { position: absolute; top: -9px; left: 10px; padding: 0 4px; background: #f8f9fb; color: var(--ew-and-primary); font-family: Roboto, Inter, sans-serif; font-size: 11px; }
.ew-and-actions { display: flex; justify-content: flex-end; margin: 22px 6px 0; }
.ew-and-btn { padding: 10px 22px; border-radius: 20px; background: var(--ew-and-primary); color: #fff; font-size: 14px; font-weight: 500; }
.ew-and-dialog-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.ew-and-dialog { position: absolute; z-index: 10; left: 22px; right: 22px; top: 50%; padding: 22px 22px 14px; transform: translateY(-50%); border-radius: 28px; background: #f0f4f9; text-align: center; animation: ew-fade .3s ease; }
@keyframes ew-fade { from { opacity: 0; transform: translateY(-46%); } to { opacity: 1; transform: translateY(-50%); } }
.ew-and-dialog-ico { display: inline-grid; color: #1f1f1f; }
.ew-and-dialog-ico svg { width: 24px; height: 24px; }
.ew-screen .ew-and-dialog-title { margin: 12px 0 8px; font-size: 21px; }
.ew-screen .ew-and-dialog p:not(.ew-and-dialog-title) { margin: 0 0 18px; color: #444746; font-size: 13px; line-height: 1.45; text-align: left; }
.ew-and-dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; color: var(--ew-and-primary); font-size: 14px; font-weight: 500; }
.ew-and-dialog-actions b { display: inline-block; padding: 8px 12px; font-weight: 500; }
.ew-and-toast { display: flex; align-items: center; gap: 8px; margin: 16px 6px 0; padding: 12px 14px; border-radius: 10px; background: #303030; color: #f2f2f2; font-size: 13px; }
.ew-and-toast svg { width: 16px; height: 16px; color: #6dd58c; }
.ew-and-radio { display: flex; align-items: center; gap: 16px; padding: 13px 12px; font-size: 15px; }
.ew-radio { width: 20px; height: 20px; border: 2px solid #444746; border-radius: 50%; }
.ew-and-radio.is-on .ew-radio { border-color: var(--ew-and-primary); box-shadow: inset 0 0 0 3px #f8f9fb; background: var(--ew-and-primary); }

/* Final summary */
.ew-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 74px 20px 20px; background: linear-gradient(180deg, #ecfdf5, #fff 55%); font-family: Inter, sans-serif; text-align: center; }
.ew-screen .ew-done-title { margin: 0 0 16px; font-size: 20px; font-weight: 800; }
.ew-done-list { width: 100%; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px -10px rgba(25, 28, 30, .3); }
.ew-done-list div { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 12.5px; }
.ew-done-list div + div { border-top: 1px solid #eef0f3; }
.ew-done-list b { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; }
.ew-done-list .is-on { background: #d1fae5; color: #047857; }
.ew-done-list .is-off { background: #fee2e2; color: #b91c1c; }
.ew-screen .ew-done-note { margin: 16px 6px 0; color: #3e4850; font-size: 12px; line-height: 1.5; }

/* Responsive */
/* Narrow screens: instruction, then the phone, then the controls. */
@media (max-width: 860px) {
    .ew-stage { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .ew-copy { display: contents; }
    .ew-progress { order: 1; }
    .ew-count { order: 2; }
    .ew-caption { order: 3; }
    .ew-figure { order: 4; align-self: center; margin-bottom: 1rem; }
    .ew-controls { order: 5; }
    .ew-hint { order: 6; }
    .ew-steplist { display: none; }
    .ew-body { min-height: 0; margin-bottom: 1rem; }
}
@media (max-width: 560px) {
    .ew { padding: 1.1rem .9rem 1.25rem; border-radius: 1.35rem; }
    .ew-head { align-items: stretch; }
    .ew-platform { width: 100%; }
    .ew-platform button { flex: 1 1 0; justify-content: center; }
    .ew-chapters { gap: .35rem; }
    .ew-chapters button { flex-direction: column; justify-content: center; gap: .3rem; min-height: 3.6rem; padding: .5rem .3rem; font-size: .78rem; text-align: center; }
    .ew-chapter-label { display: none; }
    .ew-chapter-short { display: inline; }
    .ew-device { transform: scale(.94); transform-origin: top center; margin-bottom: -36px; }
    .ew-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ew *, .ew *::before, .ew *::after { animation: none !important; transition: none !important; }
}

/* Page wrapper used where the walkthrough sits between page sections. */
.ew-section { padding: clamp(2rem, 6vw, 4.5rem) 0; }
.ew-section-inner { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.ew-section-intro { max-width: 46rem; margin: 0 auto 1.5rem; text-align: center; }
.ew-section-intro p { margin: .5rem 0 0; color: #5b6475; font-size: 1.05rem; line-height: 1.6; }
.hg-walkthrough { margin: 2.5rem 0; }
/* Inside the 760px article column the phone sits under the copy. */
.blog-content [data-esim-walkthrough], .blog-content .ew { margin: 2.5rem 0 !important; }
.blog-content .ew h2, .blog-content .ew h3, .blog-content .ew h4 { margin: 0 0 .5rem !important; scroll-margin-top: 7rem; }
.blog-content .ew-heading { font-size: 1.5rem !important; }
.blog-content .ew p { margin: 0 0 1rem; }
.blog-content .ew ol { margin: 0 0 1.4rem !important; padding: 0 !important; }
.blog-content .ew li { margin: 0 !important; padding: 0 !important; }
.blog-content .ew li::marker { content: none; }
.blog-content .ew button { text-decoration: none; }
.ew-ios-group .ew-tap::before { inset-inline-end: 8px; top: 50%; margin-top: -9px; }

/* Before you fly / When you land marker on roaming screens */
.ew-phase { position: absolute; z-index: 26; left: 50%; bottom: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; transform: translateX(-50%); border-radius: 999px; font-family: Inter, system-ui, sans-serif; font-size: 11.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .35); }
.ew-phase svg { width: 14px; height: 14px; }
.ew-phase-before { background: #fff7ed; color: #9a3412; box-shadow: inset 0 0 0 1.5px #fdba74, 0 6px 16px -6px rgba(15, 23, 42, .35); }
.ew-phase-land { background: #ecfdf5; color: #047857; box-shadow: inset 0 0 0 1.5px #6ee7b7, 0 6px 16px -6px rgba(15, 23, 42, .35); }
.ew-screen .ew-done-group { display: flex; align-self: stretch; align-items: center; gap: 6px; margin: 12px 4px 6px; color: #3e4850; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ew-done-group svg { width: 14px; height: 14px; }
.ew-done { padding-top: 64px; }
.ew-screen .ew-done-title { margin-bottom: 6px; }

/* Right-to-left pages (Arabic) */
.ew[dir="rtl"] .ew-dir { transform: scaleX(-1); }
.ew[dir="rtl"] .ew-switch.is-on span { transform: translateX(-18px); }
.ew[dir="rtl"] .ew-and-switch.is-on span { transform: translateX(-20px); }
.ew[dir="rtl"] .ew-screen-inner { font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }
.ew[dir="rtl"] .ew-and-input-label { left: auto; right: 10px; }
.ew[dir="rtl"] .ew-and-actions { justify-content: flex-start; }
.ew[dir="rtl"] .ew-and-dialog-actions { justify-content: flex-start; }
.ew[dir="rtl"] .ew-screen .ew-and-dialog p:not(.ew-and-dialog-title) { text-align: right; }
.ew[dir="rtl"] .ew-ios-note { text-align: right; }

/* Short labels never wrap (CJK text otherwise breaks per character). */
.ew-app-filters { overflow: hidden; }
.ew-app-filters span, .ew-code b, .ew-done-list b, .ew-and-dialog-actions span, .ew-and-dialog-actions b, .ew-and-btn, .ew-gp-btn, .ew-app-btn, .ew-ios-btn, .ew-phase { white-space: nowrap; flex-shrink: 0; }
.ew-code span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ew-done-list div span { min-width: 0; }
