/* ============================================
   PREMIUM TENNIS CLUB DESIGN
   Apple Minimalism + Rolex Luxury
   ============================================ */

/* CSS Variables - Premium Palette */
:root {
    /* Основні кольори - Світла тема */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-dark: #000000;
    --bg-overlay: rgba(0, 0, 0, 0.4);
    
    /* Акценти Rolex */
    --gold: #D4AF37;
    --gold-light: #E5C158;
    --gold-dark: #B8941F;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #E5C158 50%, #D4AF37 100%);
    
    /* Текст - Світла тема */
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --text-light: #FFFFFF;
    --text-gold: #D4AF37;
    
    /* Тенісний зелений */
    --tennis-green: #2D5016;
    --tennis-green-light: #4A7C2A;
    
    /* Градієнти та ефекти */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    
    /* Бордери */
    --border-light: rgba(0, 0, 0, 0.08);
    --border-gold: rgba(212, 175, 55, 0.3);
    
    /* Переходи */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Темна тема */
[data-theme="dark"] {
    /* Основні кольори - Темна тема */
    --bg-primary: #1C1C1E;
    --bg-secondary: #2C2C2E;
    --bg-dark: #FFFFFF;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    
    /* Текст - Темна тема */
    --text-primary: #FFFFFF;
    --text-secondary: #98989D;
    --text-light: #000000;
    --text-gold: #E5C158;
    
    /* Градієнти та ефекти - Темна тема */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.4);
    
    /* Бордери - Темна тема */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(212, 175, 55, 0.4);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 17px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ============================================
   HEADER - Premium Minimalist
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 0;
    transition: all var(--transition-base);
}

[data-theme="dark"] .header {
    background: rgba(28, 28, 30, 0.8);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.page-home .header-content {
    height: 74px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 50px;
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.8;
}

.logo-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-address {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    line-height: 1.2;
    font-weight: 400;
}

/* Navigation */
.nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-gold);
}

.nav-link.active {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 45px;
}

/* Контейнер для вертикального розташування контактів і теми */
.header-icons-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.auth-button {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    letter-spacing: -0.01em;
}

.login-button {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.login-button:hover {
    background: var(--bg-secondary);
    border-color: var(--border-gold);
}

.login-button-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-button-text {
    font-size: 14px;
}

.tennis-ball-icon {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

/* Анімація стрибка м'ячика на кнопці Вхід (хедер) */
@keyframes tennisBallJump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.login-button:hover .tennis-ball-icon {
    animation: tennisBallJump 0.6s ease-in-out infinite;
}

.register-button {
    background: var(--bg-dark);
    color: var(--text-light);
}

.register-button:hover {
    background: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.user-account {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.account-button {
    white-space: nowrap;
    max-width: 200px;
}

.account-name {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.account-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    font-size: 14px;
}

.account-button:hover {
    background: var(--bg-secondary);
    border-color: var(--border-gold);
}

.account-name {
    font-weight: 500;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 40px;
    margin-top: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    display: none;
}

.account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.account-dropdown-item:hover {
    background: var(--bg-secondary);
}

.account-dropdown-item--active {
    color: var(--text-gold);
    font-weight: 500;
    background: var(--bg-secondary);
}

.account-dropdown-item--active svg {
    color: var(--text-gold);
}

/* Header Contacts */
.header-contacts-compact {
    display: flex;
    align-items: center;
}

.contact-dropdown {
    position: relative;
}

.contact-toggle {
    background: none;
    border: 1px solid var(--border-light);
    padding: 8px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.contact-toggle:hover {
    background: var(--bg-secondary);
}

.contact-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.contact-dropdown:hover .contact-dropdown-menu,
.contact-dropdown.is-open .contact-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background var(--transition-fast);
}

.contact-dropdown-item:hover {
    background: var(--bg-secondary);
}

.contact-dropdown-item svg {
    flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--border-gold);
    transform: scale(1.05);
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: all var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

@media (max-width: 1440px) {
    .logo-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        padding: 0 20px;
    }
    
    .header-right {
        margin-left: 20px;
        gap: 16px;
    }
    
    .auth-buttons {
        gap: 16px;
    }
}

/* ============================================
   HERO SECTION - Minimalist Elegance
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    
    /* Image optimization for sharpness */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1.001);
    -webkit-transform: translateZ(0) scale(1.001);
    filter: contrast(1.05) brightness(1.02) sharpen(1);
    -webkit-filter: contrast(1.05) brightness(1.02);
    will-change: transform;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 0;
    transition: background var(--transition-base);
}

[data-theme="dark"] .hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 48px 40px 56px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

[data-theme="dark"] .hero-content {
    background: rgba(28, 28, 30, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.2);
}

.hero-address {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    font-weight: 500;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.8s ease 0.1s both;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4), 0 2px 16px rgba(0, 0, 0, 0.25);
}

