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

/* ============================================================
   BOX101 — Global Design System
   ============================================================ */
:root {
  --red: #E8000E;
  --red-dark: #b0000b;
  --red-glow: rgba(232, 0, 14, 0.35);
  --bg-base: #0a0a0a;
  --bg-surface: #141414;
  --bg-surface-2: #1e1e1e;
  --bg-card: rgba(20,20,20,0.85);
  --text-primary: #f5f5f5;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: rgba(255,255,255,0.08);
  --border-red: rgba(232,0,14,0.4);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --nav-height: 72px;
  --sidebar-width: 260px;
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-red: 0 4px 24px var(--red-glow);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body { font-family: var(--font-body); background: var(--bg-base); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-heading); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem,4vw,3rem); }
h2 span, h1 span { color: var(--red); }
select { appearance: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.75rem 1.75rem;
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: var(--transition); border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: var(--shadow-red); }
.btn-primary:hover { background: transparent; color: var(--red); }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-ghost { background: rgba(255,255,255,0.08); backdrop-filter: blur(8px); color: var(--text-primary); border-color: rgba(255,255,255,0.15); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.18); color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: transparent; color: var(--danger); }
.btn-success { background: var(--success); color: #0a0a0a; border-color: var(--success); }
.btn-success:hover { background: transparent; color: var(--success); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.form-control {
  width: 100%; padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: 1rem;
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--red); background: rgba(232,0,14,0.05); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 0.25rem; }
.form-hint { color: var(--text-muted); font-size: 0.82rem; }

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; transition: var(--transition);
}
.card:hover { border-color: rgba(255,255,255,0.15); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.card-title { font-family: var(--font-heading); font-size: 1.2rem; }

/* ============================================================
   BADGE / STATUS
   ============================================================ */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.badge-info { background: rgba(59,130,246,0.15); color: var(--info); border: 1px solid rgba(59,130,246,0.3); }
.badge-red { background: rgba(232,0,14,0.15); color: var(--red); border: 1px solid rgba(232,0,14,0.3); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  padding: 1rem 1.5rem; border-radius: var(--radius-sm);
  background: var(--bg-surface-2); border: 1px solid var(--border);
  color: var(--text-primary); font-weight: 500;
  opacity: 0; transform: translateY(10px);
  transition: all 0.3s ease; pointer-events: none;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast-success { border-color: rgba(34,197,94,0.4); }
.toast-error { border-color: rgba(239,68,68,0.4); }
.toast-warning { border-color: rgba(245,158,11,0.4); }

/* ============================================================
   NAVBAR (Public)
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--nav-height); z-index: 1000;
  transition: background 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled { background: rgba(10,10,10,0.92); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo img { height: 44px; width: auto; }
.logo-text { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900; letter-spacing: 1px; }
.logo-text span { color: var(--red); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--red); transition: var(--transition); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; gap: 1rem; align-items: center; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.6rem; cursor: pointer; }
.mobile-menu { display: none; position: fixed; top: var(--nav-height); left: 0; width: 100%; background: var(--bg-surface); padding: 2rem; border-bottom: 1px solid var(--border); flex-direction: column; gap: 1.5rem; z-index: 999; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-heading); font-size: 1.3rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; height: 100vh; min-height: 620px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg canvas, .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.8) 70%, rgba(10,10,10,1) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 1000px; width: 100%; padding: 0 2rem; text-align: center; transform: translateY(-12vh); }
.hero h1 { font-size: clamp(2.5rem,7vw,5rem); letter-spacing: -2px; line-height: 0.95; margin-bottom: 1.25rem; text-shadow: 0 4px 10px rgba(0,0,0,0.6), 0 10px 40px rgba(0,0,0,1); font-weight: 900; text-transform: uppercase; }
.hero p { font-size: clamp(1rem,1.5vw,1.15rem); color: rgba(255,255,255,0.95); max-width: 600px; margin: 0 auto 2rem; font-weight: 500; text-shadow: 0 4px 15px rgba(0,0,0,1); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 0.5rem; }
.hero-badge { display: inline-block; background: rgba(232,0,14,0.2); border: 1px solid #ff3333; box-shadow: 0 0 20px rgba(232,0,14,0.4); backdrop-filter: blur(8px); color: #ff3333; padding: 0.5rem 1.2rem; border-radius: 30px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.25rem; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap { background: var(--red); overflow: hidden; white-space: nowrap; display: flex; padding: 0.85rem 0; transform: rotate(-0.8deg) scale(1.02); margin: -1rem 0 3rem; z-index: 10; position: relative; }
.marquee-track { display: inline-flex; animation: marquee 20s linear infinite; }
.marquee-track span { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: #fff; padding: 0 1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; margin-top: 0.5rem; }
.section-dark { background: var(--bg-surface); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 2rem; }
.feature-list { display: flex; flex-direction: column; gap: 0.75rem; }
.feature-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 500; }
.feature-item i { color: var(--red); font-size: 1.3rem; flex-shrink: 0; }
.about-img-wrap { position: relative; border-radius: var(--radius); overflow: visible; }
.about-img-wrap img { width: 100%; height: 500px; object-fit: cover; border-radius: var(--radius); filter: contrast(1.1); }
.stat-badge { position: absolute; bottom: -1.5rem; left: -1.5rem; background: var(--red); color: #fff; padding: 1.5rem; border-radius: var(--radius); font-family: var(--font-heading); text-align: center; border: 4px solid var(--bg-base); box-shadow: var(--shadow-red); }
.stat-badge .num { display: block; font-size: 2.2rem; font-weight: 900; line-height: 1; }
.stat-badge .lbl { font-size: 0.82rem; font-weight: 700; opacity: 0.9; }

/* ============================================================
   PLANS
   ============================================================ */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.plan-card { background: var(--bg-base); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; display: flex; flex-direction: column; position: relative; transition: var(--transition); }
.plan-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.18); box-shadow: var(--shadow); }
.plan-card.popular { border-color: var(--red); box-shadow: 0 0 30px rgba(232,0,14,0.12); transform: scale(1.03); }
.plan-card.popular:hover { transform: scale(1.03) translateY(-8px); }
.popular-tag { position: absolute; top: 0; left: 50%; transform: translate(-50%,-50%); background: var(--red); color: #fff; padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.plan-name { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 0.5rem; }
.plan-price { font-family: var(--font-heading); font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 0.25rem; }
.plan-price sub { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.plan-duration { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.plan-features { flex: 1; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.plan-features li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; }
.plan-features li i { color: var(--red); font-size: 1.1rem; }

/* ============================================================
   TRAINERS
   ============================================================ */
.trainers-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.trainer-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; cursor: default; }
.trainer-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; filter: grayscale(60%) contrast(1.1); }
.trainer-card:hover img { transform: scale(1.05); filter: grayscale(0%); }
.trainer-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem 1.5rem 1.5rem; background: linear-gradient(to top, rgba(10,10,10,0.97) 0%, transparent 100%); }
.trainer-info h3 { font-size: 1.3rem; }
.trainer-specialty { color: var(--red); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   SCHEDULE TABLE
   ============================================================ */
.schedule-wrap { max-width: 1200px; margin: 0 auto; overflow-x: auto; }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.schedule-table th, .schedule-table td { padding: 1rem; text-align: center; border: 1px solid var(--border); }
.schedule-table th { background: var(--bg-surface-2); font-family: var(--font-heading); font-size: 0.9rem; text-transform: uppercase; }
.schedule-table td { background: var(--bg-surface); font-size: 0.9rem; vertical-align: middle; }
.class-pill { display: inline-block; padding: 0.35rem 0.9rem; border-radius: 20px; font-weight: 600; font-size: 0.8rem; }
.class-hiit { background: rgba(239,68,68,0.15); color: #ef4444; }
.class-strength { background: rgba(232,0,14,0.15); color: var(--red); }
.class-mobility { background: rgba(59,130,246,0.15); color: #3b82f6; }

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta-section { position: relative; padding: 8rem 2rem; overflow: hidden; }
.cta-glow { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, var(--red-glow) 0%, transparent 65%); filter: blur(80px); z-index: 0; }
.cta-box { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; background: rgba(20,20,20,0.8); backdrop-filter: blur(20px); border: 1px solid var(--border-red); border-radius: var(--radius); padding: 4rem; text-align: center; }
.cta-box h2 { margin-bottom: 1rem; }
.cta-box p { color: var(--text-secondary); margin-bottom: 2rem; }
.join-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.form-success { color: var(--success); font-weight: 600; text-align: center; padding: 1rem; background: rgba(34,197,94,0.1); border-radius: var(--radius-sm); border: 1px solid rgba(34,197,94,0.3); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 5rem 2rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; max-width: 1200px; margin: 0 auto 3rem; }
.footer-brand p { color: var(--text-secondary); margin-top: 1rem; max-width: 280px; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 1.25rem; }
.footer-col a, .footer-col p { display: block; color: var(--text-secondary); margin-bottom: 0.6rem; font-size: 0.95rem; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.85rem; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem; background: var(--bg-base); position: relative; }
.auth-bg-glow { position: fixed; top: -30%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, var(--red-glow) 0%, transparent 65%); filter: blur(80px); z-index: 0; pointer-events: none; }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 460px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 3rem; box-shadow: var(--shadow); }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
.auth-logo img { height: 50px; }
.auth-title { font-family: var(--font-heading); font-size: 1.8rem; text-align: center; margin-bottom: 0.5rem; }
.auth-subtitle { font-size: 0.95rem; color: var(--text-secondary); text-align: center; margin-bottom: 2rem; }
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.auth-footer a { color: var(--red); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }
.auth-divider span { color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ============================================================
   MEMBERSHIP CARD (Customer)
   ============================================================ */
.member-card { background: linear-gradient(135deg, #1a0000, #2d0000, #1a0000); border: 1px solid var(--border-red); border-radius: var(--radius); padding: 2rem 2.5rem; position: relative; overflow: hidden; }
.member-card::before { content: 'BOX101'; position: absolute; right: -1rem; top: -1rem; font-family: var(--font-heading); font-size: 6rem; font-weight: 900; color: rgba(232,0,14,0.08); letter-spacing: -4px; pointer-events: none; }
.member-card-name { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.25rem; }
.member-card-plan { color: var(--red); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }
.member-card-dates { display: flex; gap: 2rem; }
.member-card-dates div { font-size: 0.8rem; color: var(--text-secondary); }
.member-card-dates strong { display: block; font-size: 1rem; color: var(--text-primary); margin-top: 0.2rem; }

/* ============================================================
   ALERT BANNERS
   ============================================================ */
.alert { padding: 1rem 1.5rem; border-radius: var(--radius-sm); font-weight: 500; display: flex; align-items: start; gap: 0.75rem; margin-bottom: 1.5rem; }
.alert i { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.35); color: var(--warning); }
.alert-danger { background: rgba(232,0,14,0.1); border: 1px solid var(--border-red); color: #ff4d4d; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.35); color: var(--success); }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.35); color: var(--info); }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; min-width: 600px; }
.table th { background: var(--bg-surface-2); padding: 1rem 1.25rem; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); border-bottom: 1px solid var(--border); font-family: var(--font-heading); }
.table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.95rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,0.02); }
.table-actions { display: flex; gap: 0.5rem; }

