/* KeyInHands Tennis Club — styles */
:root {
  --green-900: #0b2e22;
  --green-800: #0f3d2e;
  --green-700: #155240;
  --green-600: #1d6b53;
  --green-100: #e3efe8;
  --ball: #cde84a;
  --ball-dark: #a9c42a;
  --clay: #d4683b;
  --clay-100: #fbe9e1;
  --cream: #f7f5ee;
  --paper: #ffffff;
  --ink: #15201b;
  --ink-2: #44514b;
  --ink-3: #75817b;
  --line: #e2e3dc;
  --danger: #c0392b;
  --info: #2f6db5;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 61, 46, .06), 0 8px 24px rgba(15, 61, 46, .08);
  --shadow-lg: 0 20px 60px rgba(11, 46, 34, .22);
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ball-dark); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-3); }
.muted-light { color: rgba(255,255,255,.7); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--green-600); margin-bottom: .6em; display: inline-block; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 245, 238, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.scrolled { border-color: var(--line); }
.site-header.on-hero { background: transparent; }
.site-header.on-hero .main-nav a, .site-header.on-hero .brand, .site-header.on-hero .icon-btn { color: #fff; }
.site-header.on-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-800); flex-shrink: 0; }
.brand strong { display: block; font-family: var(--display); font-size: 1.2rem; line-height: 1; }
.brand small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.brand-ball { width: 34px; height: 34px; }
.brand-ball circle { fill: var(--ball); }
.brand-ball path { stroke: #fff; stroke-width: 4; fill: none; }
.brand-light { color: #fff; margin-bottom: 14px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.main-nav a:hover { background: rgba(15, 61, 46, .07); }
.main-nav a.active { color: var(--green-800); background: var(--green-100); }
.site-header.on-hero .main-nav a.active, .site-header.on-hero .main-nav a:hover { background: rgba(255,255,255,.14); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--green-800); cursor: pointer; position: relative; }
.icon-btn:hover { background: rgba(15, 61, 46, .08); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--clay); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; }
.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font-weight: 600; font-size: .88rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--green-700); color: var(--ball); display: grid; place-items: center; font-weight: 700; font-size: .78rem; flex-shrink: 0; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 200px; padding: 6px; display: none; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; font-size: .92rem; }
.dropdown a:hover, .dropdown button:hover { background: var(--cream); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: .93rem; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-ball { background: var(--ball); color: var(--green-900); }
.btn-ball:hover { background: #d8f163; box-shadow: 0 6px 20px rgba(205, 232, 74, .4); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--green-800); }
.btn-ghost:hover { background: rgba(15,61,46,.05); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-danger { background: transparent; color: var(--danger); border-color: #efc9c4; }
.btn-danger:hover { background: #fdf0ee; }
.btn-sm { padding: 6px 13px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(29, 107, 83, .12); }
textarea.input { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-error { color: var(--danger); font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; }

/* ---------- cards & layout ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { color: var(--ink-2); max-width: 560px; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.page-hero { background: var(--green-800); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .25em; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 620px; font-size: 1.08rem; margin: 0; }
.page-hero .eyebrow { color: var(--ball); }
.page-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 2px solid rgba(205,232,74,.25); box-shadow: 0 0 0 40px rgba(205,232,74,.05), 0 0 0 80px rgba(205,232,74,.03); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; background: var(--green-100); color: var(--green-700); }
.badge-clay { background: var(--clay-100); color: #a2461f; }
.badge-ball { background: #f1f9c9; color: #5d6d0e; }
.badge-gray { background: #eeefe9; color: var(--ink-2); }
.badge-danger { background: #fbe4e1; color: var(--danger); }
.badge-info { background: #e3edf9; color: var(--info); }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.loading { padding: 80px 0; text-align: center; color: var(--ink-3); }
.spinner { width: 32px; height: 32px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--green-100); border-top-color: var(--green-600); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- home hero ---------- */
.hero { position: relative; margin-top: -72px; padding: 150px 0 110px; color: #fff; overflow: hidden; background: radial-gradient(1200px 600px at 75% 30%, var(--green-600) 0%, var(--green-800) 45%, var(--green-900) 100%); }
.hero-court { position: absolute; inset: 0; opacity: .9; pointer-events: none; }
.hero-court svg { position: absolute; right: -6%; top: 50%; transform: translateY(-50%) perspective(900px) rotateX(52deg) rotateZ(-18deg); width: 62%; min-width: 620px; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; margin-bottom: .3em; }
.hero h1 em { font-style: italic; color: var(--ball); }
.hero-lead { font-size: 1.18rem; color: rgba(255,255,255,.82); max-width: 540px; margin-bottom: 2em; }
.hero .eyebrow { color: var(--ball); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ball { position: absolute; width: 90px; height: 90px; right: 10%; top: 18%; animation: bounce 3.2s ease-in-out infinite; filter: drop-shadow(0 20px 20px rgba(0,0,0,.35)); }
@keyframes bounce { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-26px) rotate(40deg); } }
.live-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px); border-radius: 20px; padding: 22px; color: #fff; }
.live-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 14px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 0 rgba(205,232,74,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(205,232,74,0); } 100% { box-shadow: 0 0 0 0 rgba(205,232,74,0); } }
.live-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.live-row:first-of-type { border-top: 0; }
.live-row .court-name { font-weight: 600; flex: 1; }
.live-row .next { color: var(--ball); font-weight: 700; font-variant-numeric: tabular-nums; }
.live-bar { width: 70px; height: 6px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
.live-bar span { display: block; height: 100%; background: var(--ball); border-radius: 3px; }
.stats-strip { position: relative; margin-top: -46px; z-index: 2; }
.stats-strip .card { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 10px; }
.stat { text-align: center; border-left: 1px solid var(--line); padding: 0 12px; }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--display); font-size: 2.3rem; color: var(--green-800); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .85rem; color: var(--ink-3); font-weight: 600; }

.feature { position: relative; padding: 28px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; overflow: hidden; display: flex; flex-direction: column; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--green-100); color: var(--green-700); }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--ink-2); font-size: .94rem; flex: 1; }
.feature .more { font-weight: 700; color: var(--green-700); font-size: .9rem; }
.feature.clay .feature-icon { background: var(--clay-100); color: var(--clay); }
.feature.ball .feature-icon { background: #f1f9c9; color: #6c7f10; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.photo-court { aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #d97a4d, #b9542a); position: relative; box-shadow: var(--shadow-lg); }
.photo-court svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.check-list li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ball) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f3d2e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/13px no-repeat; }

