/* ═══════════════════════════════════════════════════════════
   ADDICTIOON SNOOKER CLUB — Global Styles
   Palette: obsidian #0A0A0F · charcoal #141420 · panel #1A1A2E
            felt #0F3D24 · emerald #2ECC71 · gold #C9A84C · ivory #F0EAD6
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { width: 100%; overflow-x: hidden; }

/* Prevent layout shift / flash while Blazor WASM loads and
   hydrates the DOM — locks text rendering and font metrics
   so nothing visibly "jumps" once components mount. */
html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
* { text-rendering: optimizeLegibility; }

:root {
    --obsidian:   #0A0A0F;
    --charcoal:   #141420;
    --panel:      #1A1A2E;
    --felt:       #0F3D24;
    --felt-light: #1B5E3B;
    --emerald:    #2ECC71;
    --emerald-dim:#1A7A44;
    --gold:       #C9A84C;
    --gold-dim:   #8A6A24;
    --ivory:      #F0EAD6;
    --ash:        #8B8BA7;
    --ash-light:  #B0B0C8;
    --red:        #E74C3C;
    --yellow:     #F39C12;
    --blue:       #2980B9;
}

html { scroll-behavior: smooth; }

body {
    background: var(--obsidian);
    color: var(--ivory);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

img { max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ── Kill default browser focus rings everywhere ─────────────
   Blazor's NavLink / router sets DOM focus on route change,
   which was showing up as a dashed blue box around content.
   We remove the default outline and replace it with a subtle,
   intentional focus style ONLY for keyboard navigation. ───── */
*:focus { outline: none; }
*:focus:not(:focus-visible) { outline: none; box-shadow: none; }
a:focus, button:focus, input:focus, select:focus, textarea:focus,
[tabindex]:focus, .nav-link:focus, .brand:focus {
    outline: none;
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--emerald);
    outline-offset: 2px;
    border-radius: 4px;
}
/* The headline / hero text block and any non-interactive
   container should never show a focus ring even if briefly
   focused programmatically. */
h1, h2, h3, p, div:not([tabindex]) {
    outline: none !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--felt-light); border-radius: 3px; }

/* ── App shell ────────────────────────────────────────────── */
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex: 1; }

/* ── Container ────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.page-container { padding-top: 3rem; padding-bottom: 4rem; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; }
.small { font-size: 12px; }
.muted { color: var(--ash); }
.mono  { font-family: monospace; }
.gold  { color: var(--gold); }
.emerald { color: var(--emerald); }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
    position: sticky; top: 0; z-index: 200;
    background: rgba(10,10,15,.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201,168,76,.12);
    height: 70px;
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.brand {
    display: flex; align-items: center; gap: .6rem;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}
.brand-icon  { font-size: 1.5rem; }
.brand-name  { font-weight: 900; font-size: 1.15rem; color: var(--ivory); letter-spacing: .02em; }
.brand-accent{ color: var(--emerald); }

.nav-links {
    display: flex; align-items: center; gap: .25rem;
    flex-shrink: 0;
}

.nav-link {
    color: var(--ash); font-size: 14px; font-weight: 400;
    padding: .4rem .75rem; border-radius: 8px;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-link:hover { color: var(--ivory); }
.nav-active    { color: var(--emerald) !important; border-bottom-color: var(--emerald) !important; font-weight: 700; }
.nav-book      { color: var(--gold); }
.nav-dash      { color: var(--ivory); }
.nav-btn       { margin-left: .5rem; flex-shrink: 0; white-space: nowrap; }

/* Hamburger (mobile) */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: .5rem;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--ash); border-radius: 2px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: .4rem;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dim));
    color: #000; font-weight: 700; font-size: 14px;
    padding: .65rem 1.5rem; border-radius: 10px;
    border: none; cursor: pointer; letter-spacing: .04em;
    transition: opacity .2s, transform .15s;
    text-decoration: none;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-gold {
    display: inline-flex; align-items: center; gap: .4rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #000; font-weight: 700; font-size: 14px;
    padding: .65rem 1.5rem; border-radius: 10px;
    border: none; cursor: pointer;
    transition: opacity .2s;
    text-decoration: none;
}
.btn-gold:hover { opacity: .9; }

