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

:root {
    --primary: #0073F7;
    --primary-dark: #0A43C3;
    --primary-light: #EBF5FF;
    --accent: #00D4FF;
    --dark: #0F172A;
    --text: #334155;
    --text-muted: #64748B;
    --light: #F8FAFC;
    --border: #E2E8F0;
    --white: #FFFFFF;
    
    --font: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    --btn-header-bg: #FFFFFF;
    --btn-header-text: #0073F7;
    --btn-header-hover-bg: #00d6f8;
    --btn-header-hover-text: #FFFFFF;

    --btn-hero-bg: transparent;
    --btn-hero-text: #FFFFFF;
    --btn-hero-hover-bg: #FFFFFF;
    --btn-hero-hover-text: #0073F7;

    --btn-form-bg: #00d6f8;
    --btn-form-text: #0b2963;
    --btn-form-hover-bg: #FFFFFF;
    --btn-form-hover-text: #0b2963;

    --hero-title-size: 72px;
    --hero-title-color: #FFFFFF;
    --hero-title-weight: 800;
    
    --section-title-size: 40px;
    --section-title-color: #0A43C3;
    --section-title-weight: 700;
    
    --body-text-size: 18px;
    --body-text-color: #334155;

    --btn-saiba-mais-color: #0073F7;
    --btn-saiba-mais-size: 18px;
    --btn-saiba-mais-weight: 700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--white);
    color: var(--body-text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* --- REUSABLE UTILITIES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section-title {
    font-size: var(--section-title-size);
    font-weight: var(--section-title-weight);
    color: var(--section-title-color);
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--btn-bg) !important;
    color: var(--btn-text) !important;
}

.btn-primary:hover {
    background-color: var(--btn-hover-bg) !important;
    color: var(--btn-hover-text) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-dark);
}

.btn-white:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-seja-fluir {
    background-color: var(--white) !important;
    color: var(--primary) !important;
    transition: all 0.3s ease;
}

.btn-seja-fluir:hover {
    background-color: #00d6f8 !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

#btn-header-text {
    background-color: var(--btn-header-bg) !important;
    color: var(--btn-header-text) !important;
}
#btn-header-text:hover {
    background-color: var(--btn-header-hover-bg) !important;
    color: var(--btn-header-hover-text) !important;
}

#btn-hero {
    background-color: var(--btn-hero-bg) !important;
    color: var(--btn-hero-text) !important;
    border-color: var(--btn-hero-text) !important;
}
#btn-hero:hover {
    background-color: var(--btn-hero-hover-bg) !important;
    color: var(--btn-hero-hover-text) !important;
    border-color: var(--btn-hero-hover-bg) !important;
}

#btn-form-text {
    background-color: var(--btn-form-bg) !important;
    color: var(--btn-form-text) !important;
}
#btn-form-text:hover {
    background-color: var(--btn-form-hover-bg) !important;
    color: var(--btn-form-hover-text) !important;
}

/* --- HEADER / NAVBAR --- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 110;
    padding: 8px;
}

.hamburger-bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 300;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 1.05rem;
    opacity: 0.9;
}

.nav-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.hero {
    background: var(--hero-bg, url('assets/hero_woman.jpg')) center/cover no-repeat;
    min-height: 90vh;
    padding-top: 160px;
    padding-bottom: 120px;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(60% 50px at 50% 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    gap: 48px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: var(--hero-title-size);
    font-weight: var(--hero-title-weight);
    color: var(--hero-title-color);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-image-wrapper {
    display: none !important;
}

.hero-image {
    width: 100%;
    max-width: 420px;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    border: 4px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* --- RUMO A CONQUISTA (INTRO) --- */
.intro {
    background-color: var(--white);
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 32px;
}

.intro-text p {
    font-size: var(--body-text-size);
    color: var(--body-text-color);
    margin-bottom: 24px;
    line-height: 1.8;
}

#intro-footer {
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 24px;
}

#btn-saiba-mais {
    color: var(--btn-saiba-mais-color) !important;
    font-size: var(--btn-saiba-mais-size) !important;
    font-weight: var(--btn-saiba-mais-weight) !important;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    margin-top: 16px;
    transition: var(--transition);
}

#btn-saiba-mais:hover {
    opacity: 0.8;
}

/* --- MODALIDADES --- */
.modalidades {
    background-color: #F1F5F9;
}

.modalidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
    justify-content: center;
    gap: 24px;
}

.modalidade-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.modalidade-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.modalidade-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.modalidade-card:hover .modalidade-img {
    transform: scale(1.1);
}

.modalidade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 115, 247, 0.9) 0%, rgba(0, 115, 247, 0.7) 60%, rgba(0, 115, 247, 0) 100%);
    padding: 30px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 50%;
    transition: var(--transition);
}

.modalidade-card:hover .modalidade-overlay {
    background: linear-gradient(to top, rgba(10, 67, 195, 0.95) 0%, rgba(10, 67, 195, 0.8) 70%, rgba(10, 67, 195, 0) 100%);
}

.modalidade-title {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- ESPAÇO GALLERY --- */
.espaco {
    background-color: var(--white);
}

.espaco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.espaco-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    background-color: var(--light);
}

.espaco-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.espaco-card:hover .espaco-img {
    transform: scale(1.08);
}