.event-card { display: flex; gap: 18px; padding: 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); align-items: flex-start; }
.date-tile { flex-shrink: 0; width: 64px; text-align: center; border-radius: 12px; background: var(--green-800); color: #fff; padding: 8px 0; }
.date-tile b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.date-tile span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ball); font-weight: 700; }
.event-card h3 { margin-bottom: 4px; }
.event-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .84rem; color: var(--ink-3); align-items: center; margin-bottom: 8px; }
.capacity { height: 6px; border-radius: 3px; background: var(--green-100); overflow: hidden; margin: 10px 0 4px; }
.capacity span { display: block; height: 100%; background: var(--green-600); }
.capacity.full span { background: var(--clay); }

.news-item { padding: 20px 0; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-item h3 { margin-bottom: 4px; }
.news-item p { color: var(--ink-2); margin: 6px 0 0; }

.cta-band { background: var(--ball); border-radius: 28px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--green-900); margin: 0 0 .2em; }
.cta-band p { color: var(--green-800); margin: 0; max-width: 520px; }
.cta-band::before { content: ''; position: absolute; left: -60px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; border: 6px solid rgba(255,255,255,.5); }

/* ---------- coaches ---------- */
.coach-card { text-align: center; padding: 32px 24px; }
.coach-avatar { width: 108px; height: 108px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 2.2rem; color: var(--green-900); background: conic-gradient(from 200deg, var(--ball), #e6f59a, var(--ball)); box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--green-100); }
.coach-card .title { color: var(--clay); font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.coach-card p { color: var(--ink-2); font-size: .93rem; }
.rate { font-weight: 700; color: var(--green-800); margin-bottom: 16px; }

/* ---------- membership ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px 24px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); position: relative; }
.plan.featured { background: var(--green-800); color: #fff; border-color: var(--green-800); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan.featured .muted, .plan.featured .plan-desc { color: rgba(255,255,255,.72); }
.plan.featured .check-list li::before { background-color: var(--ball); }
.plan-tag { position: absolute; top: -12px; left: 24px; background: var(--ball); color: var(--green-900); font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; }
.plan h3 { font-size: 1.25rem; }
.price { font-family: var(--display); font-size: 2.6rem; line-height: 1; margin: 10px 0 4px; }
.price small { font-family: var(--sans); font-size: .9rem; font-weight: 500; opacity: .7; }
.plan-desc { color: var(--ink-2); font-size: .9rem; min-height: 3em; }
.plan .check-list { flex: 1; font-size: .92rem; }
.compare { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; font-size: .92rem; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--green-100); color: var(--green-800); }
.yes { color: var(--green-600); font-weight: 800; }
.no { color: var(--ink-3); }

/* ---------- booking ---------- */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.date-pill { flex-shrink: 0; width: 66px; padding: 10px 0; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); text-align: center; cursor: pointer; transition: all .15s; }
.date-pill b { display: block; font-family: var(--display); font-size: 1.4rem; line-height: 1.1; }
.date-pill span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
.date-pill:hover { border-color: var(--green-600); }
.date-pill.active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.date-pill.active span { color: var(--ball); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.grid-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.court-grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 980px; }
.court-grid th, .court-grid td { padding: 4px; border-bottom: 1px solid var(--line); }
.court-grid thead th { font-size: .75rem; color: var(--ink-3); font-weight: 700; padding: 12px 4px; text-align: center; font-variant-numeric: tabular-nums; position: sticky; top: 0; background: var(--paper); }
.court-grid tbody th { position: sticky; left: 0; background: var(--paper); text-align: left; padding: 10px 14px; min-width: 150px; border-right: 1px solid var(--line); z-index: 1; }
.court-grid tbody th b { display: block; font-size: .95rem; }
.court-grid tbody th small { color: var(--ink-3); font-size: .76rem; }
.court-grid tr:last-child th, .court-grid tr:last-child td { border-bottom: 0; }
.slot { width: 100%; height: 46px; border-radius: 8px; border: 0; cursor: pointer; font-size: .7rem; font-weight: 700; padding: 2px; line-height: 1.15; overflow: hidden; transition: transform .1s, background .15s; }
.slot.free { background: var(--green-100); color: var(--green-700); }
.slot.free:hover { background: var(--ball); color: var(--green-900); transform: scale(1.05); }
.slot.taken { background: #eeefe9; color: var(--ink-3); cursor: default; }
.slot.mine { background: var(--green-700); color: #fff; }
.slot.mine:hover { background: var(--clay); }
.slot.past, .slot.unlit { background: repeating-linear-gradient(-45deg, #f5f5f1, #f5f5f1 5px, #ecece6 5px, #ecece6 10px); cursor: not-allowed; color: transparent; }
.surface-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.surface-Hard { background: #3a7bd5; }
.surface-Clay { background: var(--clay); }
.surface-Carpet { background: #2fa36b; }
.booking-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.rule { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: .88rem; color: var(--ink-2); }
.rule b { display: block; color: var(--ink); font-size: 1.05rem; }

/* ---------- ladder ---------- */
.ladder-table { width: 100%; border-collapse: collapse; }
.ladder-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.ladder-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ladder-table tr.me td { background: #f6fbe0; }
.rank { font-family: var(--display); font-weight: 700; font-size: 1.15rem; width: 48px; }
.rank-1 { color: #b8860b; } .rank-2 { color: #7d8790; } .rank-3 { color: #a0522d; }
.player { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.rating { font-weight: 800; color: var(--green-800); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; margin-bottom: 32px; }
.podium-step { text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 18px 18px 8px 8px; padding: 20px 12px; }
.podium-step .avatar { width: 54px; height: 54px; font-size: 1.1rem; margin: 0 auto 10px; }
.podium-step.first { padding-top: 34px; background: var(--green-800); color: #fff; border-color: var(--green-800); }
.podium-step.first .avatar { background: var(--ball); color: var(--green-900); width: 66px; height: 66px; }
.podium-step .place { font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.match-row { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.match-row:last-child { border-bottom: 0; }
.match-row .score { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta { color: var(--green-600); font-weight: 700; font-size: .8rem; }

/* ---------- shop ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 600; font-size: .88rem; }
.chip.active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.product { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-art { aspect-ratio: 4/3; display: grid; place-items: center; position: relative; }
.product-art svg { width: 46%; height: 46%; }
.product-art .badge { position: absolute; top: 12px; left: 12px; }
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1rem; margin-bottom: 4px; }
.product-body p { font-size: .85rem; color: var(--ink-2); flex: 1; }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.product-price b { font-size: 1.2rem; color: var(--green-800); }
.product-price s { color: var(--ink-3); font-size: .88rem; }
.product-price .member { font-size: .74rem; font-weight: 700; color: #6c7f10; }
.stock-low { color: var(--clay); font-size: .78rem; font-weight: 700; }

.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(11, 46, 34, .45); animation: fade .2s; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); display: flex; flex-direction: column; animation: slidein .25s ease-out; }
@keyframes slidein { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; }
.cart-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line .name { flex: 1; font-weight: 600; font-size: .92rem; }
.cart-line .name small { display: block; color: var(--ink-3); font-weight: 500; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; font-weight: 700; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: .9rem; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; padding: 16px 0; }

/* ---------- modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.modal-card { position: relative; background: var(--paper); border-radius: 20px; padding: 28px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .2s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal-card h3 { font-family: var(--display); font-size: 1.5rem; }
.modal-close { position: absolute; top: 14px; right: 14px; }
.summary-box { background: var(--cream); border-radius: 12px; padding: 14px 16px; margin: 14px 0 18px; display: grid; gap: 6px; font-size: .92rem; }
.summary-box div { display: flex; justify-content: space-between; gap: 12px; }
.summary-box span { color: var(--ink-3); }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 440px; }
.toast { background: var(--green-900); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; animation: pop .2s; display: flex; gap: 10px; align-items: center; }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ball); flex-shrink: 0; }
.toast.error::before { background: #ff7b6b; }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--green-800); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.auth-side p { color: rgba(255,255,255,.75); max-width: 420px; }
.auth-side .hero-ball { right: 12%; top: auto; bottom: 14%; }
.auth-form { padding: 64px; display: flex; align-items: center; justify-content: center; }
.auth-form form { width: 100%; max-width: 420px; }
.demo-box { background: #f6fbe0; border: 1px dashed var(--ball-dark); border-radius: 12px; padding: 12px 14px; font-size: .85rem; margin-top: 18px; }
.demo-box button { background: none; border: 0; color: var(--green-700); font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }

/* ---------- account / admin ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tab { padding: 12px 16px; border: 0; background: none; cursor: pointer; font-weight: 700; color: var(--ink-3); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.tab.active { color: var(--green-800); border-bottom-color: var(--green-700); }
.tab .badge { font-size: .68rem; padding: 1px 7px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 180px; }
.list-row .grow b { display: block; }
.list-row .grow small { color: var(--ink-3); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kpi span { font-size: .8rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { display: block; font-family: var(--display); font-size: 2rem; color: var(--green-800); font-variant-numeric: tabular-nums; }
.bars { display: flex; gap: 12px; align-items: flex-end; height: 180px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 54px; background: var(--green-600); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.bar small { font-size: .74rem; color: var(--ink-3); font-weight: 600; }
.bar em { font-style: normal; font-size: .76rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table select.input, .data-table .input { padding: 6px 8px; font-size: .85rem; width: auto; }
.table-scroll { overflow-x: auto; }

/* ---------- handbook ---------- */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.toc a { text-decoration: none; color: var(--ink-2); padding: 7px 12px; border-radius: 8px; font-size: .9rem; font-weight: 600; border-left: 3px solid transparent; }
.toc a:hover { background: var(--paper); color: var(--green-800); border-left-color: var(--ball-dark); }
.doc-body section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-bottom: 20px; scroll-margin-top: 96px; }
.doc-body h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; }
.doc-body h2 .num { width: 36px; height: 36px; border-radius: 10px; background: var(--ball); color: var(--green-900); font-family: var(--sans); font-size: .95rem; display: grid; place-items: center; flex-shrink: 0; }
.doc-body ul, .doc-body ol { padding-left: 22px; color: var(--ink-2); }
.doc-body li { margin-bottom: 6px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .92rem; }
.doc-body td, .doc-body th { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; }
.callout { background: #f6fbe0; border-left: 4px solid var(--ball-dark); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--ink-2); font-size: .94rem; }

/* ---------- contact ---------- */
.contact-info { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .feature-icon { margin: 0; width: 44px; height: 44px; flex-shrink: 0; }
.map { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: #e7eadf; position: relative; border: 1px solid var(--line); }
.map svg { width: 100%; height: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-900); color: #fff; padding: 64px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ball); margin-bottom: 14px; }
.site-footer a:not(.brand) { display: block; color: rgba(255,255,255,.75); text-decoration: none; padding: 4px 0; font-size: .94rem; }
.site-footer a:not(.brand):hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px; font-size: .84rem; color: rgba(255,255,255,.5); text-align: center; }
main:has(.auth-wrap) + .site-footer { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; background: var(--paper); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; margin: 0; }
  .main-nav.open { display: flex; }
  .main-nav a, .site-header.on-hero .main-nav a { color: var(--ink); padding: 12px; font-size: 1rem; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan.featured { transform: none; }
}
@media (max-width: 900px) {
  .hero-inner, .split, .auth-wrap, .doc { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .booking-rules { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-side { padding: 48px 24px; min-height: 260px; }
  .auth-form { padding: 40px 16px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .hero { padding: 130px 0 100px; }
  .hero-court svg { opacity: .35; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .grid-3, .grid-4, .plans, .booking-rules, .form-grid { grid-template-columns: 1fr; }
  .stats-strip .card { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .stat:nth-child(3) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .user-chip .uname { display: none; }
  .user-chip { padding: 3px; }
  .podium { gap: 8px; }
  .doc-body section { padding: 22px 18px; }
  .hero .hero-ball { display: none; }
  #authArea .row { flex-wrap: nowrap; }
  #authArea .btn-ball { display: none; }
  .event-card { flex-direction: column; }
  .header-actions .btn { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