.hero-bio {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(17px, 2.5vw, 21px);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 48px;
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: 0.01em;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35), 0 2px 12px rgba(0, 0, 0, 0.2);
}

.cta-button {
    background: rgba(255, 255, 255, 0.98);
    color: #1D1D1F;
    border: none;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.8s ease 0.3s both;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.cta-button:hover {
    background: #ffffff;
    color: #1D1D1F;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.cta-button:active {
    transform: translateY(0);
}

/* Tennis Animation - Minimalist (приховано для чистого вигляду) */
.tennis-animation {
    display: none; /* Прибираємо анімацію для мінімалістичного вигляду */
}

.tennis-ball {
    display: none; /* Прибираємо анімацію для чистого вигляду */
}

/* ============================================
   SCHEDULE SECTION - Clean Calendar
   ============================================ */
.schedule-section {
    padding: 120px 0;
    background: 
        /* Тенісний корт патерн */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.8) 48px,
            rgba(255, 255, 255, 0.8) 50px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.8) 48px,
            rgba(255, 255, 255, 0.8) 50px
        ),
        /* Основний фон */
        linear-gradient(135deg, #2D5016 0%, #4A7C2A 50%, #2D5016 100%);
    background-size: 50px 50px, 50px 50px, 100% 100%;
    position: relative;
}

.schedule-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: 0;
    transition: background var(--transition-base);
}

[data-theme="dark"] .schedule-section::before {
    background: rgba(45, 48, 52, 0.72);
}

[data-theme="dark"] .schedule-section {
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.1) 48px,
            rgba(255, 255, 255, 0.1) 50px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.1) 48px,
            rgba(255, 255, 255, 0.1) 50px
        ),
        linear-gradient(135deg, #1a3d0f 0%, #2d5016 50%, #1a3d0f 100%);
    background-size: 50px 50px, 50px 50px, 100% 100%;
}

.schedule-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.season-text {
    text-align: center;
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.month-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.month-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.month-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
}

.month-card:hover::before {
    transform: scaleX(1);
}

.month-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Month Status Styles */
.month-card.past {
    opacity: 0.6;
    cursor: pointer;
    filter: grayscale(0.4);
}

.month-card.past:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
    opacity: 0.7;
}

.month-card.past::before {
    display: none;
}

.month-card.current {
    border: 2px solid var(--accent-gold);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(212, 175, 55, 0.05) 100%);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.month-card.current::before {
    transform: scaleX(1);
}

.month-card.current .month-name {
    color: var(--accent-gold);
    font-weight: 600;
}

.month-card.upcoming {
    position: relative;
}

.month-card.upcoming::after {
    content: 'Скоро';
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
    }
}

/* Month Progress Bar */
.month-progress-container {
    margin-top: 16px;
    width: 100%;
}

.month-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.month-progress-percentage {
    font-weight: 600;
    color: var(--accent-gold);
}

