/* ============================================================
   ELITE FITNESS – GOLDEN RATIO STYLES
   Based on 1.618:1 ratio & Fibonacci sequence
   Mobile-Fixed Version
   ============================================================ */

/* ============================================================
   ROOT VARIABLES & THEMES
   ============================================================ */
:root {
    /* Dark Theme (default) */
    --bg-body: #0F0F0F;
    --bg-nav: rgba(15, 15, 15, 0.92);
    --bg-section: #121212;
    --bg-card: #1E1E1E;
    --bg-cta: #1E1E1E;

    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #AAAAAA;
    --text-dark: #0F0F0F;

    --border-light: #2A2A2A;
    --border-card: #2A2A2A;

    --accent: #00C853;
    --accent-hover: #00E676;
    --accent-dim: rgba(0, 200, 83, 0.15);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.9);

    --radius: 12px;
    --radius-lg: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Golden Ratio Spacing (Fibonacci: 8, 13, 21, 34, 55, 89) */
    --space-xs: 8px;
    --space-sm: 13px;
    --space-md: 21px;
    --space-lg: 34px;
    --space-xl: 55px;
    --space-xxl: 89px;
}

[data-theme="light"] {
    --bg-body: #FFFFFF;
    --bg-nav: rgba(255, 255, 255, 0.92);
    --bg-section: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-cta: #F5F7FA;

    --text-primary: #0F0F0F;
    --text-secondary: #333333;
    --text-muted: #666666;
    --text-dark: #0F0F0F;

    --border-light: #E0E0E0;
    --border-card: #E0E0E0;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.618;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    width: 100%;
    overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, .h1 {
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

h2, .h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

h3, .h3 {
    font-size: clamp(22px, 2.5vw, 27px);
    font-weight: 700;
    line-height: 1.3;
}

h4, .h4 {
    font-size: clamp(18px, 1.8vw, 20px);
    font-weight: 600;
    line-height: 1.4;
}

p, .body-text {
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.618;
}

small, .small-text {
    font-size: 14px;
    line-height: 1.618;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--accent);
    color: #0F0F0F;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 40px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
    letter-spacing: 0.3px;
    min-height: 52px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 200, 83, 0.35);
    background: var(--accent-hover);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: transparent;
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
    min-height: 52px;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-blue {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--accent);
    color: #0F0F0F;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
    min-height: 44px;
}

.btn-blue:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ============================================================
   THEME TOGGLE (floating) – WILL BE OVERRIDDEN BY NAVBAR VERSION
   ============================================================ */
.theme-toggle-wrapper {
    position: fixed;
    top: var(--space-md);
    right: var(--space-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: var(--space-xs) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.theme-toggle .icon-sun {
    color: #FFB300;
}

.theme-toggle .icon-moon {
    color: #94a3b8;
}

[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }

.theme-toggle .toggle-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent);
    color: #0F0F0F !important;
    padding: var(--space-xs) var(--space-md);
    border-radius: 40px;
    font-weight: 700 !important;
    font-size: 13px !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
}

.admin-link i {
    margin-right: 4px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
    min-height: 48px;
    min-width: 48px;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 140px 0 var(--space-xxl);
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.618fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: var(--space-md);
}

.hero-text h1 .highlight {
    color: var(--accent);
}

.hero-text p {
    font-size: clamp(16px, 1.2vw, 18px);
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: var(--space-lg);
    line-height: 1.618;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.hero-stats .stat-number {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-stats .stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1.618/1;
    border: 1px solid var(--border-light);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: var(--space-xxl) 0;
    background: var(--bg-section);
    transition: background 0.3s ease;
}

.section-alt {
    background: var(--bg-body);
}

.section-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    display: block;
}

.section-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: var(--space-md);
}

.section-title .highlight {
    color: var(--accent);
}

.section-desc {
    font-size: clamp(16px, 1.2vw, 18px);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.618;
}

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.618fr;
    gap: var(--space-xl);
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

/* ============================================================
   FEATURES
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.feature-item {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-item i {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    display: block;
}

.feature-item h4 {
    font-size: 18px;
    font-weight: 700;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* ============================================================
   MEMBERSHIP PLANS
   ============================================================ */
.format-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: var(--space-lg);
    transition: all 0.3s ease;
    position: relative;
}

.format-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.format-card .popular {
    position: absolute;
    top: -10px;
    right: var(--space-lg);
    background: var(--accent);
    color: #0F0F0F;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-xs) var(--space-md);
    border-radius: 40px;
}

