@font-face {
    font-family: 'STC';
    src: url('../fonts/stc/STC-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'STC';
    src: url('../fonts/stc/STC-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --sea-deep: #0c3d5a;
    --sea: #156585;
    --foam: #f5f8fa;
    --surface: #e8f1f5;
    --sand: #f0f2f4;
    --ink: #1a2f3a;
    --ink-muted: #6b7f8c;
    --line: #e2eaef;
    --white: #ffffff;
    --warn-bg: #fff8eb;
    --warn-ink: #7a5c1e;
    --ok-bg: #e8f5f0;
    --ok-ink: #1e5c48;
    --err-bg: #fdeeee;
    --err-ink: #8b2e2e;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 2px 8px rgba(12, 61, 90, 0.06);
}

* { box-sizing: border-box; }

html {
    -webkit-tap-highlight-color: transparent;
}

html:has(.app-shell) {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    font-family: 'STC', Tahoma, sans-serif;
    background: var(--sand);
    color: var(--ink);
    line-height: 1.5;
}

/* ── Capacitor / iOS native ── */
html.is-native,
html.is-native body {
    background: var(--white);
}

html.is-native .app-shell {
    max-width: 100%;
    width: 100%;
    box-shadow: none;
}

html.is-native .app-header {
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
}

html.is-native .home-top {
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
}

html.is-native .list-top {
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
}

html.is-native .simple-head {
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
}

html.is-native .notif-hero {
    padding-top: calc(26px + env(safe-area-inset-top, 0px));
}

html.is-native .notif-hero__back {
    top: calc(22px + env(safe-area-inset-top, 0px));
}

html.is-native .bottom-nav {
    bottom: max(14px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

html.is-native .app-input,
html.is-native .home-search__input,
html.is-native select.app-input,
html.is-native textarea.app-input {
    font-size: 16px;
}
html.is-native .home-search__input,
html.is-native select.app-input,
html.is-native textarea.app-input {
    font-size: 16px;
}

body:has(.app-shell) {
    height: 100%;
    overflow: hidden;
}

.app-shell {
    position: relative;
    max-width: 430px;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line);
    overflow: hidden;
}

/* ── Header ── */
.app-header {
    background: var(--sea-deep);
    color: var(--white);
    padding: 14px 16px 16px;
}

.app-header--light {
    background: var(--white);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    flex-shrink: 0;
}

.app-header--light .brand-mark {
    background: var(--sea-deep);
    color: var(--white);
    border: none;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.brand-tag {
    font-size: 12px;
    opacity: .75;
    font-weight: 400;
}

.header-action {
    background: none;
    border: none;
    color: rgba(255,255,255,.85);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0;
}

.app-header--light .header-action {
    color: var(--sea);
}

.page-title {
    margin: 12px 0 0;
    font-size: 15px;
    font-weight: 600;
}

.page-sub {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: .7;
}

.link-back {
    display: inline-block;
    color: inherit;
    opacity: .85;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 6px;
}

/* ── Main (تمرير داخلي بدون شريط ظاهر) ── */
.page-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 110px;
}

.page-main::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.page-main--home,
.page-main--flush-top {
    padding-top: 0;
    padding-bottom: 110px;
}

.page-main--no-nav {
    padding-bottom: 28px;
}

.app-shell--home {
    background: var(--white);
}

.page-body {
    padding: 16px;
}

/* ── Home (TripGlide-style) ── */
.home-page {
    padding-bottom: 8px;
}

.home-top {
    padding: 20px 20px 0;
    background: var(--white);
}

.home-greet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.home-greet__name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
}

.home-greet__sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--ink-muted);
}

/* ===== Avatars (gender-based — profile page & cards) ===== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    color: #fff;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.avatar__img { width: 100%; height: 100%; object-fit: cover; }
.avatar--male { background-color: var(--sea); }
.avatar--female { background-color: #c2698a; }
.avatar--sm { width: 38px; height: 38px; font-size: 17px; }
.avatar--md { width: 48px; height: 48px; font-size: 20px; }

.gender-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender-pick input { display: none; }
.gender-pick__body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-weight: 700;
    color: var(--ink-muted);
    cursor: pointer;
}
.gender-pick--male input:checked + .gender-pick__body { border-color: var(--sea); color: var(--sea); background: var(--surface); }
.gender-pick--female input:checked + .gender-pick__body { border-color: #c2698a; color: #c2698a; background: #f7edf1; }

.home-search__icon {
    font-size: 18px;
    color: var(--ink-muted);
    flex-shrink: 0;
}

.home-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-search__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border-radius: 999px;
    padding: 0 16px;
    height: 52px;
}

.home-search__input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    outline: none;
}

.home-search__input::placeholder {
    color: #94a3ae;
}

.home-promos {
    padding: 18px 20px 0;
    overflow: visible;
}

/* ── Swiper / Promo ── */
.promo-swiper {
    overflow: visible;
    padding-bottom: 4px;
}

.promo-swiper .swiper-slide {
    height: auto;
}

.promo-swiper .swiper-pagination {
    position: static;
    margin-top: 10px;
}

.promo-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #c5d5de;
    opacity: 1;
}

.promo-swiper .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 999px;
    background: var(--sea-deep);
}

.promo-card {
    position: relative;
    display: block;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    background: var(--sea-deep);
}

.promo-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-card__solid {
    position: absolute;
    inset: 0;
    background: var(--sea-deep);
}

.promo-card__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(8, 32, 46, 0.9) 0%, rgba(8, 32, 46, 0.45) 38%, rgba(8, 32, 46, 0) 68%);
}

.promo-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 20px;
    color: var(--white);
    z-index: 2;
}

.promo-card__tag {
    font-size: 11px;
    font-weight: 700;
    opacity: .85;
    margin-bottom: 4px;
    display: block;
}

.promo-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.promo-card__sub {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: .92;
    line-height: 1.4;
}

.home-section {
    padding: 22px 20px 0;
}

.home-section__title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.chips-scroll::-webkit-scrollbar { display: none; }

.chip {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 11px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: var(--surface);
    color: var(--ink-muted);
}

.chip--active {
    background: var(--sea-deep);
    color: var(--white);
}

.home-section--explore {
    padding-bottom: 0;
}

.home-section--potw {
    padding-top: 20px;
    padding-bottom: 28px;
    overflow: visible;
}

.potw-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 124px;
    padding-block: 24px;
    padding-inline: 22px 136px;
    border-radius: 28px;
    background: var(--sea-deep);
    overflow: visible;
    box-shadow: 0 12px 32px rgba(12, 61, 90, .22);
    isolation: isolate;
}

.potw-banner__decor {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.potw-banner__blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}

.potw-banner__blob--1 {
    width: 88px;
    height: 88px;
    inset-inline-start: -12px;
    bottom: -20px;
}

