:root {
  color-scheme: light;
  --bg: #061c18;
  --surface: #ffffff;
  --surface-soft: #e6f0ed;
  --ink: #102c27;
  --muted: #61736f;
  --line: #d7e3df;
  --blue: #006f62;
  --blue-deep: #004b43;
  --purple: #0b7a69;
  --coral: #f05b62;
  --gold: #8bcdbd;
  --green: #159b70;
  --green-soft: #e4f7ef;
  --danger: #d93f50;
  --danger-soft: #fff0f2;
  --shadow-sm: 0 8px 24px rgba(15, 67, 58, 0.08);
  --shadow-lg: 0 24px 70px rgba(15, 67, 58, 0.15);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { min-width: 320px; margin: 0; color: var(--ink); background: radial-gradient(circle at 8% 4%, rgba(11,122,105,.24), transparent 34rem), radial-gradient(circle at 92% 46%, rgba(0,111,98,.15), transparent 38rem), linear-gradient(155deg,#061c18,#0a2923 52%,#041512); background-attachment: fixed; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
[hidden] { display: none !important; }
.staging-banner { min-height: 34px; padding: 8px 16px; display: grid; place-items: center; color: #fff; background: #003d37; font-size: 11px; font-weight: 850; letter-spacing: .03em; text-align: center; }
body[data-environment="pruebas"] .app-topbar { min-height: 70px; }

.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; border-radius: 10px; color: white; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(0, 111, 98, 0.3); outline-offset: 3px; }

.app-topbar { width: min(100% - 32px, 1160px); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #f5fbf8; }
.brand-button { min-width: 0; padding: 7px 0; border: 0; display: flex; align-items: center; gap: 11px; text-align: left; background: transparent; cursor: pointer; }
.brand-button img { width: 58px; height: 48px; object-fit: contain; filter: brightness(0) invert(1); }
.brand-button > span { min-width: 0; display: grid; }
.brand-button strong { font-size: 16px; line-height: 1.15; letter-spacing: -0.02em; }
.brand-button small { margin-top: 3px; color: #a9c3bc; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.icon-action { width: 43px; height: 43px; border: 1px solid rgba(139,205,189,.28); border-radius: 14px; display: grid; place-items: center; color: #c7e7df; background: rgba(255,255,255,.07); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.icon-action svg { width: 20px; height: 20px; }

.app-main { width: min(100% - 32px, 1160px); margin: 0 auto; }
.app-view { animation: view-in 0.28s ease-out both; }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.section-kicker { margin: 0 0 7px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-title-row h2 { margin: 0; font-size: clamp(25px, 4vw, 36px); letter-spacing: -0.045em; line-height: 1.05; }

.home-hero { min-height: 360px; padding: clamp(26px, 5vw, 58px); border: 1px solid #2b665a; border-radius: var(--radius-lg); display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 32px; position: relative; overflow: hidden; color: #f5fbf8; background: linear-gradient(135deg,#082822 0%,#004b43 58%,#0b7a69 100%); box-shadow: 0 26px 74px rgba(0,0,0,.28); }
.home-hero::before { content: ""; width: 280px; height: 280px; border: 1px solid rgba(139,205,189,.25); border-radius: 50%; position: absolute; right: -60px; top: -110px; box-shadow: 0 0 0 42px rgba(139,205,189,.06), 0 0 0 90px rgba(139,205,189,.035); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 660px; margin: 0; font-size: clamp(42px, 7vw, 74px); font-weight: 850; letter-spacing: -0.065em; line-height: 0.96; }
.hero-copy > p:last-child { max-width: 570px; margin: 22px 0 0; color: #c5d9d3; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; }
.hero-logo-wrap { min-height: 250px; display: grid; place-items: center; position: relative; }
.hero-logo-wrap img { width: min(100%, 430px); max-height: 310px; object-fit: contain; position: relative; z-index: 2; filter: brightness(0) invert(1); }
.hero-glow { width: 280px; height: 280px; border-radius: 50%; position: absolute; background: radial-gradient(circle, rgba(139,205,189,.36), rgba(0,111,98,.12) 45%, transparent 70%); filter: blur(12px); }
.home-hero .section-kicker, .home-view > .live-section .section-kicker { color: #8bcdbd; }
.home-view > .live-section .section-title-row h2 { color: #f5fbf8; }

.install-promo { margin: 14px 0 0; padding: 14px 56px 14px 14px; border: 1px solid rgba(213,175,98,.48); border-radius: 20px; display: grid; grid-template-columns: 62px minmax(0,1fr) auto; align-items: center; gap: 14px; position: relative; color: #f7f3e7; background: linear-gradient(135deg,rgba(0,63,53,.98),rgba(6,44,40,.98)); box-shadow: 0 16px 38px rgba(0,0,0,.2); }
.install-promo > img { width: 62px; height: 62px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.install-promo-copy { min-width: 0; }
.install-promo-copy small { display: block; color: #d5af62; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.install-promo-copy strong { display: block; margin-top: 3px; font-size: 16px; letter-spacing: -.02em; }
.install-promo-copy p { margin: 4px 0 0; color: #bad2cb; font-size: 11px; line-height: 1.4; }
.install-promo-action { min-height: 42px; padding: 0 17px; border: 0; border-radius: 12px; color: #062c28; background: #d5af62; font-size: 11px; font-weight: 900; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.install-promo-dismiss { width: 36px; height: 36px; border: 0; position: absolute; right: 9px; top: 9px; color: #9dbbb3; background: transparent; font-size: 20px; cursor: pointer; }

.preferred-member-card { margin: 14px 0 0; padding: 15px 18px; border: 1px solid rgba(139,205,189,.3); border-radius: 19px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto auto; align-items: center; gap: 13px; color: #eef9f6; background: linear-gradient(135deg,rgba(10,49,42,.94),rgba(0,75,67,.94)); box-shadow: 0 14px 34px rgba(0,0,0,.16); }
.preferred-member-avatar { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.2); border-radius: 15px; display: grid; place-items: center; color: white; background: rgba(139,205,189,.14); font-size: 16px; font-weight: 900; text-transform: uppercase; }
.preferred-member-card > div { min-width: 0; display: grid; }
.preferred-member-card small { color: #8bcdbd; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.preferred-member-card strong { margin-top: 2px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.preferred-member-card p { margin: 3px 0 0; color: #bcd4ce; font-size: 10px; }
.preferred-member-card button { min-height: 40px; padding: 9px 12px; border: 1px solid rgba(139,205,189,.35); border-radius: 11px; color: #e6f8f3; background: rgba(255,255,255,.08); font-size: 10px; font-weight: 850; cursor: pointer; }
.preferred-member-card [data-repeat-last-booking] { border-color: #8bcdbd; color: #06332c; background: #8bcdbd; }
.preferred-member-card[data-selected="true"] .preferred-member-avatar { color: #06332c; background: #8bcdbd; }

.quick-actions { margin: 20px 0 36px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.quick-action { min-height: 126px; padding: 22px; border: 0; border-radius: var(--radius); display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; color: white; text-align: left; cursor: pointer; box-shadow: 0 16px 38px rgba(0,75,67,.2); transition: transform .2s ease, box-shadow .2s ease; }
.quick-action:hover { transform: translateY(-3px); box-shadow: 0 22px 46px rgba(0,75,67,.25); }
.quick-action-booking { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); }
.quick-action-tournament { background: linear-gradient(135deg, #003d37, #00594f 58%, var(--purple)); }
.quick-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.quick-icon svg { width: 28px; height: 28px; }
.quick-action > span:nth-child(2) { min-width: 0; display: grid; }
.quick-action small { color: rgba(255,255,255,.88); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.quick-action strong { margin-top: 3px; font-size: clamp(19px,3vw,25px); line-height: 1.15; letter-spacing: -.03em; }
.quick-action em { margin-top: 5px; color: rgba(255,255,255,.88); font-size: 13px; font-style: normal; }
.quick-action > b { font-size: 26px; font-weight: 400; }

.live-section { margin: 0 0 32px; }
.live-clock { padding: 8px 12px; border: 1px solid #bfe7d6; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 800; }
.live-board-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.live-board-card { min-height: 268px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.live-board-card::after { content: ""; width: 140px; height: 140px; border: 20px solid var(--surface-soft); border-radius: 50%; position: absolute; right: -60px; bottom: -65px; opacity: .8; }
.live-board-card[data-next-reason="liga"] { border-color: #52a99b; box-shadow: 0 14px 34px rgba(0,75,67,.14); }
.live-board-card[data-next-reason="torneo"] { border-color: #ddb351; box-shadow: 0 14px 34px rgba(126,85,12,.16); }
.live-board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.board-disc { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--ink); font-size: 19px; font-weight: 900; box-shadow: inset 0 0 0 5px rgba(255,255,255,.2); }
.status-pill { padding: 7px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); background: #edf2f7; font-size: 11px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #879b95; }
.status-pill b { font-weight: 850; }
.live-board-card[data-state="free"] .status-pill { color: var(--green); background: var(--green-soft); }
.live-board-card[data-state="free"] .status-pill i { background: var(--green); box-shadow: 0 0 0 4px rgba(21,150,107,.12); }
.live-board-card[data-state="busy"] { border-color: #ffc5cc; background: linear-gradient(145deg,#fff,#fff7f8); }
.live-board-card[data-state="busy"] .status-pill { color: var(--danger); background: var(--danger-soft); }
.live-board-card[data-state="busy"] .status-pill i { background: var(--danger); box-shadow: 0 0 0 4px rgba(217,63,80,.12); }
.live-board-card h3 { margin: 19px 0 4px; font-size: 24px; letter-spacing: -.035em; position: relative; z-index: 1; }
.live-board-card > [data-live-detail] { position: relative; z-index: 1; }
.live-booking-empty { min-height: 64px; margin-top: 10px; display: flex; align-items: center; color: var(--muted); font-size: 14px; line-height: 1.45; }
.live-booking-highlight { min-height: 108px; margin-top: 12px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; display: grid; align-content: center; gap: 3px; color: white; overflow: hidden; box-shadow: 0 12px 28px rgba(4,45,39,.2); }
.live-booking-highlight[data-reason="liga"] { background: linear-gradient(135deg,#003f38,#00796b); }
.live-booking-highlight[data-reason="torneo"] { background: linear-gradient(135deg,#4f3508,#a87512 62%,#cc9b35); }
.live-booking-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-booking-meta b { padding: 5px 7px; border: 1px solid rgba(255,255,255,.28); border-radius: 7px; background: rgba(255,255,255,.12); font-size: 9px; letter-spacing: .09em; }
.live-booking-meta small { color: rgba(255,255,255,.78); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.live-booking-time { margin-top: 3px; font-size: clamp(25px,4vw,31px); line-height: 1; letter-spacing: -.045em; }
.live-booking-person { overflow: hidden; margin-top: 3px; font-size: 13px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.live-board-card > button { margin-top: 16px; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 13px; font-weight: 850; cursor: pointer; position: relative; z-index: 2; }
.live-board-card > button span { margin-left: 5px; }

.next-activity-card { margin-bottom: 22px; padding: 20px 22px; border: 1px solid #c4e2da; border-radius: var(--radius); display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 16px; background: linear-gradient(135deg,#edf8f4,#fff); box-shadow: var(--shadow-sm); }
.next-activity-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: var(--purple); background: #dff2ed; }
.next-activity-icon svg { width: 25px; height: 25px; }
.next-activity-copy small { color: var(--purple); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.next-activity-copy h2 { margin: 3px 0 2px; font-size: 18px; letter-spacing: -.025em; }
.next-activity-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.next-activity-card > button { padding: 11px 14px; border: 1px solid #b9ddd4; border-radius: 12px; color: var(--purple); background: white; font-size: 12px; font-weight: 800; cursor: pointer; }

.notification-card { margin: 0 0 22px; padding: 18px; border: 1px solid #c5e0d9; border-radius: var(--radius); display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; background: #edf7f4; }
.notification-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--blue); background: white; }
.notification-icon svg { width: 22px; height: 22px; }
.notification-card strong { display: block; font-size: 14px; }
.notification-card p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.notification-card button { padding: 10px 13px; border: 0; border-radius: 11px; color: white; background: var(--blue); font-size: 12px; font-weight: 800; cursor: pointer; }
.notification-card button[data-active="true"] { color: var(--blue); background: white; }

.view-heading { min-height: 210px; margin-bottom: 22px; padding: clamp(24px,5vw,46px); border-radius: var(--radius-lg); display: flex; align-items: flex-start; gap: 18px; position: relative; overflow: hidden; }
.view-heading::after { content: ""; width: 210px; height: 210px; border: 36px solid rgba(255,255,255,.15); border-radius: 50%; position: absolute; right: -75px; top: -86px; }
.view-heading-blue { color: white; background: linear-gradient(135deg,var(--blue-deep),var(--blue)); }
.view-heading-purple { color: white; background: linear-gradient(135deg,#003d37,#00594f 62%,var(--purple)); }
.view-heading-gold { color: var(--ink); background: linear-gradient(135deg,#e9f5f1,#b8ddd4); }
.back-button { width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 14px; color: inherit; background: rgba(255,255,255,.12); font-size: 20px; cursor: pointer; position: relative; z-index: 1; }
.view-heading-gold .back-button { background: rgba(255,255,255,.5); }
.view-heading > div { position: relative; z-index: 1; }
.view-heading .section-kicker { color: rgba(255,255,255,.9); }
.view-heading-purple .section-kicker { color: rgba(255,255,255,.9); }
.view-heading-gold .section-kicker { color: #075d51; }
.view-heading h1 { max-width: 720px; margin: 0; font-size: clamp(35px,6vw,58px); letter-spacing: -.055em; line-height: 1; }
.view-heading p:last-child { max-width: 650px; margin: 13px 0 0; color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.5; }
.view-heading-purple p:last-child { color: rgba(255,255,255,.9); }
.view-heading-gold p:last-child { color: #315e55; }
.section-switcher { width: min(100%,520px); margin: 0 auto 12px; padding: 5px; border: 1px solid rgba(139,205,189,.38); border-radius: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: rgba(5,35,30,.86); box-shadow: 0 12px 30px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.section-switcher button { min-height: 48px; padding: 10px 12px; border: 0; border-radius: 12px; color: #a9c8c0; background: transparent; font-size: 12px; font-weight: 900; cursor: pointer; }
.section-switcher button.active { color: #052c26; background: #8bcdbd; box-shadow: 0 7px 18px rgba(0,0,0,.17); }

.agenda-shell { padding: clamp(20px,4vw,36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.agenda-title-row > p { max-width: 320px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.week-calendar { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fbfdfc; }
.week-toolbar { min-height: 66px; padding: 10px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 42px 1fr auto 42px; align-items: center; gap: 8px; }
.week-toolbar > button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font-size: 18px; cursor: pointer; }
.week-toolbar > strong { text-align: center; font-size: 15px; text-transform: capitalize; }
.calendar-jump { min-width: 85px; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--blue); background: white; cursor: pointer; position: relative; }
.calendar-jump input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.calendar-jump em { font-size: 11px; font-style: normal; font-weight: 800; }
.week-days { display: grid; grid-template-columns: repeat(7,minmax(90px,1fr)); overflow-x: auto; scrollbar-width: thin; }
.week-day { min-height: 100px; padding: 12px 7px; border: 0; border-right: 1px solid var(--line); display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--muted); background: transparent; cursor: pointer; position: relative; }
.week-day:last-child { border-right: 0; }
.week-day small { font-size: 10px; font-weight: 850; text-transform: uppercase; }
.week-day strong { color: var(--ink); font-size: 24px; line-height: 1; }
.week-day em { font-size: 9px; font-style: normal; }
.week-day.has-bookings::after { content: ""; width: 6px; height: 6px; border-radius: 50%; position: absolute; bottom: 8px; background: var(--coral); }
.week-day.today:not(.selected) strong { color: var(--blue); }
.week-day.selected { color: white; background: var(--blue); }
.week-day.selected strong { color: white; }
.week-day.selected.has-bookings::after { background: white; }

.boards-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.board-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fbfdfc; }
.board-heading { min-height: 84px; padding: 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg,#e8f5f1,#fff); }
.board-card:nth-child(2) .board-heading { background: linear-gradient(135deg,#e7f5f1,#fff); }
.board-number { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--blue); font-size: 21px; font-weight: 900; box-shadow: inset 0 0 0 5px rgba(255,255,255,.2); }
.board-card:nth-child(2) .board-number { background: var(--purple); }
.board-heading small { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.board-heading h3 { margin: 2px 0 0; font-size: 15px; letter-spacing: -.02em; }
.reservation-list { min-height: 116px; padding: 10px 12px; display: grid; align-content: start; gap: 9px; }
.reservation-item { padding: 13px 12px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: white; box-shadow: 0 5px 15px rgba(15,67,58,.06); }
.reservation-item[data-reason="liga"] { border-color: #9ccfc4; border-left-color: #00796b; background: linear-gradient(135deg,#f0faf7,#fff 70%); }
.reservation-item[data-reason="torneo"] { border-color: #ead29b; border-left-color: #b27a10; background: linear-gradient(135deg,#fff8e7,#fff 70%); box-shadow: 0 7px 20px rgba(126,85,12,.09); }
.reservation-time { min-width: 90px; color: var(--ink); font-size: 17px; letter-spacing: -.025em; }
.reservation-person { min-width: 0; display: grid; }
.reservation-person strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.reservation-person small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.reason-badge { padding: 7px 9px; border-radius: 8px; color: #006457; background: #dff3ed; font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.reason-badge.torneo { color: #7a5000; background: #ffe9b5; }
.cancel-reservation { grid-column: 1/-1; justify-self: start; padding: 7px 10px; border: 1px solid #ffcbd1; border-radius: 9px; color: var(--danger); background: var(--danger-soft); font-size: 10px; font-weight: 800; cursor: pointer; }
.loading-board { padding: 40px 10px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-board { min-height: 108px; display: grid; place-items: center; }
.empty-board > div { text-align: center; }
.empty-board span { width: 28px; height: 28px; margin: 0 auto 5px; border-radius: 50%; display: grid; place-items: center; color: var(--green); background: var(--green-soft); font-weight: 900; }
.empty-board strong, .empty-board small { display: block; }
.empty-board strong { font-size: 13px; }
.empty-board small { max-width: 260px; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.retry-bookings { margin-top: 8px; padding: 7px 10px; border: 0; border-radius: 8px; color: white; background: var(--blue); font-size: 10px; font-weight: 800; cursor: pointer; }
.board-book-button { width: calc(100% - 32px); margin: 0 16px 16px; padding: 11px; border: 1px solid #bdded5; border-radius: 12px; color: var(--blue); background: white; font-size: 12px; font-weight: 850; cursor: pointer; }
.board-card:nth-child(2) .board-book-button { border-color: #b9ddd4; color: var(--purple); }

.booking-section { margin-top: 22px; padding: clamp(22px,5vw,48px); border: 1px solid #d2e3de; border-radius: var(--radius-lg); display: grid; grid-template-columns: minmax(230px,.65fr) minmax(0,1.35fr); align-items: start; gap: clamp(24px,5vw,62px); background: linear-gradient(145deg,#eaf5f1,#fbfdfc 48%,#edf8f4); box-shadow: var(--shadow-sm); }
.booking-intro { position: sticky; top: 20px; }
.booking-intro h2 { margin: 0; color: var(--ink); font-size: clamp(32px,5vw,52px); letter-spacing: -.055em; line-height: 1; }
.booking-intro > p:not(.section-kicker) { max-width: 350px; margin: 16px 0 0; color: var(--muted); line-height: 1.55; }
.booking-section-fast { margin-top: 0; grid-template-columns: minmax(0,1fr); }
.booking-section-fast .booking-form { width: 100%; }
.book-now-button { width: 100%; margin-top: 22px; padding: 14px; border: 1px solid #8bcdbd; border-radius: 16px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 1px 10px; color: #eafaf6; background: linear-gradient(135deg,#003d37,#007567); box-shadow: 0 14px 30px rgba(0,75,67,.2); text-align: left; cursor: pointer; }
.book-now-button > span { width: 38px; height: 38px; grid-row: 1/3; border-radius: 12px; display: grid; place-items: center; color: #06332c; background: #8bcdbd; font-size: 18px; }
.book-now-button strong { font-size: 14px; }
.book-now-button small { color: #bfe0d8; font-size: 10px; }
.booking-form, .tournament-form { padding: clamp(20px,4vw,34px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-lg); }
.booking-member-block { margin-bottom: 14px; }
.booking-member-block .member-picker-trigger { min-height: 54px; }
.editing-notice { margin-bottom: 20px; padding: 13px; border: 1px solid #bdded5; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #eaf6f2; }
.editing-notice div { display: grid; }
.editing-notice small { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.editing-notice strong { margin-top: 3px; font-size: 13px; }
.editing-notice button { padding: 8px 10px; border: 0; border-radius: 9px; color: var(--blue); background: white; font-size: 10px; font-weight: 800; cursor: pointer; }
.form-block { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.field-label { display: block; margin: 0 0 8px; color: var(--ink); font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.field-label small { color: var(--muted); font-weight: 650; text-transform: none; letter-spacing: 0; }
.form-block > input, .form-block > select, .form-block > textarea, .tournament-form select, .tournament-form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #c8d7d3; border-radius: 12px; color: var(--ink); background: #fbfdfc; outline: none; transition: border .15s ease, box-shadow .15s ease; }
.form-block > textarea { min-height: 90px; resize: vertical; }
.form-block > input:focus, .form-block > select:focus, .form-block > textarea:focus, .time-card input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,111,98,.1); }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.choice-card { cursor: pointer; }
.choice-card input, .segmented-control input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span { min-height: 88px; padding: 13px; border: 1px solid #c8d7d3; border-radius: 13px; display: grid; grid-template-columns: 1fr auto; align-items: center; background: #fbfdfc; transition: .15s ease; }
.choice-card small { grid-column: 1; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.choice-card strong { grid-column: 1; color: var(--ink); font-size: 25px; line-height: 1; }
.choice-card em { grid-column: 2; grid-row: 1/3; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 750; }
.choice-card input:checked + span { border-color: var(--blue); background: #e8f5f1; box-shadow: inset 0 0 0 1px var(--blue); }
.choice-card input:focus-visible + span, .segmented-control input:focus-visible + span { outline: 3px solid rgba(0,111,98,.3); outline-offset: 3px; }
.choice-card input:checked + span strong, .choice-card input:checked + span em { color: var(--blue); }
.choice-card input:disabled + span { opacity: .45; cursor: not-allowed; }
.fast-board-card[data-availability="free"] em { color: #087a55; }
.fast-board-card[data-availability="busy"] > span { border-color: #efadb6; background: #fff5f6; }
.fast-board-card[data-availability="busy"] em { color: var(--danger); }
.segmented-control { padding: 4px; border-radius: 13px; display: grid; grid-template-columns: repeat(2,1fr); background: #e7efec; }
.segmented-control span { min-height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 850; cursor: pointer; }
.segmented-control input:checked + span { color: white; background: var(--blue); box-shadow: 0 5px 12px rgba(0,111,98,.22); }
.segmented-control label:nth-child(2) input:checked + span { background: var(--purple); box-shadow: 0 5px 12px rgba(11,122,105,.22); }
.reason-control { grid-template-columns: repeat(2,minmax(0,1fr)); }
.reason-control span { min-height: 48px; padding: 7px; font-size: 10px; line-height: 1.25; text-align: center; }
.tournament-route-help { margin-top: 8px; }
.booking-date-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.booking-date-shortcuts button { min-height: 66px; padding: 9px 6px; border: 1px solid #c8d7d3; border-radius: 13px; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--ink); background: #fbfdfc; cursor: pointer; }
.booking-date-shortcuts small { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.booking-date-shortcuts strong { font-size: 12px; }
.booking-date-shortcuts button.selected { border-color: var(--blue); color: var(--blue); background: #e8f5f1; box-shadow: inset 0 0 0 1px var(--blue); }
.booking-other-date { margin-top: 9px; padding: 11px; border: 1px solid #bdded5; border-radius: 12px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; color: var(--blue); background: #f1faf7; }
.booking-other-date > span { font-size: 10px; font-weight: 850; text-transform: uppercase; }
.booking-other-date input { width: 100%; min-width: 0; min-height: 42px; padding: 7px 9px; border: 1px solid #c8d7d3; border-radius: 10px; color: var(--ink); background: white; }
.time-range { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; gap: 8px; }
.booking-time-flow { display: grid; gap: 15px; }
.booking-time-flow-fast { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: end; }
.booking-time-flow[data-tournament="true"] { grid-template-columns: 1fr; }
.time-card-start { margin: 0; }
.booking-time-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.booking-time-chip { min-height: 42px; padding: 7px 4px; border: 1px solid #b7d1ca; border-radius: 10px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 850; cursor: pointer; }
.booking-time-chip.selected { border-color: var(--blue); color: #fff; background: var(--blue); box-shadow: 0 5px 14px rgba(0,81,69,.25); }
.booking-time-chip:disabled { opacity: .45; cursor: not-allowed; }
.time-card-start .field-help { display: block; margin-top: 8px; line-height: 1.35; }
.booking-retry-button { margin-top: 9px; padding: 8px 11px; border: 1px solid #8bcdbd; border-radius: 9px; color: #075d51; background: #e8f5f1; font-size: 11px; font-weight: 800; cursor: pointer; }
.single-time-field input { min-height: 58px; font-size: 22px; font-weight: 800; text-align: center; }
.start-time-fields { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(118px,.75fr); gap: 10px; }
.duration-block { margin-bottom: 0; }
.duration-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.duration-options label { cursor: pointer; }
.duration-options input { position: absolute; opacity: 0; pointer-events: none; }
.duration-options span { min-height: 68px; padding: 10px 7px; border: 1px solid #c8d7d3; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 2px; color: var(--ink); background: #fbfdfc; text-align: center; transition: .15s ease; }
.duration-options strong { font-size: 14px; }
.duration-options small { color: var(--muted); font-size: 9px; }
.duration-options input:checked + span { border-color: var(--blue); color: var(--blue); background: #e8f5f1; box-shadow: inset 0 0 0 1px var(--blue); }
.duration-options input:focus-visible + span { outline: 3px solid rgba(0,111,98,.3); outline-offset: 3px; }
.custom-end-card { margin: 0; }
.availability-preview { margin-top: 16px; padding: 12px 14px; border: 1px solid #b8ded4; border-radius: 13px; display: flex; align-items: center; gap: 11px; color: #075d51; background: #ecf8f4; }
.availability-preview > span { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 14px; font-weight: 900; }
.availability-preview p { margin: 0; display: grid; }
.availability-preview strong { font-size: 12px; }
.availability-preview small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.availability-preview[data-status="busy"] { border-color: #ffc6cd; color: var(--danger); background: var(--danger-soft); }
.availability-preview[data-status="busy"] > span { background: var(--danger); }
.availability-preview[data-status="loading"], .availability-preview[data-status="waiting"] { border-color: #d6e1de; color: var(--muted); background: #f3f7f6; }
.availability-preview[data-status="loading"] > span, .availability-preview[data-status="waiting"] > span { background: #78918b; }
.booking-alternatives { margin-top: 9px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.booking-alternatives button { min-height: 42px; padding: 9px; border: 1px solid #e4b9bf; border-radius: 11px; color: #9d2636; background: #fff7f8; font-size: 10px; font-weight: 850; cursor: pointer; }
.time-card { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7fbf9; }
.time-card legend { padding: 0 5px; color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.time-card label { display: block; margin-top: 8px; }
.time-card label span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.time-card input { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid #c8d7d3; border-radius: 10px; color: var(--ink); background: white; outline: none; }
.range-arrow { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--blue); font-size: 14px; }
.form-message { margin: 18px 0 0; padding: 12px 14px; border: 1px solid #ffc9cf; border-radius: 12px; color: var(--danger); background: var(--danger-soft); font-size: 12px; line-height: 1.45; }
.form-message[data-type="success"] { border-color: #bce5d4; color: var(--green); background: var(--green-soft); }
.submit-button { width: 100%; min-height: 54px; margin-top: 20px; padding: 13px 16px; border: 0; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; color: white; background: linear-gradient(135deg,var(--blue-deep),var(--blue)); font-size: 14px; font-weight: 850; cursor: pointer; box-shadow: 0 12px 28px rgba(0,111,98,.23); }
.submit-button:disabled { opacity: .55; cursor: wait; box-shadow: none; }
.booking-confirm-bar { z-index: 9; position: sticky; bottom: 10px; margin: 18px -12px -12px; padding: 11px 12px; border: 1px solid #2f695e; border-radius: 16px; display: grid; grid-template-columns: minmax(0,1fr) 150px; align-items: center; gap: 10px; color: white; background: rgba(6,39,33,.96); box-shadow: 0 18px 42px rgba(0,0,0,.28); backdrop-filter: blur(10px); }
.booking-confirm-bar > div { min-width: 0; display: grid; }
.booking-confirm-bar small { color: #8bcdbd; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.booking-confirm-bar strong { margin-top: 3px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.booking-confirm-bar .submit-button { min-height: 48px; margin: 0; padding: 11px 13px; }
.form-footnote { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; text-align: center; }

.agenda-toggle { width: 100%; min-height: 78px; margin: 16px 0 0; padding: 14px 18px; border: 1px solid rgba(139,205,189,.3); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #edf9f6; background: linear-gradient(135deg,#092b25,#12483e); box-shadow: 0 12px 30px rgba(0,0,0,.17); text-align: left; cursor: pointer; }
.agenda-toggle span { display: grid; }
.agenda-toggle small { color: #9fc8be; font-size: 9px; }
.agenda-toggle strong { margin-top: 3px; font-size: 14px; }
.agenda-toggle b { color: #8bcdbd; font-size: 22px; }
.agenda-toggle + .agenda-shell { margin-top: 12px; }

.member-source-select.enhanced { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.member-picker-trigger { width: 100%; min-height: 62px; padding: 10px 14px; border: 1px solid #b7d5ce; border-radius: 14px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 11px; color: var(--ink); background: #f7fbf9; text-align: left; cursor: pointer; transition: border .15s ease, box-shadow .15s ease, transform .15s ease; }
.member-picker-trigger:active { transform: scale(.99); }
.member-picker-trigger:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,111,98,.12); outline: 0; }
.member-picker-trigger:disabled { opacity: .55; cursor: wait; }
.member-picker-trigger.identity-locked:disabled { opacity: 1; cursor: default; border-color: #8bcdbd; background: #edf8f4; }
.member-picker-trigger-avatar { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: white; background: linear-gradient(135deg,var(--blue-deep),var(--blue)); font-size: 16px; font-weight: 900; text-transform: uppercase; }
.member-picker-trigger-copy { min-width: 0; display: grid; }
.member-picker-trigger-copy strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.member-picker-trigger-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.member-picker-trigger-arrow { color: var(--blue); font-size: 20px; }
.booking-member-block .member-picker-trigger { min-height: 54px; grid-template-columns: minmax(0,1fr); }
.booking-member-block .member-picker-trigger-avatar,
.booking-member-block .member-picker-trigger-copy small,
.booking-member-block .member-picker-trigger-arrow { display: none; }
.member-picker-dialog { width: min(calc(100% - 28px),560px); max-height: min(82vh,720px); padding: 0; border: 1px solid #2e655a; border-radius: 26px; color: #f5fbf8; background: #0a2c27; box-shadow: 0 34px 100px rgba(0,0,0,.48); overflow: hidden; }
.member-picker-dialog::backdrop { background: rgba(2,19,16,.7); backdrop-filter: blur(7px); }
.member-picker-sheet { padding: 22px; }
.member-picker-heading { margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.member-picker-heading p { margin: 0 0 4px; color: #8bcdbd; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.member-picker-heading h2 { margin: 0; color: white; font-size: 27px; letter-spacing: -.04em; }
.member-picker-heading button { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid rgba(139,205,189,.3); border-radius: 13px; color: #d9eee8; background: rgba(255,255,255,.07); font-size: 22px; cursor: pointer; }
.member-picker-grid { max-height: min(58vh,520px); padding-right: 3px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; overflow-y: auto; overscroll-behavior: contain; }
.member-picker-option { min-height: 62px; padding: 9px 11px; border: 1px solid rgba(139,205,189,.22); border-radius: 14px; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 9px; color: #eff9f6; background: #143f37; text-align: left; cursor: pointer; }
.member-picker-option:active { background: #075e53; }
.member-picker-option[aria-selected="true"] { border-color: #8bcdbd; background: #076c5e; box-shadow: inset 0 0 0 1px #8bcdbd; }
.member-picker-option span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #d9f3ec; background: rgba(139,205,189,.14); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.member-picker-option strong { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.member-picker-empty { margin: 0; padding: 30px; color: #b9cec8; text-align: center; }
.tournament-form .member-picker-trigger { border-color: #3c6f64; color: #f5fbf8; background: #163e37; }
.tournament-form .member-picker-trigger-copy small { color: #b9cec8; }
.tournament-form .member-picker-trigger-avatar { background: linear-gradient(135deg,#00544b,var(--purple)); }
.tournament-form .member-picker-trigger-arrow { color: #8bcdbd; }

.tournament-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); align-items: start; gap: 22px; }
.tournament-info { padding: clamp(20px,4vw,34px); border: 1px solid #2b665a; border-radius: var(--radius-lg); color: #f5fbf8; background: linear-gradient(145deg,#092a25,#123e36); box-shadow: 0 20px 52px rgba(4,45,39,.18); }
.tournament-info .section-kicker { color: #8bcdbd; }
.tournament-schedule { margin-top: 18px; display: grid; gap: 10px; }
.tournament-schedule article { padding: 16px; border: 1px solid rgba(139,205,189,.26); border-radius: 15px; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; background: rgba(255,255,255,.06); }
.tournament-schedule span { color: #9ed9ca; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tournament-schedule strong { color: white; font-size: 17px; letter-spacing: -.02em; }
.tournament-schedule small { color: #b9cec8; font-size: 10px; text-align: right; }
.tournament-rule { margin-top: 16px; padding: 16px; border: 1px solid rgba(139,205,189,.25); border-radius: 15px; display: flex; align-items: center; gap: 14px; color: white; background: linear-gradient(135deg,#00544b,var(--purple)); }
.tournament-rule > span { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; font-size: 19px; font-weight: 900; }
.tournament-rule p { margin: 0; color: rgba(255,255,255,.9); font-size: 11px; line-height: 1.4; }
.tournament-rule strong { display: block; margin-bottom: 3px; color: white; font-size: 13px; }
.tournament-form { border-color: #2b665a; color: #f5fbf8; color-scheme: dark; background: linear-gradient(145deg,#0a2c27,#123e36); box-shadow: 0 24px 64px rgba(4,45,39,.22); }
.form-heading { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-heading span { color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.form-heading strong { display: block; margin-top: 3px; font-size: 27px; letter-spacing: -.04em; }
.form-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.tournament-form .form-heading { border-color: rgba(139,205,189,.24); }
.tournament-form .form-heading span { color: #8bcdbd; }
.tournament-form .form-heading strong, .tournament-form .field-label { color: #f5fbf8; }
.tournament-form .form-heading p, .tournament-form .field-help { color: #b9cec8; }
.tournament-form .form-block > input, .tournament-form .form-block > select, .tournament-form .form-block > textarea, .tournament-form select, .tournament-form textarea { border-color: #3c6f64; color: #f7fbf9; background: #163e37; }
.tournament-form .form-block > input:focus, .tournament-form .form-block > select:focus, .tournament-form .form-block > textarea:focus { border-color: #8bcdbd; box-shadow: 0 0 0 4px rgba(139,205,189,.14); }
.tournament-form .form-block > textarea::placeholder { color: #9db7b0; }
.tournament-form .choice-card > span { border-color: #3c6f64; background: #163e37; }
.tournament-form .choice-card small, .tournament-form .choice-card em { color: #b9cec8; }
.tournament-form .choice-card strong { color: #f5fbf8; }
.tournament-board-choice .choice-card input:checked + span { border-color: #8bcdbd; background: #075e53; box-shadow: inset 0 0 0 1px #8bcdbd; }
.tournament-board-choice .choice-card input:checked + span strong, .tournament-board-choice .choice-card input:checked + span em { color: #d8f2eb; }
.tournament-summary { padding: 12px 14px; border: 1px solid rgba(139,205,189,.22); border-radius: 12px; display: flex; align-items: center; gap: 9px; color: #c7ebe2; background: #164a40; }
.tournament-summary p { margin: 0; font-size: 11px; line-height: 1.4; }
.tournament-submit { background: linear-gradient(135deg,#003d37,var(--purple)); box-shadow: 0 12px 28px rgba(11,122,105,.23); }
.whatsapp-inline { width: 100%; min-height: 46px; margin-top: 12px; border: 1px solid #a9dfc9; border-radius: 13px; color: #087a55; background: var(--green-soft); font-size: 12px; font-weight: 850; cursor: pointer; }
.tournament-date-shortcuts { margin-bottom: 9px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.tournament-date-chip { min-height: 64px; padding: 7px 5px; border: 1px solid #3c6f64; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 2px; color: #d8eee8; background: #163e37; cursor: pointer; }
.tournament-date-chip small { color: #a8c7bf; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tournament-date-chip strong { font-size: 18px; }
.tournament-date-chip.selected { border-color: #8bcdbd; color: #092c26; background: #8bcdbd; box-shadow: inset 0 0 0 1px #c9eee5; }
.tournament-date-chip.selected small { color: #174a40; }
.tournament-date-input { min-height: 44px !important; }
.tournament-slot-source { position: absolute; width: 1px !important; height: 1px !important; min-height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.tournament-slot-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.tournament-slot-card { min-height: 86px; padding: 13px; border: 1px solid #3c6f64; border-radius: 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; color: #f4fbf9; background: #163e37; text-align: left; cursor: pointer; }
.tournament-slot-card span { display: grid; }
.tournament-slot-card small { color: #9fc6bc; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.tournament-slot-card strong { margin-top: 3px; font-size: 23px; line-height: 1; }
.tournament-slot-card em { max-width: 76px; color: #b9d4cd; font-size: 9px; font-style: normal; line-height: 1.35; text-align: right; }
.tournament-slot-card.selected { border-color: #8bcdbd; background: #075e53; box-shadow: inset 0 0 0 1px #8bcdbd; }
.tournament-slot-card:disabled { opacity: .43; cursor: not-allowed; }
.tournament-board-choice .choice-card[data-availability="full"] > span { border-color: #8d4b55; background: #40252b; }
.tournament-board-choice .choice-card[data-availability="last"] > span { border-color: #c99f45; }

.my-reservations-shell { min-height: 220px; padding: clamp(20px,4vw,34px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.my-reservations-list { display: grid; gap: 12px; }
.no-owned-reservations { margin: 0; padding: 42px 18px; border: 1px dashed #c8d7d3; border-radius: var(--radius); color: var(--muted); background: #f7fbf9; text-align: center; line-height: 1.5; }
.my-reservation-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; background: #fbfdfc; }
.my-reservation-card h3 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.my-reservation-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.my-reservation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.my-reservation-actions button { padding: 9px 11px; border: 1px solid #bdded5; border-radius: 10px; color: var(--blue); background: white; font-size: 10px; font-weight: 850; cursor: pointer; }
.my-reservation-actions .my-share-button { border-color: #b9e4d3; color: var(--green); background: var(--green-soft); }
.my-reservation-actions .my-transfer-button { border-color: #d8c994; color: #75530e; background: #fff8df; }
.my-reservation-actions .my-delete-button { border-color: #ffcbd1; color: var(--danger); background: var(--danger-soft); }
.app-tools { margin-top: 18px; padding: clamp(20px,4vw,30px); border: 1px solid #d2e3de; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg,#eaf5f1,#fff); }
.app-tools h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.app-tools p:last-child { max-width: 520px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.app-tool-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.install-button, .admin-link { padding: 11px 14px; border: 1px solid #bdded5; border-radius: 11px; color: var(--blue); background: white; font-size: 11px; font-weight: 850; text-decoration: none; cursor: pointer; }
.admin-link { color: var(--muted); border-color: var(--line); }

.site-footer { width: min(100% - 32px,1160px); min-height: 130px; margin: 24px auto 0; padding-bottom: 34px; display: flex; align-items: center; justify-content: center; gap: 13px; color: #a9c3bc; }
.site-footer img { width: 72px; height: 58px; object-fit: contain; filter: brightness(0) invert(1); }
.site-footer p { margin: 0; font-size: 11px; }
.toast { z-index: 120; position: fixed; left: 50%; bottom: max(20px,env(safe-area-inset-bottom)); max-width: min(90vw,460px); padding: 12px 16px; border-radius: 13px; color: white; background: var(--ink); box-shadow: var(--shadow-lg); font-size: 12px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%,14px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.install-guide-dialog { width: min(calc(100% - 28px),470px); max-height: min(760px,calc(100dvh - 28px)); padding: 0; border: 0; border-radius: 28px; color: var(--ink); background: white; box-shadow: 0 35px 100px rgba(0,0,0,.42); }
.install-guide-dialog::backdrop { background: rgba(3,24,20,.7); backdrop-filter: blur(7px); }
.install-guide-sheet { padding: 29px 24px 22px; position: relative; text-align: center; }
.install-guide-close { width: 40px; height: 40px; border: 0; border-radius: 50%; position: absolute; top: 10px; right: 10px; color: var(--muted); background: #eaf1ef; font-size: 21px; cursor: pointer; }
.install-guide-icon { width: 82px; height: 82px; margin: 0 auto 14px; border-radius: 21px; box-shadow: 0 12px 30px rgba(0,63,53,.25); }
.install-guide-sheet h2 { margin: 0; font-size: 29px; letter-spacing: -.045em; }
.install-guide-intro { max-width: 360px; margin: 9px auto 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.install-steps { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; text-align: left; }
.install-steps li { padding: 11px; border: 1px solid #d6e5e0; border-radius: 15px; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; background: #f5faf8; }
.install-steps li > span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #f8f0df; background: #003f35; font-size: 12px; font-weight: 900; }
.install-steps strong, .install-steps small { display: block; }
.install-steps strong { font-size: 12px; }
.install-steps small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.install-guide-done { width: 100%; min-height: 48px; margin-top: 14px; border: 0; border-radius: 14px; color: white; background: #006f62; font-size: 12px; font-weight: 900; cursor: pointer; }
.device-identity-dialog { width: min(calc(100% - 24px),620px); max-height: min(860px,calc(100dvh - 24px)); padding: 0; border: 1px solid #2e655a; border-radius: 30px; color: #f5fbf8; background: #082822; box-shadow: 0 36px 110px rgba(0,0,0,.58); overflow: auto; }
.device-identity-dialog::backdrop { background: rgba(1,16,13,.82); backdrop-filter: blur(9px); }
.device-identity-sheet { padding: clamp(22px,5vw,36px); text-align: center; }
.device-identity-sheet > img { width: 84px; height: 84px; margin: 0 auto 15px; border-radius: 22px; box-shadow: 0 15px 34px rgba(0,0,0,.32); }
.device-identity-sheet h2 { margin: 0; font-size: clamp(30px,7vw,44px); letter-spacing: -.05em; }
.device-identity-intro { max-width: 470px; margin: 10px auto 20px; color: #b9d2cc; font-size: 13px; line-height: 1.5; }
.device-member-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.device-member-option { min-width: 0; min-height: 68px; padding: 10px; border: 1px solid rgba(139,205,189,.3); border-radius: 16px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 10px; color: white; background: rgba(255,255,255,.07); text-align: left; cursor: pointer; }
.device-member-option > span:first-child, .device-admin-avatar { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #07332d; background: #8bcdbd; font-size: 14px; font-weight: 900; text-transform: uppercase; }
.device-member-option > span:last-child { min-width: 0; display: grid; }
.device-member-option strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.device-member-option small { margin-top: 3px; color: #9ebcb5; font-size: 9px; }
.device-admin-form { max-width: 430px; margin: 8px auto 0; padding: 20px; border: 1px solid rgba(139,205,189,.3); border-radius: 20px; display: grid; justify-items: center; background: rgba(255,255,255,.06); }
.device-admin-back { justify-self: start; padding: 7px 0; border: 0; color: #8bcdbd; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.device-admin-form > strong { margin-top: 9px; font-size: 19px; }
.device-admin-form > p { margin: 6px 0 15px; color: #b9d2cc; font-size: 11px; line-height: 1.45; }
.device-admin-form label { width: 100%; margin-bottom: 6px; color: #b9d2cc; font-size: 10px; font-weight: 800; text-align: left; }
.device-admin-form input { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid #49786e; border-radius: 12px; color: white; background: #051d19; outline: 0; }
.device-admin-submit { width: 100%; min-height: 50px; margin-top: 10px; border: 0; border-radius: 12px; color: #052c26; background: #8bcdbd; font-size: 12px; font-weight: 900; cursor: pointer; }
.device-identity-message, .device-identity-empty { margin: 12px 0 0; padding: 11px; border: 1px solid #d2737e; border-radius: 12px; color: #ffe4e7; background: rgba(217,63,80,.16); font-size: 11px; }
.device-identity-sheet > small { display: block; margin-top: 16px; color: #89aaa2; font-size: 9px; line-height: 1.45; }
.install-guide-note { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; }
.result-dialog { width: min(calc(100% - 28px),440px); padding: 30px; border: 0; border-radius: 26px; color: var(--ink); background: white; box-shadow: 0 35px 100px rgba(10,55,48,.3); text-align: center; }
.result-dialog::backdrop { background: rgba(10,35,31,.48); backdrop-filter: blur(5px); }
.dialog-close { width: 44px; height: 44px; border: 0; border-radius: 50%; position: absolute; top: 10px; right: 10px; color: var(--muted); background: #eaf1ef; font-size: 21px; cursor: pointer; }
.success-mark, .cancellation-mark { width: 62px; height: 62px; margin: 0 auto 15px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 30px; font-weight: 900; box-shadow: 0 12px 30px rgba(21,150,107,.25); }
.result-dialog > p { margin: 0; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.result-dialog h2 { margin: 7px 0 0; font-size: 27px; letter-spacing: -.045em; }
.success-summary { margin: 18px 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #f7fbf9; }
.success-summary strong, .success-summary div { display: block; }
.success-summary strong { font-size: 15px; }
.success-summary div { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.whatsapp-button { width: 100%; min-height: 50px; border: 0; border-radius: 13px; color: white; background: #14966c; font-size: 13px; font-weight: 850; cursor: pointer; }
.transfer-access-button { width: 100%; min-height: 48px; margin-top: 9px; border: 1px solid #d8c994; border-radius: 13px; color: #6d4c08; background: #fff8df; font-size: 12px; font-weight: 850; cursor: pointer; }
.dialog-secondary { width: 100%; min-height: 44px; margin-top: 7px; border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }
.danger-dialog-button { width: 100%; min-height: 50px; border: 0; border-radius: 13px; color: white; background: var(--danger); font-size: 13px; font-weight: 850; cursor: pointer; }
.danger-dialog-button:disabled { opacity: .55; cursor: wait; }
.result-dialog > small { color: var(--muted); font-size: 10px; }
.email-confirmation { margin: -8px 0 14px; padding: 11px 12px; border: 1px solid #bce5d4; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #087a55; background: var(--green-soft); font-size: 11px; }
.email-confirmation[data-status="pending"] { border-color: #ead29b; color: #7a5000; background: #fff8e7; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

@media (max-width: 900px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .app-topbar, .app-main, .site-footer { width: min(100% - 24px,760px); }
  .home-hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p:last-child { margin-inline: auto; }
  .hero-logo-wrap { min-height: 200px; grid-row: 1; }
  .hero-logo-wrap img { width: min(90%,360px); max-height: 230px; }
  .quick-actions { grid-template-columns: 1fr; }
  .preferred-member-card { grid-template-columns: 48px minmax(0,1fr) auto; }
  .preferred-member-card [data-repeat-last-booking] { grid-column: 2/4; }
  .booking-section { grid-template-columns: 1fr; }
  .booking-intro { position: static; }
  .tournament-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .app-topbar { min-height: 66px; }
  .brand-button img { width: 47px; height: 40px; }
  .brand-button strong { font-size: 14px; }
  .brand-button small { font-size: 9px; }
  .icon-action { width: 44px; height: 44px; }
  .home-hero { padding: 24px 18px 26px; border-radius: 25px; gap: 8px; }
  .hero-copy h1 { font-size: clamp(37px,11.5vw,52px); }
  .hero-copy > p:last-child { margin-top: 15px; font-size: 14px; }
  .hero-logo-wrap { min-height: 176px; }
  .hero-logo-wrap img { width: 300px; height: 190px; }
  .install-promo { padding: 12px 44px 12px 12px; grid-template-columns: 54px minmax(0,1fr); gap: 11px; }
  .install-promo > img { width: 54px; height: 54px; border-radius: 14px; }
  .install-promo-copy strong { font-size: 14px; }
  .install-promo-copy p { font-size: 10px; }
  .install-promo-action { grid-column: 1/-1; width: 100%; }
  .quick-actions { margin-top: 14px; gap: 10px; }
  .preferred-member-card { padding: 13px; grid-template-columns: 44px minmax(0,1fr) auto; gap: 10px; }
  .preferred-member-avatar { width: 44px; height: 44px; border-radius: 13px; }
  .preferred-member-card p { display: none; }
  .preferred-member-card [data-repeat-last-booking] { grid-column: 1/-1; width: 100%; }
  .quick-action { min-height: 105px; padding: 16px; grid-template-columns: 48px 1fr auto; gap: 12px; border-radius: 19px; }
  .quick-icon { width: 48px; height: 48px; border-radius: 15px; }
  .quick-action strong { font-size: 19px; }
  .quick-action em { font-size: 11px; }
  .section-title-row { align-items: center; }
  .section-title-row h2 { font-size: 27px; }
  .live-board-grid { grid-template-columns: 1fr; gap: 10px; }
  .live-board-card { min-height: 258px; padding: 18px; }
  .next-activity-card { padding: 16px; grid-template-columns: 44px 1fr; }
  .next-activity-icon { width: 44px; height: 44px; }
  .next-activity-card > button { grid-column: 1/-1; width: 100%; }
  .notification-card { grid-template-columns: 40px 1fr; }
  .notification-card button { grid-column: 1/-1; width: 100%; }
  .view-heading { min-height: 190px; padding: 22px 18px; border-radius: 25px; }
  .view-heading h1 { font-size: 38px; }
  .view-heading p:last-child { font-size: 13px; }
  .back-button { width: 44px; height: 44px; flex: 0 0 auto; }
  .agenda-shell { padding: 16px; border-radius: 24px; }
  .agenda-title-row { align-items: flex-start; }
  .agenda-title-row > p { display: none; }
  .week-toolbar { grid-template-columns: 44px 1fr 74px 44px; }
  .week-toolbar > button { width: 44px; height: 44px; }
  .week-toolbar > strong { font-size: 12px; }
  .calendar-jump { min-width: 74px; height: 44px; padding: 0 7px; }
  .week-days { grid-template-columns: repeat(7,68px); }
  .week-day { min-height: 88px; }
  .week-day strong { font-size: 21px; }
  .week-day em { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .boards-grid { grid-template-columns: 1fr; }
  .booking-section { padding: 20px 14px; border-radius: 25px; }
  .booking-intro { padding: 0 4px; }
  .booking-intro h2 { font-size: 37px; }
  .book-now-button { margin: 16px 0 2px; }
  .booking-form, .tournament-form { padding: 18px 14px; border-radius: 19px; box-shadow: var(--shadow-sm); }
  .booking-time-flow-fast { grid-template-columns: 1fr; }
  .booking-date-shortcuts { gap: 6px; }
  .booking-date-shortcuts button { min-height: 62px; }
  .reason-control span { min-height: 48px; }
  .booking-confirm-bar { grid-template-columns: minmax(0,1fr) 126px; }
  .booking-confirm-bar .submit-button { font-size: 12px; }
  .agenda-toggle { min-height: 72px; padding: 12px 15px; }
  .time-range { grid-template-columns: 1fr; }
  .start-time-fields { grid-template-columns: 1fr 1fr; }
  .duration-options span { min-height: 64px; }
  .range-arrow { margin: -3px auto; transform: rotate(90deg); }
  .tournament-info { padding: 18px 14px; border-radius: 24px; }
  .tournament-schedule article { grid-template-columns: 74px 1fr; }
  .tournament-schedule small { grid-column: 2; text-align: left; }
  .tournament-slot-cards { grid-template-columns: 1fr; }
  .tournament-slot-card { min-height: 72px; }
  .my-reservations-shell { padding: 14px; border-radius: 24px; }
  .my-reservation-card { grid-template-columns: 1fr; }
  .my-reservation-actions { justify-content: stretch; }
  .my-reservation-actions button { flex: 1 1 auto; }
  .app-tools { align-items: stretch; flex-direction: column; }
  .app-tool-actions { justify-content: stretch; }
  .app-tool-actions > * { flex: 1 1 100%; text-align: center; }
  .site-footer { min-height: 100px; padding-bottom: 15px; flex-direction: column; gap: 4px; text-align: center; }
  .site-footer img { width: 66px; height: 46px; }
  .result-dialog { padding: 28px 20px 22px; }
  .install-guide-dialog { width: calc(100% - 14px); max-height: calc(100dvh - 18px); margin: auto auto 7px; border-radius: 27px 27px 18px 18px; }
  .install-guide-sheet { padding: 24px 14px 16px; }
  .install-guide-icon { width: 72px; height: 72px; border-radius: 18px; }
  .install-guide-sheet h2 { font-size: 26px; }
  .member-picker-dialog { width: calc(100% - 14px); max-height: calc(100dvh - 18px); margin: auto auto 7px; border-radius: 26px 26px 18px 18px; }
  .member-picker-sheet { padding: 18px 14px 14px; }
  .member-picker-grid { max-height: calc(100dvh - 132px); gap: 8px; }
  .member-picker-option { min-height: 60px; padding-inline: 9px; }
  .device-identity-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); margin: auto auto 6px; border-radius: 28px 28px 16px 16px; }
  .device-identity-sheet { padding: 22px 14px 16px; }
  .device-member-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
}

@media (display-mode: standalone) {
  .app-topbar { padding-top: max(8px,env(safe-area-inset-top)); }
  .staging-banner { padding-top: max(8px,env(safe-area-inset-top)); }
}

@media (max-width: 380px) {
  .app-topbar, .app-main, .site-footer { width: calc(100% - 18px); }
  .brand-button small { display: none; }
  .hero-copy h1 { font-size: 36px; }
  .quick-action { grid-template-columns: 44px 1fr auto; }
  .quick-icon { width: 44px; height: 44px; }
  .quick-action em { display: none; }
  .choice-card > span { padding: 11px; }
  .reason-control span { font-size: 9px; }
  .booking-confirm-bar { grid-template-columns: 1fr; bottom: 10px; }
  .booking-confirm-bar strong { white-space: normal; }
}

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