/* =========================================================
   Chua-Bol Court — styles
   Palette pulled from the logo + the courts themselves
   ========================================================= */
:root {
  --navy: #173f5f;
  --navy-2: #0f2c45;
  --navy-3: #0a1f33;
  --court: #2a53a8;        /* the blue acrylic court surface */
  --court-2: #1f4391;
  --concrete: #d5dade;     /* grey apron around the courts */
  --lime: #b9e46d;         /* logo lettering */
  --ball: #8dc641;         /* pickleball green */
  --ball-2: #6fa52a;
  --teal: #2f6f6c;         /* paddles */
  --sunset: #f6a96b;
  --cream: #f5f7ef;
  --ink: #0d1b2a;
  --muted: #5b6b7b;
  --line: #e3e8ec;
  --white: #fff;
  --danger: #d9534f;
  --warn: #e9a23b;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(13, 27, 42, .25);
  --head: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --slab: 'Alfa Slab One', Georgia, serif;
  --body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--ball); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ball { background: var(--ball); color: var(--navy-3); box-shadow: 0 8px 20px -8px rgba(141, 198, 65, .8); }
.btn-ball:hover { background: var(--lime); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn-light { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .45em .9em; font-size: .875rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- announcement + nav ---------- */
.announce { background: var(--ball); color: var(--navy-3); font-weight: 600; font-size: .9rem; text-align: center; padding: .55em 3em; position: relative; }
.announce button { position: absolute; right: .8em; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: inherit; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(15, 44, 69, .92); backdrop-filter: blur(12px); color: #fff; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.brand b { font-family: var(--slab); font-weight: 400; font-size: 1.25rem; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1.2px var(--lime); }
.brand small { display: block; font-family: var(--head); font-weight: 700; font-size: .65rem; letter-spacing: .35em; color: var(--lime); text-transform: uppercase; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a { text-decoration: none; padding: .5em .95em; border-radius: 999px; font-weight: 600; opacity: .85; }
.nav-links a:hover, .nav-links a.active { opacity: 1; background: rgba(255, 255, 255, .08); }
.nav-links a.active { color: var(--lime); }
.nav-links .btn { opacity: 1; margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy-2); padding: 1rem 4vw 1.5rem; display: none; }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: .5rem 0 0; justify-content: center; }
}

/* ---------- pickleball (svg) ---------- */
.pball { display: inline-block; }
.pball circle.b { fill: var(--ball); }
.pball circle.h { fill: var(--navy-2); opacity: .85; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; min-height: min(88vh, 760px); display: grid; align-items: end; overflow: hidden; background: var(--navy-2); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); animation: slowzoom 18s ease-out forwards; }
@keyframes slowzoom { to { transform: scale(1); } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 31, 51, .15) 0%, rgba(10, 31, 51, .55) 50%, rgba(10, 31, 51, .95) 100%); }
.hero .wrap { position: relative; z-index: 2; padding: 8rem 0 4.5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-family: var(--head); font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); font-weight: 800; max-width: 13ch; margin: .25em 0 .3em; }
.hero h1 .outline { font-family: var(--slab); font-weight: 400; color: transparent; -webkit-text-stroke: 2px var(--lime); letter-spacing: 0; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 52ch; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; align-items: center; }
.live-chip { display: inline-flex; align-items: center; gap: .6em; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); padding: .55em 1em; border-radius: 999px; font-size: .9rem; backdrop-filter: blur(6px); text-decoration: none; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 0 rgba(141, 198, 65, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(141, 198, 65, 0); } 100% { box-shadow: 0 0 0 0 rgba(141, 198, 65, 0); } }