.month-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.month-progress-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.month-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Progress fill colors based on occupancy */
.month-progress-fill[data-occupancy="high"] {
    background: linear-gradient(90deg, #FF6B6B 0%, #FF8E53 100%);
}

.month-progress-fill[data-occupancy="medium"] {
    background: linear-gradient(90deg, #FFA500 0%, #FFB84D 100%);
}

.month-progress-fill[data-occupancy="low"] {
    background: var(--gold-gradient);
}

/* Day Number */
.day-number {
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}

/* Day Progress Bar (in calendar modal) */
.day-progress-bar {
    width: 80%;
    height: 4px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}

.day-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.day-progress-fill[data-occupancy="high"] {
    background: #FF6B6B;
}

.day-progress-fill[data-occupancy="medium"] {
    background: #FFA500;
}

.day-progress-fill[data-occupancy="low"] {
    background: #4CAF50;
}

/* ============================================
   TELEGRAM INPUT FIELD
   ============================================ */
.telegram-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.telegram-prefix {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
    font-size: 15px;
}

.telegram-input-wrapper input {
    padding-left: 32px !important;
}

.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
}

/* ============================================
   MODALS - Premium Design
   ============================================ */
.calendar-modal,
.day-schedule-modal,
.booking-form-modal,
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.calendar-modal.active,
.day-schedule-modal.active,
.booking-form-modal.active,
.auth-modal.active,
.calendar-modal[style*="flex"],
.day-schedule-modal[style*="flex"],
.booking-form-modal[style*="flex"],
.auth-modal[style*="flex"] {
    display: flex;
}

.modal-content,
.schedule-modal-content,
.booking-modal-content,
.auth-modal-content {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header,
.schedule-modal-header,
.booking-modal-header,
.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-title,
.schedule-modal-title,
.booking-modal-title,
.auth-modal-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.modal-close,
.schedule-modal-close,
.booking-modal-close,
.auth-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
    font-family: inherit;
    padding: 0;
    line-height: 1;
}

.modal-close:hover,
.schedule-modal-close:hover,
.booking-modal-close:hover,
.auth-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day-header {
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.day-card {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
}

.day-card:hover:not(.disabled):not(.empty) {
    background: var(--bg-secondary);
    border-color: var(--border-gold);
    transform: scale(1.05);
}

.day-card.empty {
    border: none;
    cursor: default;
}

/* Поточний день - жовтий (НЕ застосовується до disabled) */
.day-card.today:not(.disabled) {
    background: var(--gold);
    color: var(--text-light);
    border-color: var(--gold);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Минулі дні - сірі, напівпрозорі (НАЙВИЩИЙ ПРІОРИТЕТ) */
.day-card.disabled,
.day-card.disabled.today,
.day-card.disabled.has-bookings {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
    border-color: transparent !important;
    font-weight: 400 !important;
}

.day-card.disabled:hover {
    transform: none !important;
}

.day-card.today:not(.disabled):hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.day-card.today:not(.disabled) .day-progress-bar {
    background: rgba(255, 255, 255, 0.3);
}

.day-card.today:not(.disabled) .day-progress-fill {
    background: rgba(255, 255, 255, 0.8);
}

/* Дні з бронюваннями (але не поточний день) */
.day-card.has-bookings:not(.today):not(.disabled) {
    background: var(--bg-secondary);
    border-color: var(--gold);
}

/* Поточний день з бронюваннями - залишається жовтим */
.day-card.today:not(.disabled).has-bookings {
    background: var(--gold);
    color: var(--text-light);
    border-color: var(--gold);
}

.day-card.today:not(.disabled).has-bookings .day-progress-fill {
    opacity: 1;
}

/* Time Slots */
.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.time-slot {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.time-slot:hover:not(.booked) {
    background: var(--bg-secondary);
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.time-slot.booked {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-secondary);
}

.time-slot.past-date {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--bg-secondary);
    filter: grayscale(0.8);
}

.time-slot.selected {
    background: var(--bg-dark);
    color: var(--text-light);
    border-color: var(--bg-dark);
}

/* Моє бронювання */
.time-slot.my-booking {
    position: relative;
    border-color: var(--border-gold);
    background: rgba(212, 175, 55, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 30px;
    cursor: pointer;
}

.time-slot.my-booking:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.my-booking-badge {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
    color: var(--border-gold);
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.slot-time {
    font-size: 13px;
    font-weight: 500;
}

.time-slot.my-booking.selected {
    background: rgba(229, 62, 62, 0.1);
    border-color: #e53e3e;
    color: #e53e3e;
}

.time-slot.my-booking.selected .my-booking-badge {
    color: #e53e3e;
}

/* Кнопка в режимі скасування */
.book-selected-button.cancel-mode {
    background: #e53e3e;
    color: #fff;
}

.book-selected-button.cancel-mode:hover:not(:disabled) {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Кнопка "Назад" у модалі скасування */
.book-selected-button.cancel-back-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.book-selected-button.cancel-back-btn:hover:not(:disabled) {
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Інфо у модалі підтвердження */
.cancel-confirm-info {
    background: rgba(229, 62, 62, 0.08);
    border: 1px solid rgba(229, 62, 62, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
}

.cancel-confirm-info p {
    margin: 0 0 4px;
}

.cancel-confirm-info p:last-child {
    margin: 0;
}

.book-selected-button {
    width: 100%;
    padding: 16px;
    background: var(--bg-dark);
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
    letter-spacing: -0.01em;
}

.book-selected-button:hover:not(:disabled) {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.book-selected-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 17px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    background: var(--bg-primary);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.cancel-button {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.cancel-button:hover {
    background: var(--bg-secondary);
    border-color: var(--border-gold);
}

.submit-booking-button {
    flex: 1;
    padding: 16px;
    background: var(--bg-dark);
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
}

.submit-booking-button:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   LEAGUE SECTION - Premium Cards
   ============================================ */
.league-section {
    padding: 120px 0;
    background: 
        url('https://images.unsplash.com/photo-1551698618-1dfe5d97d256?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover,
        var(--bg-primary);
    position: relative;
}

.league-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 0;
    transition: background var(--transition-base);
}

[data-theme="dark"] .league-section::before {
    background: rgba(28, 28, 30, 0.95);
}

.league-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
    z-index: 0;
}

.league-content {
    position: relative;
    z-index: 1;
}

.league-slogan {
    font-family: 'Cormorant Garamond', Georgia, serif;
    text-align: center;
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-style: italic;
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.league-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.league-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.league-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
}

.league-card:hover::before {
    transform: scaleX(1);
}

.league-number {
    font-size: 64px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.league-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.league-strength-indicator {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 32px;
}

.strength-bar {
    width: 32px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.strength-bar.empty {
    background: var(--border-light);
}

.league-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.league-button {
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.league-button.join-button {
    background: var(--bg-dark);
    color: var(--text-light);
}

.league-button.join-button:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.league-button.go-button {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.league-button.go-button:hover {
    background: var(--bg-secondary);
    border-color: var(--border-gold);
}

/* Rules Block */
.rules-block {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.rules-block-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.rules-block-description {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
}

.rules-button {
    padding: 16px 40px;
    background: var(--bg-dark);
    color: var(--text-light);
    border: none;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
    letter-spacing: -0.01em;
}

.rules-button:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Rules Modal */
.rules-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    z-index: 3000;
    overflow-y: auto;
    padding: 40px 20px;
}

.rules-modal.active,
.rules-modal[style*="flex"] {
    display: block;
}

.rules-modal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 60px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s ease;
}

.rules-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.rules-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.rules-modal-text {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 17px;
}

.rules-modal-text h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.rules-modal-text h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.rules-modal-text p,
.rules-modal-text ul {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.rules-modal-text ul {
    padding-left: 24px;
}

.rules-modal-text li {
    margin-bottom: 12px;
}

.rules-modal-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   ABOUT SECTION - Tennis Court Background
   ============================================ */
.about-section {
    padding: 120px 0;
    background: 
        /* Тенісний корт патерн */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.9) 48px,
            rgba(255, 255, 255, 0.9) 50px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.9) 48px,
            rgba(255, 255, 255, 0.9) 50px
        ),
        /* Основний фон тенісного корту */
        linear-gradient(135deg, #2D5016 0%, #4A7C2A 50%, #2D5016 100%),
        url('https://images.unsplash.com/photo-1622163642992-9c0b8c0f8c5d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    background-size: 50px 50px, 50px 50px, 100% 100%, cover;
    position: relative;
}

[data-theme="dark"] .about-section {
    background: 
        /* Тенісний корт патерн для темної теми */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.15) 48px,
            rgba(255, 255, 255, 0.15) 50px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.15) 48px,
            rgba(255, 255, 255, 0.15) 50px
        ),
        /* Основний фон тенісного корту для темної теми */
        linear-gradient(135deg, #1a3d0f 0%, #2d5016 50%, #1a3d0f 100%),
        url('https://images.unsplash.com/photo-1622163642992-9c0b8c0f8c5d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    background-size: 50px 50px, 50px 50px, 100% 100%, cover;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 0.75);
    z-index: 0;
    transition: background var(--transition-base);
}

[data-theme="dark"] .about-section::before {
    background: rgba(28, 28, 30, 0.85);
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.about-text {
    color: var(--text-primary);
    line-height: 1.8;
}

.about-paragraph {
    margin-bottom: 24px;
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 400;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-section {
    padding: 120px 0;
    background: 
        /* Тенісна сітка патерн */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(212, 175, 55, 0.05) 10px,
            rgba(212, 175, 55, 0.05) 20px
        ),
        var(--bg-primary);
    position: relative;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 0;
    transition: background var(--transition-base);
}

[data-theme="dark"] .skills-section::before {
    background: rgba(28, 28, 30, 0.98);
}

[data-theme="dark"] .skills-section {
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(212, 175, 55, 0.1) 10px,
            rgba(212, 175, 55, 0.1) 20px
        ),
        var(--bg-primary);
}

.skills-section .container {
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.skill-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all var(--transition-base);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
}

.skill-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.skill-card p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* ============================================
   AUTH FORMS
   ============================================ */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 17px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all var(--transition-fast);
}

.auth-form input:focus {
    outline: none;
    background: var(--bg-primary);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.auth-submit-button {
    padding: 16px 32px;
    background: var(--bg-dark);
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 8px;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.auth-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-button-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-submit-button:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-submit-button:hover .tennis-ball-icon-submit {
    animation: tennisBallJump 0.6s ease-in-out infinite;
}

.tennis-ball-icon-submit {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.auth-form-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.auth-form-footer p {
    color: var(--text-secondary);
    font-size: 15px;
}

.auth-form-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.auth-form-footer a:hover {
    color: var(--gold-dark);
}

/* Google OAuth */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    color: var(--text-muted, #888);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, rgba(255,255,255,0.12));
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary, #fff);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 4px;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.btn-google img {
    flex-shrink: 0;
}

/* Validation */
.error-message {
    color: #D70015;
    font-size: 13px;
    margin-top: 6px;
    display: block;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity var(--transition-fast), max-height var(--transition-fast);
}

.error-message.show {
    opacity: 1;
    max-height: 50px;
}

.auth-form input.error {
    border-color: #D70015 !important;
    background: rgba(215, 0, 21, 0.05) !important;
}

.auth-form input.valid {
    border-color: #34C759 !important;
}

/* Password input з кнопкою показу пароля */
.password-input-wrapper {
    position: relative;
    display: block;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 46px !important;
    box-sizing: border-box;
}

.password-toggle-btn {
    position: absolute !important;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #999);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
    line-height: 0;
    z-index: 1;
}

.password-toggle-btn:hover {
    color: var(--accent, #D4AF37);
}

/* Заголовок з іконкою по центру (resetPasswordModal) */
.auth-modal-header--centered {
    justify-content: center;
    gap: 12px;
}

.auth-modal-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: var(--accent, #D4AF37);
    flex-shrink: 0;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .leagues-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content,
    .schedule-modal-content,
    .booking-modal-content,
    .auth-modal-content {
        padding: 32px 24px;
    }
    
    .rules-modal-content {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .calendar-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .month-card {
        padding: 24px 16px;
    }
    
    .month-card.upcoming::after {
        font-size: 9px;
        padding: 3px 8px;
        top: 8px;
        right: 8px;
    }
    
    .month-progress-label {
        font-size: 11px;
    }
    
    .month-progress-bar {
        height: 5px;
    }
    
    .month-name {
        font-size: 16px;
    }
    
    .time-slots-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   SUCCESS ANIMATION MODAL
   ============================================ */
.success-animation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.success-animation-modal.active {
    display: flex;
}

.success-animation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.tennis-racket-animation {
    width: 80px;
    height: 80px;
    animation: bounce 0.6s ease;
}

.checkmark-animation {
    width: 80px;
    height: 80px;
    animation: scaleIn 0.5s ease 0.3s both;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   LEAGUE PAGES - Сторінки ліг
   ============================================ */

/* League Hero Section */
.league-hero-section {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(45, 80, 22, 0.03) 100%),
                url('https://images.unsplash.com/photo-1551698618-1dfe5d97d256?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    position: relative;
    margin-top: 64px;
}

.league-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
    transition: background var(--transition-base);
}

[data-theme="dark"] .league-hero-section::before {
    background: rgba(28, 28, 30, 0.9);
}

.league-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.league-hero-number {
    font-size: 120px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 24px;
    letter-spacing: -0.05em;
    line-height: 1;
}

.league-hero-title {
    font-size: clamp(48px, 6vw, 64px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.league-hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

.league-strength-indicator-large {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.league-strength-indicator-large .strength-bar {
    width: 60px;
    height: 6px;
    background: var(--gold);
    border-radius: 3px;
    transition: all var(--transition-base);
}

.league-strength-indicator-large .strength-bar.empty {
    background: var(--border-light);
}

/* League Tournaments Section */
.league-tournaments-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
}

.tournaments-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tournaments-loading,
.tournaments-empty,
.tournaments-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.tournaments-error {
    color: var(--text-primary);
}

.tournaments-error p {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tournaments-loading {
    font-size: 18px;
    color: var(--text-secondary);
}

.tournaments-empty svg {
    margin-bottom: 24px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.tournaments-empty p {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tournaments-empty-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.tournament-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tournament-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.tournament-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
}

.tournament-card:hover::before {
    transform: scaleX(1);
}

.tournament-card.active::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, #34C759 0%, #30D158 100%);
}

.tournament-card.completed::before {
    transform: scaleX(1);
    background: var(--text-secondary);
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.tournament-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
    flex: 1;
}

.tournament-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tournament-status.active {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
}

.tournament-status.completed {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.tournament-status.upcoming {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.tournament-dates {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.tournament-date-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

.tournament-date-item svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.tournament-actions {
    margin-top: 24px;
}

.tournament-register-button {
    width: 100%;
    padding: 14px 24px;
    background: var(--bg-dark);
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
    letter-spacing: -0.01em;
}

.tournament-register-button:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* League Participants Section */
.league-participants-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.participants-container {
    max-width: 1200px;
    margin: 0 auto;
}

.participants-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 17px;
}

/* League Back Section */
.league-back-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.back-to-leagues-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition-base);
    font-family: inherit;
}

.back-to-leagues-button:hover {
    background: var(--bg-secondary);
    border-color: var(--border-gold);
    transform: translateX(-4px);
}

.back-to-leagues-button svg {
    flex-shrink: 0;
}

/* Responsive для сторінок ліг */
@media (max-width: 768px) {
    .league-hero-section {
        padding: 120px 0 60px;
    }
    
    .league-hero-number {
        font-size: 80px;
    }
    
    .tournaments-grid {
        grid-template-columns: 1fr;
    }
    
    .tournament-header {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==================== CONTACT SECTION ==================== */

.contact-section {
    padding: 120px 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.9) 48px,
            rgba(255, 255, 255, 0.9) 50px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.9) 48px,
            rgba(255, 255, 255, 0.9) 50px
        ),
        linear-gradient(135deg, #2D5016 0%, #4A7C2A 50%, #2D5016 100%);
    background-size: 50px 50px, 50px 50px, 100% 100%;
    position: relative;
}

[data-theme="dark"] .contact-section {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.15) 48px,
            rgba(255, 255, 255, 0.15) 50px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 48px,
            rgba(255, 255, 255, 0.15) 48px,
            rgba(255, 255, 255, 0.15) 50px
        ),
        linear-gradient(135deg, #1a3d0f 0%, #2d5016 50%, #1a3d0f 100%);
    background-size: 50px 50px, 50px 50px, 100% 100%;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 0.75);
    z-index: 0;
    transition: background var(--transition-base);
}

[data-theme="dark"] .contact-section::before {
    background: rgba(28, 28, 30, 0.85);
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-section .section-title {
    margin-bottom: 40px;
}

/* Картки зверху — 4 в ряд */
.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-info-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    min-width: 0;
    cursor: default;
}

.contact-info-item:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    border-radius: 11px;
    color: #ffffff;
    margin-top: 2px;
}

.contact-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.contact-info-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-gold);
    font-weight: 700;
    white-space: nowrap;
    margin-bottom: 2px;
}

.contact-info-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.45;
}

/* Преміум стиль для телефонів та посилань */
.contact-info-link {
    text-decoration: none;
    display: inline;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gold);
    transition: color var(--transition-fast), opacity var(--transition-fast);
    white-space: nowrap;
}

.contact-info-link + .contact-info-link {
    display: block;
    margin-top: 3px;
}

.contact-info-link:first-of-type {
    display: block;
}

.contact-info-link:hover {
    color: var(--gold-light);
    opacity: 0.85;
}

/* Карта — горизонтальна, на всю ширину */
.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gold);
    height: 420px;
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.contact-map:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-map {
        height: 360px;
    }
}

@media (max-width: 600px) {
    .contact-section {
        padding: 80px 0;
    }

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

    .contact-info-item {
        padding: 14px 12px;
        gap: 10px;
    }

    .contact-info-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .contact-map {
        height: 280px;
    }
}

/* ==================== FOOTER ==================== */

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-gold);
    padding: 60px 0 32px;
    margin-top: auto;
}

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

/* Лого колонка */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-logo-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.footer-logo-address {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Навігація */
.footer-nav-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-gold);
    margin-bottom: 6px;
}

.footer-nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    line-height: 1.4;
}

.footer-nav-link:hover {
    color: var(--gold);
}

/* Контакти */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    border-radius: 8px;
    color: #fff;
}

.footer-contact-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.footer-contact-link:hover {
    opacity: 0.75;
}

.footer-contact-text {
    color: var(--text-secondary);
}

/* Нижній рядок */
.footer-bottom {
    border-top: 1px solid var(--border-gold);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-made-by {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-made-by span {
    color: var(--text-gold);
    font-weight: 600;
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 48px 0 24px;
    }

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

    .footer-brand {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