.potw-banner__blob--2 {
    width: 48px;
    height: 48px;
    inset-inline-end: 112px;
    top: 10px;
    background: rgba(21, 101, 133, .45);
}

.potw-banner__content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    color: var(--white);
    text-align: start;
}

.potw-banner__eyebrow {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .82);
}

.potw-banner__name {
    margin: 0;
    font-size: clamp(26px, 6.5vw, 34px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -.02em;
}

.potw-banner__sub {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(255, 255, 255, .88);
}

.potw-banner__figure {
    position: absolute;
    inset-inline-end: 6px;
    bottom: 0;
    width: 136px;
    height: 172px;
    z-index: 2;
    pointer-events: none;
    overflow: visible;
}

.potw-banner__img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .28));
}

.potw-banner__placeholder {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 56px;
    color: rgba(255, 255, 255, .9);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .2));
}

.explore-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -20px;
    padding: 0 20px 12px;
}

.explore-scroll::-webkit-scrollbar {
    display: none;
}

.explore-slide {
    flex: 0 0 82%;
    max-width: 320px;
    scroll-snap-align: center;
}

.explore-card {
    position: relative;
    height: 360px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 4px 14px rgba(8, 32, 46, 0.1);
}

.explore-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.explore-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    color: var(--sea-deep);
}

.explore-card__placeholder i {
    font-size: 96px;
    opacity: 0.18;
}

.explore-card__badge {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    z-index: 3;
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    background: rgba(12, 61, 90, 0.7);
    backdrop-filter: blur(6px);
    padding: 7px 14px;
    border-radius: 999px;
}

.explore-card__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(8, 32, 46, 0.92) 0%, rgba(8, 32, 46, 0.55) 38%, rgba(8, 32, 46, 0) 70%);
}

.explore-card__overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 16px 16px;
    color: var(--white);
}

.explore-card__sport {
    margin: 0 0 2px;
    font-size: 12px;
    opacity: 0.9;
}

.explore-card__name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.explore-card__meta {
    margin: 6px 0 14px;
    font-size: 13px;
    opacity: 0.92;
}

.explore-card__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px;
    background: rgba(8, 32, 46, 0.62);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    color: var(--white);
    text-decoration: none;
}

.explore-card__btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: var(--sea-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.explore-card__btn-text {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    padding-inline-end: 44px;
}

.home-empty-filter {
    text-align: center;
    margin-top: 16px;
}

/* ── Bottom nav (عائم فوق المحتوى) ── */
.bottom-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
    padding: 8px;
    background: var(--sea-deep);
    border-radius: 999px;
    z-index: 30;
}

.bottom-nav__item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 6px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    min-width: 0;
}

.bottom-nav__icon {
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav__label {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
}

.bottom-nav__item.is-active {
    color: var(--sea-deep);
    background: var(--white);
}

.btn-book {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: var(--sea-deep);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn-book:active {
    background: var(--sea);
}

/* ── Cards & forms ── */
.app-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.app-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.app-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    font-family: inherit;
    font-size: 14px;
    background: var(--white);
    color: var(--ink);
}

.app-input:focus {
    outline: none;
    border-color: var(--sea);
    box-shadow: 0 0 0 3px rgba(21, 101, 133, .12);
}

.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.app-btn-primary {
    background: var(--sea-deep);
    color: var(--white);
}

.app-btn-primary:active { background: var(--sea); }

.app-btn-secondary {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
}

.stack { display: grid; gap: 12px; }

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.choice-card { cursor: pointer; }
.choice-card input { display: none; }

.choice-card-body {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    text-align: center;
    background: var(--white);
    transition: border-color .15s, background .15s;
}

.choice-card input:checked ~ .choice-card-body {
    border-color: var(--sea);
    background: #e8f3f7;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.slot-option input { display: none; }

.slot-option span {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    background: var(--white);
}

.slot-option input:checked + span {
    background: var(--sea-deep);
    border-color: var(--sea-deep);
    color: var(--white);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: var(--white);
    cursor: pointer;
}

.checkbox-row input { accent-color: var(--sea-deep); }

.notice-box {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--warn-bg);
    color: var(--warn-ink);
    font-size: 12px;
    line-height: 1.6;
    border: 1px solid #f0e0b8;
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.badge-yellow { background: var(--warn-bg); color: var(--warn-ink); }
.badge-green { background: var(--ok-bg); color: var(--ok-ink); }
.badge-gray { background: #eef2f5; color: var(--ink-muted); }

/* ── Toast notifications ── */
.toast-stack {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    background: var(--white);
    border-radius: 14px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(8, 32, 46, 0.22);
    border-inline-start: 4px solid var(--sea);
    animation: toastIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.35s, transform 0.35s;
}

.toast i {
    font-size: 20px;
    flex-shrink: 0;
}

.toast--success {
    color: var(--ok-ink);
    border-inline-start-color: #1e8c5e;
}

.toast--success i {
    color: #1e8c5e;
}

.toast--error {
    color: var(--err-ink);
    border-inline-start-color: var(--err-ink);
}

.toast--error i {
    color: var(--err-ink);
}

.toast--hide {
    opacity: 0;
    transform: translateY(-12px);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Inline alerts (auth forms) ── */
.alert-error,
.alert-success {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.6;
}

.alert-error {
    background: var(--err-bg);
    border: 1px solid #f0c0c0;
    color: var(--err-ink);
}

.alert-success {
    background: var(--ok-bg);
    border: 1px solid #b8ddd0;
    color: var(--ok-ink);
}

/* ── Auth pages (دخول / تسجيل) ── */
.auth-screen {
    min-height: 100dvh;
    min-height: 100svh;
    background: var(--sea-deep);
}

.auth-page {
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #0c3d5a 0%, #0f4d6f 42%, #e8f1f5 42.1%, #f5f8fa 100%);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.auth-page--scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-page--scroll .auth-page__body {
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.auth-page--scroll .auth-card {
    margin: 0 auto;
}

.auth-page__toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px 0;
    flex-shrink: 0;
}

.auth-page__toolbar .lang-switch {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
}

.auth-page__toolbar .lang-switch__btn {
    color: rgba(255, 255, 255, 0.8);
}

.auth-page__toolbar .lang-switch__btn.is-active {
    background: #fff;
    color: var(--sea-deep);
}

.auth-page__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px 28px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border-radius: 24px;
    padding: 28px 22px 24px;
    box-shadow: 0 18px 48px rgba(8, 32, 46, 0.14);
}

.auth-card__hero {
    text-align: center;
    margin-bottom: 22px;
}

.auth-card__mark {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: var(--sea-deep);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.auth-card__title {
    margin: 0;
    font-size: clamp(21px, 5vw, 24px);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.auth-card__sub {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-muted);
}

.auth-alert {
    margin-bottom: 14px;
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--err-bg);
    border: 1px solid #f0c8c8;
    color: var(--err-ink);
    font-size: 13px;
    line-height: 1.5;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.auth-field__control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 14px;
    background: var(--foam);
    border: 1.5px solid transparent;
    border-radius: 14px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-field__control:focus-within {
    background: #fff;
    border-color: var(--sea);
}

.auth-field__control i {
    color: var(--sea-deep);
    font-size: 20px;
    flex-shrink: 0;
}

.auth-field__control input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    outline: none;
}

.auth-field__control input::placeholder {
    color: #9aadb8;
}

.auth-alert--ok {
    background: #e8f6ef;
    border-color: #b8e0cc;
    color: #1f5c40;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
    padding: 4px;
    border-radius: 14px;
    background: var(--foam);
}

.auth-tabs__btn {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.auth-tabs__btn.is-active {
    background: #fff;
    color: var(--sea-deep);
    box-shadow: 0 1px 4px rgba(12, 61, 90, 0.08);
}

.auth-panel {
    display: none;
}

.auth-panel.is-active {
    display: block;
}

.auth-hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-muted);
}

.auth-form__links {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}

.auth-form__links a {
    font-size: 13px;
    color: var(--sea-deep);
    font-weight: 700;
    text-decoration: none;
}

.auth-inline-form {
    margin-top: 12px;
    text-align: center;
}

.auth-link-btn {
    border: 0;
    background: transparent;
    color: var(--sea-deep);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.auth-link-btn:disabled {
    color: var(--ink-muted);
    cursor: not-allowed;
    text-decoration: none;
}

.auth-submit {
    margin-top: 6px;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: var(--sea-deep);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.auth-submit:active {
    transform: scale(0.99);
    background: var(--sea);
}

.auth-card__foot {
    margin: 20px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.6;
}

.auth-card__foot a {
    color: var(--sea-deep);
    font-weight: 700;
    text-decoration: none;
}

.auth-card__legal {
    margin: 10px 0 0;
    text-align: center;
    font-size: 12px;
}

.auth-card__legal a {
    color: var(--ink-muted);
    text-decoration: underline;
}

.privacy-page__intro {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-muted);
}

.privacy-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8eef2;
}

.privacy-section:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.privacy-section__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.privacy-section__body {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-muted);
}

.auth-checks {
    display: grid;
    gap: 8px;
}

.auth-page .gender-picks {
    margin-top: 2px;
}

/* legacy auth aliases */
.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--ink-muted);
    margin-top: 20px;
}