.btn-ghost {
    display: inline-flex; align-items: center; gap: .4rem;
    background: transparent;
    color: var(--ivory); font-weight: 600; font-size: 14px;
    padding: .65rem 1.5rem; border-radius: 10px;
    border: 1px solid rgba(240,234,214,.2);
    cursor: pointer; transition: border-color .2s;
    text-decoration: none;
}
.btn-ghost:hover { border-color: rgba(240,234,214,.5); }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }

.btn-full { width: 100%; justify-content: center; }

.btn-danger-sm {
    background: rgba(231,76,60,.15);
    color: var(--red); border: 1px solid rgba(231,76,60,.3);
    border-radius: 6px; padding: .25rem .7rem;
    font-size: 12px; cursor: pointer; font-weight: 700;
}
.btn-danger-sm:hover { background: rgba(231,76,60,.3); }

.btn-icon {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px; padding: .3rem .6rem; cursor: pointer;
    font-size: 14px; transition: background .2s;
}
.btn-icon:hover { background: rgba(255,255,255,.12); }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
    background: var(--panel);
    border: 1px solid rgba(201,168,76,.13);
    border-radius: 16px;
    padding: 1.5rem;
}
.glass-card {
    background: rgba(26,26,46,.7);
    backdrop-filter: blur(12px);
}
.card-title { color: var(--ivory); margin-bottom: 1rem; font-size: 1rem; }

/* ── BADGES ──────────────────────────────────────────────── */
.badge {
    display: inline-block;
    border-radius: 6px; padding: 2px 10px;
    font-size: 11px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
}
.badge-green  { background: rgba(46,204,113,.15); color: var(--emerald); border: 1px solid rgba(46,204,113,.25); }
.badge-gold   { background: rgba(201,168,76,.15); color: var(--gold);    border: 1px solid rgba(201,168,76,.25); }
.badge-red    { background: rgba(231,76,60,.15);  color: var(--red);     border: 1px solid rgba(231,76,60,.25);  }
.badge-yellow { background: rgba(243,156,18,.15); color: var(--yellow);  border: 1px solid rgba(243,156,18,.25); }

/* ── SECTIONS ────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-dark { background: var(--charcoal); }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-eyebrow {
    color: var(--gold); font-size: 12px; font-weight: 700;
    letter-spacing: .3em; text-transform: uppercase; margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 900; color: var(--ivory); margin-bottom: .5rem; }
.section-sub   { color: var(--ash-light); max-width: 580px; margin: .5rem auto 0; line-height: 1.7; }
.section-cta   { text-align: center; margin-top: 2rem; }

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
    min-height: 90vh;
    background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(15,61,36,.45) 0%, transparent 70%), var(--obsidian);
    display: flex; align-items: center;
    padding: 4rem 2rem;
    position: relative; overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.hero-bg-grid {
    position: absolute; inset: 0; opacity: .04;
    background-image: repeating-linear-gradient(0deg,var(--emerald) 0,var(--emerald) 1px,transparent 0,transparent 50%);
    background-size: 50px 50px;
    pointer-events: none;
}
.hero-content {
    max-width: 770px; margin: 0 auto; width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 3rem; flex-wrap: wrap; position: relative; z-index: 1;
}
.hero-text {
    max-width: 560px;
    width: 100%;
    flex: 1 1 480px;
} 
.hero-eyebrow {
    color: var(--gold); font-size: 12px; font-weight: 700;
    letter-spacing: .3em; text-transform: uppercase; margin-bottom: .75rem;
}
.hero-title {
    font-size: clamp(2.4rem,6vw,4.5rem);
    font-weight: 900; line-height: 1.05;
    color: var(--ivory); margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(46,204,113,.2);
    width: 100%;
}
.text-emerald { color: var(--emerald); }
.hero-sub { color: var(--ash-light); font-size: 17px; line-height: 1.7; max-width: 420px; margin-bottom: 2rem; }
.hero-cta  { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; }
.hero-stat  { text-align: center; }
.hero-stat-n{ display: block; font-size: 1.5rem; font-weight: 800; color: var(--gold); font-family: monospace; }
.hero-stat span:last-child { font-size: 12px; color: var(--ash); }

/* Billiard rack SVG */
.hero-rack {
    animation: floatRack 6s ease-in-out infinite;
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
} 
.billiard-rack {
    width: 200px; height: 220px;
    filter: drop-shadow(0 0 20px rgba(46,204,113,.25));
    display: block;
}
.ball { animation: ballBounce 3s ease-in-out infinite alternate; }
.ball-0  { animation-delay: 0s; }
.ball-1  { animation-delay: .18s; }
.ball-2  { animation-delay: .36s; }
.ball-3  { animation-delay: .54s; }
.ball-4  { animation-delay: .72s; }
.ball-5  { animation-delay: .90s; }
.ball-6  { animation-delay: 1.08s; }
.ball-7  { animation-delay: 1.26s; }
.ball-8  { animation-delay: 1.44s; }
.ball-9  { animation-delay: 1.62s; }