/* ============================================================
   STAT CARD
   ============================================================ */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.stat-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.stat-card-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem; }
.stat-card-icon.red { background: rgba(232,0,14,0.15); color: var(--red); }
.stat-card-icon.green { background: rgba(34,197,94,0.15); color: var(--success); }
.stat-card-icon.yellow { background: rgba(245,158,11,0.15); color: var(--warning); }
.stat-card-icon.blue { background: rgba(59,130,246,0.15); color: var(--info); }
.stat-card-value { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900; line-height: 1; }
.stat-card-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.25rem; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto; transform: scale(0.95); transition: transform 0.25s; }
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.modal-title { font-family: var(--font-heading); font-size: 1.4rem; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; display: flex; }
.modal-close:hover { color: var(--text-primary); }
.modal-body { display: flex; flex-direction: column; gap: 1.25rem; }
.modal-footer { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 2rem; }

/* ============================================================
   LOADING
   ============================================================ */
.loading { display: flex; align-items: center; justify-content: center; padding: 4rem; color: var(--text-muted); gap: 0.75rem; }
.spinner { width: 24px; height: 24px; border: 3px solid var(--border); border-top-color: var(--red); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-surface-2) 50%, var(--bg-surface) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plan-card.popular { transform: none; }
  .plan-card.popular:hover { transform: translateY(-8px); }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .section { padding: 4rem 1.5rem; }
  .auth-card { padding: 2rem; }
  .cta-box { padding: 2.5rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  
  /* Mobile Hero Fixes */
  .hero { align-items: flex-end; padding-bottom: 4rem; }
  .hero-bg { background: #050505; }
  .hero-bg canvas, .hero-bg img { object-fit: cover; object-position: center; height: 60%; }
  .hero-overlay { background: linear-gradient(to bottom, transparent 0%, rgba(5,5,5,0.3) 45%, rgba(5,5,5,1) 60%, rgba(5,5,5,1) 100%); }
  .hero-content { transform: none; padding: 0 1rem; margin-top: 0; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); margin-bottom: 1rem; }
  
  /* Mobile Dashboard Fixes */
  .stat-cards { grid-template-columns: 1fr; gap: 1rem; }
  .member-card { padding: 1.5rem; }
  .member-card-dates { flex-direction: column; gap: 0.75rem; }
  .member-card::before { font-size: 3.5rem; right: -0.5rem; top: -0.5rem; }
  .alert { flex-direction: column; align-items: flex-start; padding: 1rem; gap: 0.5rem; }
  .alert i { margin-top: 0; }
  .card { padding: 1.25rem; }
}