.auth-footer a {
    color: var(--sea);
    font-weight: 700;
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--ink-muted);
    font-size: 14px;
}

.muted { color: var(--ink-muted); font-size: 13px; }
.text-brand { color: var(--sea); }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-3 { margin-top: 10px; }
.mt-4 { margin-top: 14px; }
.mb-4 { margin-bottom: 14px; }

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.detail-row:last-child { border-bottom: none; }

.detail-row span:first-child { color: var(--ink-muted); }

/* ── Booking page ── */
.booking-page {
    padding-bottom: 8px;
}

.booking-hero {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--surface);
}

.booking-hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-hero__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sea-deep);
}

.booking-hero__placeholder i {
    font-size: 96px;
    opacity: 0.18;
}

.booking-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(8, 32, 46, 0.92) 0%, rgba(8, 32, 46, 0.4) 45%, rgba(8, 32, 46, 0.15) 100%);
}

.booking-hero__back {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    inset-inline-start: 16px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--sea-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(8, 32, 46, 0.25);
}

.booking-hero__back:active {
    transform: scale(0.94);
}

.booking-hero__info {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 22px 40px;
    color: var(--white);
}

.booking-hero__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.booking-hero__name {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 12px rgba(8, 32, 46, 0.4);
}

.booking-form {
    position: relative;
    z-index: 4;
    margin-top: -24px;
    display: grid;
    gap: 24px;
    padding: 28px 20px 22px;
    background: var(--white);
    border-radius: 28px 28px 0 0;
}

.booking-form > * {
    min-width: 0;
}

.booking-block__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.duration-row {
    display: flex;
    gap: 10px;
}

.duration-card {
    flex: 1;
    cursor: pointer;
}

.duration-card input {
    display: none;
}

.duration-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 2px solid transparent;
    text-align: center;
    transition: background .15s, border-color .15s, color .15s;
}

.duration-card__time {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.duration-card__price {
    font-size: 12px;
    color: var(--ink-muted);
}

.duration-card input:checked + .duration-card__body {
    background: var(--sea-deep);
    border-color: var(--sea-deep);
}

.duration-card input:checked + .duration-card__body .duration-card__time,
.duration-card input:checked + .duration-card__body .duration-card__price {
    color: var(--white);
}

.day-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -20px;
    padding: 4px 20px;
}

.day-strip::-webkit-scrollbar {
    display: none;
}

.day-pill {
    flex: 0 0 auto;
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 6px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 2px solid transparent;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

.day-pill__dow {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-muted);
}

.day-pill__num {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}

.day-pill__mon {
    font-size: 11px;
    color: var(--ink-muted);
}

.day-pill.is-active {
    background: var(--sea-deep);
    border-color: var(--sea-deep);
}

.day-pill.is-active .day-pill__dow,
.day-pill.is-active .day-pill__num,
.day-pill.is-active .day-pill__mon {
    color: var(--white);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.slot-chip {
    cursor: pointer;
}

.slot-chip input {
    display: none;
}

.slot-chip span {
    display: block;
    padding: 12px 6px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    transition: background .15s, color .15s;
}

.slot-chip input:checked + span {
    background: var(--sea-deep);
    color: var(--white);
}

.pay-list {
    display: grid;
    gap: 10px;
}

.pay-option {
    cursor: pointer;
}

.pay-option input {
    display: none;
}

.pay-option__body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 2px solid transparent;
    transition: border-color .15s, background .15s;
}

.pay-option__icon {
    font-size: 22px;
    color: var(--sea-deep);
    flex-shrink: 0;
}

.pay-option__label {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.pay-option__sub {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 2px;
}

.pay-option__check {
    font-size: 22px;
    color: var(--sea-deep);
    opacity: 0;
    transition: opacity .15s;
}

.pay-option input:checked + .pay-option__body {
    border-color: var(--sea-deep);
    background: var(--white);
}

.pay-option input:checked + .pay-option__body .pay-option__check {
    opacity: 1;
}

.pay-option--soon {
    cursor: not-allowed;
    opacity: 0.6;
}

.pay-option--soon .pay-option__body {
    border-style: dashed;
}

.pay-option__soon {
    font-size: 11px;
    font-weight: 700;
    color: var(--sea-deep);
    background: #eef3f5;
    border-radius: 999px;
    padding: 3px 10px;
}

.booking-empty {
    margin: 0;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink-muted);
    font-size: 14px;
    text-align: center;
}