@keyframes floatRack  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes ballBounce { from { transform: translateY(0); } to { transform: translateY(-5px); } }

/* ── TABLES GRID ─────────────────────────────────────────── */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px,1fr));
    gap: 16px; margin-bottom: 1.5rem;
}
.table-card {
    border: 2px solid rgba(46,204,113,.2);
    border-radius: 12px; background: var(--charcoal);
    padding: 1rem; display: flex; flex-direction: column;
    align-items: center; gap: .5rem; cursor: not-allowed;
    transition: all .2s;
}
.table-available-card { cursor: pointer; }
.table-available-card:hover { border-color: rgba(46,204,113,.6); transform: translateY(-2px); }
.table-selected  { border-color: var(--gold) !important; background: rgba(201,168,76,.08) !important; transform: scale(1.04) !important; box-shadow: 0 0 20px rgba(201,168,76,.25); }

.table-felt {
    width: 80px; height: 50px;
    background: var(--felt); border-radius: 5px;
    border: 3px solid #5D3A1A;
    display: flex; align-items: center; justify-content: center;
    position: relative; box-shadow: inset 0 0 10px rgba(0,0,0,.5);
}
.felt-cue-ball {
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff; opacity: .8;
}
.felt-overlay {
    position: absolute; inset: 0; border-radius: 3px;
}
.felt-occupied    { background: rgba(231,76,60,.25); }
.felt-maintenance { position: absolute; font-size: 1.2rem; }
.table-name { font-size: 13px; font-weight: 700; color: var(--ivory); }

/* ── PLANS GRID ──────────────────────────────────────────── */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap: 20px;
}
.membership-card {
    border: 2px solid rgba(201,168,76,.15);
    border-radius: 16px; padding: 1.75rem;
    background: var(--panel); position: relative;
    transition: transform .2s;
}
.membership-card:hover { transform: translateY(-3px); }
.membership-popular {
    border-color: var(--gold) !important;
    background: rgba(201,168,76,.06) !important;
}
.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: #000;
    border-radius: 20px; padding: 2px 14px;
    font-size: 11px; font-weight: 800; white-space: nowrap;
}
.plan-icon  { font-size: 2rem; margin-bottom: .5rem; }
.plan-tier  { font-weight: 800; font-size: 1.1rem; margin-bottom: .25rem; }
.plan-price { font-size: 1.6rem; font-weight: 900; color: var(--ivory); font-family: monospace; margin-bottom: 1rem; }
.plan-period{ font-size: 14px; color: var(--ash); font-weight: 400; }
.plan-perks { list-style: none; margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.plan-perks li { display: flex; gap: .5rem; font-size: 13px; color: var(--ash-light); }
.perk-check { color: var(--emerald); }

/* ── TOURNAMENT ──────────────────────────────────────────── */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px,1fr));
    gap: 20px;
}
.tournament-card { display: flex; flex-direction: column; }
.tournament-top  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; }
.tournament-name { font-weight: 800; font-size: 1rem; color: var(--ivory); margin-bottom: .25rem; }
.tournament-desc { font-size: 13px; color: var(--ash); margin-bottom: .5rem; line-height: 1.6; }
.tournament-date { font-size: 13px; color: var(--ash); margin-bottom: .75rem; }
.prize-badge     { color: var(--gold); font-weight: 800; font-family: monospace; font-size: 1rem; }
.winner-label    { color: var(--gold); font-weight: 700; font-size: 13px; margin: .5rem 0; }

.progress-row  { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.progress-bar  { flex: 1; height: 6px; background: var(--charcoal); border-radius: 3px; }
.progress-fill { height: 100%; background: var(--emerald); border-radius: 3px; transition: width .4s; }
.progress-label{ font-size: 12px; color: var(--ash); white-space: nowrap; }

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 20px;
}
.testimonial-card { display: flex; flex-direction: column; }
.quote-mark   { font-size: 2rem; color: var(--gold); margin-bottom: .5rem; line-height: 1; }
.testimonial-text { color: var(--ash-light); font-size: 14px; line-height: 1.7; flex: 1; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: #000;
}
.author-name { font-weight: 700; font-size: 14px; color: var(--ivory); }
.author-role { font-size: 12px; color: var(--gold); }