/* --- VIP FORM SECTION --- */
.vip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.vip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(60% 50px at 50% 0%);
}

.vip-container {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    padding-top: 40px;
}

.vip-title {
    font-size: var(--section-title-size);
    font-weight: var(--section-title-weight);
    line-height: 1.3;
    margin-bottom: 16px;
}

.vip-title span {
    color: var(--accent);
}

.vip-subtitle {
    font-size: var(--body-text-size);
    opacity: 0.9;
    margin-bottom: 40px;
}

.vip-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--white);
    border: 2px solid transparent;
    border-radius: 16px;
    font-family: var(--font);
    font-size: var(--body-text-size);
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23334155' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    cursor: pointer;
}

.vip-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    background-color: #00d6f8;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.vip-btn:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.vip-info-box {
    margin-top: 32px;
    font-size: calc(var(--body-text-size) * 0.95);
    opacity: 0.95;
    text-align: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.vip-info-box a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
}

/* --- FOOTER --- */
.footer {
    background-color: #0A3297;
    color: var(--white);
    padding: 64px 0 32px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-desc {
    opacity: 0.7;
    max-width: 320px;
    margin-bottom: 24px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
    opacity: 0.6;
}

/* --- ADMIN PANEL SPECIFIC STYLES --- */
.admin-body {
    background-color: #F8FAFC;
    color: #1E293B;
    font-family: var(--font);
}

.admin-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.admin-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-logout {
    background-color: #F1F5F9;
    color: #64748B;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-logout:hover {
    background-color: #E2E8F0;
    color: #0F172A;
}

.admin-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 73px);
}

.admin-sidebar {
    background-color: var(--white);
    border-right: 1px solid var(--border);
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-link:hover {
    background-color: #F1F5F9;
    color: var(--primary);
}

.sidebar-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.admin-content {
    padding: 40px;
    overflow-y: auto;
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.admin-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-page-title {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

/* Filters & Tables */
.table-filter-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.filter-select {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
}

.table-wrapper {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.admin-table th {
    background-color: #F8FAFC;
    padding: 16px 24px;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    color: #334155;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background-color: #F8FAFC;
}

/* Badge styles */
.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending { background-color: #FEF3C7; color: #D97706; }
.badge-contact { background-color: #E0F2FE; color: #0284C7; }
.badge-enrolled { background-color: #D1FAE5; color: #059669; }
.badge-nointerest { background-color: #F1F5F9; color: #64748B; }

.status-select {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--font);
    font-weight: 600;
    border: 1px solid var(--border);
    background-color: var(--white);
    cursor: pointer;
    outline: none;
}

.status-select:focus {
    border-color: var(--primary);
}

/* Config forms */
.admin-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.admin-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    color: var(--primary);
}

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

.admin-form-group {
    margin-bottom: 20px;
}

.admin-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
}

.admin-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.admin-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 247, 0.15);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.checkbox-control {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn-admin-save {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-admin-save:hover {
    background-color: var(--primary-dark);
}

/* Modality Card for Admin Config */
.admin-modalities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.admin-modality-item {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition);
}

.admin-modality-item:hover {
    border-color: var(--primary);
}

.admin-modality-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-modality-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}

/* LOGIN WINDOW OVERLAY */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.95) 0%, rgba(10, 67, 195, 0.98) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.login-card {
    background: var(--white);
    border-radius: 30px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.login-error {
    background-color: #FEE2E2;
    color: #DC2626;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
    text-align: left;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #0F172A;
    color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success-icon {
    width: 20px;
    height: 20px;
    fill: #22C55E;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: calc(var(--hero-title-size) * 0.75) !important;
    }
    .vip-title {
        font-size: calc(var(--section-title-size) * 0.85) !important;
    }
    .espaco-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }
    .header {
        position: relative;
        background-color: #0A43C3;
        padding: 16px 0;
    }
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        width: 100%;
    }
    .hamburger-btn {
        display: flex;
    }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 67, 195, 0.98);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 24px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        z-index: 100;
    }
    .nav.active {
        display: flex;
    }
    .hamburger-btn.active .hamburger-bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger-btn.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.active .hamburger-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .hero {
        padding-top: 40px;
        min-height: auto;
        padding-bottom: 80px;
        background: linear-gradient(135deg, #0A43C3 0%, #052263 100%) !important;
    }
    .hero-image-wrapper {
        display: none !important;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .hero-title {
        font-size: calc(var(--hero-title-size) * 0.55) !important;
    }
    .vip-title {
        font-size: calc(var(--section-title-size) * 0.75) !important;
    }
    .hero-subtitle {
        margin: 0 auto 32px;
    }
    .hero-image {
        max-width: 320px;
    }
    .modalidades-grid, .espaco-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px 16px 24px !important;
        gap: 16px !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        scrollbar-width: none;
    }
    .modalidades-grid::-webkit-scrollbar, .espaco-grid::-webkit-scrollbar {
        display: none;
    }
    .modalidade-card, .espaco-card {
        flex: 0 0 280px !important;
        scroll-snap-align: start !important;
        margin-bottom: 0 !important;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        overflow-x: auto;
        padding: 16px;
        white-space: nowrap;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .admin-modalities-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .espaco-grid {
        grid-template-columns: 1fr;
    }
    .vip-form {
        padding: 24px 16px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .table-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* --- PAGE LOADER --- */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
