@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Outfit:wght@100..900&display=swap');

:root {
    --gold: #c59f51;
    --gold-dark: #a37c35;
    --dark: #121212;
    --light: #f5eedc;
    --white: #ffffff;
    --gray: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark);
    color: var(--white);
    max-width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Playfair Display', serif;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background-color: var(--light);
    color: var(--dark);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand img {
    height: 40px;
}

.nav-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.nav-brand .brand-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.nav-brand .brand-subtitle {
    font-size: 1rem;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    line-height: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--gold-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background-color: rgba(197, 159, 81, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-image: url('assets/bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 5rem 180px 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-crown {
    width: 60px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-title .highlight {
    color: var(--gold);
    font-style: italic;
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    margin-top: 1rem;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Features Bar */
.features-container {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:last-child {
    border-right: none;
}

.feature-icon {
    font-size: 2rem;
    color: var(--gold);
}

.feature-text h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.float-btn.whatsapp {
    background-color: #25D366;
}

.float-btn.email {
    background-color: var(--gold);
}

/* Stats Bar */
.stats-bar {
    background-color: #111315;
    padding: 4rem 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: inline-block;
    font-size: 3.5rem;
    color: var(--gold);
    font-weight: 400;
    margin-bottom: 0.2rem;
}

.stat-plus {
    display: inline-block;
    font-size: 3.5rem;
    color: var(--gold);
    font-weight: 400;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Coach Panel */
.coach-panel {
    background-color: var(--light);
    color: var(--white);
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
}

.coach-content {
    max-width: 1100px;
    display: flex;
    align-items: center;
    gap: 5rem;
    background: linear-gradient(145deg, #181b1e 0%, #111315 100%);
    padding: 4rem 5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 159, 81, 0.15);
}

.coach-photo {
    flex-shrink: 0;
}

.coach-photo img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--gold);
    box-shadow: 0 10px 30px rgba(197, 159, 81, 0.25);
}

.coach-details h3 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.coach-role {
    font-size: 1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.coach-bio {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.coach-stats {
    display: flex;
    gap: 3rem;
}

.cs-item {
    display: flex;
    flex-direction: column;
}

.cs-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Playfair Display', serif;
}

.cs-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Pricing Panel */
.pricing-panel {
    padding: 6rem 2rem;
    background-color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
}

.pricing-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 50px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--gold);
    color: var(--dark);
}

.pricing-carousel {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
}

.pricing-card {
    background: #181b1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem 2rem;
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(197, 159, 81, 0.3);
}

.pricing-card.featured {
    border-color: var(--gold);
    background: linear-gradient(145deg, #1f1b14 0%, #181b1e 100%);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    background: var(--gold);
    color: var(--dark);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h4 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.per-class {
    font-size: 1rem;
    color: var(--gray);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

.pricing-card p {
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.pricing-card .btn-primary {
    width: 100%;
}

/* Enrollment Form Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-top: 5px solid var(--gold);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--dark);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.form-header p {
    color: #555;
    font-size: 1.1rem;
}

.enroll-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select {
    padding: 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 159, 81, 0.2);
    background-color: #fff;
}

.form-submit {
    margin-top: 1.5rem;
    padding: 1.2rem;
    font-size: 1.1rem;
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(17, 19, 21, 0.92), rgba(17, 19, 21, 0.98)), url('assets/chess_bg.jpg') center/cover;
    padding: 6rem 2rem 3rem;
    text-align: center;
    color: var(--white);
    border-bottom: 2px solid var(--gold);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.header-content p {
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 2rem;
    background-color: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.gi-image {
    width: 100%;
    height: 250px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gi-image::after {
    content: "Image Placeholder";
    color: #aaa;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.gi-content {
    padding: 2rem;
    text-align: center;
}

.gi-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.gi-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background-color: #0b0c0e;
    color: var(--white);
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 2px solid var(--gold);
    font-family: 'Outfit', sans-serif;
    margin-top: auto;
}

.site-footer p {
    margin: 0;
    font-size: 0.95rem;
    color: #888;
    letter-spacing: 0.5px;
}

/* Admin Login Page */
.admin-login-body {
    background: linear-gradient(rgba(17, 19, 21, 0.9), rgba(17, 19, 21, 0.95)), url('assets/chess_bg.jpg') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-top: 5px solid var(--gold);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-me {
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forgot-password {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--dark);
}

.login-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.back-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--dark);
}

/* Page Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.chess-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.chess-loader svg {
    width: 60px;
    height: 60px;
    color: var(--gold);
    animation: bounce 1s infinite alternate;
}

.loader-text {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Shared layouts: allow content to shrink rather than clipping it. */
html { scroll-padding-top: 6rem; }
body { overflow-wrap: break-word; }
img, video { max-width: 100%; }
input, select, textarea { min-width: 0; max-width: 100%; font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { font-family: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}
.btn-primary, .btn-outline, .tab-btn { min-height: 44px; }
.btn-primary, .btn-outline { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.form-group, .hero-content, .feature-text, .coach-details, .header-content { min-width: 0; }
.form-row > .form-group { flex: 1 1 0; min-width: 0; }
.navbar { gap: 1.5rem; padding-inline: clamp(1rem, 3vw, 4rem); }
.nav-brand { flex-shrink: 0; }
.nav-brand > svg { flex-shrink: 0; }
.nav-links { align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-links li a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-links li a:hover, .nav-links li a.active { padding-bottom: 0; border-bottom: 0; }
.mobile-only, .menu-toggle { display: none; }
.menu-toggle { width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; flex-shrink: 0; justify-content: center; align-items: center; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle .bar { width: 24px; height: 2px; background: var(--dark); transition: transform .2s, opacity .2s; }
.menu-toggle.is-active .bar:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:last-child { transform: translateY(-7px) rotate(-45deg); }
.hero { min-height: 100svh; padding: 8rem clamp(1rem, 5vw, 5rem) 3rem; gap: 3rem; }
.hero-title { font-size: clamp(2.25rem, 5.5vw, 4.5rem); }
.hero-actions { flex-wrap: wrap; }
.features-container { position: relative; inset: auto; transform: none; width: 100%; margin: 0 auto; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 1.5rem; }
.feature-icon { flex-shrink: 0; }
.scroll-indicator { display: none; }
.coaches-section { padding: 6rem 2rem; background: var(--light); color: var(--white); }
.coach-carousel { display: flex; gap: 2rem; padding: 1rem .25rem 1.5rem; max-width: 1200px; margin: 0 auto; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.coach-slide { flex: 0 0 350px; max-width: 100%; min-width: 0; padding: 3rem 2.5rem; border-radius: 20px; background: linear-gradient(145deg, #181b1e, #111315); border: 1px solid rgba(197, 159, 81, .15); display: flex; flex-direction: column; text-align: center; scroll-snap-align: start; }
.pricing-tabs { flex-wrap: wrap; justify-content: center; max-width: 100%; border-radius: 24px; margin-bottom: 2.5rem; }
.tab-btn { flex: 1 1 auto; padding: .8rem 1.25rem; }
.pricing-carousel { flex-wrap: wrap; gap: 2rem; padding-top: 1rem; }
.pricing-card { width: auto; flex: 1 1 280px; max-width: 380px; min-width: 0; }
.pricing-card.featured, .pricing-card.featured:hover { transform: none; }
.gallery-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.modal-content { max-height: 90dvh; }
.admin-login-body { height: auto; min-height: 100svh; padding-block: 1rem; }
.site-footer { padding-bottom: max(2.5rem, env(safe-area-inset-bottom)); }
.floating-buttons { right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); }
body .about-text, body .about-image, body .coach-card-content { min-width: 0; }
body .coach-card-stats { flex-wrap: wrap; }
body .summary-row, body .summary-total { gap: 1rem; }
body .summary-row > span, body .summary-total > span { min-width: 0; overflow-wrap: anywhere; }
body .summary-row > span:last-child, body .summary-total > span:last-child { text-align: right; }
body .error-code { font-size: clamp(5rem, 20vw, 10rem); }
body .error-container { padding-inline: clamp(1rem, 4vw, 2rem); }
@media (hover: hover) and (pointer: fine) {
    .coach-slide { transition: transform .2s ease; }
    .coach-slide:hover { transform: translateY(-6px); border-color: var(--gold); }
}

@media (max-width: 1100px) {
    .navbar { padding: .75rem 1.5rem; }
    .desktop-only { display: none !important; }
    .mobile-only { display: block; }
    .menu-toggle { display: flex; }
    .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .25rem; padding: 1rem 1.5rem 1.5rem; background: var(--light); border-top: 1px solid rgba(0,0,0,.1); box-shadow: 0 12px 20px rgba(0,0,0,.15); max-height: calc(100dvh - 68px); overflow-y: auto; visibility: hidden; pointer-events: none; }
    .nav-links.active { visibility: visible; pointer-events: auto; }
    .nav-links li a { width: 100%; justify-content: center; padding: .65rem; }
    .nav-links .btn-primary { margin-top: .5rem; }
    .features-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
    .feature-item { border: 0; padding: 0; }
    .coach-content { gap: 2rem; padding: 2.5rem; width: 100%; }
    .coach-photo img { width: 220px; height: 220px; }
    .coach-stats { flex-wrap: wrap; gap: 1.5rem; }
    body .coach-card-img { flex-basis: 220px; }
    body .coach-card-content { padding: 1.5rem; }
}

@media (max-width: 767px) {
    .hero { text-align: center; padding-top: 7rem; gap: 2rem; }
    .hero-content { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-description br { display: none; }
    .stats-bar { padding: 2.5rem 1rem; gap: 2rem; }
    .stat-number, .stat-plus { font-size: 2.75rem; }
    .coaches-section, .coach-panel, .pricing-panel, .gallery-section { padding: 3rem 1rem; }
    .section-header h2 { font-size: clamp(1.9rem, 6vw, 2.5rem); }
    .coach-content { flex-direction: column; text-align: center; padding: 1.5rem; }
    .coach-stats { justify-content: center; }
    .coach-details h3 { font-size: 2rem; }
    .coach-slide { flex-basis: min(300px, 100%); padding: 2rem 1.25rem; }
    .coach-carousel { gap: 1rem; }
    .pricing-card { padding: 2.5rem 1.5rem 1.5rem; }
    .pricing-card h3 { font-size: 2.5rem; }
    .form-row { flex-direction: column; gap: 1rem; }
    .modal-content { padding: 2.5rem 1.25rem 1.5rem; width: calc(100% - 2rem); }
    .page-header { padding: 7rem 1rem 2.5rem; }
    .header-content h1 { font-size: clamp(2rem, 7vw, 3rem); }
    .header-content p { font-size: 1.05rem; }
    body .about-section { padding: 3rem 1rem; gap: 2.5rem; }
    body .about-row { gap: 1.5rem; }
    body .about-text h2 { font-size: 2rem; }
    body .coaches-list { padding: 2rem 1rem; gap: 1.5rem; }
    body .coach-card-img { flex-basis: auto; padding: 1.5rem 1rem .5rem; }
    body .coach-card-title { font-size: 1.8rem; }
    body .coach-card-stats { gap: 1rem; }
    body .enroll-container, body .payment-container { width: 100%; margin: 6rem auto 2rem; padding: 1.5rem; }
    body .success-container, body .failed-container, body .timeout-container { width: calc(100% - 2rem); margin: 6rem auto 2rem; padding: 2rem 1.25rem; }
    body .payment-summary { padding: 1rem; }
    .login-wrapper { padding: 1rem; }
    .login-card { padding: 2rem 1.25rem; }
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
    .form-header h2 { font-size: 2rem; }
    .float-btn { width: 44px; height: 44px; }
    .floating-buttons { gap: .75rem; }
    .site-footer { padding-bottom: 8rem; }
}

@media (max-width: 480px) {
    .navbar { padding-inline: 1rem; gap: .5rem; }
    .nav-brand .brand-title { font-size: 1rem; }
    .nav-brand .brand-subtitle { font-size: .8rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions a { width: 100%; }
    .features-container { grid-template-columns: minmax(0, 1fr); padding: 1.25rem; text-align: left; }
    .pricing-tabs { width: 100%; gap: .25rem; border-radius: 16px; }
    .tab-btn { padding: .8rem .65rem; font-size: .9rem; }
    .pricing-card { flex-basis: 100%; max-width: none; }
    .gallery-grid { gap: 1.5rem; }
    .gi-content { padding: 1.5rem; }
    .form-options { flex-wrap: wrap; gap: 1rem; }
    body .summary-row { flex-direction: column; gap: .25rem; }
    body .summary-row > span:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
