@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --orange: #ff6600;
  --orange-soft: #fff0e8;
  --navy: #0b1f33;
  --blue: #326188;
  --ink: #10253f;
  --slate: #61748a;
  --muted: #8a99aa;
  --surface: #f6f8fb;
  --border: #dce5ed;
  --white: #ffffff;
  --success: #16a669;
  --success-soft: #e7f8ef;
  --warning: #f4a621;
  --warning-soft: #fff4e7;
  --error: #d94d4d;
  --error-soft: #ffeded;
  --info: #2878d7;
  --shadow: 0 8px 28px rgb(11 31 51 / 8%);
  --shadow-soft: 0 3px 12px rgb(11 31 51 / 8%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #e9eef3; color: var(--ink); font-family: Inter, system-ui, sans-serif; }
body { margin: 0; min-height: 100vh; background: #e9eef3; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button, input, select { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }

.tennis-loader { position: fixed; z-index: 500; inset: 0; display: grid; align-content: center; justify-items: center; padding: 24px; background: var(--white); opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 160ms ease; }
.app-loading .tennis-loader { opacity: 1; visibility: visible; }
.app-loading .app-shell { visibility: hidden; }
.tennis-loader__logo { width: 164px; }
.tennis-loader p { margin-top: 10px; color: var(--slate); font-size: 12px; font-weight: 600; letter-spacing: .02em; }

.app-shell { position: relative; width: min(100%, 430px); min-height: 100svh; margin: 0 auto; overflow: hidden; background: var(--white); box-shadow: 0 0 45px rgb(11 31 51 / 14%); }
.app-main { padding-bottom: 82px; }
.app-view { display: none; min-height: calc(100svh - 76px); padding: 20px 20px 30px; animation: enter-view 220ms ease both; }
.app-view.active { display: block; }
.detail-view { padding-top: 10px; }
@keyframes enter-view { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.brand-header, .compact-header, .detail-header { display: flex; align-items: center; justify-content: space-between; min-height: 62px; }
.brand-logo { width: 144px; height: auto; object-fit: contain; }
.brand-logo.small { width: 108px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .avatar-button { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--navy); }
.icon-button { font-size: 26px; }
.icon-button:hover { background: var(--surface); }
.avatar-button { overflow: hidden; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--border); }
.avatar-button img { width: 100%; height: 100%; object-fit: cover; }
.notify-button { position: relative; }
.notify-button span { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border: 2px solid var(--white); border-radius: 50%; background: var(--orange); }

.hero-intro { position: relative; min-height: 125px; padding-top: 20px; overflow: hidden; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .21em; text-transform: uppercase; }
.hero-intro h1 { margin-top: 9px; color: var(--navy); font-size: 36px; font-weight: 900; letter-spacing: -.05em; line-height: 1.02; }
.hero-intro h1 em { color: var(--orange); font-style: normal; }
.hero-side-copy { position: absolute; z-index: 1; top: 40px; right: 8px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .16em; line-height: 1.55; text-transform: uppercase; }

.search-control, .search-input { display: flex; align-items: center; width: 100%; height: 54px; gap: 12px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--surface); color: var(--slate); text-align: left; }
.search-control > i:first-child, .search-input > i:first-child { color: var(--navy); font-size: 24px; }
.search-control > i:last-child, .search-input > i:last-child { margin-left: auto; color: var(--blue); font-size: 23px; }
.search-control span { flex: 1; font-size: 14px; }
.search-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; }
.search-input input::placeholder { color: var(--muted); }

