:root {
  --bg: #08162d;
  --bg-soft: #0f2248;
  --card: #ffffff;
  --muted: #6b7280;
  --text: #0c1730;
  --line: #e5e7eb;
  --surface: #f4f6fa;
  --green: #2fb24a;
  --green-dark: #21913a;
  --warning: #fff4d3;
  --danger: #ffe4e7;
  --danger-text: #b42318;
  --info: #edf4ff;
  --shadow: 0 20px 40px rgba(7, 23, 52, 0.16);
  --radius: 24px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); }
body { min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

.app-bg {
  position: fixed; inset: 0;
  background: radial-gradient(circle at top, rgba(47,178,74,0.16), transparent 28%), linear-gradient(180deg, #0a1630 0%, #0b1c40 58%, #0a1325 100%);
}

.shell {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
}

.phone-frame {
  width: 100%;
  max-width: 430px;
  min-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: 34px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.33);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(11, 30, 74, 0.95);
  color: #fff;
  backdrop-filter: blur(16px);
}

.icon-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; flex-shrink: 0; }
.icon-btn span { display: block; width: 16px; height: 2px; background: #fff; margin: 2px 0; border-radius: 999px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crest { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #1d3c85, #2fb24a); color: #fff; display: grid; place-items: center; font-weight: 800; letter-spacing: 0.06em; font-size: 12px; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18); }
.crest.large { width: 76px; height: 76px; font-size: 22px; margin: 12px auto 2px; }
.brand-lockup h1 { margin: 0; font-size: 12px; line-height: 1.2; max-width: 150px; }
.eyebrow { margin: 0 0 2px; font-size: 10px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.lang-pill, .icon-circle, .badge-btn { height: 38px; min-width: 38px; border-radius: 999px; background: rgba(255,255,255,0.08); color: #fff; display: grid; place-items: center; padding: 0 12px; position: relative; }
.lang-pill { font-size: 12px; font-weight: 700; }
.icon-circle svg, .badge-btn svg { width: 18px; height: 18px; }
.badge { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

.page-stack { padding: 18px 16px 92px; }
.screen { display: none; animation: fadeUp 220ms ease; }
.screen.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title-row h2 { margin: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; }
.section-title-row.compact h2 { font-size: 1rem; }
.spaced-top { margin-top: 22px; }
.text-link { font-size: 0.88rem; color: var(--bg-soft); font-weight: 700; }
.mini-label { margin: 0; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.mini-subtext { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.top-gap { margin-top: 14px; }
.supporting-text { margin: 0 0 14px; color: #53607a; line-height: 1.5; font-size: 0.94rem; }
.centered { text-align: center; }

.carousel-row { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.carousel-row::-webkit-scrollbar { display: none; }
.competition-card, .match-card, .info-tile, .stadium-card, .event-header-card, .cart-card, .summary-card, .payment-method-card, .ticket-overview-card, .order-header, .order-ticket, .gateway-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.competition-card { padding: 14px; display: flex; gap: 12px; border: 1px solid transparent; }
.active-competition { border-color: rgba(47,178,74,0.35); background: linear-gradient(180deg, #fff, #f2fff5); }
.competition-logo { width: 52px; height: 52px; border-radius: 18px; background: linear-gradient(135deg, #16326b, #21458f); color: #fff; display: grid; place-items: center; font-weight: 800; }
.competition-logo.gold { background: linear-gradient(135deg, #cb9b1b, #f4cf66); color: #5d3d02; }
.competition-logo.green { background: linear-gradient(135deg, #0d7b30, #38c15b); }
.competition-card h3 { margin: 2px 0 0; font-size: 0.92rem; }

.hero-match { padding: 14px; display: grid; grid-template-columns: 78px 1fr; gap: 14px; background: linear-gradient(180deg, #ffffff, #f7fbff); border: 1px solid rgba(11,30,74,0.05); }
.date-chip { border-radius: 22px; background: #edf1f8; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 12px 8px; color: var(--bg-soft); }
.date-chip strong { font-size: 1rem; }
.date-chip span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; }
.match-body { min-width: 0; }
.league-tag { margin: 0 0 10px; font-size: 0.74rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.teams-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.teams-row.compact { margin-bottom: 8px; }
.team { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 700; }
.team.right { justify-content: flex-end; text-align: right; }
.team-logo { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.28); }
.team-logo.yanga { background: linear-gradient(135deg, #0f8541, #44c56a); }
.team-logo.simba { background: linear-gradient(135deg, #b12626, #e85f5f); }
.versus { font-size: 0.78rem; color: var(--muted); font-weight: 800; letter-spacing: 0.08em; }
.match-meta { margin: 0; color: #667085; font-size: 0.85rem; }
.price-action-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.price-label { display: block; color: var(--muted); font-size: 0.74rem; }
.price-value { font-size: 1rem; color: var(--bg-soft); }

.primary-btn, .outline-btn, .ghost-btn {
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.primary-btn { background: linear-gradient(180deg, #38c55d, var(--green)); color: #fff; box-shadow: 0 10px 24px rgba(47,178,74,.28); }
.primary-btn:hover { transform: translateY(-1px); }
.outline-btn { background: #fff; color: var(--bg-soft); border: 1px solid rgba(12,23,48,.15); }
.ghost-btn { background: #f3f5f8; color: var(--bg-soft); }
.full { width: 100%; justify-content: center; display: inline-flex; }
.sm { padding: 10px 14px; font-size: 0.85rem; }

.info-grid { display: grid; gap: 12px; margin-top: 18px; }
.info-tile { padding: 14px; display: flex; gap: 12px; }
.tile-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(47,178,74,.12); color: var(--green-dark); font-weight: 800; }
.info-tile h3 { margin: 0 0 4px; font-size: 0.95rem; }
.info-tile p { margin: 0; color: #56647b; font-size: 0.88rem; line-height: 1.45; }

.back-link { color: var(--bg-soft); font-weight: 700; margin-bottom: 12px; display: inline-block; }
.back-link.plain { margin-bottom: 0; }
.event-header-card, .stadium-card, .cart-card, .summary-card, .payment-method-card, .ticket-overview-card, .order-header, .order-ticket { padding: 16px; }
.stadium-map { width: 100%; height: auto; margin-top: 10px; }
.stadium-map text { font-size: 10px; font-weight: 700; fill: #0b1e4a; }
.ticket-list { display: grid; gap: 12px; }
.ticket-card { background: #fff; border: 1px solid #e6e8ef; border-radius: 20px; padding: 14px; box-shadow: 0 12px 30px rgba(9,22,49,.08); }
.ticket-card.active { border-color: rgba(47,178,74,.45); box-shadow: 0 16px 34px rgba(47,178,74,.16); }
.ticket-top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-name-price h3 { margin: 0; font-size: 1rem; }
.ticket-name-price p { margin: 4px 0 0; color: var(--muted); font-size: 0.84rem; }
.availability { font-size: 0.72rem; font-weight: 800; color: var(--green-dark); background: rgba(47,178,74,.12); padding: 6px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.qty-wrap { display: none; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #d8ddea; }
.ticket-card.active .qty-wrap { display: flex; }
.qty-pill { display: inline-flex; align-items: center; gap: 14px; background: #f4f6fa; border-radius: 999px; padding: 4px; }
.qty-btn { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--bg-soft); font-size: 1.2rem; box-shadow: 0 4px 16px rgba(7,23,52,.09); }
.sticky-summary {
  position: sticky; bottom: 10px; z-index: 20;
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(11, 30, 74, 0.96); color: #fff; padding: 14px; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,.28);
}
.hidden { display: none !important; }

.notice-banner { border-radius: 18px; padding: 13px 14px; font-size: 0.88rem; line-height: 1.45; margin-bottom: 14px; }
.notice-banner.success { background: #ecfdf0; color: #176534; }
.notice-banner.info { background: var(--info); color: #153e75; }
.notice-banner.warning { background: var(--warning); color: #7a5c00; }
.notice-banner.danger { background: var(--danger); color: var(--danger-text); }
.cart-card h3, .summary-card h3, .payment-method-card h3, .ticket-overview-card h3, .order-header h3 { margin: 0 0 8px; }
.cart-line, .summary-row, .ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-line { margin-top: 14px; }
.cart-line p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.summary-row { padding: 7px 0; font-size: .92rem; }
.summary-row.total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1rem; }
.auth-brand { text-align: center; margin-bottom: 12px; }
.auth-brand h2 { margin: 12px 0 10px; }
.field-label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 700; color: var(--bg-soft); }
.text-input {
  width: 100%; border: 1px solid #d5d9e2; border-radius: 16px; background: #fff;
  padding: 14px 16px; outline: none; margin-bottom: 14px;
}
.text-input:focus { border-color: #6ba2ff; box-shadow: 0 0 0 4px rgba(71,125,255,.12); }
.partners-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; color: var(--muted); font-weight: 700; font-size: 0.82rem; }
.code-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 18px 0 12px; }
.code-row input { text-align: center; border: 1px solid #d5d9e2; border-radius: 16px; padding: 14px 0; font-size: 1.2rem; font-weight: 800; background: #fff; }
.payment-method-card { display: flex; gap: 14px; align-items: center; border: 1px solid rgba(47,178,74,.25); }
.payment-method-card.active { background: linear-gradient(180deg, #fff, #f3fff5); }
.radio-dot { width: 22px; height: 22px; border: 2px solid #a9b3c5; border-radius: 50%; position: relative; }
.radio-dot.active { border-color: var(--green); }
.radio-dot.active::after { content: ''; position: absolute; inset: 4px; background: var(--green); border-radius: 50%; }
.gateway-shell { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.gateway-head { background: linear-gradient(180deg, #b81e22, #861216); color: #fff; font-weight: 800; padding: 14px 16px; letter-spacing: 0.05em; }
.gateway-body { padding: 16px; }
.gateway-body h2 { margin: 0 0 4px; text-transform: uppercase; }
.order-ref { margin: 0 0 14px; color: var(--muted); font-size: .84rem; }
.gateway-card { padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); }
.gateway-card.active { border-color: rgba(184,30,34,.22); background: #fff8f8; }
.gateway-card h3 { margin: 0 0 5px; }
.gateway-card p { margin: 0 0 12px; color: var(--muted); font-size: .86rem; }
.gateway-actions { display: flex; gap: 10px; margin-top: 10px; }
.status-check { width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle at top, #4fe170, #2fb24a); color: #fff; font-size: 2rem; font-weight: 900; display: grid; place-items: center; margin: 6px auto 8px; box-shadow: 0 14px 24px rgba(47,178,74,.25); }
.order-header { display: flex; flex-direction: column; gap: 12px; }
.order-header h3 { font-size: 0.96rem; }
.compact-card { padding: 0; overflow: hidden; }
.compact-card .match-body.compact { padding: 14px; }
.inline-status { display: inline-flex; margin-top: 10px; background: rgba(47,178,74,.12); color: var(--green-dark); padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; text-transform: uppercase; }
.order-ticket-list { display: grid; gap: 12px; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 999px; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.status-pill.success { background: rgba(47,178,74,.12); color: var(--green-dark); }
.status-pill.action { background: var(--bg-soft); color: #fff; }
.ticket-details { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #dde3ee; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.detail-grid span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.detail-grid strong { font-size: .86rem; }
.ticket-actions { display: flex; gap: 10px; margin-top: 14px; }

.modal-layer {
  position: fixed; inset: 0; z-index: 90; background: rgba(4, 9, 19, 0.55);
  display: flex; align-items: flex-end; justify-content: center; padding: 18px;
  backdrop-filter: blur(8px);
}
.modal-card {
  width: min(430px, 100%); max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 28px; padding: 20px 18px 18px; box-shadow: 0 32px 80px rgba(0,0,0,.35); position: relative;
}
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: #eef2f7; color: var(--bg-soft); font-size: 1.35rem; }
.confirm-preview { background: #f7f9fc; border-radius: 18px; padding: 14px; margin: 10px 0 12px; }
.split-actions { display: grid; gap: 10px; }
.qr-card { text-align: center; }
.qr-mock {
  display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; background: #fff; padding: 10px; border: 1px solid #d4dae7; border-radius: 16px; margin: 12px auto;
}
.qr-mock.small { width: 130px; }
.qr-mock.large { width: 250px; }
.qr-cell { aspect-ratio: 1; border-radius: 2px; background: #fff; }
.qr-cell.fill { background: #0f172a; }

@media (min-width: 768px) {
  .shell { padding: 40px 24px; }
  .phone-frame { min-height: 860px; }
}

@media (max-width: 380px) {
  .brand-lockup h1 { max-width: 120px; }
  .hero-match { grid-template-columns: 68px 1fr; }
  .price-action-row, .ticket-actions, .gateway-actions { flex-direction: column; align-items: stretch; }
}

/* SonicPesa checkout */
.sonic-shell { border: 1px solid rgba(15, 34, 72, .08); }
.sonic-head { background: linear-gradient(135deg, #081a3f, #123a76); }
.payment-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.payment-hero h2 { margin: 2px 0 0; font-size: 1.45rem; }
.secure-chip { white-space: nowrap; padding: 8px 11px; border-radius: 999px; background: #edf9f0; color: #176534; font-weight: 800; font-size: .74rem; }
.payment-status-box { display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 14px; margin: 12px 0; background: #eff6ff; color: #153e75; }
.payment-status-box.success { background: #ecfdf0; color: #176534; }
.payment-status-box.failure { background: #fff1f1; color: #9d1c1c; }
.payment-status-box p { margin: 4px 0 0; font-size: .82rem; }
.status-spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(21,62,117,.2); border-top-color: currentColor; animation: spin .8s linear infinite; flex: 0 0 auto; }
.payment-status-box.success .status-spinner, .payment-status-box.failure .status-spinner { animation: none; border: 0; display: grid; place-items: center; font-size: 1.1rem; }
.payment-status-box.success .status-spinner::after { content: '✓'; }
.payment-status-box.failure .status-spinner::after { content: '!'; }
@keyframes spin { to { transform: rotate(360deg); } }
.order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.order-meta > div { background: #f7f9fc; border-radius: 14px; padding: 11px; min-width: 0; }
.order-meta span { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.order-meta strong { display: block; font-size: .78rem; overflow-wrap: anywhere; }
.payment-error { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff1f1; color: #9d1c1c; font-size: .84rem; line-height: 1.45; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* Simplified phone identity + Selcom presentation */
.identity-preview { margin: 12px 0 16px; padding: 12px 14px; border-radius: 12px; background: #f6f8fc; border: 1px solid #e4e9f3; display: grid; gap: 4px; }
.identity-preview span { font-size: 11px; color: #73809a; text-transform: uppercase; letter-spacing: .06em; }
.identity-preview strong { font-size: 11px; color: #0f2248; overflow-wrap: anywhere; }
.payment-brand-logo { width: 74px; height: 34px; object-fit: contain; border-radius: 7px; background: #fff; padding: 4px 6px; }
.selcom-shell { border: 1px solid rgba(15, 34, 72, .08); }
.selcom-head { background: linear-gradient(135deg, #d80024, #ef1235); display: flex; align-items: center; justify-content: center; gap: 10px; }
.gateway-brand-logo { width: 84px; height: 34px; object-fit: contain; border-radius: 7px; background: #fff; padding: 4px 7px; }
.selcom-head span { color: #fff; font-weight: 800; letter-spacing: .04em; }
.linked-number-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.linked-number-row h3 { margin: 4px 0 0; font-size: 22px; }
@media (max-width: 560px) { .selcom-head span { font-size: 11px; } .payment-brand-logo { width: 64px; } }

/* === TFF storefront visual refresh === */
:root {
  --tff-blue: #0b2b62;
  --tff-red: #e31e24;
  --tff-green: #159447;
  --tff-bg: #f6f7f9;
  --tff-text: #15171a;
  --tff-muted: #6d727c;
  --tff-line: #e4e7eb;
}
html, body { background: var(--tff-bg); color: var(--tff-text); }
body { min-height: 100vh; }
.app-bg { display: none; }
.shell { display: block; padding: 0; }
.phone-frame {
  width: 100%; max-width: none; min-height: 100vh; border-radius: 0; border: 0;
  background: var(--tff-bg); box-shadow: none; overflow: visible;
}
.topbar {
  position: sticky; top: 0; z-index: 50; height: 72px;
  max-width: none; padding: 0 max(22px, calc((100vw - 1180px)/2));
  background: rgba(255,255,255,.97); color: var(--tff-text);
  border-bottom: 1px solid #eceef1; box-shadow: 0 3px 18px rgba(14,25,43,.05);
}
.brand-lockup { gap: 11px; }
.tff-mark {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 58% 38%, #fff 0 15%, transparent 16%), linear-gradient(145deg,#113975 0 53%,#e4252c 54% 100%);
  border: 3px solid #fff; box-shadow: 0 0 0 1px #d9dee6, 0 4px 12px rgba(11,43,98,.14);
}
.tff-mark span { color: #fff; font-size: 11px; font-weight: 900; letter-spacing: -.04em; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 13px; font-weight: 800; }
.brand-copy small { color: #747a85; font-size: 10px; margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }
.topbar-actions { gap: 8px; }
.lang-pill, .badge-btn { background: #f5f6f8; color: #20242b; border: 1px solid #e5e8ec; }
.badge { background: var(--tff-red); }
.nav-ticket-btn { padding: 10px 14px; border-radius: 8px; color: #313640; font-size: 13px; font-weight: 700; }
.nav-ticket-btn:hover { background: #f5f6f8; }

.page-stack { max-width: 1180px; margin: 0 auto; padding: 30px 22px 72px; }
.screen { width: 100%; }
.screen:not(#screen-home) { max-width: 760px; margin: 0 auto; }

.featured-hero {
  position: relative; min-height: 430px; overflow: hidden; border-radius: 18px;
  background: url('stadium-hero.webp') center/cover no-repeat; color: #fff;
  box-shadow: 0 16px 44px rgba(14,27,52,.16); margin-bottom: 38px;
}
.featured-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,13,30,.92) 0%, rgba(5,17,37,.72) 54%, rgba(4,14,31,.33) 100%); }
.featured-content { position: relative; z-index: 2; width: min(670px,100%); padding: 46px 48px 40px; }
.featured-label { display: inline-flex; background: var(--tff-red); padding: 7px 11px; border-radius: 5px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.featured-content h2 { margin: 15px 0 7px; font-size: clamp(27px,4vw,43px); line-height: 1.05; letter-spacing: -.035em; }
.featured-content h2 span { opacity: .65; font-weight: 500; }
.featured-meta { margin: 0; color: rgba(255,255,255,.76); font-size: 14px; }
.featured-teams { display: flex; align-items: center; gap: 24px; margin: 27px 0 28px; }
.featured-team { display: flex; align-items: center; gap: 11px; min-width: 0; }
.featured-team img { width: 64px; height: 64px; object-fit: contain; background:#fff; border-radius:50%; padding:4px; }
.featured-team strong { font-size: 14px; line-height: 1.25; }
.featured-vs { color: rgba(255,255,255,.58); font-size: 12px; font-weight: 900; }
.featured-footer { display: flex; align-items: end; gap: 28px; }
.featured-footer div { display: grid; gap: 3px; }
.featured-footer small { color: rgba(255,255,255,.62); font-size: 11px; }
.featured-footer strong { font-size: 19px; }
.hero-cta { min-width: 140px; }

.section-title-row { margin-bottom: 16px; }
.section-title-row h2 { font-size: 20px; text-transform: none; letter-spacing: -.02em; font-weight: 800; }
.text-link { font-size: 13px; color: var(--tff-blue); }
.spaced-top { margin-top: 34px; }
.carousel-row { display: flex; grid-auto-flow: unset; gap: 10px; overflow-x: auto; padding: 2px 1px 5px; }
.competition-card {
  flex: 0 0 auto; min-width: 0; padding: 10px 15px; border-radius: 9px; box-shadow: none;
  border: 1px solid #e1e4e8; align-items:center; background:#fff;
}
.competition-card .mini-label, .competition-logo { display:none; }
.competition-card h3 { margin:0; font-size:13px; white-space:nowrap; font-weight:700; }
.active-competition { border-color: var(--tff-blue); background: var(--tff-blue); color:#fff; }

.hero-match {
  padding: 0; grid-template-columns: 92px 1fr; gap:0; border-radius:14px; overflow:hidden;
  border:1px solid var(--tff-line); box-shadow:0 8px 28px rgba(15,28,50,.06); background:#fff;
}
.date-chip { border-radius:0; background:#f2f4f7; color:#272c34; padding:22px 10px; border-right:1px solid #e5e8ec; }
.date-chip strong { font-size:14px; }
.match-body { padding:22px 24px; }
.league-tag { text-transform:none; letter-spacing:0; font-size:12px; color:#757b85; margin-bottom:14px; }
.teams-row { justify-content:flex-start; gap:18px; }
.team { min-width:150px; font-size:14px; }
.team.right { justify-content:flex-start; text-align:left; flex-direction:row-reverse; }
.team-logo-img { width:48px; height:48px; object-fit:contain; border-radius:50%; background:#fff; }
.versus { font-size:11px; color:#969ca6; }
.match-meta { color:#616872; font-size:13px; }
.price-action-row { border-top:1px solid #edf0f2; padding-top:16px; margin-top:17px; }
.price-label { font-size:11px; }
.price-value { font-size:15px; color:#181b21; }

.primary-btn { background: var(--tff-green); color:#fff; border-radius:7px; padding:12px 18px; box-shadow:none; }
.primary-btn:hover { background:#117e3d; transform:none; }
.outline-btn { border-radius:7px; }
.ghost-btn { border-radius:7px; }
.info-grid { grid-template-columns: repeat(2, 1fr); margin-top:22px; }
.info-tile { border-radius:12px; box-shadow:none; border:1px solid var(--tff-line); background:#fff; }
.tile-icon { border-radius:8px; }

/* inner purchase flow – cleaner TFF checkout */
.back-link { font-size:13px; color:#555d69; margin-bottom:18px; }
.event-header-card, .stadium-card, .cart-card, .summary-card, .payment-method-card, .ticket-overview-card, .order-header, .order-ticket, .gateway-card {
  border-radius:12px; box-shadow:none; border:1px solid var(--tff-line); background:#fff;
}
.event-header-card { border-left:4px solid var(--tff-blue); }
.stadium-card { margin-top:12px; }
.ticket-card { border-radius:12px; box-shadow:none; }
.ticket-card.active { border-color:var(--tff-green); box-shadow:0 0 0 1px var(--tff-green); }
.availability { border-radius:6px; }
.sticky-summary { border-radius:12px; background:#172337; box-shadow:0 12px 30px rgba(0,0,0,.18); }
.notice-banner { border-radius:8px; }
.text-input { border-radius:8px; padding:14px; }
.auth-brand { max-width:480px; margin: 12px auto 24px; }
.auth-tff-mark { width:62px; height:62px; border-radius:50%; margin:0 auto 16px; display:grid; place-items:center; background:var(--tff-blue); color:#fff; font-size:15px; font-weight:900; }
.auth-brand h2 { font-size:28px; letter-spacing:-.03em; }
.identity-preview { border-radius:8px; }
.payment-method-card.active { background:#fff; border-color:#d9dde3; }
.gateway-shell { border-radius:12px; box-shadow:none; border:1px solid var(--tff-line); }
.selcom-head { background:#e3062f; }
.gateway-card { border-radius:10px; }
.status-check { box-shadow:none; background:var(--tff-green); }
.modal-card { border-radius:16px; }

@media (max-width: 700px) {
  .topbar { height:64px; padding:0 14px; }
  .brand-copy strong { font-size:11px; max-width:155px; }
  .brand-copy small { font-size:8px; }
  .tff-mark { width:38px; height:38px; }
  .nav-ticket-btn { display:none; }
  .page-stack { padding:18px 14px 56px; }
  .featured-hero { min-height:470px; border-radius:12px; margin-bottom:28px; }
  .featured-content { padding:30px 22px; }
  .featured-content h2 { font-size:29px; }
  .featured-teams { gap:12px; }
  .featured-team { flex-direction:column; text-align:center; width:42%; }
  .featured-team img { width:68px; height:68px; }
  .featured-team strong { font-size:12px; }
  .featured-vs { width:16%; text-align:center; }
  .featured-footer { justify-content:space-between; gap:12px; }
  .hero-match { grid-template-columns:70px 1fr; }
  .match-body { padding:16px 14px; }
  .teams-row { gap:8px; }
  .team { min-width:0; flex:1; flex-direction:column; text-align:center; font-size:11px; }
  .team.right { flex-direction:column; text-align:center; justify-content:center; }
  .team-logo-img { width:44px; height:44px; }
  .versus { flex:0 0 auto; }
  .price-action-row { align-items:center; }
  .info-grid { grid-template-columns:1fr; }
  .screen:not(#screen-home) { max-width:none; }
}

.ticket-continue-wrap { display: grid; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e5e8ee; }
.ticket-selected-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-selected-total span { color: var(--muted); font-size: .88rem; }
.ticket-selected-total strong { font-size: 1.05rem; color: #111827; }
.ticket-continue-btn { min-height: 48px; font-size: .96rem; font-weight: 800; }


/* Generated official ticket flow */
.issued-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:10px 0 24px}.issued-heading h2{margin:4px 0 5px}.ticket-name-card{max-width:520px;text-align:left}.ticket-name-card h3{text-align:center;font-size:24px;margin:12px 0 5px}.auth-tff-mark.small{width:54px;height:54px;font-size:15px;margin:0 auto}.generated-ticket-list{display:grid;gap:28px;padding-bottom:40px}.official-ticket{display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border:1px solid #d9dee8;border-radius:18px;overflow:hidden;box-shadow:0 14px 38px rgba(8,28,69,.08);min-height:650px}.official-ticket-left,.official-ticket-right{padding:22px}.official-ticket-left{border-right:1px dashed #bec7d5}.ticket-event-head{display:flex;align-items:center;gap:14px;background:#071b46;color:#fff;padding:18px;border-radius:12px}.cup-mark{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#071b46;font-weight:900}.ticket-event-head small{display:block;font-weight:800;letter-spacing:.05em}.ticket-event-head strong{font-size:21px;display:block;margin-top:4px}.ticket-event-head em{font-style:normal;color:#35bb62}.ticket-match-data{padding:13px 4px}.ticket-match-data>div{display:grid;grid-template-columns:88px 1fr;gap:8px;border-bottom:1px solid #e2e6ed;padding:10px}.ticket-match-data span,.ticket-info-grid span,.ticket-total-box span{font-size:11px;font-weight:900;color:#159447}.ticket-holder-box{background:linear-gradient(135deg,#eef1f5,#fff);border-radius:12px;padding:15px 18px;margin:10px 0 14px}.ticket-holder-box span{font-size:10px;font-weight:900;color:#0a3170;display:block}.ticket-holder-box strong{font-size:21px;display:block;margin-top:3px}.ticket-scan-box{display:grid;grid-template-columns:1fr 150px;align-items:center;border:1px solid #dbe1ea;border-radius:12px;padding:15px;text-align:center}.ticket-scan-box>div{display:flex;flex-direction:column;gap:8px}.ticket-scan-box img{width:140px;height:140px;object-fit:contain;margin-left:auto}.ticket-scan-box small{line-height:1.4}.ticket-info-box,.placement-box{border:1px solid #cfe0d5;border-radius:12px;overflow:hidden;margin-top:14px}.ticket-section-label{background:#159447;color:white;padding:9px 13px;font-size:11px;font-weight:900}.ticket-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:15px}.ticket-info-grid div{display:flex;flex-direction:column;gap:4px}.official-ticket-right{display:flex;flex-direction:column;gap:14px}.fair-banner{background:radial-gradient(circle at 60% 25%,#31527d,#06162f 55%,#020813);border-radius:14px;min-height:285px;padding:30px;color:white;display:flex;align-items:center}.fair-banner strong{font-size:48px;line-height:.9;text-shadow:0 2px 8px #000}.fair-banner span{color:#f4cf16}.ticket-important{border:1px solid #eedb60;border-radius:12px;overflow:hidden}.ticket-important>div{background:#f4cf16;padding:9px 12px;font-weight:900;font-size:11px}.ticket-important p{font-size:12px;line-height:1.55;padding:12px;margin:0}.placement-box>div:last-child{display:grid;grid-template-columns:repeat(3,1fr);padding:14px}.placement-box span{font-size:10px;color:#607089;display:flex;flex-direction:column;gap:5px}.placement-box strong{font-size:14px;color:#111827}.ticket-total-box{margin-top:auto;background:#f5f7fb;border-radius:12px;padding:18px}.ticket-total-box strong{display:block;font-size:25px;margin:3px 0}.ticket-total-box small{color:#657085}@media(max-width:820px){.issued-heading{flex-direction:column}.issued-heading .primary-btn{width:100%}.official-ticket{grid-template-columns:1fr}.official-ticket-left{border-right:0;border-bottom:1px dashed #bec7d5}.ticket-event-head strong{font-size:16px}.fair-banner{min-height:220px}.fair-banner strong{font-size:40px}.ticket-scan-box{grid-template-columns:1fr 120px}.ticket-scan-box img{width:112px;height:112px}.ticket-info-grid{grid-template-columns:1fr}.placement-box>div:last-child{grid-template-columns:1fr;gap:12px}}
