/* Reason: v3 is a ticket-based visual skin; the shared foundation retains tested controls, accessibility and font licensing. */
:root{background:#f2f6f7}
body{--ink:#132e3b;--muted:#586d79;--line:#dce5e9;--surface:#edf3f5;--canvas:#f2f6f7;background:var(--canvas);color:var(--ink)}
button{border-radius:12px;transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease}
.primary,a.primary{min-height:52px;border-color:var(--button-bg);border-radius:13px;font-size:18px;box-shadow:0 3px 0 #17380012}
.secondary{color:var(--ink);background:#fff;border-color:var(--line)}
.text-button{color:var(--muted)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--secondary);outline-offset:3px}
.page-heading h1[tabindex="-1"]:focus{outline:none}

/* Reason: a compact navy masthead gives every screen the same merchant identity without adding navigation. */
.masthead{background:#102d3a;color:#fff;border-bottom:3px solid #76bc21}
.shell{width:calc(100% - 48px);max-width:1080px}
.site-header{min-height:74px;border:0}
.brand{font-size:25px;letter-spacing:-.8px;color:#fff}
.brand span{color:#a6e252}
.header-history{min-height:44px;padding:9px 13px;border:1px solid #49606c;border-radius:12px;color:#fff;background:transparent;font-size:14px}
.header-history svg{color:#a6e252}
.history-count{background:#e6f5d5;color:#254c17}
.preview-ribbon{margin-top:0;min-height:27px;padding-bottom:5px;justify-content:flex-start}
.preview-link{min-height:24px;padding:0;color:#c1d0d7;font-size:11px;text-decoration:none}
.preview-link:hover{color:#fff;text-decoration:underline}
main.shell{max-width:680px;padding-block:30px 24px}
.site-footer{max-width:1080px;border-top:1px solid #dbe5e9;padding-block:18px;margin-block:20px 22px;color:#5b6f7a;font-size:12px}
.page-heading h1{font-size:30px;letter-spacing:-.3px}
.page-heading p{color:var(--muted);font-size:14px}

/* Reason: the same four products become equal digital tickets; their order and actions remain unchanged. */
body[data-step="catalog"] main.shell,body[data-step="wallet"] main.shell{max-width:1080px}
.catalog-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 27px}
.catalog-intro .page-heading{margin:0!important;text-align:start!important}
.catalog-intro .page-heading h1{font-size:44px;line-height:1.25;margin-bottom:9px;color:#102d3a}
.catalog-intro .page-heading p{font-size:15px}
.catalog-emblem{display:grid;place-items:center;width:76px;height:76px;flex:0 0 auto;border:1px solid #caddb9;border-radius:20px;background:#e8f2de;color:#325818;transform:rotate(-8deg);box-shadow:5px 5px 0 #e0e8eb}
.catalog-emblem svg{width:38px;height:38px;stroke-width:1.4}
/* Reason: a compact Jawwal-coloured invitation makes the single-card route visible before customers choose normal products. */
.quick-offer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 20px;padding:16px 20px;border:1px solid #c9dfb1;border-inline-start:4px solid #76bc21;border-radius:16px;background:#eef6e5}
.quick-offer-copy{min-width:0}
.quick-offer h2{margin:0;font-size:20px;line-height:1.5;color:#25421b}
.quick-offer p{margin:4px 0 0;font-size:14px;line-height:1.6;color:#465c3e}
.quick-offer .quick-offer-action{flex:0 0 auto;min-height:50px;padding:12px 18px;border-color:#4f8216;background:#4f8216;color:#fff;font-size:16px;line-height:1.5;box-shadow:none;white-space:normal}
/* Reason: keep a full-width touch action on phones without competing with the fixed Continue control. */
@media(max-width:600px){.quick-offer{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px 16px;margin-bottom:16px}.quick-offer h2{font-size:19px}.quick-offer p{font-size:13px}.quick-offer .quick-offer-action{width:100%;min-height:48px;padding:10px 12px}}
.catalog-tabs{width:340px;max-width:100%;margin-bottom:19px;padding:4px;gap:4px;border:1px solid #d6e1e6;border-radius:14px;background:#e8eff2}
.catalog-tabs::before{inset-block:4px;right:4px;width:calc(50% - 6px);border:0;border-radius:10px;background:#102d3a;box-shadow:none}
.catalog-tabs button{min-height:44px;color:#516772;font-size:14px}
.catalog-tabs button[aria-pressed="true"]{color:#fff}
.product-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.product-row{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:14px;min-height:225px;padding:20px 18px 16px;border:1px solid #d9e3e7;border-radius:18px;background:#fff;box-shadow:0 4px 12px #183a4910;overflow:visible}
.product-row::before,.product-row::after{content:"";position:absolute;bottom:62px;width:12px;height:12px;border:1px solid #d9e3e7;border-radius:50%;background:var(--canvas);pointer-events:none}
.product-row::before{inset-inline-start:-7px;border-inline-start-color:transparent}
.product-row::after{inset-inline-end:-7px;border-inline-end-color:transparent}
.product-row.selected{border-color:#76bc21;background:#f5faee;box-shadow:0 0 0 1px #76bc21,0 6px 18px #62892412}
.product-row.selected::before,.product-row.selected::after{border-color:#76bc21}
.product-row.selected::before{border-inline-start-color:transparent}
.product-row.selected::after{border-inline-end-color:transparent}
.product-copy h3{min-height:39px;font-size:17px;line-height:1.6;color:#183341}
.duration-value{font-size:31px;letter-spacing:-.8px;line-height:1}
.product-spec{font-size:13px;color:#526b78;margin-top:1px;line-height:1.5}
.product-purchase{display:flex;flex-direction:column;gap:11px;align-items:center;width:100%;margin-top:auto}
.product-price{display:flex;align-items:baseline;justify-content:flex-start;gap:6px;width:100%;min-height:43px;padding-bottom:11px;border-bottom:1px dashed #c9d8de;color:#102d3a}
.product-price strong{font-size:34px;line-height:1;font-variant-numeric:tabular-nums}
.product-price small{font-size:12px;color:#586d79}
.stepper{width:114px;min-height:46px;background:#fff;border:1px solid #d7e2e6;border-radius:11px}
.stepper button{flex:0 0 44px;width:44px;height:44px;min-height:44px;border-radius:10px;font-size:21px}
.stepper output{flex:0 0 24px;min-width:24px;font-size:15px}
.stepper.empty{width:114px;height:46px;border-color:#d6e6c9;background:#edf5e5}
.stepper.empty button{flex:1;width:100%;color:#3f681c}
.product-row.selected .stepper button[data-action="add"]{background:#4f8216;color:#fff}
/* Reason: keep the next action visible at every scroll position, with a safe-area gap below the floating bar. */
.sticky-checkout{position:fixed;inset-inline:0;bottom:max(12px,env(safe-area-inset-bottom));z-index:20;width:calc(100% - 48px);max-width:1080px;gap:22px;margin:0 auto;padding:16px 20px;border:1px solid #d7e2e7;border-radius:18px;background:#fff;box-shadow:0 8px 32px #17374726}
/* Reason: reserve scroll space so the floating summary cannot trap the last card or the footer behind it. */
body[data-step="catalog"],body[data-step="wallet"]{padding-bottom:calc(130px + env(safe-area-inset-bottom))}
.product-row,.product-row button{scroll-margin-bottom:calc(150px + env(safe-area-inset-bottom))}
.sticky-checkout>button{flex:0 1 290px;min-height:52px;margin-inline-start:auto}
.sticky-checkout .cart-count{max-width:none;font-size:15px;color:#244351}
.sticky-checkout .empty-state{padding-block:7px;font-size:14px}
.sticky-checkout:has(.minimum-row){gap:10px;flex-wrap:nowrap}
.sticky-checkout:has(.minimum-row)>.minimum-row{flex-basis:auto}
.minimum-row{justify-content:flex-end;gap:18px}
.minimum-row>span{flex:0 1 auto}
.support-panel{margin-top:18px;padding-top:0;border:0;color:#586d79}
.support-row{justify-content:center;font-size:12px;text-align:center}
.support-row>span{flex:0 1 auto}
.support-row svg{color:#4f8216}

/* Reason: review and checkout use one receipt-like surface so the journey remains recognisable after leaving the catalogue. */
dialog.modal{width:min(460px,calc(100% - 28px));padding:28px;border:0;border-top:5px solid #102d3a;border-radius:23px;background:#fff;box-shadow:0 25px 90px #09253540}
dialog.modal::backdrop{background:#071e2ca3;backdrop-filter:blur(3px)}
.modal-heading{padding-bottom:17px;margin-bottom:0;border-bottom:1px dashed #cbdbe2}
.modal-heading h2{font-size:27px}
.summary-list{gap:13px;margin-block:20px}
.summary-line{font-size:15px}
.total-row{margin-top:18px;padding-block:18px;border-top:1px dashed #cbdbe2}
.total-row strong{font-size:30px;color:#102d3a}
.summary-caption{margin-top:7px;font-size:14px;color:#536b78}
.provider-options{grid-template-columns:1fr;gap:10px;margin-top:12px}
.provider-option{flex-direction:row;justify-content:flex-start;gap:15px;min-height:66px;padding:12px 18px;border-radius:14px;font-size:17px;text-align:start}
.provider-option img{height:32px;max-width:48px}
.provider-option>span{flex:1}
.provider-option::after{content:"";width:8px;height:8px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-inline-end:4px}
.provider-option.jawwal{background:#f5faed;border-color:#d2e5bb;color:#3c641c}
.provider-option.palpay{background:#fcf2f9;border-color:#efd2e7;color:#8d176b}
.dialog-actions{margin-top:15px}
.step-nav{margin-bottom:20px;font-size:13px}
.step-nav .provider-badge{font-size:13px}
.step-nav .text-button{color:#1f4254}
.journey-progress{max-width:100%;margin:0 auto 27px;gap:0;position:relative}
.journey-progress>li{position:relative;flex-direction:column;gap:7px;padding:0 5px;border:0;color:#536c79;font-size:12px}
.journey-progress>li::before{content:"";position:absolute;top:16px;inset-inline:0;height:1px;background:#d0dfe5;z-index:0}
.journey-progress>li:first-child::before{inset-inline-start:50%}
.journey-progress>li:last-child::before{inset-inline-end:50%}
.journey-progress>li>span{position:relative;z-index:1;width:33px;height:33px;border:1px solid #cedde3;border-radius:50%;background:var(--canvas);font-size:12px;font-weight:700;color:#5b707c}
.journey-progress>li.complete>span{border-color:#bad898;background:#e9f3df;color:#416b20}
/* Reason: completed-step labels retain readable contrast on the pale v3 canvas. */
.journey-progress>li.complete{color:#536c79}
.journey-progress>li[data-current="true"]{color:var(--ink)}
.journey-progress>li[data-current="true"]>span{border-color:var(--button-bg);background:var(--button-bg);color:#fff;box-shadow:0 0 0 5px var(--accent-soft)}
body[data-provider="palpay"] .journey-progress>li.complete>span{border-color:#e8b5d9;background:#fcf0f8;color:#8d176b}
.panel,.checkout-card{position:relative;padding:30px;border:1px solid #dce5e9;border-top:4px solid var(--accent);border-radius:23px;background:#fff;box-shadow:0 12px 34px #1b3d4e08}
.checkout-card .page-heading h1{font-size:28px}
.device-choice{margin-bottom:25px}
.device-choice button{min-height:49px;border:0;background:var(--accent-soft);font-size:14px;border-radius:12px}
.device-choice button.active{color:var(--ink);border:1px solid color-mix(in srgb,var(--accent) 25%,white)}
.field{margin-bottom:22px;gap:11px}
.field label{font-size:16px}
.field input,.phone-input{height:64px;border-radius:13px;border:1px solid #cbdbe2;background:#f5f8fa;font-family:Tajawal,Arial,sans-serif;font-size:26px}
.field input::placeholder{font-size:23px;color:#6a7f8b}
.field input:focus{background:#fff;border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.confirmation-number,.phone-large{margin-block:22px;padding-block:18px;border-top:1px dashed #ccdbe1;border-bottom:1px dashed #ccdbe1;font-size:clamp(27px,6.4vw,38px);letter-spacing:.5px;color:#102d3a}
body[data-step="confirm"] .checkout-card{padding-block:30px}
.checkout-card .actions{margin-top:23px}
.other-device-note{font-size:13px;color:#536b78}
.recent-phones button{background:#f5f8fa;border-color:#dfE8ec;color:#536b78}

/* Reason: transfer details keep their original content while the amount becomes the visual anchor of the ticket. */
.transfer-heading{padding-bottom:0;margin-bottom:10px;text-align:center}
.transfer-heading .provider-badge{padding:7px 12px;border-radius:10px;background:var(--accent-soft);color:var(--ink);font-size:14px;margin-bottom:15px}
.transfer-total{justify-content:center;gap:10px;margin:8px 0 27px;padding-bottom:24px;border-bottom:1px dashed #cbdbe2}
.transfer-total strong{font-size:38px;color:#102d3a}
.transfer-total>span{font-size:13px}
.transfer-steps{gap:22px;margin-bottom:27px}
.transfer-steps li{padding-inline-start:43px;font-size:15px}
.transfer-steps li::before{width:29px;height:29px;top:2px;border:0;border-radius:9px;background:#ecf2f5;color:#2b5062;font-size:12px}
.transfer-steps li p{font-size:13px;color:#526b79}
.transfer-preview-hint,.retry-hint{color:#586d79}
.transfer-details{padding-top:18px;border-top:1px dashed #cadbe2}
.transfer-details>div{padding-block:3px}
body[data-step="return"] .quoted-success{color:var(--secondary)}
body[data-step="return"] .checkout-card .page-heading h1{font-size:25px;line-height:1.65}

/* Reason: the verification ring remains a factual timer, with no extra progress claims or looping decoration. */
body[data-step="waiting"] .checkout-card{padding-block:38px}
.wait-clock{width:132px;height:132px;margin:5px auto 26px}
.wait-clock>svg{width:132px;height:132px}
.wait-clock .ring-track{stroke:#e8f0f3;stroke-width:5}
.wait-clock .ring-progress{stroke-width:5}
.wait-clock>.countdown{font-size:35px;color:#102d3a}
.waiting-progress{margin-block:25px!important;padding:17px 21px;border-radius:14px;background:#f5f8fa}
.waiting-progress>li{color:#536c79;font-size:13px}
.waiting-progress .done{color:#536c79}
.waiting-progress .current{color:var(--secondary)}

/* Reason: purchased tickets share the catalogue shape, with one clear use action and accessible copy/PDF tools. */
body[data-step="result"] main.shell,body[data-step="history"] main.shell{max-width:760px}
.receipt-heading{margin-bottom:25px}
.receipt-heading .page-heading h1{font-size:34px}
.success-mark{width:58px;height:58px;border-radius:18px;background:var(--accent-soft);color:var(--button-bg);box-shadow:0 5px 0 #163b4310}
.success-mark svg{width:28px;height:28px}
.receipt-meta{font-size:12px;color:#526b79}
/* Reason: long order references must wrap inside receipts, history and payment help on narrow screens. */
.receipt-meta,.history-order>p,.checkout-card>p{overflow-wrap:anywhere;min-width:0}
.card-list{gap:20px}
.internet-card{position:relative;padding:24px;border:1px solid #d7e2e7;border-top:5px solid var(--accent);border-radius:21px;background:#fff;box-shadow:0 8px 24px #17374708}
.card-header{padding-bottom:16px;margin-bottom:11px;border-bottom:1px dashed #cbdbe2}
.card-header h3{font-size:20px}
.card-number{color:#526b79;font-size:12px}
.status-badge{border:0;border-radius:7px;background:#eaf4df;color:#426423;font-size:11px;padding:5px 8px}
.credentials{margin-block:18px;gap:10px}
/* Reason: LTR card codes reserve space on the left where their copy control sits. */
.credential{background:#edf3f6;border-radius:12px;padding:13px 14px 13px 56px;color:#546c79;font-size:12px}
.credential strong{font-size:25px;color:#163444}
.credential>.icon-button{left:4px;color:#355b6c}
.internet-card .card-actions{gap:9px}
.internet-card .card-actions>.primary{min-height:49px;font-size:17px}
.internet-card .card-actions>.icon-button{height:49px;min-height:49px;width:46px;flex-basis:46px;border-radius:12px}
.demo-card-note{font-size:11px;color:#586d79}
.receipt-help{font-size:13px}
body[data-step="result"] #app>.actions .secondary{background:#e8eff3;border:1px solid #d1dfe5}
.account-stats{padding:20px 8px;background:#102d3a;border:0;border-radius:19px;box-shadow:0 6px 20px #0c273314}
.account-stats strong{font-size:29px;color:#fff}
.account-stats span{color:#c9d9e0;font-size:12px}
.account-stats>div+div{border-color:#365362}
.history-filters{gap:8px}
.history-filters button{min-height:44px;border-radius:12px;background:#fff;font-size:13px}
.history-filters button[aria-pressed="true"]{background:#102d3a;border-color:#102d3a;color:#fff}
.history-order{border-top:1px solid #cfdee5;padding-top:23px}
.history-empty{padding:42px 20px}
.history-empty>svg{width:46px;height:46px;color:#547e34;margin-bottom:7px}
.pending-strip{border:1px solid #b9d0dd;background:#eaf3f8;border-radius:14px;color:#1c4a64}
/* Reason: passive notices must never intercept taps or cover the fixed checkout action. */
.toast{border-radius:14px;background:#102d3a;color:#fff;box-shadow:0 7px 28px #102d3a33;pointer-events:none}
body[data-step="catalog"] .toast,body[data-step="wallet"] .toast{bottom:calc(max(12px,env(safe-area-inset-bottom)) + var(--checkout-height,100px) + 12px)}
.review-tools{max-width:760px}

/* Reason: four desktop tickets become two equal columns on phones without reducing any touch target. */
@media(max-width:900px){
 .product-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .product-row{min-height:218px}
 body[data-step="catalog"] main.shell,body[data-step="wallet"] main.shell{max-width:660px}
 .sticky-checkout{max-width:660px}
}
@media(max-width:600px){
 .shell{width:calc(100% - 32px)}
 .site-header{min-height:61px}
 .brand{font-size:23px}
 /* Reason: compact navigation keeps a full 44px touch target. */
 .header-history{min-height:44px;padding:7px 10px;font-size:13px}
 .preview-ribbon{min-height:23px;padding-bottom:4px}
 .preview-link{font-size:10px;min-height:20px}
 main.shell{padding-top:22px}
 .catalog-intro{gap:16px;margin-bottom:20px}
 .catalog-intro .page-heading h1{font-size:35px;margin-bottom:6px}
 .catalog-intro .page-heading p{font-size:13px}
 .catalog-emblem{width:54px;height:54px;border-radius:15px;box-shadow:3px 3px 0 #e0e8eb}
 .catalog-emblem svg{width:29px;height:29px}
 .catalog-tabs{width:100%;padding:3px;gap:3px;margin-bottom:14px}
 .catalog-tabs::before{inset-block:3px;right:3px;width:calc(50% - 4.5px)}
 .catalog-tabs[data-group="special"]::before{transform:translateX(calc(-100% - 3px))}
 .catalog-tabs button{font-size:13px;min-height:44px}
 .product-list{gap:12px}
 .product-row{min-height:197px;padding:13px 12px 12px;gap:11px;border-radius:16px}
 .product-row::before,.product-row::after{bottom:57px;width:10px;height:10px}
 .product-row::before{inset-inline-start:-6px}.product-row::after{inset-inline-end:-6px}
 .product-copy h3{min-height:33px;font-size:16px;line-height:1.65}
 .duration-value{font-size:28px}
 .product-spec{font-size:12px;margin-top:2px}
 .product-purchase{gap:10px}
 .product-price{min-height:41px;padding-bottom:10px;gap:4px}
 .product-price strong{font-size:30px}
 .product-price small{font-size:11px}
 .stepper,.stepper.empty{width:114px;height:46px}
 .sticky-checkout{width:calc(100% - 32px);padding:12px;gap:12px;border-radius:16px}
 .sticky-checkout>button{flex:1;margin:0;min-height:51px;font-size:17px}
 .cart-count{font-size:13px!important;max-width:64px!important}
 .sticky-checkout:has(.minimum-row){flex-wrap:wrap}
 .sticky-checkout:has(.minimum-row)>.minimum-row{flex-basis:100%;justify-content:space-between}
 .minimum-row{gap:9px}.minimum-row>span{flex:1;font-size:12px}.minimum-row>button{font-size:12px;padding-inline:10px}
 .support-panel{margin-top:15px}.support-row{font-size:11px;text-align:start;align-items:flex-start}
 .panel,.checkout-card{padding:22px 20px;border-radius:20px}
 .step-nav{margin-bottom:18px;font-size:12px}
 .journey-progress{margin-bottom:22px}
 .journey-progress>li{font-size:11px}
 .checkout-card .page-heading h1{font-size:24px}
 .field label{font-size:15px}
 .field input{height:60px;font-size:24px}
 .field input::placeholder{font-size:21px}
 .device-choice{margin-bottom:22px}
 .device-choice button{font-size:13px}
 .transfer-heading .page-heading{margin-bottom:12px}
 .transfer-total strong{font-size:32px}
 .transfer-steps{gap:19px}.transfer-steps li{font-size:14px;padding-inline-start:38px}
 .transfer-steps li p{font-size:12px}
 .transfer-preview-hint{font-size:10px}
 body[data-step="return"] .checkout-card .page-heading h1{font-size:22px}
 .internet-card{padding:18px;border-radius:18px}
 .card-header h3{font-size:18px}
 .credentials{grid-template-columns:1fr}
 .credential strong{font-size:23px}
 .internet-card .card-actions>.primary{font-size:15px}
 .receipt-heading .page-heading h1{font-size:29px}
 .account-stats{padding:17px 4px}.account-stats strong{font-size:25px}.account-stats span{font-size:10px}
 dialog.modal{padding:23px 22px;border-radius:20px}
 .provider-option{min-height:65px;padding:12px 15px}
 .site-footer{font-size:11px;margin-block:18px;padding-block:15px}
}
@media(max-width:359px){
 .shell{width:calc(100% - 24px)}
 .sticky-checkout{width:calc(100% - 24px)}
 main.shell{padding-top:19px}
 .product-list{gap:10px}
 .product-row{padding-inline:10px;min-height:199px}
 .product-copy h3{font-size:15px}.duration-value{font-size:27px}
 .product-price strong{font-size:28px}.product-price small{font-size:10px}
 .catalog-intro .page-heading h1{font-size:31px}
 .catalog-emblem{width:47px;height:47px}
 .checkout-card{padding:20px 16px}
 .step-nav>.row{gap:5px;max-width:calc(100% - 52px)}
 .step-nav .provider-badge{font-size:12px}
 .checkout-card .page-heading h1{font-size:22px}
 .primary{font-size:16px}
 .internet-card{padding:15px}
 .internet-card .card-actions{gap:7px}
 .internet-card .card-actions>.primary{font-size:14px;padding-inline:8px}
 .internet-card .card-actions>.icon-button{width:44px;flex-basis:44px}
 .card-header{gap:8px}.card-header h3{font-size:17px}
 .pending-strip{gap:7px;padding:10px;font-size:12px}
 .pending-strip button{padding-inline:9px;font-size:12px}
}
@media(hover:hover) and (pointer:fine){
 .header-history:not(:disabled):hover{background:#214453;color:#fff;border-color:#76919e}
 .product-row:hover{transform:translateY(-2px);border-color:#adc4cf;box-shadow:0 9px 22px #183a4914}
 .product-row.selected:hover{border-color:#76bc21}
 .stepper button:not(:disabled):hover{background:#e3efd6}
 .product-row.selected .stepper button[data-action="add"]:hover{background:#426e12}
 .provider-option:not(:disabled):hover{transform:translateX(-2px)}
}
/* Reason: shape, layout and navigation remain fully usable when all optional motion is disabled. */
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Reason: preserve quick checkout and previous orders while the normal checkout adopts the approved v3 layout. */
.header-actions{display:flex;align-items:center;gap:8px}.header-actions .header-history{font-family:inherit;cursor:pointer}
.live-notice{padding:13px;border:1px solid #dccfa8;border-radius:12px;background:#fff9e8;color:#655024}
.cancel-confirm{display:flex;gap:9px;align-items:center;min-height:44px;margin:16px 0}.cancel-confirm input{width:20px;height:20px;accent-color:var(--button-bg)}
.card-use-frame{width:100%;min-height:250px;border:0;border-radius:12px;margin:12px 0}
@media(max-width:600px){.header-actions{gap:6px}.header-actions .header-history{font-size:12px;padding-inline:8px}}
/* Reason: quick purchase uses the same v3 ticket shapes and one selection instead of quantity controls. */
.quick-products{grid-template-columns:repeat(3,minmax(0,1fr))}
.quick-products .product-row{text-align:start;color:var(--ink);width:100%;font:inherit}
.quick-products .product-copy{display:flex;flex-direction:column;gap:8px}
.quick-products .product-copy>strong{font-size:20px;line-height:1.6}
.quick-choice{display:block;text-align:center;padding:10px;border-radius:10px;background:#edf5e5;color:#3f681c;font-size:14px}
.quick-products .selected .quick-choice{background:#4f8216;color:white}
/* Reason: show factual delivery totals, maintain consistent support surfaces, and preserve readable OTP entry. */
.honest-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.support-link{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px;border:1px solid var(--line);border-radius:12px;text-decoration:none;text-align:center}
#otp,#loyaltyCode{text-align:center;letter-spacing:10px;font-variant-numeric:tabular-nums}
#waitingActions[hidden]{display:none}
@media(max-width:600px){.quick-products{grid-template-columns:1fr;gap:12px}.quick-products .product-row{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center}.quick-products .product-copy>strong{font-size:17px}.quick-products .product-price{width:auto;border:0;padding:0;margin:0;white-space:nowrap;flex-direction:column;align-items:center;gap:5px}.quick-products .quick-choice{grid-column:1/-1;padding:8px}.quick-products .product-row::before,.quick-products .product-row::after{bottom:38px}}
/* Reason: fluid mobile sizing — each value scales with the screen width between a comfortable minimum and the previous fixed size, and touch targets never drop below 44px. */
@media(max-width:600px){
 main.shell{padding-top:clamp(12px,4.4vw,22px)}
 .site-header{min-height:clamp(54px,16vw,61px)}
 .brand{font-size:clamp(20px,6.2vw,23px)}
 .catalog-intro{gap:clamp(10px,3.5vw,16px);margin-bottom:clamp(12px,4.2vw,20px)}
 .catalog-intro .page-heading h1{font-size:clamp(26px,8.6vw,35px);margin-bottom:clamp(2px,1vw,6px)}
 .catalog-intro .page-heading p{font-size:clamp(12px,3.4vw,13px)}
 .catalog-emblem{width:clamp(42px,13.5vw,54px);height:clamp(42px,13.5vw,54px)}
 .catalog-emblem svg{width:clamp(22px,7vw,29px);height:clamp(22px,7vw,29px)}
 .quick-offer{gap:clamp(8px,2.8vw,12px);padding:clamp(10px,3.4vw,14px) clamp(12px,4vw,16px);margin-bottom:clamp(10px,3.6vw,16px)}
 .quick-offer h2{font-size:clamp(16px,4.9vw,19px)}
 .quick-offer p{font-size:clamp(12px,3.4vw,13px)}
 .quick-offer .quick-offer-action{min-height:clamp(44px,12vw,48px);font-size:clamp(15px,4.2vw,16px)}
 .catalog-tabs{margin-bottom:clamp(10px,3.5vw,14px)}
 .product-list{gap:clamp(8px,2.6vw,12px)}
 .product-row{min-height:clamp(168px,50vw,199px);padding:clamp(10px,3.2vw,13px) clamp(9px,2.8vw,12px) clamp(9px,2.8vw,12px);gap:clamp(8px,2.6vw,11px)}
 .product-copy h3{min-height:0;font-size:clamp(14px,4.1vw,16px)}
 .duration-value{font-size:clamp(23px,7.2vw,28px)}
 .product-price{min-height:clamp(34px,10vw,41px);padding-bottom:clamp(7px,2.4vw,10px)}
 .product-price strong{font-size:clamp(24px,7.6vw,30px)}
 .sticky-checkout{padding:clamp(8px,2.8vw,12px)}
 .sticky-checkout>button{min-height:clamp(46px,13vw,51px);font-size:clamp(15px,4.3vw,17px)}
 .panel,.checkout-card{padding:clamp(14px,4.8vw,22px) clamp(12px,4.2vw,20px)}
 .step-nav{margin-bottom:clamp(10px,3.6vw,18px)}
 .journey-progress{margin-bottom:clamp(12px,4.4vw,22px)}
 .journey-progress>li>span{width:clamp(27px,8.4vw,33px);height:clamp(27px,8.4vw,33px)}
 .journey-progress>li::before{top:clamp(13.5px,4.2vw,16px)}
 .checkout-card .page-heading h1{font-size:clamp(19px,5.8vw,24px)}
 .device-choice{margin-bottom:clamp(12px,4.4vw,22px)}
 .device-choice button{min-height:44px}
 .field{margin-bottom:clamp(12px,4.2vw,22px);gap:clamp(6px,2.2vw,11px)}
 .field label{font-size:clamp(14px,4vw,15px)}
 .field input,.phone-input{height:clamp(50px,14.4vw,60px);font-size:clamp(20px,6.1vw,24px)}
 .field input::placeholder,.phone-input::placeholder{font-size:clamp(17px,5.3vw,21px)}
 .primary,a.primary{min-height:clamp(46px,13vw,52px);font-size:clamp(15px,4.4vw,17px)}
 .confirmation-number,.phone-large{margin-block:clamp(12px,4.4vw,22px);padding-block:clamp(10px,3.6vw,18px)}
 body[data-step="confirm"] .checkout-card{padding-block:clamp(16px,5.6vw,30px)}
 .checkout-card .actions{margin-top:clamp(12px,4.4vw,23px)}
 dialog.modal{padding:clamp(16px,5.2vw,23px) clamp(14px,4.8vw,22px)}
 .modal-heading{padding-bottom:clamp(10px,3.4vw,17px)}
 .modal-heading h2{font-size:clamp(22px,6.8vw,27px)}
 .summary-list{gap:clamp(8px,2.8vw,13px);margin-block:clamp(12px,4.2vw,20px)}
 .total-row{margin-top:clamp(10px,3.6vw,18px);padding-block:clamp(10px,3.6vw,18px)}
 .total-row strong{font-size:clamp(24px,7.6vw,30px)}
 .provider-option{min-height:clamp(54px,16vw,65px);padding:clamp(9px,3vw,12px) clamp(12px,3.8vw,15px);font-size:clamp(15px,4.4vw,17px)}
 .provider-option img{height:clamp(26px,8vw,32px)}
 .transfer-total{margin-bottom:clamp(14px,5vw,27px);padding-bottom:clamp(12px,4.4vw,24px)}
 .transfer-total strong{font-size:clamp(26px,8.2vw,32px)}
 .transfer-steps{gap:clamp(12px,4vw,19px);margin-bottom:clamp(14px,5vw,27px)}
 .internet-card{padding:clamp(13px,4.2vw,18px)}
 .credentials{margin-block:clamp(10px,3.6vw,18px)}
 .credential strong{font-size:clamp(20px,6vw,23px)}
}
/* Reason: short screens (small phones, landscape) drop decorative spacing first so the next action stays on screen. */
@media(max-width:600px) and (max-height:700px){
 .catalog-emblem{display:none}
 .journey-progress>li{gap:3px}
 .journey-progress{margin-bottom:10px}
 .step-nav{margin-bottom:8px}
 .device-choice{margin-bottom:10px}
}
/* Reason: while the on-screen keyboard is open, leave room to scroll the active field and its button above it. */
html.keyboard-open body{padding-bottom:50vh}
/* Reason: readability floor — no customer-facing text below 12px; the transfer warning is the page's key caution, so it reads at body-note size. */
.transfer-preview-hint{font-size:13px;line-height:1.7;color:#4a5f6b}
.history-count,.provider-option small,.card-number,.status-badge,.demo-card-note,.journey-progress>li,.journey-progress>li>span,.product-price small,.support-row,.account-stats span,.site-footer{font-size:12px}
.product-copy h3,.quick-products .product-copy>strong{overflow-wrap:normal}
/* Reason: landscape phones are too short for a fixed bottom bar and full spacing; the checkout bar joins the page flow and decorative spacing shrinks. */
@media(max-height:420px) and (max-width:950px){
 .sticky-checkout{position:static;width:auto;margin:16px 0 0;box-shadow:none}
 body[data-step="catalog"],body[data-step="wallet"]{padding-bottom:max(16px,env(safe-area-inset-bottom))}
 body[data-step="catalog"] .toast,body[data-step="wallet"] .toast{bottom:max(12px,env(safe-area-inset-bottom))}
 .product-row,.product-row button{scroll-margin-bottom:16px}
 .site-header{min-height:54px}
 main.shell{padding-top:12px}
 .catalog-emblem{display:none}
 .catalog-intro{margin-bottom:12px}
 .catalog-intro .page-heading h1{font-size:28px;margin-bottom:2px}
 .quick-offer{padding:10px 14px;margin-bottom:12px}
 .step-nav{margin-bottom:8px}
 .journey-progress{margin-bottom:10px}
 .journey-progress>li{gap:3px}
 .panel,.checkout-card{padding:16px 18px}
 .device-choice{margin-bottom:10px}
 .field{margin-bottom:12px;gap:6px}
 .field input,.phone-input{height:50px;font-size:22px}
 .primary,a.primary{min-height:46px}
 dialog.modal{padding:16px 20px}
}
