/* ------------------------------------------------------------------
   Golato public booking page — mobile-first, RTL.
   ------------------------------------------------------------------ */
:root {
    --brand: #1bbf8a;
    --brand-dark: #149c70;
    --brand-soft: #e6f8f1;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e5e9ef;
    --bg: #f5f7fa;
    --card: #ffffff;
    --danger: #ef4444;
    --danger-soft: #fee2e2;
    --warn: #f59e0b;
    --warn-soft: #fef3c7;
    --female: #9b64c5;
    --female-soft: #f1e9fa;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 6px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 -8px 30px rgba(15, 23, 42, .12);
    --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.book-body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Rubik", "Segoe UI", Tahoma, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }

.page {
    max-width: 560px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
}
.page-branch { padding-bottom: calc(110px + var(--safe-b)); }
.page-center { display: flex; align-items: center; justify-content: center; padding: 24px; }

/* Top bar ---------------------------------------------------------- */
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-logo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: #fff; border: 1px solid var(--line); flex: 0 0 auto; }
.topbar-title { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-sub { font-size: 12px; color: var(--muted); }
.topbar-user { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.user-phone { background: var(--brand-soft); color: var(--brand-dark); padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.icon-btn {
    width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink-2);
}
.link-btn { background: none; border: 0; color: var(--brand-dark); font-weight: 600; cursor: pointer; padding: 4px; font-size: 13px; }
.link-btn:disabled { color: var(--muted); cursor: default; }

/* Hero ------------------------------------------------------------- */
.hero { background: var(--card); border-bottom: 1px solid var(--line); }
.hero-media {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0;
    height: 210px; scrollbar-width: none;
}
.hero-media::-webkit-scrollbar { display: none; }
.hero-media img { flex: 0 0 100%; scroll-snap-align: start; width: 100%; height: 210px; object-fit: cover; }
.hero-fallback, .branch-media-fallback {
    flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1bbf8a); color: #fff; font-size: 64px;
}
.hero-body { padding: 12px 16px 14px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-addr { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; min-width: 0; }
.hero-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.tag {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.tag-pay { background: var(--brand-soft); color: var(--brand-dark); border-color: transparent; }
.tag-female { background: var(--female-soft); color: var(--female); border-color: transparent; }
.tag-soft { background: #eef2ff; color: #4338ca; border-color: transparent; }

.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; color: var(--ink-2);
    cursor: pointer; white-space: nowrap; transition: all .15s ease;
}
.chip-ghost { color: var(--brand-dark); border-color: var(--brand); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { font-weight: 500; opacity: .75; }
.chip .chip-off { text-decoration: line-through; opacity: .6; margin-inline-start: 4px; }

/* Blocks ----------------------------------------------------------- */
.block { padding: 18px 16px 6px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.block-head h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.block-hint { font-size: 12px; color: var(--muted); }
/* Numbered step boxes: todo (outlined) → current (dark, pulsing) → done (green). The number stays. */
.step {
    width: 24px; height: 24px; border-radius: 8px; flex: 0 0 auto;
    background: #fff; color: var(--muted); border: 1.5px solid var(--line);
    font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.step.is-done { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.is-current { background: var(--ink); border-color: var(--ink); color: #fff; animation: stepPulse 1.6s ease-out infinite; }
@keyframes stepPulse { 0% { box-shadow: 0 0 0 0 rgba(15, 23, 42, .4); } 70% { box-shadow: 0 0 0 9px rgba(15, 23, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0); } }
.step-req { display: none; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: var(--warn-soft); color: #92400e; font-weight: 700; line-height: 1.5; }
.block-step.is-current .step-req { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .step.is-current { animation: none; } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

.segment { display: inline-flex; background: #e9edf3; border-radius: 12px; padding: 3px; margin-top: 10px; }
.segment-btn {
    border: 0; background: transparent; padding: 7px 16px; border-radius: 10px; font-weight: 600;
    font-size: 13px; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.segment-btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }

/* Date strip ------------------------------------------------------- */
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.date {
    flex: 0 0 64px; scroll-snap-align: start; border: 1.5px solid var(--line); background: #fff; border-radius: 16px;
    padding: 10px 4px; text-align: center; cursor: pointer; transition: all .15s ease; color: var(--ink-2);
}
.date .d-name { font-size: 11px; color: var(--muted); font-weight: 600; }
.date .d-num { font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.date .d-month { font-size: 11px; color: var(--muted); }
.date.is-active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(27, 191, 138, .35); }
.date.is-active .d-name, .date.is-active .d-num, .date.is-active .d-month { color: #fff; }
.date.is-weekend .d-name { color: var(--brand-dark); }
.date.is-active.is-weekend .d-name { color: #fff; }

/* Slots ------------------------------------------------------------ */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
    border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 6px; text-align: center;
    cursor: pointer; transition: all .15s ease; position: relative; color: var(--ink);
}
.slot .s-time { font-weight: 700; font-size: 15px; }
.slot .s-end { font-size: 10.5px; color: var(--muted); }
.slot.is-active .s-end { color: #cbd5e1; }
.slot.is-full .s-end { color: var(--muted); }
.slot .s-price { font-size: 12px; color: var(--brand-dark); font-weight: 600; margin-top: 2px; }
.slot .s-price.off { color: var(--danger); }
.slot .s-price s { color: var(--muted); font-weight: 400; margin-inline-start: 4px; }
.slot .s-moon { position: absolute; top: 6px; inset-inline-start: 8px; font-size: 12px; color: #6366f1; }
.slot.is-full { background: #f1f4f8; color: var(--muted); border-style: dashed; cursor: not-allowed; }
.slot.is-full .s-time { text-decoration: line-through; opacity: .7; }
.slot.is-full .s-price { color: var(--muted); font-weight: 500; }
.slot.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot.is-active .s-price { color: #a7f3d0; }
.slot.is-open { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 191, 138, .15); }
.slots-empty {
    grid-column: 1 / -1; text-align: center; padding: 28px 12px; color: var(--muted); background: #fff;
    border-radius: 14px; border: 1px dashed var(--line);
}
.slots-empty i { font-size: 30px; display: block; margin-bottom: 6px; color: var(--muted); }
.slots-sep { grid-column: 1 / -1; font-size: 12px; color: #6366f1; font-weight: 600; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.slots-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.skeleton { background: linear-gradient(90deg, #eceff3 25%, #f6f8fa 50%, #eceff3 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 14px; height: 62px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Courts panel ----------------------------------------------------- */
.courts { margin-top: 12px; background: #fff; border: 1.5px solid var(--brand); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.courts-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.courts-head strong { color: var(--ink); font-size: 14px; }
.court {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px;
    border: 1.5px solid var(--line); margin-bottom: 8px; cursor: pointer; transition: all .15s ease; background: #fff;
}
.court:last-child { margin-bottom: 0; }
.court .c-name { font-weight: 700; }
.court .c-type { font-size: 12px; color: var(--muted); }
.court .c-price { font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.court .c-price s { font-weight: 400; color: var(--muted); font-size: 12px; margin-inline-start: 4px; }
.court { width: 100%; font-family: inherit; font-size: inherit; text-align: start; color: inherit; }
.court:focus-visible, .slot:focus-visible, .date:focus-visible, .chip:focus-visible, .btn:focus-visible { outline: 3px solid rgba(27, 191, 138, .45); outline-offset: 2px; }
.court.is-full { opacity: .55; cursor: not-allowed; background: #f5f7fa; }
.court.is-full .c-price { color: var(--muted); }
.court.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.court.is-active .c-type, .court.is-active .c-price { color: #a7f3d0; }
.court .c-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--female-soft); color: var(--female); font-weight: 600; }
.court .c-shared { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-weight: 600; }

/* Notices ---------------------------------------------------------- */
.notice { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; font-size: 13px; margin: 12px 16px 0; }
.notice i { font-size: 18px; flex: 0 0 auto; }
.notice-warn { background: var(--warn-soft); color: #92400e; }
.notice-info { background: #eef2ff; color: #3730a3; margin: 0; }
.notice-tip { background: linear-gradient(135deg, #5b8def, #7aa7ff); color: #fff; margin: 0; font-weight: 600; font-size: 14px; padding: 14px 16px; border-radius: 14px; }
.notice-tip i { color: #fff; }
.block-head h3 i { color: var(--brand-dark); font-size: 18px; }
.block-help { font-size: 12px; color: var(--muted); margin: -4px 0 10px; }
.fits { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 8px; }
.fits:empty { display: none; }
.sum-title { font-weight: 700; font-size: 13px; margin: 8px 0 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sum-title small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.otp-phone { font-weight: 700; color: var(--ink); }
.wallet-toggle span strong { font-size: 13.5px; }

/* CTA bar ---------------------------------------------------------- */
.cta-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    max-width: 560px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + var(--safe-b));
    background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
    animation: rise .22s ease;
}
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.cta-info { min-width: 0; }
.cta-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 700; font-size: 15px; cursor: pointer;
    transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(27, 191, 138, .35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 18px; font-size: 16px; }
.btn-cta { flex: 0 0 auto; flex-direction: column; gap: 0; line-height: 1.2; padding: 10px 18px; min-width: 130px; }
.btn-cta #ctaPrice { font-size: 16px; }
.btn-cta-label { font-size: 12px; font-weight: 600; opacity: .9; }

/* Sheets ----------------------------------------------------------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 40; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; max-width: 560px; margin: 0 auto;
    background: #fff; border-radius: 24px 24px 0 0; padding: 10px 20px calc(20px + var(--safe-b));
    box-shadow: var(--shadow-lg); animation: rise .25s cubic-bezier(.2, .8, .2, 1); max-height: 92vh; overflow-y: auto;
}
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: #d5dbe3; margin: 4px auto 14px; }
.sheet h2 { font-size: 20px; margin-bottom: 6px; }
.sheet > p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.sheet-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-dark); font-size: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input {
    width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; font-size: 18px; font-weight: 600;
    letter-spacing: 1px; outline: none; transition: border .15s ease; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 191, 138, .15); }
.field-hint { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; font-weight: 500; text-align: start; }
.field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.field.is-invalid .field-hint { color: var(--danger); font-weight: 600; }
.field.is-valid .field-hint { color: var(--brand-dark); font-weight: 600; }
.btn.is-locked { opacity: .55; box-shadow: none; cursor: not-allowed; }
.shake { animation: shake .3s ease; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.otp { position: relative; margin: 6px 0 16px; }
.otp-box { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; font-size: 24px; letter-spacing: 32px; caret-color: transparent; }
.otp-digits { display: flex; gap: 10px; justify-content: center; pointer-events: none; }
.otp-digits span {
    width: 58px; height: 64px; border: 1.5px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800; background: #fff; transition: border .15s ease;
}
.otp-digits span.is-focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 191, 138, .15); }
.otp-digits span.is-filled { border-color: var(--ink); }
.otp-resend { display: block; margin: 12px auto 0; }

.summary { background: var(--bg); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }
.summary-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.summary-row i { color: var(--brand-dark); font-size: 18px; }
.summary-row + .summary-row { border-top: 1px dashed var(--line); }
.price-box { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.price-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.price-row strong { font-size: 18px; }
.price-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pay-options { display: grid; gap: 8px; margin-bottom: 12px; }
.pay-option {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
}
.pay-option input { accent-color: var(--brand); width: 18px; height: 18px; }
.pay-option div { flex: 1; }
.pay-option strong { display: block; font-size: 14px; }
.pay-option small { color: var(--muted); font-size: 12px; }
.pay-option.is-active { border-color: var(--brand); background: var(--brand-soft); }
.pay-amount { font-weight: 800; white-space: nowrap; }
.policy { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); background: var(--warn-soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.policy i { color: #b45309; font-size: 16px; }
.secure-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; display: flex; gap: 6px; justify-content: center; align-items: center; }

/* Overlay / toast -------------------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(255, 255, 255, .85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-weight: 600; color: var(--ink-2); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #d1fae5; border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
    position: fixed; bottom: calc(96px + var(--safe-b)); left: 50%; transform: translate(-50%, 20px); z-index: 70;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none;
    transition: all .2s ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* Landing / branches ----------------------------------------------- */
.branches { padding: 16px; display: grid; gap: 14px; }
.branch-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: block; transition: transform .15s ease; }
.branch-card:active { transform: scale(.99); }
.branch-media { position: relative; height: 170px; background: #e9edf3; }
.branch-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.branch-tags { position: absolute; bottom: 10px; inset-inline-start: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.branch-body { padding: 12px 14px 14px; }
.branch-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.branch-head h2 { font-size: 17px; }
.branch-price { font-size: 13px; color: var(--muted); white-space: nowrap; }
.branch-price strong { color: var(--brand-dark); font-size: 16px; }
.branch-addr { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.branch-sizes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.branch-closed { margin-top: 10px; font-size: 12px; color: #92400e; background: var(--warn-soft); border-radius: 10px; padding: 6px 10px; display: inline-flex; gap: 6px; align-items: center; }
.branch-cta { margin-top: 12px; color: var(--brand-dark); font-weight: 700; display: flex; align-items: center; gap: 4px; }

/* Result ----------------------------------------------------------- */
.result { padding: 28px 16px 16px; text-align: center; }
.result-icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 44px; color: #fff; animation: pop .3s ease; }
.result-icon.ok { background: var(--brand); box-shadow: 0 10px 30px rgba(27, 191, 138, .4); }
.result-icon.bad { background: var(--danger); box-shadow: 0 10px 30px rgba(239, 68, 68, .35); }
.result-icon.warn { background: var(--warn); box-shadow: 0 10px 30px rgba(245, 158, 11, .35); }
.result h1 { font-size: 22px; margin-bottom: 6px; }
.result > p { color: var(--muted); margin-bottom: 20px; }
.ticket { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: start; overflow: hidden; }
.ticket-key { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--ink); color: #fff; }
.ticket-key span { font-size: 13px; opacity: .8; }
.ticket-key strong { font-size: 20px; letter-spacing: 2px; font-family: "Rubik", monospace; }
.ticket-rows { padding: 8px 16px; }
.ticket-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; }
.ticket-row + .ticket-row { border-top: 1px dashed var(--line); }
.ticket-row i { color: var(--brand-dark); font-size: 18px; }
.ticket-amounts { border-top: 2px dashed var(--line); padding: 10px 16px; display: grid; gap: 6px; font-size: 14px; }
.ticket-amounts div { display: flex; justify-content: space-between; }
.ok-text { color: var(--brand-dark); }
.result-actions { display: grid; gap: 10px; margin-top: 18px; }

/* Empty ------------------------------------------------------------ */
.empty { text-align: center; max-width: 360px; }
.empty-logo { width: 110px; margin-bottom: 20px; }
.empty-icon { width: 72px; height: 72px; border-radius: 20px; background: var(--warn-soft); color: #b45309; font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.empty h1 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 18px; }

/* Footer ----------------------------------------------------------- */
.footer { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; color: var(--muted); font-size: 12px; }
.footer img { width: 84px; opacity: .8; }
.footer-pad { padding-bottom: 40px; }

/* Language chip + right cluster ------------------------------------ */
.topbar-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.chip-lang { padding: 6px 10px; font-size: 12px; gap: 4px; }
.chip-lang i { font-size: 14px; }

/* Voucher ----------------------------------------------------------- */
.voucher { margin-bottom: 12px; }
.voucher-toggle {
    background: none; border: 1.5px dashed var(--line); border-radius: 12px; width: 100%; padding: 10px 12px;
    color: var(--brand-dark); font-weight: 600; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 8px; text-align: start;
}
.voucher-toggle i { font-size: 18px; }
.voucher-form { display: flex; gap: 8px; }
.voucher-form input {
    flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 15px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; outline: none; font-family: inherit; color: var(--ink); background: #fff;
}
.voucher-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 191, 138, .15); }
.voucher-form .btn { padding: 10px 16px; border-radius: 12px; flex: 0 0 auto; }
.voucher-applied {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--brand-soft); color: var(--brand-dark);
    border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600;
}
.price-row + .price-row { margin-top: 6px; }
.price-row-discount { color: var(--brand-dark); font-size: 14px; }
.price-row-discount strong { font-size: 14px; }
.price-row-total { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }

/* Split (قطة) + wallet ---------------------------------------------- */
.split-panel { border: 1.5px solid var(--line); border-radius: 14px; padding: 6px 12px; margin-bottom: 12px; background: #fff; animation: pop .18s ease; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.stepper-row + .stepper-row { border-top: 1px dashed var(--line); }
.stepper-row strong { display: block; font-size: 14px; }
.stepper-row small { color: var(--muted); font-size: 11.5px; display: block; }
.stepper { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.stepper button {
    width: 36px; height: 36px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 20px; font-weight: 700;
    color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper span { min-width: 56px; text-align: center; font-weight: 800; font-size: 16px; }
.split-summary { border-top: 1.5px solid var(--line); padding: 8px 0 6px; display: grid; gap: 6px; font-size: 13px; }
.split-summary div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.split-summary small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.split-reward { color: var(--brand-dark); font-weight: 700; }
.wallet-toggle {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 12px;
    font-size: 13.5px; font-weight: 600; cursor: pointer; background: #fff;
}
.wallet-toggle input { accent-color: var(--brand); width: 18px; height: 18px; }
.ticket-amounts .sub { color: var(--muted); font-size: 13px; padding-inline-start: 14px; }

/* Hold countdown on the pending page --------------------------------- */
.hold { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--warn-soft); color: #92400e; border-radius: 14px; padding: 10px 14px; margin-top: 14px; font-size: 13px; font-weight: 600; text-align: start; }
.hold strong { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.hold.is-over { background: var(--danger-soft); color: #991b1b; }

/* Share (split link) -------------------------------------------------- */
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.btn-whatsapp:hover { background: #1ebe5d; }
.share-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 14px; display: grid; gap: 10px; }
.share-link { display: flex; gap: 8px; }
.share-link input {
    flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-family: inherit;
    color: var(--ink-2); background: var(--bg); outline: none; direction: ltr; text-align: left;
}
.share-link .btn { padding: 10px 12px; border-radius: 12px; flex: 0 0 auto; font-size: 13px; }

/* Cancel booking ------------------------------------------------------ */
.btn-danger-ghost { background: #fff; color: var(--danger); border: 1.5px solid #fecaca; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 8px 20px rgba(239, 68, 68, .3); }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s ease; }
.modal-card { background: #fff; border-radius: 20px; padding: 22px 20px 18px; width: 100%; max-width: 420px; text-align: center; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
.modal-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--danger-soft); color: var(--danger); font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.modal-card h2 { font-size: 18px; margin-bottom: 6px; }
.modal-card p { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.modal-card .field { text-align: start; }
.modal-card .field input { font-size: 14px; letter-spacing: 0; font-weight: 500; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }

/* LTR tweaks --------------------------------------------------------- */
[dir="ltr"] .ticket-key strong { font-family: "Rubik", monospace; }
[dir="ltr"] .d-name { letter-spacing: .2px; }

@media (min-width: 600px) {
    .page { box-shadow: 0 0 0 1px var(--line); }
    .slots { grid-template-columns: repeat(4, 1fr); }
}

/* Bottom tab bar (book / my bookings) ---------------------------------- */
.tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; max-width: 560px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 10px calc(6px + var(--safe-b));
    background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.tab {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px 5px; border-radius: 14px;
    font-size: 12px; font-weight: 600; color: var(--muted); transition: all .15s ease;
}
.tab i { font-size: 22px; line-height: 1; }
.tab.is-active { color: var(--brand-dark); background: var(--brand-soft); }
.page-tabs { padding-bottom: calc(84px + var(--safe-b)); }

/* My bookings ----------------------------------------------------------- */
.login-card { margin: 24px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 20px 20px; text-align: center; }
.login-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--brand-soft); color: var(--brand-dark); font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.login-card h1 { font-size: 20px; margin-bottom: 6px; }
.login-card p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.reception-note { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); background: #eef2ff; border-radius: 12px; padding: 9px 12px; margin-bottom: 12px; }
.reception-note i { color: #4338ca; font-size: 16px; }
.empty-inline { text-align: center; padding: 26px 14px; background: #fff; border-radius: 14px; border: 1px dashed var(--line); display: grid; gap: 8px; justify-items: center; color: var(--ink-2); font-weight: 600; }
.empty-inline i { font-size: 30px; color: var(--muted); }
.empty-inline.muted { color: var(--muted); font-weight: 500; }
.empty-inline .btn { margin-top: 4px; }

.bk-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; border-inline-start: 4px solid var(--line); }
.bk-card.tone-warn { border-inline-start-color: var(--warn); }
.bk-card.tone-ok { border-inline-start-color: var(--brand); }
.bk-card.tone-info { border-inline-start-color: #6366f1; }
.bk-card.tone-bad { border-inline-start-color: var(--danger); }
.bk-card.is-past, .bk-card.is-cancelled { opacity: .92; }
.bk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px 8px; }
.bk-when strong { display: block; font-size: 15px; }
.bk-when span { font-size: 13px; color: var(--muted); }
.is-cancelled .bk-when strong { text-decoration: line-through; color: var(--muted); }
.status { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.status.tone-warn { background: var(--warn-soft); color: #92400e; }
.status.tone-ok { background: var(--brand-soft); color: var(--brand-dark); }
.status.tone-info { background: #eef2ff; color: #4338ca; }
.status.tone-bad { background: var(--danger-soft); color: #991b1b; }
.status.tone-muted { background: #eef1f5; color: var(--muted); }
.bk-body { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 14px 10px; }
.bk-rows { display: grid; gap: 4px; min-width: 0; }
.bk-row { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); }
.bk-row i { color: var(--brand-dark); font-size: 16px; flex: 0 0 auto; }
.bk-key { flex: 0 0 auto; text-align: center; background: var(--ink); color: #fff; border-radius: 12px; padding: 6px 12px; }
.bk-key span { display: block; font-size: 10.5px; opacity: .75; }
.bk-key strong { font-size: 16px; letter-spacing: 1.5px; font-family: "Rubik", monospace; }
.bk-amounts { border-top: 1px dashed var(--line); margin: 0 14px; padding: 8px 0; display: grid; gap: 4px; font-size: 13px; }
.bk-amounts div { display: flex; justify-content: space-between; gap: 10px; }
.bk-amounts .ok { color: var(--brand-dark); font-weight: 600; }
.bk-amounts .muted { color: var(--muted); font-size: 12px; }
.bk-hold { margin: 6px 14px 0; }
.bk-actions { display: grid; gap: 8px; padding: 10px 14px 14px; }
.bk-actions .btn { padding: 11px 14px; font-size: 14px; border-radius: 12px; }
.bk-actions:empty { display: none; }