.sport-row, .filter-row { display: flex; gap: 9px; margin: 14px 0 26px; padding-inline-end: 24px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.sport-row::-webkit-scrollbar, .filter-row::-webkit-scrollbar, .date-row::-webkit-scrollbar { display: none; }
.sport-chip, .filter-row button { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 46px; gap: 7px; padding: 0 15px; border: 0; border-radius: 999px; background: var(--surface); color: var(--navy); font-size: 13px; font-weight: 500; scroll-snap-align: start; }
.sport-chip span { display: grid; gap: 1px; text-align: left; }
.sport-chip small { color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sport-chip.upcoming { opacity: .68; cursor: not-allowed; }
.sport-chip i, .filter-row button i { color: var(--blue); font-size: 20px; }
.sport-chip.active { background: var(--orange); color: var(--white); box-shadow: 0 5px 13px rgb(255 102 0 / 25%); }
.sport-chip.active i { color: var(--white); }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 4px; }
.quick-actions button { display: grid; min-height: 72px; place-items: center; gap: 5px; padding: 10px 6px; border: 1px solid var(--border); border-radius: 14px; background: white; color: var(--navy); font-size: 9px; font-weight: 700; box-shadow: var(--shadow-soft); }
.quick-actions i { color: var(--orange); font-size: 24px; }
.quick-actions button.is-coming-soon { color: var(--muted); }
.quick-actions button.is-coming-soon i { color: var(--blue); }
.quick-actions:has([data-create-game][hidden]) { grid-template-columns: repeat(2, 1fr); }

.content-section { margin-top: 27px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.section-heading h2, .booking-picker h2, .about-game h2 { color: var(--navy); font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.section-heading h2 small { color: var(--slate); font-size: 14px; font-weight: 500; }
.section-heading button { display: inline-flex; align-items: center; gap: 2px; padding: 5px 0; border: 0; background: transparent; color: var(--info); font-size: 12px; font-weight: 600; }

.venue-grid.compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.venue-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-soft); }
.venue-card button.card-body, button.venue-row { width: 100%; padding: 0; border: 0; background: var(--white); text-align: left; }
.venue-card-image { position: relative; height: 145px; overflow: hidden; }
.venue-card-image img { width: 100%; height: 100%; object-fit: cover; }
.favorite-float { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 0; border-radius: 50%; background: rgb(11 31 51 / 42%); color: white; font-size: 20px; backdrop-filter: blur(5px); }
.favorite-float.saved { color: var(--orange); background: var(--white); }
.availability-badge { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: rgb(255 255 255 / 92%); color: var(--success); font-size: 10px; font-weight: 700; }
.availability-badge i { font-size: 8px; }
.availability-badge.limited { color: var(--orange); }
.venue-card-copy { padding: 11px 11px 13px; }
.venue-card-title { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.venue-card-title strong { overflow: hidden; color: var(--navy); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.venue-card-title span { display: inline-flex; align-items: center; gap: 3px; color: var(--navy); font-size: 11px; font-weight: 700; }
.venue-card-title .ph-star { color: #ffb400; }
.venue-meta { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--slate); font-size: 10px; }
.venue-tags { display: flex; gap: 4px; margin-top: 10px; }
.venue-tags span { padding: 4px 6px; border-radius: 7px; background: var(--surface); color: var(--slate); font-size: 8px; }
.venue-price { margin-left: auto !important; color: var(--navy) !important; font-size: 11px !important; font-weight: 800 !important; }

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.game-card { padding: 12px; border: 1px solid #e0eee8; border-radius: 14px; background: #f4fcf8; box-shadow: var(--shadow-soft); }
.game-card[role="button"] { cursor: pointer; }
.game-card[role="button"]:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.game-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 13px; line-height: 1.25; }
.game-card.football { border-color: #f5e6dc; background: #fff8f3; }
.game-card button { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.game-card-head, .game-card-line, .game-card-foot { display: flex; align-items: center; }
.game-card-head { justify-content: space-between; gap: 6px; margin-bottom: 9px; }
.game-card-head strong { display: flex; align-items: center; gap: 5px; color: var(--navy); font-size: 13px; }
.game-card-head strong i { color: var(--success); font-size: 18px; }
.football .game-card-head strong i { color: var(--orange); }
.spots { padding: 5px 7px; border-radius: 999px; background: #dff8e9; color: var(--success); font-size: 9px; font-weight: 600; }
.football .spots { background: #ffeadf; color: var(--orange); }
.game-card-line { gap: 5px; margin-top: 5px; color: var(--slate); font-size: 10px; }
.game-card-line i { color: var(--blue); font-size: 14px; }
.game-card-foot { justify-content: space-between; margin-top: 10px; }
.game-host { overflow: hidden; max-width: 88px; color: var(--slate); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.avatar-stack { display: flex; padding-left: 4px; }
.avatar-stack img { width: 25px; height: 25px; margin-left: -5px; border: 2px solid white; border-radius: 50%; object-fit: cover; }
.level-pill { padding: 5px 7px; border-radius: 999px; background: #e9f4ff; color: var(--info); font-size: 8px; }

.booking-preview, .booking-card { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 11px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-soft); }
.booking-preview > img, .booking-card > img { width: 100px; height: 88px; border-radius: 10px; object-fit: cover; }
.booking-preview-copy, .booking-card-copy { min-width: 0; }
.booking-preview-copy small, .booking-card-copy small { display: block; color: var(--slate); font-size: 10px; }
.booking-preview-copy strong, .booking-card-copy h3 { display: block; margin: 3px 0 7px; color: var(--navy); font-size: 14px; font-weight: 800; }
.booking-preview-copy p, .booking-card-copy p { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--slate); font-size: 10px; }
.booking-preview-copy .status-pill { float: right; }
.empty-card { padding: 22px; border: 1px dashed var(--border); border-radius: 14px; color: var(--slate); text-align: center; }
.empty-card i { display: block; margin-bottom: 8px; color: var(--blue); font-size: 28px; }
.empty-card button { margin-top: 10px; padding: 8px 13px; border: 0; border-radius: 999px; background: var(--orange); color: white; font-weight: 700; }
.venue-grid > .empty-card, .game-grid > .empty-card { grid-column: 1 / -1; }
.game-coming-soon { margin-top: 40px; padding: 30px 24px; }
.game-coming-soon h1 { color: var(--navy); font-size: 24px; }
.game-coming-soon p { margin-top: 8px; font-size: 12px; line-height: 1.5; }

.status-pill { display: inline-flex; align-items: center; width: max-content; gap: 4px; padding: 6px 10px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.status-pill.success, .status-pill.confirmed, .status-pill.completed { background: var(--success-soft); color: var(--success); }
.status-pill.warning, .status-pill.pending { background: var(--warning-soft); color: var(--orange); }
.status-pill.cancelled, .status-pill.failed { background: var(--error-soft); color: var(--error); }

.compact-header { min-height: 52px; }
.discover-title-row { display: flex; align-items: end; justify-content: space-between; margin: 13px 0 14px; }
.discover-title-row h1, .page-title h1 { margin-top: 5px; color: var(--navy); font-size: 38px; font-weight: 900; letter-spacing: -.055em; }
.play-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 15px 0 17px; padding: 4px; border-radius: 14px; background: var(--surface); }
.play-tabs button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 11px; background: transparent; color: var(--slate); font-size: 12px; font-weight: 700; }
.play-tabs button.active { background: white; color: var(--navy); box-shadow: var(--shadow-soft); }
.coming-soon-dot { display: inline-block; width: 6px; height: 6px; margin-inline-start: 4px; border-radius: 50%; background: var(--orange); vertical-align: middle; }
.games-coming-soon { margin-top: 24px; padding: 30px 22px; border: 1px solid var(--border); border-radius: 20px; background: #f7f9fc; text-align: center; }
.games-coming-soon > i { display: grid; place-items: center; width: 64px; height: 64px; margin: 18px auto 12px; border-radius: 20px; background: white; color: var(--orange); font-size: 32px; box-shadow: var(--shadow); }
.games-coming-soon h2 { color: var(--navy); font-size: 24px; letter-spacing: -.04em; }
.games-coming-soon p { margin: 9px auto 18px; color: var(--slate); font-size: 12px; line-height: 1.55; }
.coming-soon-label { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.location-pill { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; padding: 11px 13px; border: 0; border-radius: 15px; background: var(--surface); color: var(--navy); font-size: 12px; font-weight: 600; }
.location-pill > i:first-child { color: var(--blue); font-size: 20px; }
.play-date-filter { margin: -10px 0 14px; }
.filter-label { display: block; margin-bottom: 7px; color: var(--slate); font-size: 12px; font-weight: 800; }
.date-row.compact .date-chip { min-width: 76px; min-height: 54px; padding: 8px 10px; }
.filter-row { margin-top: 0; margin-bottom: 20px; padding-inline-end: 0; }
.filter-select { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 42px; gap: 7px; padding: 0 11px; border: 1px solid transparent; border-radius: 999px; background: var(--surface); color: var(--navy); scroll-snap-align: start; }
.filter-select i { color: var(--blue); font-size: 18px; }
.filter-select span { font-size: 11px; font-weight: 700; }
.filter-select select { max-width: 132px; min-height: 40px; padding: 0 23px 0 0; border: 0; outline: 0; background: transparent; color: var(--navy); font: inherit; font-size: 12px; font-weight: 700; }
.filter-select:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgb(255 90 18 / 16%); }
.result-count { color: var(--muted); font-size: 12px; font-weight: 700; }
.discover-results { margin-top: 0; }
.venue-list { display: grid; gap: 11px; }
.venue-row { display: grid !important; grid-template-columns: 44% 1fr; min-height: 132px; overflow: hidden; border: 1px solid var(--border) !important; border-radius: 16px; box-shadow: var(--shadow-soft); }
.venue-row-image { position: relative; min-height: 132px; }
.venue-row-image img { width: 100%; height: 100%; object-fit: cover; }
.venue-row-copy { padding: 12px 11px; }
.venue-row-copy .venue-card-title strong { font-size: 15px; }
.venue-row-copy .venue-meta { margin-top: 7px; }
.venue-row-copy .venue-tags { flex-wrap: wrap; margin-top: 8px; }
.venue-row-copy .venue-price { display: block; margin-top: 10px; text-align: right; }

.detail-header { position: sticky; z-index: 20; top: 0; margin: -10px -4px 0; padding: 4px 4px; background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px); }
.detail-header > .icon-button:last-child { margin-left: auto; }
.venue-hero { position: relative; height: 225px; overflow: hidden; border-radius: 18px; background: var(--surface); }
.venue-hero img { width: 100%; height: 100%; object-fit: cover; }
.venue-hero span { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; border-radius: 999px; background: rgb(11 31 51 / 78%); color: white; font-size: 10px; }
.venue-title-row { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-top: 12px; }
.venue-title-row h1, .game-title-row h1 { color: var(--navy); font-size: 26px; font-weight: 900; letter-spacing: -.045em; line-height: 1.08; }
.venue-title-row p { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--slate); font-size: 12px; }
.venue-title-row p i { color: var(--blue); font-size: 18px; }
.rating { display: flex; align-items: center; gap: 4px; padding-top: 5px; color: var(--navy); font-size: 12px; white-space: nowrap; }
.rating i { color: #ffb400; font-size: 20px; }
.rating span { color: var(--muted); }
.amenity-row { display: flex; gap: 7px; margin: 14px 0 20px; overflow-x: auto; scrollbar-width: none; }
.amenity-row span { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 5px; padding: 9px 11px; border-radius: 999px; background: var(--surface); color: var(--blue); font-size: 11px; }
.amenity-row span i { font-size: 18px; }
.about-venue { margin-bottom: 16px; }
.about-venue .section-heading { margin-bottom: 4px; }
.about-venue p, .about-game p { color: var(--slate); font-size: 12px; line-height: 1.45; }
.court-select-wrap { display: grid; grid-template-columns: 37px 1fr 18px; align-items: center; gap: 8px; margin: 15px 0; padding: 12px; border: 1px solid var(--border); border-radius: 14px; }
.court-select-wrap > i:first-child { color: var(--blue); font-size: 28px; }
.court-select-wrap select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--navy); font-size: 13px; font-weight: 700; appearance: none; }
.booking-picker { margin-top: 18px; }
.booking-picker > h2 { margin-bottom: 9px; }
.date-row { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.date-chip { display: grid; flex: 0 0 66px; min-height: 62px; place-content: center; gap: 2px; padding: 5px; border: 0; border-radius: 10px; background: var(--surface); color: var(--blue); text-align: center; }
.date-chip span { font-size: 11px; }
.date-chip strong { font-size: 12px; }
.date-chip.active { background: var(--orange); color: white; box-shadow: 0 5px 13px rgb(255 102 0 / 20%); }
.availability-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.availability-heading > div { display: flex; gap: 8px; color: var(--slate); font-size: 8px; }
.availability-heading span { display: flex; align-items: center; gap: 3px; }
.availability-heading b { width: 7px; height: 7px; border-radius: 50%; }
.availability-heading b.available { background: var(--success); }.availability-heading b.limited { background: var(--orange); }.availability-heading b.booked { background: #ef9292; }
.duration-row { display: flex; gap: 7px; margin: 10px 0; }
.duration-row button { flex: 1; padding: 7px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--slate); font-size: 10px; }
.duration-row button.active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); font-weight: 700; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.slot-button { min-height: 51px; padding: 7px 4px; border: 1px solid #bce9d1; border-radius: 10px; background: #f1fbf6; color: var(--navy); font-size: 11px; font-weight: 600; }
.slot-button small { display: block; margin-top: 3px; color: var(--success); font-size: 8px; font-weight: 500; }
.slot-button.limited { border-color: #ffd8c2; background: #fff7f2; color: var(--orange); }
.slot-button.active { border: 2px solid var(--success); background: #eaf9f1; }
.price-summary { display: grid; grid-template-columns: 34px 1fr; gap: 8px; margin: 17px 0 12px; padding: 13px; border: 1px solid var(--border); border-radius: 14px; }
.price-summary > i { color: var(--blue); font-size: 28px; }
.price-summary > div > strong { display: block; color: var(--navy); font-size: 12px; }.price-summary > div > span { display: block; margin-top: 4px; color: var(--slate); font-size: 9px; }
.price-summary dl { grid-column: 1 / -1; margin: 5px 0 0; padding-top: 8px; border-top: 1px solid var(--border); }
.price-summary dl div { display: flex; justify-content: space-between; margin-top: 4px; color: var(--slate); font-size: 10px; }
.price-summary dl div:last-child { margin-top: 8px; color: var(--navy); font-size: 12px; font-weight: 800; }
.price-summary dt, .price-summary dd { margin: 0; }
.primary-cta, .secondary-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; gap: 8px; padding: 0 20px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 800; }
.primary-cta { background: var(--orange); color: white; box-shadow: 0 7px 18px rgb(255 102 0 / 24%); }
.primary-cta:disabled { cursor: not-allowed; background: #cbd4dc; box-shadow: none; }
.secondary-cta { border: 1px solid var(--border); background: white; color: var(--navy); }

.game-title-row { display: flex; align-items: start; justify-content: space-between; gap: 7px; margin-top: 11px; }
.host-line { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.host-line img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.host-line strong, .host-line span { display: block; color: var(--navy); font-size: 11px; }.host-line span { margin-top: 2px; color: var(--slate); }.host-line span i { color: var(--orange); }
.mini-venue-card { display: grid; grid-template-columns: 94px 1fr 18px; align-items: center; width: 100%; gap: 10px; margin: 15px 0 10px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: white; text-align: left; }
.mini-venue-card img { width: 94px; height: 71px; border-radius: 9px; object-fit: cover; }
.mini-venue-card span { min-width: 0; }.mini-venue-card strong { display: block; color: var(--navy); font-size: 13px; }.mini-venue-card small { display: flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--slate); font-size: 9px; }
.game-tags { margin: 0 0 12px; }.game-tags span { flex: 1; justify-content: center; padding: 8px; }.game-tags .orange { color: var(--orange); background: var(--orange-soft); }
.players-section { padding: 12px; border: 1px solid var(--border); border-radius: 14px; }
.player-row { display: flex; align-items: start; justify-content: space-between; gap: 5px; }
.player-row > div { display: flex; align-items: center; flex-direction: column; min-width: 45px; color: var(--navy); text-align: center; }
.player-row img, .open-player > i { width: 43px; height: 43px; border-radius: 50%; object-fit: cover; }
.player-row strong { margin-top: 5px; font-size: 8px; }.player-row small { color: var(--slate); font-size: 7px; }.open-player > i { display: grid; place-items: center; border: 1px dashed var(--muted); color: var(--blue); font-size: 18px; }
.about-game { margin: 17px 0; }.about-game h2 { margin-bottom: 5px; }.bring-card { display: flex; gap: 12px; margin-top: 13px; padding: 13px; border-radius: 14px; background: #eff6fd; }.bring-card > i { color: var(--blue); font-size: 28px; }.bring-card strong, .bring-card span { display: block; }.bring-card strong { color: var(--navy); font-size: 12px; }.bring-card span { margin-top: 3px; color: var(--slate); font-size: 10px; line-height: 1.35; }
.game-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px; }.game-info-grid > div { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; }.game-info-grid > div > i { color: var(--orange); font-size: 27px; }.game-info-grid span, .game-info-grid strong, .game-info-grid small { display: block; }.game-info-grid span { color: var(--slate); font-size: 8px; }.game-info-grid strong { margin-top: 2px; color: var(--navy); font-size: 12px; }.game-info-grid small { margin-top: 2px; color: var(--slate); font-size: 8px; }

.page-title { margin: 14px 0 16px; }.page-title p { margin-top: 5px; color: var(--slate); font-size: 13px; }
.segmented-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }.segmented-tabs button { flex: 0 0 auto; padding: 11px 14px; border: 0; border-radius: 999px; background: var(--surface); color: var(--blue); font-size: 11px; font-weight: 600; }.segmented-tabs button.active { background: var(--orange); color: white; }
.booking-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 15px 0; padding: 16px 8px; border: 1px solid var(--border); border-radius: 14px; }.booking-metrics > div { display: grid; grid-template-columns: 28px 1fr; align-items: center; padding: 0 7px; border-right: 1px solid var(--border); }.booking-metrics > div:last-child { border: 0; }.booking-metrics i { grid-row: 1 / 3; color: var(--info); font-size: 23px; }.booking-metrics strong { color: var(--navy); font-size: 20px; }.booking-metrics span { color: var(--slate); font-size: 8px; line-height: 1.25; }
.booking-list { display: grid; gap: 12px; }.booking-card { grid-template-columns: 125px 1fr; padding: 10px; }.booking-card > img { width: 125px; height: 132px; }.booking-card-copy .status-pill { float: right; margin-left: 5px; }.booking-card-copy h3 { margin-top: 13px; font-size: 15px; }.booking-card-copy p { font-size: 10px; }.booking-card-actions { display: flex; justify-content: flex-end; margin-top: 9px; }.booking-card-actions button { padding: 7px 11px; border: 1px solid var(--border); border-radius: 9px; background: white; color: var(--info); font-size: 9px; font-weight: 600; }

.profile-hero { display: grid; grid-template-columns: 135px 1fr; align-items: center; gap: 13px; margin: 17px 0; }.profile-avatar { position: relative; }.profile-avatar > img { width: 132px; height: 132px; border: 5px solid white; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--border); }.profile-avatar button { position: absolute; right: 3px; bottom: 3px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 3px solid white; border-radius: 50%; background: var(--blue); color: white; font-size: 17px; }.profile-copy > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 5px; }.profile-copy h1 { color: var(--navy); font-size: 21px; font-weight: 900; letter-spacing: -.04em; }.profile-copy button { display: flex; align-items: center; gap: 4px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 9px; background: white; color: var(--navy); font-size: 8px; }.profile-copy p { margin-top: 5px; color: var(--slate); font-size: 10px; }.profile-copy p i { color: var(--blue); }.profile-stats { display: grid !important; grid-template-columns: repeat(3, 1fr); margin-top: 10px; }.profile-stats > div { display: block !important; padding: 0 8px; border-right: 1px solid var(--border); text-align: center; }.profile-stats > div:last-child { border: 0; }.profile-stats strong, .profile-stats span { display: block; }.profile-stats strong { color: var(--navy); font-size: 16px; }.profile-stats span { color: var(--slate); font-size: 8px; }
.profile-card { margin-top: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 15px; background: white; box-shadow: var(--shadow-soft); }.my-sports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }.my-sports > div { display: flex; align-items: center; gap: 6px; padding: 9px 7px; border: 1px solid var(--border); border-radius: 11px; }.my-sports > div > i { color: var(--blue); font-size: 27px; }.my-sports strong, .my-sports small { display: block; }.my-sports strong { color: var(--navy); font-size: 10px; }.my-sports small { width: max-content; margin-top: 4px; padding: 3px 5px; border-radius: 999px; background: #e9f4ff; color: var(--info); font-size: 6px; }.my-sports small.green { background: var(--success-soft); color: var(--success); }.my-sports small.coral { background: var(--orange-soft); color: var(--orange); }
.activity-card ul { margin: 0; padding: 0; list-style: none; }.activity-card li { display: grid; grid-template-columns: 38px 1fr 18px; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); }.activity-card li:last-child { border: 0; }.activity-card li > i:first-child { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: #eef6ff; color: var(--blue); font-size: 18px; }.activity-card strong, .activity-card small { display: block; }.activity-card strong { color: var(--navy); font-size: 10px; }.activity-card small { margin-top: 2px; color: var(--slate); font-size: 8px; }
.profile-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.profile-bottom-grid .profile-card { min-width: 0; }.achievements { display: flex; justify-content: space-around; gap: 6px; }.achievements div { text-align: center; }.achievements i { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 4px; border-radius: 12px; background: #eef6ff; color: var(--blue); font-size: 21px; }.achievements small { color: var(--slate); font-size: 7px; }.profile-bottom-grid .venue-card { box-shadow: none; }.profile-bottom-grid .venue-card-image { height: 70px; }.profile-bottom-grid .venue-card-copy { padding: 7px; }.profile-bottom-grid .venue-tags, .profile-bottom-grid .venue-meta { display: none; }#profile-auth-action { margin-top: 16px; }
.profile-links { display: grid; gap: 4px; }
.profile-links button { display: grid; grid-template-columns: 38px 1fr 18px; align-items: center; gap: 9px; min-height: 58px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: start; }
.profile-links button:last-child { border: 0; }
.profile-links button > i:first-child { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--orange-soft); color: var(--orange); font-size: 19px; }
.profile-links strong, .profile-links small { display: block; }
.profile-links strong { color: var(--navy); font-size: 11px; }
.profile-links small { margin-top: 3px; color: var(--slate); font-size: 8px; }

.bottom-nav { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 430px); height: 76px; margin: 0 auto; padding: 8px 26px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: rgb(255 255 255 / 96%); backdrop-filter: blur(15px); }
.bottom-nav button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 9px; font-weight: 500; }
.bottom-nav button i { font-size: 23px; }.bottom-nav button.active { color: var(--orange); font-weight: 700; }
.bottom-nav .play-nav-button i { display: grid; place-items: center; width: 36px; height: 30px; border-radius: 12px; background: var(--surface); }
.bottom-nav .play-nav-button.active i { background: var(--orange-soft); }

.app-status { position: fixed; z-index: 100; top: 10px; left: 50%; max-width: min(370px, calc(100% - 28px)); padding: 8px 13px; border-radius: 999px; background: var(--navy); color: white; font-size: 10px; opacity: 0; pointer-events: none; transform: translate(-50%, -12px); transition: opacity 180ms ease, transform 180ms ease; }.app-status.show { opacity: 1; transform: translate(-50%, 0); }.app-status.error { background: var(--error); }.app-status.success { background: var(--success); }
.modal-layer { position: fixed; z-index: 200; inset: 0; display: none; align-items: end; justify-content: center; }.modal-layer.open { display: flex; }.modal-backdrop { position: absolute; inset: 0; background: rgb(11 31 51 / 55%); backdrop-filter: blur(3px); }.auth-sheet, .booking-sheet { position: relative; z-index: 1; width: min(100%, 430px); max-height: 92svh; overflow-y: auto; padding: 28px 22px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: white; animation: rise-sheet 220ms ease both; }@keyframes rise-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }.sheet-close { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; width: 35px; height: 35px; border: 0; border-radius: 50%; background: var(--surface); color: var(--navy); font-size: 20px; }.sheet-handle { width: 42px; height: 4px; margin: -14px auto 20px; border-radius: 999px; background: var(--border); }.auth-sheet h2, .booking-sheet h2 { margin: 24px 0 6px; color: var(--navy); font-size: 28px; font-weight: 900; letter-spacing: -.045em; }.auth-sheet > p, .booking-sheet > p { color: var(--slate); font-size: 12px; line-height: 1.45; }.auth-sheet label { display: grid; gap: 5px; margin-top: 13px; color: var(--navy); font-size: 10px; font-weight: 700; }.auth-sheet input { width: 100%; height: 47px; padding: 0 13px; border: 1px solid var(--border); border-radius: 10px; outline: 0; }.auth-sheet input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(50 97 136 / 10%); }.auth-actions { display: grid; gap: 8px; margin-top: 18px; }.demo-hint, .form-message { margin-top: 12px; text-align: center; }.demo-hint { color: var(--muted) !important; font-size: 9px !important; }.form-message { min-height: 16px; color: var(--error) !important; }
.booking-sheet .booking-preview { margin: 16px 0; }.payment-methods { display: grid; gap: 8px; margin: 15px 0; }.payment-method { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: white; text-align: left; }.payment-method.active { border: 2px solid var(--orange); background: var(--orange-soft); }.payment-method > i { color: var(--blue); font-size: 25px; }.payment-method strong, .payment-method small { display: block; }.payment-method strong { color: var(--navy); font-size: 12px; }.payment-method small { margin-top: 2px; color: var(--slate); font-size: 9px; }.payment-method .ph-check-circle { margin-left: auto; color: var(--orange); }.hold-countdown { display: flex; justify-content: space-between; margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: var(--warning-soft); color: var(--orange); font-size: 10px; font-weight: 700; }.confirm-state { padding: 20px 0; text-align: center; }.confirm-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 42px; }.confirm-state h2 { margin-top: 14px; }.confirm-state .booking-reference { display: inline-block; margin: 12px 0; padding: 7px 10px; border-radius: 999px; background: var(--surface); color: var(--blue); font-size: 10px; font-weight: 700; }
.create-game-form { display: grid; gap: 11px; margin-top: 18px; }
.create-game-form label { display: grid; gap: 5px; color: var(--navy); font-size: 10px; font-weight: 700; }
.create-game-form input, .create-game-form select, .create-game-form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: white; outline: 0; font: inherit; }
.create-game-form textarea { min-height: 86px; resize: vertical; }
.create-game-grid { display: grid; grid-template-columns: 1fr 95px; gap: 9px; }