.booking-summary {
    margin-top: 4px;
}

.booking-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.booking-summary__label {
    font-size: 14px;
    color: var(--ink-muted);
}

.booking-summary__total {
    font-size: 26px;
    font-weight: 700;
    color: var(--sea-deep);
}

.booking-summary__total small {
    font-size: 14px;
    font-weight: 700;
}

.booking-submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 16px;
    background: var(--sea-deep);
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
}

.booking-submit:active {
    background: var(--sea);
}

.booking-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── List page (حجوزاتي) ── */
.list-page {
    padding: 0 20px;
}

.list-top {
    padding: 24px 0 18px;
}

.list-top__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
}

.list-top__sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--ink-muted);
}

.bk-tabs {
    display: flex;
    gap: 6px;
    background: var(--surface);
    padding: 5px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.bk-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    background: transparent;
    padding: 11px 10px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-muted);
    cursor: pointer;
}

.bk-tab.is-active {
    background: var(--white);
    color: var(--sea-deep);
    box-shadow: 0 2px 8px rgba(8, 32, 46, 0.1);
}

.bk-tab__count {
    font-size: 12px;
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(8, 32, 46, 0.08);
    color: inherit;
}

.bk-tab.is-active .bk-tab__count {
    background: var(--sea-deep);
    color: var(--white);
}

.bk-panel {
    display: none;
}

.bk-panel.is-shown {
    display: block;
    animation: bkPanelFade 0.3s ease;
}

@keyframes bkPanelFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bk-panel-empty {
    text-align: center;
    padding: 44px 20px;
    color: var(--ink-muted);
    font-size: 14px;
}

.bk-list {
    display: grid;
    gap: 14px;
}

.bk-card {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(8, 32, 46, 0.08);
}

.bk-card:active {
    transform: scale(0.99);
}

.bk-card__media {
    position: relative;
    width: 104px;
    flex-shrink: 0;
    background: var(--surface);
}

.bk-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bk-card__media-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sea-deep);
}

.bk-card__media-ph i {
    font-size: 40px;
    opacity: 0.35;
}

.bk-card__sport {
    position: absolute;
    bottom: 8px;
    inset-inline-start: 8px;
    z-index: 1;
    font-size: 10px;
    font-weight: 700;
    color: var(--white);
    background: rgba(8, 32, 46, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px 9px;
    border-radius: 999px;
}

.bk-card__body {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bk-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.bk-card__name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bk-card__meta {
    margin: 0;
    font-size: 12px;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.bk-card__meta i {
    font-size: 15px;
    color: var(--sea);
}

.bk-status {
    flex-shrink: 0;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.bk-status--pending {
    background: var(--warn-bg);
    color: var(--warn-ink);
}

.bk-status--confirmed {
    background: var(--ok-bg);
    color: var(--ok-ink);
}

.bk-status--cancelled {
    background: var(--err-bg);
    color: var(--err-ink);
}

.bk-status--completed {
    background: var(--surface);
    color: var(--sea-deep);
}

.bk-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.bk-card__pay {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-muted);
}

.bk-card__pay i {
    font-size: 16px;
}

.bk-card__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--sea-deep);
}

.bk-card__price small {
    font-size: 12px;
}

.list-pagination {
    margin-top: 18px;
}

.bk-empty {
    text-align: center;
    padding: 56px 24px;
}

.bk-empty__icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--sea-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.bk-empty__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.bk-empty__text {
    margin: 6px 0 20px;
    font-size: 14px;
    color: var(--ink-muted);
}

.bk-empty__btn {
    display: inline-block;
    background: var(--sea-deep);
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 999px;
}

/* ── Profile page (حسابي) ── */
.profile-page {
    padding: 0 20px;
}

.profile-head {
    text-align: center;
    padding: 30px 0 6px;
}

.profile-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}
.profile-avatar__cam {
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sea-deep);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border: 3px solid var(--white);
}

.profile-name {
    margin: 14px 0 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}

.profile-phone {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--ink-muted);
}

.profile-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sea-deep);
    background: var(--surface);
    padding: 7px 13px;
    border-radius: 999px;
}

.profile-tag i {
    font-size: 15px;
}

.profile-tag--admin {
    background: var(--sea-deep);
    color: var(--white);
}

.profile-stats {
    display: flex;
    gap: 12px;
    margin: 22px 0 6px;
}

.profile-stat {
    flex: 1;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px 10px;
    text-align: center;
}

.profile-stat__num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--sea-deep);
}

.profile-stat__label {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--ink-muted);
}

.profile-form {
    display: grid;
    gap: 22px;
    margin-top: 22px;
}

.profile-block__title {
    display: block;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.profile-input {
    width: 100%;
    border: none;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    outline: none;
}

.profile-input:focus {
    box-shadow: 0 0 0 2px var(--sea-deep) inset;
}

.sport-picks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.sport-pick {
    cursor: pointer;
}

.sport-pick input {
    display: none;
}

.sport-pick__body {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 2px solid transparent;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    transition: background .15s, border-color .15s, color .15s;
}

.sport-pick__body i {
    font-size: 18px;
}

.sport-pick input:checked + .sport-pick__body {
    background: var(--sea-deep);
    border-color: var(--sea-deep);
    color: var(--white);
}

.profile-save {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 16px;
    background: var(--sea-deep);
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.profile-save:active {
    background: var(--sea);
}

.profile-extra {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.profile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.profile-link span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-link i {
    font-size: 20px;
    color: var(--sea-deep);
}

.profile-logout {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--err-ink);
    background: var(--white);
    color: var(--err-ink);
    border-radius: 999px;
    padding: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.profile-logout i {
    font-size: 18px;
}

/* ── Booking details (تفاصيل الحجز) ── */
.show-body {
    position: relative;
    z-index: 4;
    margin-top: -24px;
    background: var(--white);
    border-radius: 28px 28px 0 0;
    padding: 24px 20px 22px;
    display: grid;
    gap: 16px;
}

.status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
}

.status-banner i {
    font-size: 26px;
    flex-shrink: 0;
}

.status-banner__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.status-banner__text {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.85;
}

.status-banner--pending {
    background: var(--warn-bg);
    color: var(--warn-ink);
}

.status-banner--confirmed {
    background: var(--ok-bg);
    color: var(--ok-ink);
}

.status-banner--cancelled {
    background: var(--err-bg);
    color: var(--err-ink);
}

.status-banner--completed {
    background: var(--surface);
    color: var(--sea-deep);
}

.show-card {
    background: var(--foam);
    border-radius: var(--radius);
    padding: 4px 16px;
}

.show-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.show-row:last-child {
    border-bottom: none;
}

.show-row__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-muted);
}

.show-row__label i {
    font-size: 17px;
    color: var(--sea);
}

.show-row__val {
    font-weight: 700;
    color: var(--ink);
    text-align: left;
}