/* bouncing ball + its shadow */
.hero-ball { position: absolute; z-index: 2; right: 8vw; top: 22%; width: clamp(70px, 9vw, 120px); animation: bounce 1.4s cubic-bezier(.3, 0, .7, 1) infinite alternate; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); }
.hero-ball svg { width: 100%; height: auto; animation: spin 6s linear infinite; }
.hero-ball-shadow { position: absolute; z-index: 2; right: calc(8vw + clamp(10px, 1.5vw, 20px)); top: calc(22% + 220px); width: clamp(50px, 6vw, 80px); height: 14px; border-radius: 50%; background: rgba(0, 0, 0, .45); filter: blur(6px); animation: shadow 1.4s cubic-bezier(.3, 0, .7, 1) infinite alternate; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(170px); } }
@keyframes shadow { from { transform: scale(.5); opacity: .35; } to { transform: scale(1); opacity: .8; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .hero-ball, .hero-ball-shadow { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 3rem; padding-top: 1.5rem; gap: 1rem; }
.stats b { display: block; font-family: var(--slab); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--lime); }
.stats span { font-size: .85rem; opacity: .8; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- ticker ---------- */
.ticker { background: var(--lime); color: var(--navy-3); overflow: hidden; border-block: 3px solid var(--navy-3); transform: rotate(-1.2deg); margin: -14px -10px 0; position: relative; z-index: 5; }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker span { font-family: var(--slab); font-size: 1.2rem; padding: .7em 1.2em; display: flex; align-items: center; gap: 1.2em; text-transform: uppercase; white-space: nowrap; }
.ticker svg { width: 22px; height: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.sec-head { max-width: 680px; margin-bottom: 2.8rem; }
.sec-head h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 1.1rem; }
.sec-dark { background: var(--navy-2); color: #fff; }
.sec-dark .sec-head p { color: rgba(255, 255, 255, .7); }
.sec-court { background: var(--court); color: #fff; overflow: hidden; }
.sec-court::before { /* court lines in the background */
  content: ''; position: absolute; inset: 6% 4%; border: 3px solid rgba(255, 255, 255, .18); border-radius: 4px;
  background: linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(255, 255, 255, .18) calc(50% - 1.5px), rgba(255, 255, 255, .18) calc(50% + 1.5px), transparent calc(50% + 1.5px));
  pointer-events: none;
}
.sec-court .sec-head p { color: rgba(255, 255, 255, .8); }
.outline-word { font-family: var(--slab); font-weight: 400; color: transparent; -webkit-text-stroke: 1.6px var(--navy); letter-spacing: 0; }
.sec-dark .outline-word, .sec-court .outline-word { -webkit-text-stroke-color: var(--lime); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .25s; }
.feature:hover { transform: translateY(-6px) rotate(-.5deg); }
.feature .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--navy); display: grid; place-items: center; margin-bottom: 1.1rem; }
.feature .ico svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature::after { content: ''; position: absolute; right: -24px; bottom: -24px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--lime), var(--ball)); opacity: .18; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- live court map ---------- */
.court-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; position: relative; z-index: 1; }
.court-tile { background: var(--concrete); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--ink); position: relative; transition: transform .2s, box-shadow .2s; display: block; }
.court-tile:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .5); }
.court-tile svg { width: 100%; height: auto; display: block; border-radius: 4px; }
.court-tile .court-meta { display: flex; justify-content: space-between; align-items: center; margin-top: .7rem; font-weight: 700; }
.court-tile .court-meta small { font-weight: 600; font-size: .8rem; padding: .25em .7em; border-radius: 999px; background: var(--ball); color: var(--navy-3); }
.court-tile .court-meta small.full { background: var(--navy); color: #fff; }
.court-tile .court-meta small.off { background: #8b98a5; color: #fff; }
.court-tile:hover .c-surface { fill: #3463c4; }
.court-tile .c-ball { opacity: 0; transition: opacity .2s; }
.court-tile:hover .c-ball { opacity: 1; animation: rally 1.2s ease-in-out infinite alternate; }
@keyframes rally { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
@media (max-width: 860px) { .court-map { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .court-map { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 38px; left: 12%; right: 12%; border-top: 3px dashed rgba(185, 228, 109, .5); }
.step { position: relative; text-align: center; padding: 0 1rem; }
.step .num { width: 78px; height: 78px; margin: 0 auto 1rem; border-radius: 50%; background: var(--ball); color: var(--navy-3); display: grid; place-items: center; font-family: var(--slab); font-size: 1.7rem; position: relative; box-shadow: 0 0 0 8px var(--navy-2); }
.step .num::after { /* ball holes */ content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 25% 30%, rgba(15, 44, 69, .35) 4px, transparent 5px), radial-gradient(circle at 75% 28%, rgba(15, 44, 69, .35) 4px, transparent 5px), radial-gradient(circle at 70% 78%, rgba(15, 44, 69, .35) 4px, transparent 5px), radial-gradient(circle at 28% 75%, rgba(15, 44, 69, .35) 4px, transparent 5px); }
.step h3 { font-family: var(--slab); font-weight: 400; color: var(--lime); font-size: 1.6rem; text-transform: uppercase; }
.step p { opacity: .8; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* ---------- pricing (paddle cards) ---------- */
.paddles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }
.paddle { position: relative; padding-bottom: 70px; transition: transform .3s; }
.paddle:hover { transform: rotate(-3deg) translateY(-6px); }
.paddle:nth-child(2):hover { transform: rotate(3deg) translateY(-6px); }
.paddle-face { background: var(--teal); color: #fff; border-radius: 42px 42px 34px 34px; padding: 2.2rem 1.6rem 2rem; text-align: center; border: 4px solid var(--navy-3); position: relative; overflow: hidden; }
.paddle-face::before { content: ''; position: absolute; inset: 10px; border: 2px solid rgba(255, 255, 255, .15); border-radius: 34px 34px 26px 26px; pointer-events: none; }
.paddle.hot .paddle-face { background: var(--navy); }
.paddle.wknd .paddle-face { background: var(--court); }
.paddle-face .label { font-family: var(--head); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700; color: var(--lime); }
.paddle-face .price { font-family: var(--slab); font-size: 3.2rem; line-height: 1; margin: .4rem 0; }
.paddle-face .price small { font-family: var(--body); font-size: 1rem; opacity: .7; }
.paddle-face p { opacity: .85; margin: .5rem 0 0; font-size: .95rem; }
.paddle-handle { position: absolute; bottom: 0; left: 50%; width: 46px; height: 78px; transform: translateX(-50%); background: repeating-linear-gradient(-35deg, var(--lime) 0 8px, var(--navy-3) 8px 12px); border: 4px solid var(--navy-3); border-top: 0; border-radius: 0 0 12px 12px; }
.pricing-note { text-align: center; color: var(--muted); margin-top: 2.2rem; }
@media (max-width: 800px) { .paddles { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }

/* ---------- gallery ---------- */
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; border-radius: 14px; overflow: hidden; position: relative; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 15, 25, .92); display: none; place-items: center; padding: 4vw; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; border-radius: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ball); color: var(--navy-3); border-radius: 28px; padding: clamp(2rem, 5vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0; max-width: 16ch; }
.cta-band .pball-bg { position: absolute; right: -60px; top: -60px; width: 240px; opacity: .25; }
.cta-band .btn { position: relative; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { background: #fff; border-radius: 14px; padding: 1.1rem 1.4rem; margin-bottom: .8rem; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; font-family: var(--slab); color: var(--ball-2); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: .7rem 0 0; }

/* ---------- footer ---------- */
footer.site { background: var(--navy-3); color: rgba(255, 255, 255, .8); padding: 4rem 0 2rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
footer.site h4 { color: var(--lime); font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; }
footer.site a { text-decoration: none; opacity: .85; }
footer.site a:hover { opacity: 1; color: var(--lime); }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
footer.site .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; opacity: .7; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr; } }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--navy-2); color: #fff; padding: 4.5rem 0 3.5rem; position: relative; overflow: hidden; }
.page-head::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 3px solid rgba(185, 228, 109, .25); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; margin: .3em 0 .2em; }
.page-head p { opacity: .8; max-width: 60ch; font-size: 1.1rem; margin: 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.about-grid .photo { border-radius: 28px; overflow: hidden; transform: rotate(2deg); box-shadow: var(--shadow); border: 8px solid #fff; }
.about-grid .story p { font-size: 1.08rem; color: #334; }
.mission { background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); font-family: var(--head); font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.35; position: relative; }
.mission::before { content: '“'; font-family: var(--slab); color: var(--ball); font-size: 6rem; position: absolute; top: -1.2rem; left: 1.4rem; line-height: 1; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.value { border-top: 4px solid var(--ball); background: #fff; border-radius: 0 0 16px 16px; padding: 1.4rem; box-shadow: var(--shadow); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; }
.timeline::before { content: ''; position: absolute; top: 15px; left: 0; right: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.tl-item { position: relative; padding-top: 2.5rem; }
.tl-item::before { content: ''; position: absolute; top: 4px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 5px var(--court); }
.tl-item b { font-family: var(--slab); font-weight: 400; color: var(--lime); font-size: 1.3rem; display: block; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-card li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-card li i { font-style: normal; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--cream); display: grid; place-items: center; }
.map-box { border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--court); color: #fff; display: grid; place-items: center; text-align: center; padding: 1rem; }
.map-box iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.rules { columns: 2 280px; padding-left: 1.2rem; }
.rules li { margin-bottom: .6rem; break-inside: avoid; }
.rules li::marker { color: var(--ball-2); }
@media (max-width: 860px) { .about-grid, .contact-grid { grid-template-columns: 1fr; } .values, .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values, .timeline { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 700; font-size: .88rem; }
.field input, .field select, .field textarea { width: 100%; padding: .8em 1em; border: 2px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ball); }
.field textarea { min-height: 90px; resize: vertical; }
.field .hint { color: var(--muted); font-size: .8rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.seg { display: flex; gap: .5rem; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 120px; border: 2px solid var(--line); border-radius: 12px; padding: .7em 1em; cursor: pointer; font-weight: 600; display: flex; gap: .5em; align-items: center; }
.seg input { accent-color: var(--ball-2); }
.seg label:has(input:checked) { border-color: var(--ball); background: #f3fae8; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(5, 15, 25, .6); display: none; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-card { background: #fff; border-radius: 24px; width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 2rem; position: relative; animation: pop .25s ease; }
.modal-card.wide { width: min(760px, 100%); }
.modal-close { position: absolute; right: 1rem; top: 1rem; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--cream); cursor: pointer; font-size: 1.2rem; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--navy-3); color: #fff; padding: .9em 1.4em; border-radius: 999px; z-index: 300; transition: transform .3s; font-weight: 600; box-shadow: var(--shadow); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); }

/* =========================================================
   BOOKING PAGE
   ========================================================= */
.book-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.book-layout > *, .main, .two-col > * { min-width: 0; }
@media (max-width: 980px) { .book-layout { grid-template-columns: 1fr; } }
.panel { background: #fff; border-radius: 24px; padding: 1.6rem; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 1.5rem; }
.panel-title { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.panel-title .n { width: 34px; height: 34px; border-radius: 50%; background: var(--ball); display: grid; place-items: center; font-family: var(--slab); color: var(--navy-3); flex: none; }
.panel-title h2 { font-size: 1.35rem; margin: 0; }
.panel-title .spacer { flex: 1; }

.month-label { font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.days { display: flex; gap: .6rem; overflow-x: auto; padding: .4rem .2rem 1rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day { scroll-snap-align: start; flex: none; width: 76px; border: 2px solid var(--line); border-radius: 18px; padding: .7rem .3rem; text-align: center; cursor: pointer; background: #fff; transition: all .15s; position: relative; }
.day:hover { border-color: var(--ball); }
.day .dow { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.day .dnum { font-family: var(--slab); font-size: 1.7rem; line-height: 1.1; }
.day .avail { font-size: .7rem; font-weight: 700; color: var(--ball-2); }
.day .avail.low { color: var(--warn); }
.day .avail.none { color: var(--danger); }
.day.sel { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px -10px var(--navy); }
.day.sel .dow, .day.sel .avail { color: var(--lime); }
.day.closed { opacity: .45; cursor: not-allowed; }
.day .today-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--ball); color: var(--navy-3); font-size: .6rem; font-weight: 800; padding: .1em .55em; border-radius: 999px; text-transform: uppercase; }

.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.legend span { display: inline-flex; align-items: center; gap: .4em; }
.legend i { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }

.court-filter { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .35em .9em; font-weight: 600; font-size: .85rem; cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.grid-scroll { overflow-x: auto; border-radius: 16px; border: 2px solid var(--line); }
table.slots { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; }
table.slots th, table.slots td { padding: 4px; text-align: center; }
table.slots thead th { position: sticky; top: 0; background: var(--navy); color: #fff; font-family: var(--head); font-size: .85rem; padding: .7rem .4rem; }
table.slots thead th:first-child { border-top-left-radius: 14px; }
table.slots thead th:last-child { border-top-right-radius: 14px; }
table.slots tbody th { position: sticky; left: 0; background: #fff; font-size: .8rem; font-weight: 700; white-space: nowrap; color: var(--muted); padding: 0 .7rem; z-index: 1; text-align: right; }
table.slots tbody th .peak { color: var(--sunset); }
.slot { width: 100%; min-height: 46px; border-radius: 10px; border: 0; cursor: pointer; font-weight: 700; font-size: .78rem; transition: transform .12s, background .12s; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; padding: .3rem; }
.slot.open { background: #e9f5da; color: var(--ball-2); }
.slot.open:hover { background: var(--lime); color: var(--navy-3); transform: scale(1.04); }
.slot.sel { background: var(--ball); color: var(--navy-3); box-shadow: inset 0 0 0 2px var(--navy-3); }
.slot.sel::before { content: '✓ '; }
.slot.booked { background: var(--court); color: rgba(255, 255, 255, .85); cursor: not-allowed; }
.slot.blocked { background: repeating-linear-gradient(45deg, #f1d9b8, #f1d9b8 6px, #f8e9d4 6px, #f8e9d4 12px); color: #8a5a1c; cursor: not-allowed; }
.slot.past, .slot.closed { background: #f0f2f4; color: #b4bcc4; cursor: not-allowed; }
.slot .sub { font-weight: 500; font-size: .68rem; opacity: .85; }

.summary { position: sticky; top: 96px; }
.summary h3 { font-size: 1.3rem; }
.summary-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; max-height: 300px; overflow: auto; }
.summary-list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: var(--cream); border-radius: 12px; padding: .6rem .8rem; font-size: .9rem; }
.summary-list li button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed var(--line); padding-top: 1rem; margin-bottom: 1rem; }
.summary-total b { font-family: var(--slab); font-size: 2rem; color: var(--navy); font-weight: 400; }
.summary .empty { text-align: center; color: var(--muted); padding: 1.5rem 0; }
.summary .empty svg { width: 64px; margin: 0 auto .6rem; opacity: .5; }

/* mobile bottom bar */
.mbar { display: none; }
@media (max-width: 980px) {
  .summary { display: none; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy-3); color: #fff; padding: .9rem 4vw calc(.9rem + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 1rem; transform: translateY(110%); transition: transform .25s; }
  .mbar.show { transform: none; }
  .mbar b { font-family: var(--slab); font-weight: 400; color: var(--lime); font-size: 1.3rem; }
  body.booking { padding-bottom: 90px; }
}

/* confirmation ticket */
.ticket { background: var(--navy); color: #fff; border-radius: 22px; overflow: hidden; position: relative; }
.ticket-top { padding: 1.6rem 1.6rem 1.2rem; }
.ticket-top .ref { font-family: var(--slab); font-size: 2.2rem; color: var(--lime); letter-spacing: .05em; }
.ticket-cut { height: 0; border-top: 3px dashed rgba(255, 255, 255, .3); margin: 0 18px; position: relative; }
.ticket-cut::before, .ticket-cut::after { content: ''; position: absolute; top: -16px; width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.ticket-cut::before { left: -34px; } .ticket-cut::after { right: -34px; }
.ticket-body { padding: 1.2rem 1.6rem 1.6rem; font-size: .95rem; }
.ticket-body ul { padding-left: 1.1rem; margin: .4rem 0; }
.status-pill { display: inline-block; padding: .2em .8em; border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.status-pill.pending { background: #fff1d6; color: #8a5a00; }
.status-pill.confirmed { background: #e3f5cf; color: #3f6c12; }
.status-pill.cancelled { background: #fde2e1; color: #a12622; }
.status-pill.completed { background: #e2e8f0; color: #334155; }
.status-pill.paid { background: #d8ecff; color: #0b4f8a; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 14px; height: 14px; border-radius: 50%; background: var(--ball); animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* =========================================================
   ADMIN
   ========================================================= */
body.admin { background: #eef1f4; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: var(--navy-2); background-image: radial-gradient(circle at 20% 20%, rgba(141, 198, 65, .15), transparent 40%), radial-gradient(circle at 80% 80%, rgba(42, 83, 168, .5), transparent 50%); }
.login-card { background: #fff; border-radius: 28px; padding: 2.4rem; width: min(400px, 100%); text-align: center; }
.login-card img { width: 120px; margin: 0 auto 1rem; border-radius: 22px; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--navy-3); color: #fff; padding: 1.4rem 1rem; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: .3rem; }
.side .brand { margin: 0 .4rem 1.6rem; }
.side button.tab { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; background: none; border: 0; color: rgba(255, 255, 255, .75); padding: .75rem .9rem; border-radius: 12px; cursor: pointer; font-weight: 600; }
.side button.tab:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side button.tab.on { background: var(--ball); color: var(--navy-3); }
.side button.tab .badge { margin-left: auto; background: var(--sunset); color: var(--navy-3); border-radius: 999px; font-size: .72rem; padding: .05em .55em; }
.side .side-foot { margin-top: auto; display: grid; gap: .4rem; }
.side .side-foot a, .side .side-foot button { color: rgba(255, 255, 255, .7); background: none; border: 0; text-align: left; padding: .5rem .9rem; cursor: pointer; text-decoration: none; font-size: .9rem; }
.main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem; min-width: 0; }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.main-head h1 { font-size: 2rem; margin: 0; }
.main-head p { margin: 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { background: #fff; border-radius: 18px; padding: 1.2rem 1.3rem; box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .15); }
.kpi span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.kpi b { display: block; font-family: var(--slab); font-weight: 400; font-size: 2rem; color: var(--navy); }
.kpi small { color: var(--muted); }
.kpi.accent { background: var(--navy); color: #fff; } .kpi.accent b { color: var(--lime); } .kpi.accent span, .kpi.accent small { color: rgba(255, 255, 255, .7); }
.card { background: #fff; border-radius: 18px; padding: 1.4rem; box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .15); margin-bottom: 1.5rem; }
.card h2 { font-size: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; }
.bars { display: flex; align-items: flex-end; gap: .6rem; height: 180px; padding-top: 1rem; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; height: 100%; justify-content: flex-end; font-size: .75rem; color: var(--muted); }
.bars .bar i { width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: linear-gradient(var(--ball), var(--ball-2)); min-height: 4px; position: relative; }
.bars .bar i b { position: absolute; top: -1.4em; left: 50%; transform: translateX(-50%); color: var(--ink); font-size: .75rem; }
.bars .bar.today i { background: linear-gradient(var(--court), var(--navy)); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .6rem .7rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.data td { padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:hover td { background: #fafbfc; }
table.data .actions { display: flex; gap: .3rem; flex-wrap: wrap; }
.table-scroll { overflow-x: auto; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.toolbar input, .toolbar select { padding: .6em .9em; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.toolbar .grow { flex: 1; min-width: 180px; }
.admin .slot.booked { cursor: pointer; text-align: center; }
.admin .slot.booked.pending { background: #f3b75a; color: var(--navy-3); }
.admin .slot.blocked { cursor: pointer; }
.list-editor .item { display: grid; grid-template-columns: 1fr auto; gap: .6rem; background: var(--cream); padding: .9rem; border-radius: 12px; margin-bottom: .6rem; }
.list-editor .item .fields { display: grid; gap: .5rem; }
.list-editor input, .list-editor textarea { width: 100%; padding: .55em .8em; border: 2px solid var(--line); border-radius: 10px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.img-grid .im { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: #ddd; }
.img-grid .im img { width: 100%; height: 100%; object-fit: cover; }
.img-grid .im .ops { position: absolute; inset: auto 0 0 0; display: flex; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); justify-content: flex-end; }
.img-grid .im .ops button { border: 0; border-radius: 8px; padding: .25em .55em; cursor: pointer; font-size: .8rem; }
.img-grid .im.hero-pick { outline: 4px solid var(--ball); }
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; }
.switch input { width: 44px; height: 24px; appearance: none; background: #c5ccd3; border-radius: 999px; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch input:checked { background: var(--ball-2); }
.switch input:checked::after { left: 23px; }
.demo-note { background: #fff8e6; border: 1px solid #f3d28a; color: #6b4a00; border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 1.5rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.upcoming { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.upcoming li { display: flex; gap: .8rem; align-items: center; padding: .7rem; border-radius: 12px; background: var(--cream); cursor: pointer; }
.upcoming li .t { font-family: var(--slab); color: var(--navy); min-width: 64px; }
.upcoming li .who { flex: 1; min-width: 0; }
.upcoming li .who small { display: block; color: var(--muted); }
.admin-mtop { display: none; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .two-col { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 100; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .25s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .4); }
  .admin-mtop { display: flex; align-items: center; justify-content: space-between; background: var(--navy-3); color: #fff; padding: .8rem 1rem; position: sticky; top: 0; z-index: 50; }
  .admin-mtop button { background: none; border: 0; color: #fff; font-size: 1.5rem; }
}
@media print { .nav, footer.site, .announce, .modal-close, .no-print { display: none !important; } }

/* =========================================================
   v2 — loader, motion, duration picker, pricing, preview
   ========================================================= */
/* page loader: bouncing ball while live data loads */
.page-loader { position: fixed; inset: 0; z-index: 1000; background: var(--navy-2); display: grid; place-items: center; align-content: center; gap: 18px; color: var(--lime); transition: opacity .45s ease, visibility .45s; animation: plOut .4s 12s forwards; }
.page-loader.done { opacity: 0; visibility: hidden; }
.page-loader .pl-stage { position: relative; width: 90px; height: 110px; }
.page-loader .pl-ball { position: absolute; left: 22px; top: 0; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(15,44,69,.45) 3px, transparent 4px), radial-gradient(circle at 70% 30%, rgba(15,44,69,.45) 3px, transparent 4px), radial-gradient(circle at 50% 60%, rgba(15,44,69,.45) 3px, transparent 4px), radial-gradient(circle at 25% 72%, rgba(15,44,69,.45) 3px, transparent 4px), radial-gradient(circle at 75% 72%, rgba(15,44,69,.45) 3px, transparent 4px), var(--ball); animation: plBounce .55s cubic-bezier(.3,0,.7,1) infinite alternate; }
.page-loader .pl-shadow { position: absolute; left: 25px; bottom: 0; width: 40px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.45); filter: blur(3px); animation: plShadow .55s cubic-bezier(.3,0,.7,1) infinite alternate; }
.page-loader p { margin: 0; font-family: var(--head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
@keyframes plBounce { from { transform: translateY(0) rotate(0); } to { transform: translateY(56px) rotate(160deg); } }
@keyframes plShadow { from { transform: scale(.45); opacity: .3; } to { transform: scale(1); opacity: .8; } }
@keyframes plOut { to { opacity: 0; visibility: hidden; } }

/* entrance motion */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.loaded .hero .eyebrow, .loaded .hero h1, .loaded .hero p.lead, .loaded .hero-actions, .loaded .hero .stats { animation: fadeUp .7s ease both; }
.loaded .hero h1 { animation-delay: .08s; } .loaded .hero p.lead { animation-delay: .16s; } .loaded .hero-actions { animation-delay: .24s; } .loaded .hero .stats { animation-delay: .32s; }
.loaded .page-head h1, .loaded .page-head p, .loaded .page-head .eyebrow { animation: fadeUp .6s ease both; }
.slot.sel { animation: popIn .28s ease; }
.summary-list li { animation: slideIn .25s ease both; }
.days.anim .day { animation: fadeUp .45s ease both; }
.days.anim .day:nth-child(2) { animation-delay: .03s } .days.anim .day:nth-child(3) { animation-delay: .06s } .days.anim .day:nth-child(4) { animation-delay: .09s } .days.anim .day:nth-child(5) { animation-delay: .12s } .days.anim .day:nth-child(6) { animation-delay: .15s } .days.anim .day:nth-child(7) { animation-delay: .18s }
.grid-fade { animation: fadeUp .35s ease both; }

/* button loading state */
.btn.loading { pointer-events: none; opacity: .85; }
.btn.loading::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

/* duration picker on the booking page */
.durations { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.durations > span { font-weight: 700; font-size: .85rem; color: var(--muted); margin-right: .2rem; }
.dur { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: .45em .9em; cursor: pointer; font-weight: 700; display: grid; text-align: left; line-height: 1.2; transition: all .15s; }
.dur small { font-weight: 600; font-size: .7rem; color: var(--ball-2); }
.dur.on { background: var(--ball); border-color: var(--ball); color: var(--navy-3); transform: translateY(-2px); box-shadow: 0 8px 16px -10px var(--ball-2); }
.dur.on small { color: var(--navy-2); }
.rate-strip { display: flex; gap: .6rem; flex-wrap: wrap; margin: -.3rem 0 1rem; }
.rate-strip span { background: var(--cream); border-radius: 999px; padding: .3em .8em; font-size: .78rem; font-weight: 600; color: var(--navy); }
.rate-strip b { color: var(--ball-2); }
.saving { color: var(--ball-2); font-weight: 700; font-size: .85rem; }
.summary-total .was { display: block; text-align: right; font-size: .85rem; color: var(--muted); text-decoration: line-through; font-family: var(--body); }

/* paddle bundle lines */
.paddle-face .bundles { margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed rgba(255,255,255,.3); display: grid; gap: .3rem; font-weight: 700; }
.paddle-face .bundles span { background: rgba(185,228,109,.15); color: var(--lime); border-radius: 999px; padding: .2em .7em; font-size: .9rem; }

/* location section */
.find-us { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: stretch; }
.find-us .map-box { min-height: 360px; }
.find-us .info { background: var(--navy-2); color: #fff; border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.find-us .info h3 { font-size: 1.6rem; margin: 0; }
.find-us .info p { margin: 0; opacity: .85; }
@media (max-width: 860px) { .find-us { grid-template-columns: 1fr; } }

/* preview banner (inside the admin's live preview) */
.preview-flag { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 900; background: #f3b75a; color: var(--navy-3); font-weight: 800; font-size: .78rem; padding: .45em 1em; border-radius: 999px; box-shadow: var(--shadow); letter-spacing: .04em; pointer-events: none; }

/* ---------- admin v2 ---------- */
.content-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.4rem; align-items: start; }
.preview-pane { position: sticky; top: 1rem; background: #fff; border-radius: 18px; padding: .8rem; box-shadow: 0 4px 14px -8px rgba(0,0,0,.15); }
.preview-bar { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.preview-bar .grow { flex: 1; }
.preview-frame-wrap { background: #dfe4e8; border-radius: 12px; height: 74vh; overflow: hidden; display: flex; justify-content: center; }
.preview-frame-wrap iframe { border: 0; background: #fff; height: 100%; width: 100%; transition: width .3s ease; }
.preview-frame-wrap.phone iframe { width: 390px; border-left: 1px solid #ccd; border-right: 1px solid #ccd; }
.preview-note { font-size: .78rem; color: var(--muted); margin: .5rem .2rem 0; }
@media (max-width: 1200px) { .content-split { grid-template-columns: 1fr; } .preview-pane { position: static; } .preview-frame-wrap { height: 70vh; } }
.band-card { border: 2px solid var(--line); border-radius: 14px; padding: 1rem; margin-bottom: .8rem; background: #fbfcfd; }
.band-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; gap: .5rem; align-items: end; }
.band-row label { font-size: .72rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .05em; }
.band-row input, .band-row select, .bundle-row input { width: 100%; padding: .55em .7em; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.bundle-row { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; font-size: .9rem; }
.bundle-row input { width: 90px; }
@media (max-width: 700px) { .band-row { grid-template-columns: 1fr 1fr; } }
.calc { background: var(--navy); color: #fff; border-radius: 14px; padding: 1rem 1.2rem; }
.calc table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.calc td { padding: .3rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.calc td:last-child { text-align: right; font-weight: 700; color: var(--lime); }
.warn-box { background: #fff4e5; border: 1px solid #f3c98a; color: #7a4b00; border-radius: 12px; padding: .7rem .9rem; font-size: .88rem; margin-bottom: .8rem; }
.price-tag { font-size: .72rem; font-weight: 800; background: #ede7ff; color: #4a2bb0; border-radius: 999px; padding: .1em .55em; margin-left: .3rem; }
.kpi { transition: transform .2s; } .kpi:hover { transform: translateY(-3px); }
.kpi.click { cursor: pointer; }
.new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sunset); margin-right: 6px; animation: pulse 1.6s infinite; }
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.5rem; }
.qa button { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: .9rem; font-weight: 700; cursor: pointer; display: flex; gap: .6rem; align-items: center; transition: all .15s; text-align: left; }
.qa button:hover { border-color: var(--ball); transform: translateY(-2px); }
.qa button i { font-style: normal; font-size: 1.3rem; }
@media (max-width: 900px) { .qa { grid-template-columns: 1fr 1fr; } }
.main > * { animation: fadeUp .35s ease both; }