.format-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.format-card .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.format-card .price {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.format-card .price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.format-card ul {
    list-style: none;
    margin: var(--space-md) 0 var(--space-lg);
}

.format-card ul li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: var(--space-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.format-card ul li i {
    color: var(--accent);
    font-size: 14px;
    width: 20px;
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.618fr;
    gap: var(--space-xl);
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-card);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: var(--space-sm) 0;
}

.payment-methods button {
    background: var(--bg-body);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font);
}

.payment-methods button.active {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-line.total {
    font-weight: 700;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent);
}

/* ============================================================
   TRAINERS
   ============================================================ */
.trainer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.trainer-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-card);
    transition: all 0.3s ease;
    text-align: center;
}

.trainer-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.trainer-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.trainer-card .info {
    padding: var(--space-md);
}

.trainer-card h4 {
    font-size: 20px;
    margin-bottom: var(--space-xs);
}

.trainer-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================================
   FACILITIES
   ============================================================ */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.facility-item {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.facility-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    display: block;
}

.facility-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

/* ============================================================
   GROUP CLASSES
   ============================================================ */
.class-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.class-card {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.class-card:hover {
    border-color: var(--accent);
}

.class-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    display: block;
}

.class-card .time {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================================
   BMI
   ============================================================ */
.bmi-box {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid var(--border-card);
}

.bmi-box input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: var(--space-md);
    min-height: 48px;
    font-family: var(--font);
}

.bmi-box input:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

.bmi-result .bmi-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
}

/* ============================================================
   OFFERS
   ============================================================ */
.offer-banner {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.offer-banner .countdown {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    font-size: 2.5rem;
    font-weight: 700;
    margin: var(--space-md) 0;
}

.offer-banner .countdown span {
    background: var(--bg-body);
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    min-width: 70px;
}

.offer-banner .countdown .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    font-weight: 400;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-md) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    min-height: 48px;
    gap: var(--space-sm);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--accent-dim);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 var(--space-md);
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 var(--space-md) var(--space-md);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
    touch-action: pan-y;
}

.testimonial-card {
    flex: 0 0 100%;
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid var(--border-card);
    text-align: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-md);
    border: 3px solid var(--accent);
}