.show-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--sea-deep);
    color: var(--white);
}

.show-total__label {
    font-size: 14px;
    opacity: 0.85;
}

.show-total__num {
    font-size: 24px;
    font-weight: 700;
}

.show-total__num small {
    font-size: 13px;
}

.pay-state {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.pay-state--pending {
    background: var(--warn-bg);
    color: var(--warn-ink);
}

.pay-state--confirmed {
    background: var(--ok-bg);
    color: var(--ok-ink);
}

.pay-state--cancelled {
    background: var(--err-bg);
    color: var(--err-ink);
}

.transfer-box {
    background: var(--foam);
    border: 1px dashed var(--sea);
    border-radius: var(--radius);
    padding: 16px;
}

.transfer-box__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--sea-deep);
}

.transfer-box__title i {
    font-size: 18px;
}

.transfer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: 13px;
}

.transfer-row span:first-child {
    color: var(--ink-muted);
}

.transfer-row span:last-child {
    font-weight: 700;
    color: var(--ink);
}

.transfer-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.6;
}

.receipt-box {
    margin-top: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}

.receipt-box__title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
}

.receipt-box__title i {
    color: var(--sea-deep);
    font-size: 18px;
}

.receipt-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.6;
}

.receipt-preview {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    margin-bottom: 10px;
}

.receipt-preview img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.receipt-status {
    margin: 0 0 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #0f9d58;
    display: flex;
    align-items: center;
    gap: 6px;
}

.receipt-status i {
    font-size: 16px;
}

.receipt-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: 1.5px dashed var(--sea-deep);
    background: rgba(13, 110, 130, 0.05);
    color: var(--sea-deep);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.receipt-upload:active {
    background: rgba(13, 110, 130, 0.12);
}

.receipt-upload i {
    font-size: 19px;
}

.lang-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lang-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-card__title i {
    color: var(--sea-deep);
    font-size: 18px;
}

.lang-switch {
    display: inline-flex;
    flex-shrink: 0;
    background: #eef3f5;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.lang-switch__btn {
    border: 0;
    background: transparent;
    color: var(--ink-muted);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.lang-switch__btn.is-active {
    background: var(--sea-deep);
    color: #fff;
}

/* للاستخدام خارج صفحات الدخول فقط */
.lang-switch--card {
    background: #eef3f5;
    border: 1px solid var(--line);
}

.show-cancel {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    border: 1px solid var(--err-ink);
    background: var(--white);
    color: var(--err-ink);
    border-radius: 999px;
    padding: 15px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.show-cancel:active {
    background: var(--err-bg);
}

.show-cancel i {
    font-size: 18px;
}

/* ── Modal / bottom sheet ── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 32, 46, 0.5);
    animation: modalFade 0.25s ease;
}

.modal__sheet {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: var(--white);
    border-radius: 26px 26px 0 0;
    padding: 26px 22px calc(24px + env(safe-area-inset-bottom));
    text-align: center;
    animation: modalUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--err-bg);
    color: var(--err-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.modal__title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
}

.modal__text {
    margin: 8px 0 22px;
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.6;
}

.modal__actions {
    display: flex;
    gap: 10px;
}

.modal__btn {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.modal__btn--ghost {
    background: var(--surface);
    color: var(--ink);
}

.modal__btn--danger {
    background: #d64545;
    color: var(--white);
}

.modal__btn--danger:active {
    background: #c33a3a;
}

.modal__btn--primary {
    background: var(--sea-deep);
    color: var(--white);
}

/* level info modal */
.modal__sheet--scroll { text-align: start; max-height: 86vh; overflow-y: auto; }
.modal__sheet--scroll .modal__title { text-align: center; margin-bottom: 16px; }
.modal__sheet--scroll .modal__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}
.modal__sheet--scroll { scrollbar-width: none; -ms-overflow-style: none; }
.modal__sheet--scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }

.points-hero {
    text-align: center;
    background: var(--sea-deep);
    color: #fff;
    border-radius: 18px;
    padding: 18px 20px 17px;
    margin-bottom: 20px;
}
.points-hero__label { display: block; font-size: 12px; opacity: .72; letter-spacing: .4px; }
.points-hero__num { display: block; font-size: 46px; font-weight: 800; line-height: 1; margin: 4px 0 14px; }
.points-hero__bar {
    height: 7px;
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
    overflow: hidden;
}
.points-hero__bar span {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: 999px;
    transition: width .5s ease;
}
.points-hero__next { display: block; font-size: 12.5px; opacity: .9; margin-top: 11px; }

.ladder { display: flex; flex-direction: column; }
.ladder__item { display: flex; gap: 14px; }
.ladder__item:not(:last-child) { padding-bottom: 20px; }

.ladder__rail { position: relative; flex-shrink: 0; width: 28px; display: flex; justify-content: center; }
.ladder__item:not(:last-child) .ladder__rail::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 26px;
    bottom: -22px;
    width: 3px;
    background: var(--line);
    border-radius: 3px;
}
.ladder__item.is-achieved:not(:last-child) .ladder__rail::after { background: var(--sea); }

.ladder__dot {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 2px solid var(--line);
    color: transparent;
    font-size: 14px;
    font-weight: 700;
}
.ladder__dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
}
.ladder__item.is-achieved .ladder__dot {
    background: var(--sea);
    border-color: var(--sea);
    color: #fff;
}
.ladder__item.is-achieved .ladder__dot::before { display: none; }
.ladder__item.is-current .ladder__dot {
    border-color: var(--sea-deep);
}

.ladder__content { flex: 1; min-width: 0; padding-top: 2px; }
.ladder__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ladder__name { font-weight: 700; font-size: 15px; color: var(--ink); }
.ladder__item.is-locked .ladder__name { color: var(--ink-muted); }
.ladder__desc { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-muted); line-height: 1.55; }