/* ── RATES GRID ──────────────────────────────────────────── */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px,1fr));
    gap: 16px; margin-bottom: 2.5rem;
}
.rate-card  { text-align: center; }
.rate-icon  { font-size: 2.5rem; margin-bottom: .75rem; }
.rate-label { font-weight: 700; font-size: 15px; color: var(--ivory); margin-bottom: .25rem; }
.rate-price { font-size: 1.6rem; font-weight: 900; color: var(--emerald); font-family: monospace; margin-bottom: .25rem; }
.rate-sub   { font-size: 12px; color: var(--ash); }

/* ── GALLERY ─────────────────────────────────────────────── */
.filter-row { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-btn {
    background: transparent; color: var(--ash);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px; padding: .4rem 1rem;
    cursor: pointer; font-size: 13px; font-weight: 700; transition: all .2s;
}
.filter-active {
    background: var(--emerald) !important; color: #000 !important;
    border-color: var(--emerald) !important;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: 16px;
}
.gallery-item {
    aspect-ratio: 4/3; background: linear-gradient(135deg, rgba(15,61,36,.35), var(--panel));
    border: 1px solid rgba(201,168,76,.12); border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .6rem; cursor: pointer; transition: transform .2s;
}
.gallery-item:hover { transform: scale(1.04); }
.gallery-emoji { font-size: 3rem; }
.gallery-label { color: var(--ash-light); font-size: 13px; font-weight: 600; }

/* ── TABS ────────────────────────────────────────────────── */
.tab-row { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1.5rem; }
.tab-btn {
    background: transparent; color: var(--ash);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px; padding: .5rem 1.2rem;
    cursor: pointer; font-weight: 700; font-size: 13px;
    text-transform: capitalize; transition: all .2s;
}
.tab-active { background: var(--emerald) !important; color: #000 !important; border-color: var(--emerald) !important; }

/* ── BOOK WIZARD ─────────────────────────────────────────── */
.steps-row {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 2.5rem; flex-wrap: nowrap;
}
.step-group { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.step-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--charcoal); border: 2px solid var(--ash);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: var(--ash);
    transition: all .2s;
}
.step-active { background: var(--gold) !important; border-color: var(--gold) !important; color: #000 !important; }
.step-done   { background: var(--emerald) !important; border-color: var(--emerald) !important; color: #000 !important; }
.step-label  { font-size: 11px; color: var(--ash); white-space: nowrap; }
.step-label-active { color: var(--gold); }
.step-line   { width: 60px; height: 2px; background: var(--charcoal); margin: 0 .5rem; margin-bottom: 1.5rem; }
.step-line-done { background: var(--emerald); }
.step-heading { color: var(--ivory); margin-bottom: 1.25rem; }

.slots-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: .5rem; margin-top: .5rem;
}
.slot-btn {
    background: var(--charcoal);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px; padding: .4rem;
    font-size: 13px; cursor: pointer; font-weight: 600;
    color: var(--ivory); transition: all .2s;
}
.slot-btn:hover  { border-color: rgba(46,204,113,.4); }
.slot-active     { background: var(--emerald) !important; color: #000 !important; border-color: var(--emerald) !important; }

.time-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.duration-group { grid-column: 1; }
.step-nav { display: flex; gap: .75rem; margin-top: 1.5rem; }

.summary-card {
    max-width: 380px; background: rgba(15,61,36,.25) !important;
    margin-bottom: 1.5rem;
}
.summary-title { font-size: 13px; color: var(--ash); margin-bottom: .75rem; }
.summary-rows  { display: flex; flex-direction: column; gap: .35rem; }
.summary-row   { display: flex; justify-content: space-between; font-size: 13px; }
.summary-row span:first-child { color: var(--ash); }
.summary-row span:last-child  { color: var(--ivory); font-family: monospace; }
.summary-total span:last-child { color: var(--gold); font-weight: 800; font-size: 1rem; }

/* Confirmation */
.confirm-screen { display: flex; justify-content: center; }
.confirm-card   { max-width: 480px; width: 100%; text-align: center; }
.confirm-icon   { font-size: 4rem; margin-bottom: 1rem; }
.confirm-title  { font-size: 1.5rem; font-weight: 800; color: var(--emerald); margin-bottom: .5rem; }
.confirm-sub    { color: var(--ash); margin-bottom: 1.5rem; }
.confirm-details {
    background: var(--charcoal); border-radius: 12px; padding: 1.25rem;
    margin-bottom: 1rem; text-align: left;
    display: flex; flex-direction: column; gap: .5rem;
}
.confirm-row    { display: flex; justify-content: space-between; font-size: 14px; }
.confirm-row span { color: var(--ash); }
.confirm-row strong { color: var(--ivory); }
.confirm-total strong { color: var(--gold); font-size: 1.1rem; }
.confirm-note   { font-size: 13px; color: var(--ash); margin-bottom: 1rem; }
.confirm-preview { max-width: 440px; margin-bottom: 1rem; }
.confirm-form   { max-width: 480px; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
}
.contact-info   { display: flex; flex-direction: column; gap: 12px; }
.contact-info-card { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-info-label { color: var(--gold); font-size: 12px; font-weight: 700; margin-bottom: .25rem; }
.contact-info-value { color: var(--ivory); font-size: 14px; line-height: 1.6; }
.contact-info-link {
    display: inline-block; color: var(--emerald); font-size: 12px;
    font-weight: 700; margin-top: .4rem;
}
.contact-info-link:hover { text-decoration: underline; }
.contact-info-link-inline { color: var(--ivory); transition: color .15s; }
.contact-info-link-inline:hover { color: var(--emerald); }
.social-icons       { display: flex; gap: 1rem; margin-top: .75rem; font-size: 1.5rem; cursor: pointer; }
.instagram-link {
    display: flex; align-items: center; gap: .6rem;
    margin-top: .5rem; color: var(--ivory); transition: color .15s;
}
.instagram-link:hover { color: var(--emerald); }
.instagram-handle { font-size: 14px; font-weight: 600; }

/* Map embed */
.map-embed-wrapper {
    border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(201,168,76,.15);
}

/* Footer contact links + instagram */
.footer-instagram {
    display: flex; align-items: center; gap: .6rem;
    color: var(--ash); font-size: 13px; transition: color .15s;
}
.footer-instagram:hover { color: var(--emerald); }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group label { color: var(--ash); font-size: 13px; font-weight: 600; }
.form-input {
    background: var(--charcoal);
    border: 1px solid rgba(201,168,76,.2);
    border-radius: 8px; padding: .65rem 1rem;
    color: var(--ivory); font-size: 14px;
    outline: none; width: 100%;
    transition: border-color .2s;
}
.form-input:focus { border-color: rgba(46,204,113,.5); }
.form-textarea { resize: vertical; }
.form-error { color: var(--red); font-size: 13px; }
input::placeholder, textarea::placeholder { color: rgba(139,139,167,.5); }
select.form-input option { background: var(--charcoal); }

/* ── ABOUT ───────────────────────────────────────────────── */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
    gap: 20px; margin-bottom: 2rem;
}
.facility-icon  { font-size: 2.5rem; margin-bottom: .75rem; }
.facility-title { font-weight: 700; font-size: 1rem; color: var(--ivory); margin-bottom: .5rem; }
.facility-desc  { color: var(--ash-light); font-size: 14px; line-height: 1.7; }
.mission-card   { margin-top: 1.5rem; background: linear-gradient(135deg, rgba(15,61,36,.35), var(--panel)) !important; }
.mission-title  { color: var(--gold); margin-bottom: 1rem; font-size: 1.2rem; }
.mission-text   { color: var(--ash-light); line-height: 1.8; }

.timeline { display: flex; flex-direction: column; gap: 1rem; margin-top: .75rem; }
.timeline-item { display: flex; gap: 1rem; align-items: flex-start; }
.timeline-year {
    color: var(--gold); font-weight: 800; font-family: monospace;
    font-size: 14px; white-space: nowrap; min-width: 40px;
    padding-top: .1rem;
}
.timeline-item p { color: var(--ash-light); font-size: 14px; line-height: 1.6; }

/* ── DASHBOARD SHELL ─────────────────────────────────────── */
.dashboard-shell {
    display: flex; min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
    width: 220px; background: var(--charcoal);
    border-right: 1px solid rgba(201,168,76,.1);
    padding: 1.5rem 0; flex-shrink: 0;
}
.sidebar-profile {
    padding: 0 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: .5rem;
}
.sidebar-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 18px; color: #000; margin-bottom: .6rem;
}
.sidebar-name { font-weight: 700; color: var(--ivory); font-size: 15px; margin-bottom: .4rem; }
.sidebar-nav  { padding-top: .25rem; }

.sidebar-link {
    display: flex; align-items: center; gap: .6rem; width: 100%;
    padding: .75rem 1.2rem; border: none; cursor: pointer;
    background: transparent; color: var(--ash);
    border-left: 3px solid transparent;
    font-weight: 400; font-size: 14px; text-align: left;
    transition: all .15s;
}
.sidebar-link:hover { color: var(--ivory); background: rgba(255,255,255,.03); }
.sidebar-active      { color: var(--emerald) !important; background: rgba(46,204,113,.08) !important; border-left-color: var(--emerald) !important; font-weight: 700 !important; }
.sidebar-active-gold { color: var(--gold) !important;    background: rgba(201,168,76,.08) !important; border-left-color: var(--gold) !important;    font-weight: 700 !important; }

.dashboard-content { flex: 1; padding: 2rem; overflow-y: auto; }
.dash-heading     { font-size: 1.5rem; font-weight: 800; color: var(--ivory); margin-bottom: 1.5rem; }
.dash-sub-heading { font-size: 1rem; font-weight: 700; color: var(--ivory); margin: 1.5rem 0 .75rem; }
.dash-top-row     { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }

/* ── STAT CARD ───────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
    gap: 16px; margin-bottom: 1.5rem;
}
.stat-card { background: var(--panel); border: 1px solid rgba(201,168,76,.13); border-radius: 16px; padding: 1.25rem; }
.stat-top  { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.stat-icon { font-size: 1.4rem; }
.glow-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.stat-value{ font-size: 1.75rem; font-weight: 800; color: var(--ivory); font-family: monospace; }
.stat-label{ font-size: 13px; color: var(--ash); margin-top: .2rem; }
.stat-sub  { font-size: 12px; margin-top: .2rem; }

/* ── BOOKING ROW ─────────────────────────────────────────── */
.booking-row {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem; margin-bottom: .75rem;
}
.booking-table  { font-weight: 700; color: var(--ivory); font-size: 15px; margin-bottom: .2rem; }
.booking-meta   { font-size: 13px; color: var(--ash); }
.booking-actions{ display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.booking-amount { font-weight: 700; color: var(--gold); font-family: monospace; }

/* ── DATA TABLE ──────────────────────────────────────────── */
.table-wrapper  { overflow-x: auto; }
.data-table {
    width: 100%; border-collapse: collapse; min-width: 600px;
}
.data-table th {
    padding: .75rem 1rem; color: var(--ash); font-size: 12px;
    text-align: left; font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: nowrap;
}
.data-table td {
    padding: .75rem 1rem; font-size: 13px; color: var(--ivory);
    border-bottom: 1px solid rgba(255,255,255,.04);
}

/* ── MEMBERSHIP STATUS ───────────────────────────────────── */
.membership-status-card { background: linear-gradient(135deg, rgba(201,168,76,.15), var(--panel)) !important; border-color: rgba(201,168,76,.3) !important; }
.membership-status-top  { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.big-price { font-size: 1.75rem; font-weight: 900; color: var(--ivory); font-family: monospace; }
.upgrade-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ── REWARDS ─────────────────────────────────────────────── */
.reward-row {
    display: flex; justify-content: space-between;
    padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 14px;
}

/* ── MEMBER CELL ─────────────────────────────────────────── */
.member-cell { display: flex; align-items: center; gap: .6rem; }
.member-avatar-sm {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 12px; color: #000; flex-shrink: 0;
}
.glow-dot-inline {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
}

/* ── ACTION BTNS ─────────────────────────────────────────── */
.action-btns { display: flex; gap: .4rem; }

/* ── ADMIN TABLES GRID ───────────────────────────────────── */
.admin-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
    gap: 16px;
}

/* ── EXPORT BTNS ─────────────────────────────────────────── */
.export-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── CHART ───────────────────────────────────────────────── */
.chart-wrapper { overflow-x: auto; }
.bar-chart { display: block; width: 100%; }
.chart-label { fill: var(--ash); font-family: sans-serif; font-size: 11px; }
.chart-value { fill: var(--emerald); font-family: sans-serif; font-size: 10px; }

/* ── AUTH MODAL ──────────────────────────────────────────── */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.75);
    z-index: 500; display: flex; align-items: center;
    justify-content: center; padding: 1rem;
}
.modal-card {
    background: var(--panel); border: 1px solid rgba(201,168,76,.2);
    border-radius: 20px; padding: 2rem; width: 100%; max-width: 400px;
    animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }
.modal-header { text-align: center; margin-bottom: 1.5rem; }
.modal-icon   { font-size: 2.5rem; margin-bottom: .75rem; }
.modal-header h2 { color: var(--ivory); margin-bottom: .25rem; }
.modal-header p  { color: var(--ash); font-size: 14px; }
.auth-toggle { color: var(--ash); font-size: 13px; text-align: center; margin-top: .75rem; }
.auth-toggle span { color: var(--emerald); cursor: pointer; font-weight: 700; }
.auth-hint { font-size: 12px; color: var(--ash); text-align: center; opacity: .7; margin-top: .25rem; }
.auth-hint strong { color: var(--gold); }

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
    background: var(--panel); border-radius: 12px; padding: 1rem 1.5rem;
    border: 1px solid rgba(201,168,76,.2);
    display: flex; align-items: center; gap: .75rem;
    font-size: 14px; color: var(--ivory);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    animation: toastIn .3s ease;
    max-width: 320px;
}
.toast-success { border-color: rgba(46,204,113,.3); }
.toast-error   { border-color: rgba(231,76,60,.3); }
@keyframes toastIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
    background: var(--charcoal);
    border-top: 1px solid rgba(201,168,76,.1);
    padding: 3rem 2rem 1.5rem;
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
    gap: 2rem; margin-bottom: 2rem;
}
.footer-brand   { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.footer-tagline { color: var(--ash); font-size: 13px; line-height: 1.7; }
.footer-heading { color: var(--ivory); font-size: 14px; font-weight: 700; margin-bottom: .75rem; }
.footer-links   { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { color: var(--ash); font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: var(--ivory); }
.footer-contact { display: flex; flex-direction: column; gap: .4rem; }
.footer-contact span, .footer-contact a { color: var(--ash); font-size: 13px; }
.footer-contact a { transition: color .15s; }
.footer-contact a:hover { color: var(--emerald); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 1.25rem;
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: .5rem; font-size: 12px; color: var(--ash);
}

/* ── 404 ─────────────────────────────────────────────────── */
.not-found {
    text-align: center; padding: 6rem 2rem;
}
.not-found-icon { font-size: 4rem; margin-bottom: 1rem; }
.not-found h1   { font-size: 5rem; color: var(--gold); font-weight: 900; margin-bottom: .5rem; }
.not-found p    { color: var(--ash); margin-bottom: 2rem; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column;
        position: absolute; top: 70px; left: 0; right: 0;
        background: rgba(10,10,15,.97);
        padding: 1rem; border-bottom: 1px solid rgba(201,168,76,.1);
        gap: .25rem;
    }
    .nav-open { display: flex; }
    .hamburger { display: flex; }

    /* .hero-content { justify-content: center; text-align: center; }
    .hero-rack { display: none; }
    .hero-cta, .hero-stats { justify-content: center; }
    .hero-text { max-width: 100%; }
    .hero-content { gap: 1.5rem; }  */

     .hero-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;            /* tighter spacing */
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-rack {
    display: none;          /* hide SVG on mobile */
  }
  .hero-cta, .hero-stats {
    justify-content: center;
  }

    .time-form { grid-template-columns: 1fr; }
    .slots-grid { grid-template-columns: repeat(3,1fr); }

    .contact-grid { grid-template-columns: 1fr; }

    .dashboard-shell { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(201,168,76,.1); }
    .sidebar-nav { display: flex; flex-wrap: wrap; gap: .25rem; padding: .5rem; }
    .sidebar-link { width: auto; border-left: none; border-bottom: 3px solid transparent; }
    .sidebar-active      { border-bottom-color: var(--emerald) !important; border-left: none !important; }
    .sidebar-active-gold { border-bottom-color: var(--gold) !important; border-left: none !important; }

    .stats-grid { grid-template-columns: 1fr 1fr; }

    .plans-grid, .tournament-grid { grid-template-columns: 1fr; }
}