.testimonial-card .stars {
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dots span.active {
    background: var(--accent);
    width: 34px;
    border-radius: 10px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.618fr;
    gap: var(--space-xl);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.contact-info p i {
    color: var(--accent);
    width: 24px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background: var(--bg-body);
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 300px;
    margin-top: var(--space-xs);
}

.footer h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: var(--space-xs);
}

.footer ul li a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer ul li a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    color: var(--text-muted);
    font-size: 18px;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.floating {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-end;
}

.floating .whatsapp {
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.floating .whatsapp:hover {
    transform: scale(1.08);
}

.floating .back-top {
    background: var(--accent);
    color: #0F0F0F;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(0, 200, 83, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.floating .back-top.show {
    display: flex;
}

.floating .back-top:hover {
    transform: scale(1.08);
}

/* ============================================================
   MOBILE RESPONSIVE FIXES (existing)
   ============================================================ */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    * {
        max-width: 100%;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: hidden;
    }

    /* Theme Toggle (floating) hidden – will be overridden by navbar version */
    .theme-toggle-wrapper {
        display: none;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 10px 0;
    }

    .navbar .container {
        padding: 0 16px;
    }

    .nav-logo {
        font-size: 18px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--bg-nav);
        backdrop-filter: blur(16px);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 16px 20px;
        gap: 12px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
        align-items: stretch;
        text-align: center;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 15px;
        padding: 10px 0;
        color: var(--text-primary);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links .admin-link {
        border: 1px solid var(--accent);
        border-radius: 8px;
        padding: 10px 12px;
        margin-top: 4px;
        background: var(--accent-dim);
        color: var(--accent);
    }

    .nav-links .admin-link i {
        font-size: 14px;
        margin-right: 8px;
    }

    .nav-cta {
        font-size: 14px !important;
        padding: 10px 20px !important;
        width: 100%;
        text-align: center;
    }

    /* Hero Mobile */
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-text h1 {
        font-size: 28px;
        line-height: 1.1;
    }

    .hero-text p {
        font-size: 15px;
        max-width: 100%;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding-top: 16px;
    }

    .hero-stats .stat-number {
        font-size: 20px;
    }

    .hero-stats .stat-label {
        font-size: 12px;
    }

    .hero-image {
        aspect-ratio: 4/3;
        max-height: 300px;
    }

    .hero-image img {
        height: 100%;
        object-fit: cover;
    }

    /* Sections Mobile */
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .section-desc {
        font-size: 15px;
        max-width: 100%;
    }

    .section-sub {
        font-size: 15px;
        max-width: 100%;
    }

    /* Grids Mobile */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .facility-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .class-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .trainer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Cards Mobile */
    .format-card {
        padding: 20px;
    }

    .format-card .price {
        font-size: 28px;
    }

    .format-card .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .feature-item {
        padding: 16px 12px;
    }

    .feature-item i {
        font-size: 22px;
    }

    .feature-item h4 {
        font-size: 14px;
    }

    .facility-item {
        padding: 16px 12px;
    }

    .facility-item i {
        font-size: 20px;
    }

    .class-card {
        padding: 16px 12px;
    }

    .class-card i {
        font-size: 20px;
    }

    /* Checkout Mobile */
    .checkout-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }

    .payment-methods {
        gap: 8px;
    }

    .payment-methods button {
        padding: 8px 14px;
        font-size: 13px;
    }

    .summary-line {
        padding: 6px 0;
        font-size: 14px;
    }

    .summary-line.total {
        font-size: 16px;
    }

    .checkout-wrapper .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* BMI Mobile */
    .bmi-box {
        padding: 20px;
    }

    .bmi-box input {
        padding: 12px 14px;
        font-size: 15px;
        min-height: 44px;
    }

    .bmi-result .bmi-number {
        font-size: 2.5rem;
    }

    /* Offers Mobile */
    .offer-banner {
        padding: 24px 16px;
    }

    .offer-banner .countdown {
        gap: 12px;
        font-size: 1.8rem;
        flex-wrap: wrap;
    }

    .offer-banner .countdown span {
        padding: 6px 12px;
        min-width: 55px;
    }

    .offer-banner .btn-primary {
        font-size: 1rem;
        padding: 10px 24px;
    }

    /* FAQ Mobile */
    .faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 16px;
        font-size: 14px;
    }

    .faq-item.active .faq-answer {
        padding: 0 16px 16px;
    }

    /* Contact Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-actions {
        flex-direction: column;
        width: 100%;
    }

    .contact-actions .btn-primary,
    .contact-actions .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .contact-map iframe {
        height: 200px;
    }

    /* Testimonials Mobile */
    .testimonial-card {
        padding: 20px;
    }

    .testimonial-card blockquote {
        font-size: 15px;
    }

    .testimonial-card img {
        width: 60px;
        height: 60px;
    }

    /* Floating Buttons Mobile */
    .floating {
        bottom: 12px;
        right: 12px;
        gap: 8px;
    }

    .floating .whatsapp {
        width: 48px;
        height: 48px;
        font-size: 1.8rem;
    }

    .floating .back-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Footer Mobile */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   EXTRA SMALL SCREENS (480px and below)
   ============================================================ */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .format-card .price {
        font-size: 24px;
    }

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

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

    .hero-stats {
        gap: 8px;
    }

    .hero-stats .stat-number {
        font-size: 16px;
    }

    .hero-stats .stat-label {
        font-size: 11px;
    }

    .theme-toggle-wrapper {
        top: 8px;
        right: 8px;
    }

    .theme-toggle {
        padding: 4px 10px;
        font-size: 12px;
        min-height: 34px;
        min-width: 34px;
    }

    .theme-toggle .icon-sun,
    .theme-toggle .icon-moon {
        font-size: 15px;
    }

    .nav-logo {
        font-size: 16px;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-outline {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* ============================================================
   NEW: NAVBAR LAYOUT FIX (theme toggle + hamburger)
   ============================================================ */

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Theme toggle inside navbar */
.navbar .theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, border-color 0.3s ease;
    font-family: var(--font);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-height: 40px;
    min-width: 40px;
}

.navbar .theme-toggle:active {
    transform: scale(0.95);
}

.navbar .theme-toggle .toggle-label {
    display: inline;
}

/* Mobile adjustments for navbar theme toggle */
@media (max-width: 768px) {
    .navbar .theme-toggle .toggle-label {
        display: none;
    }
    .navbar .theme-toggle {
        padding: 4px 10px;
        font-size: 14px;
        min-height: 40px;
        min-width: 40px;
    }
}

/* Hamburger touch area (already defined above, but ensure it's here) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
    min-height: 48px;
    min-width: 48px;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        top: 70px;
        z-index: 999;
    }
}