.ladder__pill {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-muted);
    background: var(--foam);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.ladder__pill--current { color: #fff; background: var(--sea); }
.ladder__pill--done { color: #16a34a; background: rgba(22, 163, 74, .12); }
.level-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: var(--warn-bg);
    color: var(--warn-ink);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 13px;
    margin: 16px 0 4px;
}
.profile-tag--btn { border: none; font-family: inherit; cursor: pointer; }
.profile-tag__more { font-size: 14px; opacity: .7; }

.level-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    padding: 6px 14px 6px 8px;
    font-family: inherit;
    cursor: pointer;
}
.level-chip:active { background: var(--foam); }
.level-chip__medal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 19px;
    background: var(--sea-deep);
}
.level-chip__info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.level-chip__name { font-size: 14px; font-weight: 800; color: var(--ink); }
.level-chip__pts { font-size: 11px; font-weight: 600; color: var(--ink-muted); }
.level-chip__chev { font-size: 18px; color: var(--ink-muted); margin-inline-start: 2px; }

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ===== Open Matches (player pooling) ===== */
[hidden] { display: none !important; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.home-top__actions { display: flex; align-items: center; gap: 10px; }

.bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: inherit;
    font-size: 20px;
    text-decoration: none;
}
.app-header .bell { background: var(--surface); color: var(--sea-deep); }

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: inherit;
    font-size: 20px;
    text-decoration: none;
    flex-shrink: 0;
    overflow: hidden;
}
.profile-btn__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-header .profile-btn { background: var(--surface); color: var(--sea-deep); }
.list-top--row .profile-btn { background: var(--surface); color: var(--sea-deep); }
.bell__badge {
    position: absolute;
    top: -2px;
    inset-inline-end: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #d64545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.app-header .page-title-row .page-title { color: var(--white); font-size: 19px; font-weight: 700; margin: 8px 0 0; }
.page-subtitle { margin: 2px 0 0; font-size: 12.5px; color: rgba(255,255,255,.8); }
.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--white);
    color: var(--sea-deep);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.games-page { padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 22px; }
.games-section { display: flex; flex-direction: column; gap: 12px; }
.games-section + .games-section { margin-top: 22px; }
.games-section__title { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }

.list-top--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.list-top--row .bell { background: var(--surface); color: var(--sea-deep); margin-top: 6px; }
.list-top--row .profile-btn { margin-top: 6px; }

.games-section__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sea-deep);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(12, 61, 90, .2);
}
.icon-btn:active { transform: scale(.95); }

.mpick-list { display: flex; flex-direction: column; gap: 14px; padding-bottom: 12px; }
.mpick {
    position: relative;
    display: block;
    height: 150px;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow);
    background: var(--surface);
}
.mpick:active { transform: scale(.99); }
.mpick__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mpick__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: var(--sea);
    background: var(--surface);
}
.mpick__badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, .92);
    color: var(--sea-deep);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}
.mpick__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 32, 46, .82) 0%, rgba(8, 32, 46, .25) 45%, transparent 75%);
}
.mpick__overlay {
    position: absolute;
    inset-inline: 16px;
    bottom: 14px;
    z-index: 2;
    color: #fff;
}
.mpick__name { margin: 0; font-size: 19px; font-weight: 700; }
.mpick__price { margin: 3px 0 0; font-size: 13px; opacity: .9; }

.home-section__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-section__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--sea);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.games-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin: 0 -16px;
    padding-inline: 16px;
}
.games-scroll::-webkit-scrollbar { display: none; }
.games-scroll .game-card { flex: 0 0 82%; scroll-snap-align: start; }

.game-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
}
.game-card:active { transform: scale(.99); }
.game-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-card__sport {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sea);
}
.game-card__court { margin: 10px 0 8px; font-size: 16px; font-weight: 700; }
.game-card__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-muted); font-size: 13px; }
.game-card__meta i { margin-inline-end: 3px; }
.game-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.game-card__spots {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ok-ink);
    background: var(--ok-bg);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.game-card__spots--full { color: var(--ink-muted); background: var(--surface); }

.game-progress { display: flex; flex-direction: column; gap: 6px; }
.game-progress__dots { display: flex; gap: 4px; flex-wrap: wrap; }
.game-progress__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.game-progress__dot.is-filled { background: var(--sea); }
.game-progress__text { font-size: 12px; color: var(--ink-muted); }

.game-status {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}
.game-status--open { background: var(--warn-bg); color: var(--warn-ink); }
.game-status--confirmed { background: var(--ok-bg); color: var(--ok-ink); }
.game-status--cancelled { background: var(--err-bg); color: var(--err-ink); }
.game-status--completed { background: var(--surface); color: var(--ink-muted); }

/* booking type toggle */
.type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--surface);
    padding: 5px;
    border-radius: var(--radius);
}
.type-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: var(--ink-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}
.type-toggle__btn.is-active { background: var(--white); color: var(--sea-deep); box-shadow: var(--shadow); }

/* capacity stepper */
.capacity-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.capacity-stepper__btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--sea-deep);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.capacity-stepper__btn:active { background: var(--surface); }
.capacity-stepper__value {
    width: 70px;
    text-align: center;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
}

.match-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--warn-bg);
    color: var(--warn-ink);
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin: 0;
}
.match-note i { margin-top: 2px; }

/* game details */
.players-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.players-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.players-card__title { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.players-card__count { font-size: 13px; color: var(--ink-muted); font-weight: 600; }
.players-list { display: flex; flex-direction: column; gap: 10px; }
.player-row { display: flex; align-items: center; gap: 10px; }
.player-row__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sea);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.player-row__name { flex: 1; font-size: 14px; font-weight: 600; }
.player-row__host { font-size: 11.5px; font-weight: 700; color: var(--sea); background: var(--surface); padding: 3px 9px; border-radius: 999px; }
.wa-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sea-deep);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    text-decoration: none;
    flex-shrink: 0;
}
.wa-btn:active { transform: scale(.95); }
.player-row--empty .player-row__avatar { background: var(--surface); color: var(--ink-muted); border: 1px dashed var(--line); }
.player-row--empty .player-row__name { color: var(--ink-muted); }

.share-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--sea-deep);
    color: #fff;
    border-radius: var(--radius);
    padding: 16px;
}
.share-box__label { display: block; font-size: 13px; opacity: .85; }
.share-box__note { display: block; font-size: 11.5px; opacity: .7; margin-top: 2px; }
.share-box__amount { font-size: 24px; font-weight: 700; }
.share-box__amount small { font-size: 13px; font-weight: 600; opacity: .8; }

.hold-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--warn-bg);
    color: var(--warn-ink);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
}
.hold-bar__text { flex: 1; }
.hold-bar__count { font-weight: 700; font-variant-numeric: tabular-nums; }

/* simple head + notifications */
.simple-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.simple-head__back {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--sea-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}
.simple-head__title { margin: 0; font-size: 18px; font-weight: 700; }

.notif-page { min-height: 100%; }
.notif-hero {
    position: relative;
    background: var(--sea-deep);
    color: #fff;
    padding: 26px 20px 28px;
    border-radius: 0 0 28px 28px;
    text-align: center;
}
.notif-hero__title { margin: 0; font-size: 24px; font-weight: 700; }
.notif-hero__back {
    position: absolute;
    inset-inline-start: 16px;
    top: 22px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
}

.notif-sheet {
    background: var(--white);
    margin: 16px 14px 24px;
    border-radius: 20px;
    box-shadow: 0 6px 22px rgba(12, 61, 90, .08);
    padding: 6px 16px;
    min-height: 240px;
}

