/* Store designs (2026-11-16 redesign): pass = Matchday Pass, broadcast = Broadcast, scratch = Scratch card.
   --primary, --accent, --on-primary come from the operator's brand colours. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: Inter, Cairo, "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] body { font-family: Cairo, Inter, Tahoma, sans-serif; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 20px; }
.num, bdi.num { direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.error { color: #c0261b; font-size: 14px; margin-top: 6px; font-weight: 600; }
.hint { font-size: 13px; opacity: .75; margin-top: 6px; }
label.lbl { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; }
.field { display: flex; height: 52px; border-radius: 12px; overflow: hidden; direction: ltr; }
.field .cc { padding: 0 12px; display: flex; align-items: center; font-weight: 700; }
.field input { flex: 1; min-width: 0; border: 0; padding: 0 12px; font: inherit; font-size: 17px; font-weight: 600; background: transparent; color: inherit; outline: none; }
input.plain { width: 100%; height: 52px; border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.pin-input { text-align: center; font-size: 28px !important; letter-spacing: .4em; direction: ltr; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { display: flex; align-items: center; gap: 10px; padding: 16px 0 0; }
.top .spacer { flex: 1; }
.logo { height: 36px; display: flex; align-items: center; }
.logo img { height: 100%; width: auto; display: block; }
.logo.chip { background: #fff; border-radius: 10px; padding: 4px 8px; height: 40px; }
.logo.text { font-weight: 800; font-size: 18px; }
.bein { height: 22px; width: auto; display: block; }
.pill { min-width: 44px; height: 40px; padding: 0 12px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* toast and test-mode pill: never push the design around */
.toast { position: fixed; z-index: 50; inset-inline: 16px; top: 16px; max-width: 448px; margin: 0 auto; padding: 12px 16px; border-radius: 12px; background: #13261b; color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: toast 5s ease forwards; }
@keyframes toast { 0%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-12px); visibility: hidden; } }
.testpill { position: fixed; z-index: 40; bottom: 14px; inset-inline-start: 14px; max-width: calc(100% - 28px); font-size: 13px; }
.testpill summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #fff3c4; color: #5a4300; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.testpill summary::-webkit-details-marker { display: none; }
.testpill summary::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e0a100; }
.testpill p { margin: 8px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff8dc; color: #4a3800; line-height: 1.5; max-width: 340px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }

/* ===== A · Matchday Pass ===== */
.theme-pass { background: #06110c; color: #fff; }
.theme-pass .glow { position: fixed; top: -140px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.14), rgba(255,255,255,0)); pointer-events: none; z-index: 0; }
.theme-pass .glow.l { left: -90px; } .theme-pass .glow.r { right: -100px; }
.theme-pass main, .theme-pass header { position: relative; z-index: 1; }
.theme-pass .pill { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.theme-pass .display { font-family: "Barlow Condensed", Cairo, sans-serif; font-weight: 800; text-transform: uppercase; }
.theme-pass .kicker { font-family: "Barlow Condensed", Cairo, sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; }
[dir="rtl"] .theme-pass .kicker { letter-spacing: 0; font-size: 15px; }
.theme-pass h1.display { margin: 6px 0 0; font-size: 58px; line-height: .95; }
[dir="rtl"] .theme-pass h1.display { font-family: Cairo, sans-serif; font-size: 44px; line-height: 1.2; }
.theme-pass .lead { margin: 12px 0 0; color: rgba(255,255,255,.8); line-height: 1.5; }
.ticket { display: flex; background: #f4f1e8; color: #0b1a12; border-radius: 14px; overflow: hidden; min-height: 132px; }
.ticket .strip { width: 8px; background: var(--accent); flex: 0 0 auto; }
.ticket .main { flex: 1; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.ticket .tag { font-family: "Barlow Condensed", Cairo, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .14em; color: #4d5b53; text-transform: uppercase; }
.ticket .name { font-family: "Barlow Condensed", Cairo, sans-serif; font-weight: 800; font-size: 26px; line-height: 1.05; }
[dir="rtl"] .ticket .name { font-family: Cairo, sans-serif; font-size: 20px; line-height: 1.35; }
.ticket .meta { font-size: 13px; color: #4d5b53; }
.ticket .perf { width: 0; border-inline-start: 2px dashed #b9b4a6; margin: 12px 0; }
.ticket .stub { width: 116px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; }
.ticket .price { font-family: "Barlow Condensed", Cairo, sans-serif; font-weight: 800; font-size: 38px; line-height: 1; }
.ticket .buy { height: 44px; min-height: 44px; border-radius: 10px; background: #0b1a12; color: #fff; font-size: 15px; }
.ticket .save { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #0b1a12; color: var(--accent); }
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 26px; }
.steps4 div { font-size: 12px; line-height: 1.3; color: rgba(255,255,255,.82); }
.steps4 div::before { content: ""; display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); margin-bottom: 6px; }
.steps4 div:first-child::before { background: var(--accent); }
.theme-pass .ghost { border: 1px solid rgba(255,255,255,.28); color: #fff; background: transparent; }
.theme-pass .accentbtn { background: var(--accent); color: #06110c; }
.theme-pass .card { background: #f4f1e8; color: #0b1a12; border-radius: 18px; overflow: hidden; }
.theme-pass .card .field, .theme-pass .card input.plain { background: #fff; border: 2px solid #0b1a12; }
.theme-pass .card .field .cc { border-inline-end: 2px solid #0b1a12; }
.codegrid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 20px; text-align: center; direction: ltr; }
.codegrid span { background: #0b1a12; color: #fff; border-radius: 10px; padding: 12px 0; }
.notch { display: flex; align-items: center; }
.notch i { width: 14px; height: 28px; background: #06110c; display: block; }
.notch i:first-child { border-radius: 0 14px 14px 0; } .notch i:last-child { border-radius: 14px 0 0 14px; }
.notch b { flex: 1; border-top: 2px dashed #b9b4a6; }
.watchsteps { display: grid; gap: 10px; margin-top: 10px; }
.watchsteps div { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: rgba(255,255,255,.86); }
.watchsteps b { font-family: "Barlow Condensed", Cairo, sans-serif; font-size: 20px; color: #fff; }

/* ===== B · Broadcast ===== */
.theme-broadcast { background: #f5f5f2; color: #111; }
.theme-broadcast .hero { background: #111; color: #fff; position: relative; overflow: hidden; padding-bottom: 26px; }
.theme-broadcast .hero .slash { position: absolute; top: 0; bottom: 0; inset-inline-end: -60px; width: 200px; background: var(--primary); transform: skewX(-16deg); }
.theme-broadcast .hero .slash2 { position: absolute; top: 0; bottom: 0; inset-inline-end: 160px; width: 20px; background: var(--primary); opacity: .55; transform: skewX(-16deg); }
.theme-broadcast .hero > .wrap { position: relative; }
.theme-broadcast .pill { background: #fff; color: #111; }
.theme-broadcast .live { display: inline-flex; align-items: center; gap: 6px; background: #e4002b; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .1em; padding: 4px 10px; margin-top: 30px; }
.theme-broadcast .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.theme-broadcast h1 { position: relative; margin: 12px 0 0; font-family: Anton, Cairo, Impact, sans-serif; font-weight: 400; font-size: 48px; line-height: 1.02; text-transform: uppercase; max-width: calc(100% - 110px); }
[dir="rtl"] .theme-broadcast h1 { font-family: Cairo, sans-serif; font-weight: 800; font-size: 38px; line-height: 1.3; }
.ticker { background: var(--primary); color: var(--on-primary); height: 36px; display: flex; align-items: center; font-weight: 800; font-size: 12px; letter-spacing: .1em; white-space: nowrap; overflow: hidden; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: #e3e3de; padding: 4px; border-radius: 12px; margin-top: 20px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 9px; font-weight: 800; font-size: 14px; cursor: pointer; }
.seg input:checked + span { background: #111; color: #fff; }
.seg input:focus-visible + span { outline: 2px solid #111; outline-offset: 2px; }
.score { display: none; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.score .big { font-family: Anton, Impact, sans-serif; font-size: 62px; line-height: 1; }
.score .lbl2 { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #55554f; }
.theme-broadcast .field { border: 2px solid #111; background: #fff; }
.theme-broadcast .field .cc { background: var(--primary); color: var(--on-primary); border-inline-end: 2px solid #111; }
.theme-broadcast input.plain { border: 2px solid #111; background: #fff; }
.theme-broadcast .go { background: #111; color: #fff; justify-content: space-between; }
.theme-broadcast .go em { font-style: normal; color: var(--primary); }
.theme-broadcast .card { background: #fff; border-radius: 16px; padding: 20px; border: 2px solid #111; }
.theme-broadcast .dark { background: #111; color: #fff; min-height: 100vh; }
.badge-skew { display: inline-flex; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 12px; letter-spacing: .12em; padding: 5px 10px; transform: skewX(-12deg); }
.tiles { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; direction: ltr; }
.tiles span { background: #000; border-radius: 6px; padding: 12px 0; text-align: center; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 19px; color: var(--primary); }
.bubble { background: #2a2a2a; border-radius: 18px 18px 18px 4px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: #e8e8e8; }
[dir="rtl"] .bubble { border-radius: 18px 18px 4px 18px; }

/* ===== C · Scratch card ===== */
.theme-scratch { background: #f7f3ec; color: #14202b; font-family: "Readex Pro", Cairo, Tahoma, sans-serif; }
.theme-scratch .pill { border: 1px solid #d9d1c3; color: #14202b; }
.theme-scratch h1 { margin: 22px 0 0; font-weight: 700; font-size: 30px; line-height: 1.3; }
.theme-scratch .lead { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: #4a5763; }
.flow { margin-top: 18px; background: var(--primary); color: var(--on-primary); border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.flow div { flex: 1; } .flow small { display: block; font-size: 12px; opacity: .85; } .flow b { font-size: 16px; }
.flow div:last-child { text-align: end; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 2px solid #e6dfd2; cursor: pointer; position: relative; margin-top: 10px; }
.opt input { position: absolute; opacity: 0; }
.opt .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b9b0a1; flex: 0 0 auto; }
.opt:has(input:checked) { border-color: var(--primary); box-shadow: 0 6px 18px rgba(0,0,200,.12); }
.opt:has(input:checked) .dot { border: 7px solid var(--primary); }
.opt:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.opt .t { flex: 1; } .opt .t b { display: block; font-size: 17px; } .opt .t small { font-size: 13px; color: #4a5763; }
.opt .p { font-weight: 700; font-size: 22px; }
.opt .save { display: block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--primary); color: var(--on-primary); margin-bottom: 4px; text-align: center; }
.theme-scratch .field { border: 1px solid #cfc6b6; background: #fff; }
.theme-scratch .field .cc { color: #4a5763; border-inline-end: 1px solid #e6dfd2; }
.theme-scratch input.plain { border: 1px solid #cfc6b6; background: #fff; }
.theme-scratch .paybtn { background: var(--primary); color: var(--on-primary); }
.theme-scratch .card { background: #fff; border: 1px solid #e6dfd2; border-radius: 18px; padding: 20px; }
.theme-scratch .ghost { border: 1px solid #cfc6b6; background: #fff; color: #14202b; }
.scard { margin-top: 20px; background: var(--primary); color: var(--on-primary); border-radius: 22px; padding: 20px; position: relative; overflow: hidden; }
.scard .ring { position: absolute; inset-inline-start: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 26px solid rgba(255,255,255,.08); }
.scard .row { display: flex; justify-content: space-between; align-items: flex-start; position: relative; gap: 10px; }
.scratch { position: relative; height: 84px; margin: 14px 0; border-radius: 14px; background: #fff; color: #14202b; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.scratch code { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 22px; letter-spacing: .06em; direction: ltr; }
.scratch button { position: absolute; inset: 0; border: 0; background: repeating-linear-gradient(135deg, #c9ced4 0 10px, #b5bbc2 10px 20px); color: #2d3640; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: opacity .5s ease, transform .5s ease; }
.scratch.open button { opacity: 0; transform: scale(1.05); pointer-events: none; }
.okpill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #e3f1e8; color: #17603a; font-weight: 600; font-size: 13px; }
.numsteps { display: grid; gap: 10px; }
.numsteps div { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.numsteps i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: 0 0 auto; }

/* shared form screens (checkout, PIN, failed order, history) */
.screen { padding: 22px 0 120px; }
.theme-pass .screen .card, .theme-broadcast .screen .card, .theme-scratch .screen .card { padding: 20px; }
.screen h1.t { margin: 0 0 8px; font-size: 26px; line-height: 1.25; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
.primarybtn { background: var(--accent); color: #fff; }
.theme-mtn-ink .primarybtn { color: #fff; }
.alert { border-radius: 10px; padding: 12px 14px; margin: 12px 0; background: #fdecea; color: #b42318; font-weight: 600; }
.code-box { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 2px dashed var(--accent); border-radius: 12px; padding: 12px 14px; margin: 10px 0; direction: ltr; }
.code-box code { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 18px; word-break: break-all; }
.history-row { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.1); display: grid; gap: 4px; }
.center { text-align: center; }
.mt { margin-top: 16px; }