@media (min-width: 700px) {
  body { padding: 28px 0; }
  .app-shell { min-height: calc(100svh - 56px); border: 9px solid var(--navy); border-radius: 42px; }
  .bottom-nav { bottom: 28px; border-radius: 0 0 33px 33px; }
  .app-view { min-height: calc(100svh - 132px); }
}

@media (max-width: 360px) {
  .app-view { padding-right: 14px; padding-left: 14px; }
  .hero-intro h1 { font-size: 32px; }
  .venue-grid.compact, .game-grid { gap: 7px; }
  .venue-card-image { height: 130px; }
  .profile-hero { grid-template-columns: 110px 1fr; }
  .profile-avatar > img { width: 108px; height: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.language-toggle {
  position: fixed; inset-block-start: 10px; inset-inline-end: 10px; z-index: 1000;
  min-height: 38px; padding: 7px 12px; border: 1px solid #dce4ee; border-radius: 999px;
  color: #0f3a68; background: rgba(255,255,255,.96); box-shadow: 0 6px 20px rgba(15,58,104,.12);
  font: 700 12px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
}
[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
[dir="rtl"] .ph-caret-left, [dir="rtl"] .ph-caret-right,
[dir="rtl"] .ph-arrow-left, [dir="rtl"] .ph-arrow-right { transform: scaleX(-1); }
[dir="rtl"] .hero-side-copy { display: none; }
[dir="rtl"] .hero-intro h1 { max-width: none; }
[dir="rtl"] .booking-card-copy, [dir="rtl"] .venue-row-copy { text-align: right; }
[dir="rtl"] .search-control > i:last-child, [dir="rtl"] .search-input > i:last-child { margin-right: auto; margin-left: 0; }
[dir="rtl"] .nested-header .avatar-button { margin-right: auto; }
[dir="rtl"] .filter-select select { padding: 0 0 0 23px; }
.booking-status-help { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.confirm-state.pending .confirm-icon { color: #d66a19; background: #fff2e9; }