.notif-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 0;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.notif-row:last-child { border-bottom: none; }
.notif-row:active { opacity: .7; }
.notif-row__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--sea);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.notif-row__icon--open_match { background: #eaf3f8; color: var(--sea); }
.notif-row__icon--match_confirmed { background: var(--ok-bg); color: var(--ok-ink); }
.notif-row__icon--player_joined { background: #eef4ff; color: #2f5fb0; }
.notif-row__icon--spot_opened { background: var(--warn-bg); color: var(--warn-ink); }
.notif-row__icon--match_cancelled { background: var(--err-bg); color: var(--err-ink); }
.notif-row__icon--booking_reminder { background: #fff4e6; color: #c77d1a; }
.notif-row__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.notif-row__title { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.notif-row__text {
    font-size: 12.5px;
    color: var(--ink-muted);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.notif-row__time { font-size: 11px; color: var(--ink-muted); opacity: .75; flex-shrink: 0; align-self: flex-start; margin-top: 3px; }
.notif-row.is-unread { position: relative; }
.notif-row.is-unread .notif-row__title::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sea);
    margin-inline-start: 6px;
    vertical-align: middle;
}

.notif-empty { text-align: center; padding: 40px 24px 48px; }
.notif-empty__art {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sea);
    font-size: 46px;
}
.notif-empty__plus {
    position: absolute;
    bottom: 6px;
    inset-inline-end: 6px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sea-deep);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 3px solid var(--white);
}
.notif-empty__title { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.notif-empty__text { margin: 8px auto 0; font-size: 13.5px; color: var(--ink-muted); max-width: 260px; line-height: 1.6; }

.empty-state i { font-size: 38px; color: var(--line); display: block; margin-bottom: 10px; }
.empty-state__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.empty-state__text { margin: 4px 0 0; font-size: 13px; color: var(--ink-muted); }
.empty-state__btn {
    display: inline-block;
    margin-top: 14px;
    background: var(--sea-deep);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

/* ── Top actions (bell + profile) ── */
.top-actions { display: flex; align-items: center; gap: 10px; }

/* ── Tournaments ── */
.tour-list { display: flex; flex-direction: column; gap: 14px; }

.tour-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 14px 12px 12px;
}
.tour-card:active { background: var(--foam); }

.tour-card__thumb {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--foam);
}
.tour-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: var(--sea);
}

.tour-card__main { flex: 1; min-width: 0; }
.tour-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.tour-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.35;
}
.tour-card__status {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--foam);
    color: var(--ink-muted);
    white-space: nowrap;
}
.tour-card__status--open { background: var(--sea-deep); color: #fff; }
.tour-card__status--ongoing { background: var(--sea); color: #fff; }
.tour-card__status--cancelled { background: #fee2e2; color: #b91c1c; }

.tour-card__meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    color: var(--ink-muted);
}
.tour-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.tour-card__meta i { color: var(--sea); font-size: 14px; }

.tour-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-muted);
}
.tour-card__sport {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--sea-deep);
}
.tour-card__teams {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tour-card__chev {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--ink-muted);
}

.myteam-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: inherit;
}
.myteam-row__icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--foam); color: var(--sea-deep);
    display: grid; place-items: center; font-size: 20px;
}
.myteam-row__body { flex: 1; min-width: 0; }
.myteam-row__name { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.myteam-row__tour { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.myteam-row__chev { font-size: 20px; color: var(--ink-muted); }

.status-banner--open { background: rgba(2, 132, 199, .1); color: var(--sea-deep); }
.status-banner--closed { background: rgba(234, 179, 8, .12); color: #92400e; }
.status-banner--ongoing { background: rgba(2, 132, 199, .1); color: var(--sea-deep); }
.status-banner--draft, .status-banner--finished { background: var(--foam); color: var(--ink-muted); }
.status-banner--cancelled { background: rgba(239, 68, 68, .1); color: #b91c1c; }

.show-card__title { margin: 12px 0 8px; font-size: 15px; font-weight: 800; color: var(--ink); }
.show-card__sub { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--sea-deep); }
.show-card__text { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-muted); line-height: 1.65; }

.tour-note {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--foam); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px;
}
.tour-note i { color: var(--sea); font-size: 18px; margin-top: 1px; }
.tour-note p { margin: 0; font-size: 13px; color: var(--ink-muted); line-height: 1.55; }

.tour-players { list-style: none; margin: 0; padding: 0; }
.tour-players__item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.tour-players__item:last-child { border-bottom: none; }
.tour-players__cap {
    font-style: normal; font-size: 11px; font-weight: 700;
    color: var(--sea-deep); background: var(--foam);
    padding: 2px 8px; border-radius: 999px; margin-inline-start: 6px;
}
.tour-players__phone { font-size: 12.5px; color: var(--ink-muted); }

.tour-teams { list-style: none; margin: 0; padding: 0; }
.tour-teams__item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.tour-teams__item:last-child { border-bottom: none; }
.tour-teams__item i { color: var(--sea); font-size: 18px; }
.tour-teams__item span { flex: 1; font-weight: 700; color: var(--ink); }
.tour-teams__item em { font-style: normal; font-size: 12px; color: var(--ink-muted); }

.page-back {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 700; color: var(--sea-deep);
    text-decoration: none; margin-bottom: 8px;
}

.tour-captain {
    background: var(--foam); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px 14px;
}
.tour-captain__name { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.tour-captain__phone { display: block; font-size: 13px; color: var(--ink-muted); margin-top: 2px; }

.profile-block__hint { margin: -4px 0 12px; font-size: 12.5px; color: var(--ink-muted); }

.tour-mate {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px;
}
.tour-mate__num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--sea-deep); color: #fff;
    display: grid; place-items: center; font-size: 12px; font-weight: 800;
    flex-shrink: 0; margin-top: 10px;
}
.tour-mate__fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }

/* ── Tournament show page ── */
.tour-show { gap: 14px; }

.tour-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.tour-stat {
    background: var(--foam);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
}
.tour-stat__num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--sea-deep);
    line-height: 1.1;
}
.tour-stat__lbl {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-muted);
    line-height: 1.35;
}

.tour-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.tour-detail {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 13px;
    min-width: 0;
}
.tour-detail i {
    display: block;
    font-size: 18px;
    color: var(--sea);
    margin-bottom: 6px;
}
.tour-detail__lbl {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-muted);
    margin-bottom: 3px;
}
.tour-detail__val {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.45;
}

.tour-block {
    background: var(--foam);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}
.tour-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.tour-block__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
}
.tour-block__title:not(:last-child) {
    margin-bottom: 12px;
}
.tour-block__badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--sea-deep);
    background: var(--surface);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.tour-block__text {
    margin: 0;
    font-size: 13.5px;
    color: var(--ink-muted);
    line-height: 1.65;
}

.tour-roster { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tour-roster__item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
}
.tour-roster__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sea-deep);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}
.tour-roster__body { min-width: 0; }
.tour-roster__name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.tour-roster__name em {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--sea-deep);
    background: var(--foam);
    padding: 2px 8px;
    border-radius: 999px;
}
.tour-roster__phone { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-muted); }

.tour-cta {
    background: var(--foam);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tour-cta__note {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.55;
}
.tour-cta__note i { color: var(--sea); font-size: 17px; margin-top: 1px; flex-shrink: 0; }
.tour-cta .booking-submit { margin: 0; }

.tour-team-list { display: flex; flex-direction: column; gap: 8px; }
.tour-team-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 12px;
}
.tour-team-chip__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--foam);
    color: var(--sea-deep);
    display: grid;
    place-items: center;
    font-size: 17px;
    flex-shrink: 0;
}
.tour-team-chip__name { flex: 1; font-size: 14px; font-weight: 700; color: var(--ink); min-width: 0; }
.tour-team-chip__count { font-size: 11.5px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }

/* ── Turbo navigation ── */
.turbo-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--sea);
    z-index: 9999;
    box-shadow: none;
    transition: width .15s ease, opacity .2s ease;
}

body.is-navigating .turbo-progress-bar {
    opacity: 1;
}

.bottom-nav__item.is-tapping,
.bottom-nav__item.is-active {
    transition: transform .12s ease, background .12s ease, color .12s ease;
}

.bottom-nav__item.is-tapping {
    transform: scale(0.94);
}

body.is-page-ready .page-main {
    opacity: 1;
}

/* ── Page skeleton (Turbo navigation) ── */
@keyframes sk-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.page-skeleton {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: #fff;
    overflow: hidden;
    pointer-events: none;
}

.page-skeleton--auth,
.page-skeleton[data-layout="guest"] {
    background: #0c3d5a;
}

.page-skeleton__panel {
    height: 100%;
    padding: max(16px, env(safe-area-inset-top, 0px)) 16px 110px;
    overflow: hidden;
}

.page-skeleton__panel--auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.page-skeleton[data-layout="guest"] .page-skeleton__panel {
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.sk-line,
.sk-block,
.sk-chip,
.sk-card,
.sk-circle,
.sk-hero {
    border-radius: 12px;
    background: linear-gradient(90deg, #e8eef2 0%, #f4f8fb 45%, #e8eef2 90%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.2s ease-in-out infinite;
}

.page-skeleton--auth .sk-line,
.page-skeleton--auth .sk-block,
.page-skeleton--auth .sk-chip,
.page-skeleton--auth .sk-card,
.page-skeleton--auth .sk-circle,
.page-skeleton--auth .sk-hero,
.page-skeleton[data-layout="guest"] .sk-line,
.page-skeleton[data-layout="guest"] .sk-block,
.page-skeleton[data-layout="guest"] .sk-chip,
.page-skeleton[data-layout="guest"] .sk-card,
.page-skeleton[data-layout="guest"] .sk-circle,
.page-skeleton[data-layout="guest"] .sk-hero {
    background: linear-gradient(90deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.18) 45%, rgba(255,255,255,.08) 90%);
    background-size: 200% 100%;
}

.sk-line {
    height: 14px;
    width: 100%;
}

.sk-line--lg { height: 20px; border-radius: 10px; }
.sk-line--md { height: 16px; }
.sk-line--sm { height: 12px; border-radius: 8px; }
.sk-center { margin-inline: auto; }

.sk-row {
    display: flex;
    align-items: center;
}

.sk-row--between { justify-content: space-between; }
.sk-row--gap { gap: 10px; }

.sk-stack {
    display: grid;
    gap: 10px;
}

.sk-stack--sm { gap: 8px; }
.sk-stack--gap { gap: 12px; margin-top: 14px; }

.sk-block {
    min-height: 48px;
    border-radius: 14px;
}

.sk-block--search { height: 50px; margin: 14px 0 18px; }
.sk-block--field { height: 50px; }
.sk-block--banner { height: 56px; margin: 16px 0; }
.sk-block--action { height: 50px; margin-top: 8px; border-radius: 14px; }
.sk-block--chip { height: 44px; width: 70%; margin: 12px auto 20px; border-radius: 999px; }

.sk-chips {
    display: flex;
    gap: 8px;
    margin: 12px 0 18px;
    overflow: hidden;
}

.sk-chip {
    flex: 0 0 72px;
    height: 34px;
    border-radius: 999px;
}

.sk-scroll-cards {
    display: flex;
    gap: 12px;
    overflow: hidden;
}

.sk-card {
    border-radius: 18px;
    min-height: 180px;
}

.sk-card--wide {
    flex: 0 0 78%;
    min-height: 210px;
}

.sk-card--row {
    min-height: 92px;
    margin-bottom: 12px;
}

.sk-circle {
    border-radius: 50%;
    flex-shrink: 0;
}

.sk-circle--sm { width: 36px; height: 36px; }
.sk-circle--md { width: 42px; height: 42px; }
.sk-circle--avatar { width: 96px; height: 96px; margin: 8px auto 14px; }
.sk-circle--brand { width: 52px; height: 52px; margin: 0 auto 16px; }

.sk-hero {
    height: 220px;
    border-radius: 0;
    margin: -16px -16px 0;
    width: calc(100% + 32px);
}

.sk-hero--short { height: 180px; }

.sk-home,
.sk-list,
.sk-detail,
.sk-profile {
    display: grid;
    gap: 4px;
}

.sk-detail .sk-stack { padding: 16px 0; }

.sk-profile { justify-items: center; padding-top: 8px; }
.sk-profile .sk-block--field { width: 100%; }

.sk-auth {
    width: 100%;
    max-width: 420px;
}

.sk-auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 22px;
    display: grid;
    gap: 12px;
}

body.is-navigating .page-main {
    opacity: 0.35;
    transition: opacity .12s ease;
}

body.is-page-ready .page-main {
    transition: opacity .18s ease;
}

@media (prefers-reduced-motion: reduce) {
    .bottom-nav__item.is-tapping {
        transform: none;
    }

    .sk-line,
    .sk-block,
    .sk-chip,
    .sk-card,
    .sk-circle,
    .sk-hero {
        animation: none;
        background: #e8eef2;
    }

    .page-skeleton--auth .sk-line,
    .page-skeleton--auth .sk-block,
    .page-skeleton--auth .sk-chip,
    .page-skeleton--auth .sk-card,
    .page-skeleton--auth .sk-circle,
    .page-skeleton--auth .sk-hero,
    .page-skeleton[data-layout="guest"] .sk-line,
    .page-skeleton[data-layout="guest"] .sk-block,
    .page-skeleton[data-layout="guest"] .sk-chip,
    .page-skeleton[data-layout="guest"] .sk-card,
    .page-skeleton[data-layout="guest"] .sk-circle,
    .page-skeleton[data-layout="guest"] .sk-hero {
        background: rgba(255, 255, 255, 0.12);
    }

    body.is-navigating .page-main {
        opacity: 1;
    }
}
