:root {
    --primary-color: #00d9ff;
    --secondary-color: #00b8d4;
    --accent-pink: #ff006e;
    --accent-purple: #b537f2;
    --bg-dark: #0a0a0a;
    --bg-card: #161616;
    --text-light: #ffffff;
    --text-dim: #a0a0a0;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius: 12px;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Navigation Bar */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 0.8rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 217, 255, 0.15);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(22, 22, 22, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    min-width: 220px;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Mobile Toggle Button */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.logo-mobile {
    display: none;
}

.logo-desktop {
    display: inline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo-mobile {
        display: inline;
    }

    .logo-desktop {
        display: none;
    }

    .nav-reservations {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-top: 1px solid rgba(0, 217, 255, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .navbar-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        border-radius: 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.3);
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Header / Hero */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/new_hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink), var(--accent-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

/* Info Section - Minimalistic Design */
.info-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-bottom: var(--spacing-lg);
    padding: 2rem 0;
}

.info-card {
    background: transparent;
    padding: 0;
    border: none;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-card h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-card p {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 400;
    max-width: 250px;
}

.info-card::before {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-pink));
    margin: 0 auto 1rem auto;
    border-radius: 2px;
}

/* Location Section */
.location-section {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.location-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(255, 0, 110, 0.1));
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.2);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.3);
    border-color: rgba(0, 217, 255, 0.5);
}

.location-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.location-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.location-address {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.location-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 217, 255, 0.5);
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
}

@media (max-width: 768px) {
    .location-card {
        padding: 2rem 1.5rem;
    }

    .location-icon {
        font-size: 3rem;
    }

    .location-card h3 {
        font-size: 1.5rem;
    }

    .location-address {
        font-size: 1rem;
    }

    .location-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Fix for info grid on mobile */
    .info-grid {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem 0;
    }

    /* Fix for schedule header */
    .schedule-header-container {
        flex-wrap: wrap;
    }

    .mobile-stack {
        flex-direction: column !important;
    }
}

/* Filter Controls */
.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 500;
}

.filter-select {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

/* Reservations Grid View */
.reservations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
    width: 100%;
}

.reservation-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.6));
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.reservation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.reservation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.2);
}

.res-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

.res-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: capitalize;
}

.res-status {
    font-size: 0.8rem;
    background: rgba(0, 217, 255, 0.15);
    color: var(--primary-color);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.res-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.res-title {
    font-size: 1.3rem;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.res-time {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.res-instructor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.res-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent-color);
}

.res-cancel-btn {
    margin-top: auto;
    background: transparent;
    border: 1px solid rgba(255, 0, 85, 0.5);
    color: #ff4d4d;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.res-cancel-btn:hover {
    background: rgba(255, 0, 85, 0.1);
    border-color: #ff4d4d;
}

/* Reservation Participants */
.res-participants {
    display: flex;
    align-items: center;
    margin-top: 0.75rem;
    padding-left: 12px;
    flex-wrap: wrap;
    row-gap: 5px;
}

.res-participant-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #222;
    /* Matches card bg roughly */
    margin-left: -10px;
    transition: transform 0.2s ease, z-index 0.2s;
    position: relative;
    z-index: 1;
}

.res-participant-avatar:first-child {
    margin-left: 0;
}

.res-participant-avatar:hover {
    transform: translateY(-3px) scale(1.1);
    z-index: 10;
    border-color: var(--primary-color);
}

.res-participant-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.2);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #222;
    margin-left: -10px;
    z-index: 0;
}

/* Schedule Section */
.empty-state-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-dim);
    animation: fadeIn 0.5s ease;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state-message p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.empty-state-message small {
    display: block;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.schedule-header-outer {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.schedule-header-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.schedule-title-wrap {
    text-align: center;
    min-width: 280px;
}

.schedule-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    color: var(--text-light);
}

.week-range-text {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 4px;
    text-transform: capitalize;
}

.nav-btn {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: var(--primary-color);
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.nav-btn:disabled {
    cursor: default;
    opacity: 0.3;
    filter: grayscale(1);
}

@media (max-width: 768px) {
    .schedule-header-main {
        padding: 1rem 1.5rem;
        gap: 1rem;
        width: 100%;
        border-radius: 12px;
    }

    .schedule-title-wrap {
        min-width: auto;
        flex-grow: 1;
    }

    .schedule-title {
        font-size: 1.3rem;
    }

    .week-range-text {
        font-size: 0.85rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.day-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.day-card:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.day-header {
    background: rgba(0, 217, 255, 0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-bottom: 2px solid rgba(0, 217, 255, 0.3);
    color: var(--primary-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.day-date {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: none;
}

.day-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
}

.class-item {
    margin-bottom: 0;
    padding: 1.25rem;
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.4);
    transition: all 0.3s ease;
}

.class-item:hover {
    background: rgba(20, 20, 20, 0.6);
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateY(-1px);
}

/* COMPACT ROW STYLES */
.compact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    gap: 1rem;
}

.compact-time {
    font-family: 'Inter', monospace;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    min-width: 65px;
}

.compact-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.compact-name {
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.2;
}

.compact-spots {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.compact-spots.low {
    color: #ff4d4d;
}

.compact-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    min-width: 85px;
    text-align: center;
}

.compact-btn.reserve-compact {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.compact-btn.reserve-compact:hover {
    background: var(--primary-color);
    color: #000;
}

.compact-btn.reserved-compact {
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
}

.compact-btn.reserved-compact:hover {
    background: rgba(255, 77, 77, 0.1);
}

.compact-btn.full-compact {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    cursor: not-allowed;
}

.class-item.booked {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(0, 217, 255, 0.05));
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.15);
}

.class-name {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.class-time {
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    header {
        height: 40vh;
    }

    .info-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .schedule-grid {
        gap: 1rem;
    }

    .day-body {
        padding: 0.5rem;
        /* Reduced padding for mobile density */
    }

    .class-item {
        padding: 0.75rem;
    }

    .compact-row {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .compact-time {
        font-size: 0.85rem;
        min-width: 55px;
    }

    .compact-name {
        font-size: 0.95rem;
    }

    .schedule-header-container {
        gap: 1rem;
    }

    .nav-btn {
        font-size: 2.5rem;
    }
}

/* Booking UI */
.class-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.spots-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: #333;
    color: #fff;
}

.spots-badge.good {
    background: rgba(0, 217, 255, 0.2);
    color: var(--primary-color);
}

.spots-badge.low {
    background: rgba(255, 0, 110, 0.2);
    color: var(--accent-pink);
}

.class-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.participant-list {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
}

.reserve-btn {
    width: 100%;
    padding: 0.5rem;
    background: var(--primary-color);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.reserve-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.reserve-btn:disabled {
    background: #333;
    color: #555;
    cursor: not-allowed;
}

.reserve-btn.reserved {
    background: #ff6b6b;
    color: #fff;
    cursor: pointer;
}

.reserve-btn.reserved:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

/* About Us Section */
.about-section {
    padding: 4rem 1rem;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.section-title {
    font-size: 3rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.about-intro {
    background: rgba(10, 10, 10, 0.6);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 217, 255, 0.15);
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-intro p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-intro strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about-highlight {
    font-size: 1.25rem !important;
    text-align: center;
    color: var(--text-light) !important;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--accent-pink);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Instructor Section */
.instructor-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.instructor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.instructor-name {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Participants Section */
.participants-section {
    margin-bottom: 0.75rem;
}

.participants-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.participants-avatars {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.participant-avatar:hover {
    transform: scale(1.15);
    border-color: var(--primary-color);
    z-index: 10;
}

.participants-empty {
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
    padding: 0.25rem 0;
}

/* =========================================
   Payments Page & Forms
   ========================================= */

.payments-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
}

.payment-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 217, 255, 0.1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Payment Info Specifics */
.payment-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-row .label {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 500;
}

.payment-row .value {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.05rem;
    text-align: right;
}

.payment-row.highlight .value {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.payment-row .value small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 400;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: var(--text-light);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.1);
}

.file-input {
    display: none;
}

.file-label {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.2s ease;
}

.file-label:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 217, 255, 0.05);
}

/* Radio Amount Selector */
.amount-selector {
    display: block;
}

.amount-radio-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(0, 217, 255, 0.05));
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-radio-label:hover {
    background: rgba(0, 217, 255, 0.2);
    transform: translateY(-1px);
}

.amount-radio-input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.amount-display {
    display: flex;
    flex-direction: column;
}

.amount-display .amt {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
}

.amount-display .desc {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

/* History Section */
.history-section {
    opacity: 0.8;
    /* Subtle background feel */
    transition: opacity 0.3s ease;
}

.history-section:hover {
    opacity: 1;
}

.history-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.col-date {
    color: var(--text-dim) !important;
    font-size: 0.9rem;
    width: 30%;
}

.col-amount {
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-approved {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

.status-pending {
    background: rgba(255, 196, 0, 0.15);
    color: #ffc400;
}

/* Public Schedule - Polished & Centered */
.public-schedule-section {
    padding: var(--spacing-md) 0;
    text-align: center;
}

.public-schedule-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.public-day-card {
    background: rgba(22, 22, 22, 0.85);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 12px;
    width: 280px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: relative;
}

.public-day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 217, 255, 0.15);
    border-color: rgba(0, 217, 255, 0.4);
}

.public-day-header {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), transparent);
    color: var(--primary-color);
    padding: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.public-day-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Grouped Class Styles */
.public-class-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.public-class-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.public-group-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.public-group-times {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.time-chip {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.time-chip-am {
    background: rgba(255, 196, 0, 0.1);
    color: #ffc400;
    /* Morning Yellow/Gold */
    border-color: rgba(255, 196, 0, 0.15);
}

.time-chip-am:hover {
    background: rgba(255, 196, 0, 0.2);
    transform: scale(1.05);
}

.time-chip-pm {
    background: rgba(181, 55, 242, 0.1);
    color: #d18efc;
    /* Evening Purple */
    border-color: rgba(181, 55, 242, 0.15);
}

.time-chip-pm:hover {
    background: rgba(181, 55, 242, 0.2);
    transform: scale(1.05);
}

/* Grouped Private Schedule Styles */
.class-group-container {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0px;
    /* The parent day-body has gap, but individual groups occupy space */
}

.class-group-header {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.class-group-rows {
    display: flex;
    flex-direction: column;
}

.compact-row-item {
    display: grid;
    grid-template-columns: 80px 1fr 60px auto;
    /* Time | Avatars | Cap | Btn */
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
    gap: 0.5rem;
}

.compact-row-item:last-child {
    border-bottom: none;
}

.compact-row-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.compact-row-item.booked {
    background: rgba(0, 255, 136, 0.05);
}

.row-time {
    font-family: 'Inter', monospace;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.row-avatars {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align */
    overflow: hidden;
}

.mini-avatars {
    display: flex;
    align-items: center;
}

.mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #111;
    margin-left: -8px;
    /* Overlap */
    object-fit: cover;
}

.mini-avatar:first-child {
    margin-left: 0;
}

.mini-avatar-more {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(50, 50, 50, 1);
    color: #fff;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    border: 1px solid #111;
    font-weight: 700;
}

.row-capacity {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.row-capacity.cap-full {
    color: #ff4d4d;
    font-weight: 700;
}

.row-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.btn-reserve-mini {
    background: rgba(0, 217, 255, 0.15);
    color: var(--primary-color);
}

.btn-reserve-mini:hover {
    background: var(--primary-color);
    color: black;
}

.btn-cancel-mini {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    font-size: 0.9rem;
}

.btn-cancel-mini:hover {
    background: #ff4d4d;
    color: white;
}

.btn-full-mini {
    background: transparent;
    color: var(--text-dim);
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

@media (max-width: 480px) {
    .compact-row-item {
        grid-template-columns: 70px 1fr 50px 35px;
        padding: 0.6rem 0.5rem;
        gap: 0.25rem;
    }
}

/* Onboarding Section - "How it works" */
.onboarding-section {
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(to bottom, transparent, rgba(0, 217, 255, 0.05));
    position: relative;
    overflow: hidden;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title.centered {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    background: rgba(22, 22, 22, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: rgba(30, 30, 30, 0.8);
}

.step-image-container {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.step-placeholder-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 217, 255, 0.2);
}

.step-badge {
    background: var(--gradient-primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    margin: 0 auto 1rem auto;
    box-shadow: 0 4px 10px rgba(0, 217, 255, 0.3);
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-weight: 700;
}

.step-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.step-video-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-video-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
    transform: translateY(-2px);
}

.onboarding-action {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-primary-lg {
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1rem 3.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary-lg:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.6);
    color: white;
}

/* Pulse Animation for CTA */
.pulse-animation {
    animation: cta-pulse 2s infinite;
}

@keyframes cta-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 217, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0);
    }
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: rgba(10, 10, 10, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    background: rgba(30, 30, 30, 0.8);
}

.faq-item h4 {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.faq-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .steps-grid {
        gap: 1.5rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    .btn-primary-lg {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .section-header-centered {
        margin-bottom: 2rem;
    }
}

/* Community Section Styles */
.community-section {
    padding: 2rem 0;
}

.community-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Masonry Layout */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.post-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 217, 255, 0.2);
}

.post-image-wrapper {
    position: relative;
    overflow: hidden;
}

.post-image {
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card:hover .post-overlay {
    opacity: 1;
}

.btn-expand {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-expand:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.4);
}

.post-content {
    padding: 1rem;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.post-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.post-admin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.btn-delete-icon {
    background: rgba(255, 77, 77, 0.8);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.post-card:hover .btn-delete-icon {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 217, 255, 0.15);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-dim);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-color);
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* File Upload Style */
.file-upload-wrapper {
    position: relative;
    height: 100px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-color);
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-placeholder {
    color: var(--text-dim);
    pointer-events: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Responsive Masonry */
@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* Admin Controls */
.admin-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.empty-community {
    text-align: center;
    color: var(--text-dim);
    grid-column: 1 / -1;
    padding: 3rem;
}

/* Improved File Upload Style */
.file-upload-container {
    margin-top: 0.5rem;
}

input[type="file"]#image {
    display: none;
    /* Hide default ugly input */
}

.custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.custom-file-upload:hover {
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.05);
    transform: translateY(-2px);
}

/* Blocked Payment Box */
.payment-blocked-box {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid red;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 800px;
}

.blocked-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.blocked-content h2 {
    color: #ff4d4d;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.blocked-content p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.blocked-btn {
    display: inline-block;
    background: #ff4d4d;
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.blocked-btn:hover {
    background: #ff3333;
}

/* Mobile Media Query for Blocked Box */
@media (max-width: 768px) {
    .payment-blocked-box {
        padding: 20px 15px;
        /* Compact padding */
        margin: 10px auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center content */
        gap: 10px;
        border-width: 1px;
    }

    .blocked-icon {
        font-size: 2.2rem;
        /* Smaller icon */
        margin-bottom: 5px;
    }

    .blocked-content h2 {
        font-size: 1.3rem;
        /* Smaller title */
        margin-bottom: 5px;
    }

    .blocked-content p {
        font-size: 0.95rem;
        /* Smaller text */
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .blocked-btn {
        padding: 10px 20px;
        font-size: 1rem;
        width: 100%;
        /* Full width button on mobile */
        max-width: 250px;
    }
}


/* Membership Status Box (Payments Page) */
.membership-status-box {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.2), rgba(50, 50, 50, 0.2));
    border: 1px solid #666;
}

.membership-status-box .content-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.membership-status-box .icon {
    font-size: 2.2rem;
}

.membership-status-box .text-group h3 {
    margin: 0;
    color: #eee;
    font-size: 1.3rem;
    font-weight: 700;
}

.membership-status-box .text-group p {
    margin: 0;
    color: #aaa;
}

.membership-status-box .status-group {
    text-align: right;
}

.membership-status-box .status-label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.membership-status-box .status-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ccc;
    white-space: nowrap;
    /* Prevent wrapping unless on mobile */
}

/* Mobile Responsive for Membership Box */
@media (max-width: 768px) {
    .membership-status-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
        /* Compact padding */
    }

    .membership-status-box .content-group {
        flex-direction: column;
        gap: 8px;
    }

    .membership-status-box .status-group {
        text-align: center;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 10px;
    }

    .membership-status-box .status-value {
        font-size: 1.2rem;
        /* Reduce size to fit 'Pendiente de Pago' */
        white-space: normal;
        /* Allow wrapping if absolutely needed */
    }
}


/* Leaderboard Styles */

.leaderboard-card {
    display: flex;
    align-items: center;
    background: #222;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
    border-left: 5px solid #b537f2;
    /* Default purple */
}

/* Rank Colors */
.leaderboard-card.rank-1 {
    border-left-color: gold;
}

.leaderboard-card.rank-2 {
    border-left-color: silver;
}

.leaderboard-card.rank-3 {
    border-left-color: #cd7f32;
}

.leaderboard-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(181, 55, 242, 0.3);
}

.progress-bg {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(181, 55, 242, 0.1), rgba(181, 55, 242, 0.3));
    z-index: 1;
}

.lb-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    z-index: 2;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.lb-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #b537f2;
    margin-right: 15px;
    z-index: 2;
    object-fit: cover;
    flex-shrink: 0;
}

.lb-info {
    flex-grow: 1;
    z-index: 2;
    min-width: 0;
    /* Allow truncation */
}

.lb-name {
    margin: 0;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-level {
    font-size: 0.9rem;
    color: #888;
}

.lb-score {
    z-index: 2;
    text-align: right;
    margin-left: 10px;
    flex-shrink: 0;
}

.score-val {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff88;
}

.score-label {
    font-size: 0.8rem;
    color: #aaa;
}

/* Mobile Responsive Adjustments for Leaderboard */
@media (max-width: 768px) {
    .leaderboard-section {
        padding: 1rem !important;
        /* Override inline style */
    }

    .leaderboard-container {
        padding: 15px !important;
    }

    .leaderboard-card {
        padding: 10px;
        /* Reduced padding */
        margin-bottom: 8px;
        /* Reduced margin */
        border-radius: 8px;
    }

    .lb-rank {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        margin-right: 10px;
    }

    .lb-avatar {
        width: 40px;
        /* Smaller avatar */
        height: 40px;
        margin-right: 10px;
        border-width: 1px;
    }

    .lb-name {
        font-size: 1rem;
        /* Smaller name */
    }

    .lb-level {
        font-size: 0.8rem;
    }

    .score-val {
        font-size: 1.2rem;
        /* Smaller score */
    }

    .score-label {
        font-size: 0.7rem;
    }
}


/* Payment Status Cards */
.payment-status-card {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Modifiers based on level */
.payment-status-card.overdue {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.25), rgba(139, 0, 0, 0.25));
    border: 1px solid #ff0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.payment-status-card.urgent {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.2), rgba(220, 20, 60, 0.2));
    border: 1px solid #ff4d4d;
    animation: pulse-red 2s infinite;
}

.payment-status-card.friendly {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 140, 0, 0.15));
    border: 1px solid #ff9f43;
}

.payment-status-card.normal {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(181, 55, 242, 0.1));
    border: 1px solid var(--primary-color);
}

/* Inner elements */
.psc-icon {
    font-size: 2.2rem;
}

.psc-content h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.psc-content p {
    margin: 0;
}

.psc-date-group {
    text-align: right;
}

.psc-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.psc-date {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Mobile Responsive for Payment Cards */
@media (max-width: 768px) {
    .payment-status-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .psc-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .psc-date-group {
        text-align: center;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 10px;
    }

    .psc-date {
        font-size: 1.5rem;
        /* Better fit for mobile */
    }

    .psc-icon {
        font-size: 2rem;
        margin-bottom: 5px;
    }
}


/* Leaderboard Section - MAXIMIZE MOBILE WIDTH */
@media (max-width: 768px) {

    /* Override global container or section padding */
    .leaderboard-section {
        padding: 5px !important;
        /* Minimal section padding */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .leaderboard-container {
        padding: 10px !important;
        /* Minimal internal padding */
        border-radius: 12px !important;
        margin: 0 auto;
        width: 100% !important;
    }

    /* Make Title Fit */
    .leaderboard-section h1.gradient-text {
        font-size: 1.8rem !important;
        /* Smaller title */
        white-space: nowrap;
        /* Keep on one line if possible, or allow wrap controlled */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Optimize Cards */
    .leaderboard-card {
        padding: 12px 10px !important;
        /* Compact but clear */
        margin-bottom: 10px !important;
        /* Ensure it uses full available width */
        width: 100%;
        box-sizing: border-box;
    }

    /* Adjust internal card elements for mobile readiablity */
    .lb-name {
        font-size: 1rem !important;
    }

    .score-val {
        font-size: 1.3rem !important;
    }

    /* Adjust avatar size slightly smaller to save width */
    .lb-avatar {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }
}


/* Leaderboard Title Fix - Ensure full visibility */
@media (max-width: 768px) {
    .leaderboard-section h1.gradient-text {
        white-space: normal !important;
        /* Allow wrapping */
        overflow: visible !important;
        /* No hiding */
        text-overflow: clip !important;
        /* No ellipsis */
        font-size: 1.8rem !important;
        /* Keep readable size */
        line-height: 1.2 !important;
        /* Proper spacing for 2 lines if needed */
        margin-bottom: 0.5rem !important;
    }
}


/* Mobile Optimization for Admin Dashboard & Payments */
@media (max-width: 768px) {

    /* Payments Page Optimization */
    .payments-container {
        padding: 5px !important;
        /* Minimal global padding */
    }

    .payment-status-card {
        margin: 5px 0 15px 0 !important;
        /* Tighter margins */
        width: 100% !important;
    }

    .payment-grid {
        gap: 15px !important;
    }

    .payment-card {
        padding: 15px !important;
        /* Compact card padding */
    }

    /* Admin Dashboard Optimization */
    .dashboard-container {
        padding: 0 !important;
        /* Full width */
    }

    .dashboard-panel {
        padding: 10px !important;
        /* Reduced internal padding */
        border-radius: 0 !important;
        /* Squared off for max space usage on small screens */
        border-left: none !important;
        border-right: none !important;
    }

    /* Weekly Schedule Specifics (Admin) */
    /* Assuming #tab-schedule uses a grid or table */
    .schedule-grid-admin {
        /* If not existing, will apply to container */
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Force weekly schedule day columns to be full width blocks on mobile */
    .day-column {
        min-width: 100% !important;
        margin-bottom: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 10px;
    }

    /* Adjust font sizes for density */
    .admin-table th,
    .admin-table td {
        font-size: 0.85rem !important;
        padding: 8px 5px !important;
    }

    /* Evaluations List */
    .eval-card {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}


/* Mobile Optimization - User Request */

/* Payments Page (Client) */
@media (max-width: 768px) {
    .payments-container {
        padding: 5px !important;
        /* Minimized padding */
        max-width: 100% !important;
        margin: 0 !important;
    }

    .payment-status-card {
        margin: 0 0 15px 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }
}

/* Admin Dashboard (Instructors/Admin) */
@media (max-width: 768px) {

    /* Main Dashboard Container - maximize width */
    .dashboard-container {
        padding: 0 5px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Tabs */
    .dashboard-tabs {
        padding: 0 5px 5px 5px !important;
        margin-bottom: 10px !important;
        justify-content: flex-start;
        /* Ensure start alignment for scrolling */
    }

    /* Sub-panels (Attendance, Schedule, Payment, etc.) */
    .dashboard-panel {
        padding: 10px !important;
        margin-bottom: 20px !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* --- Weekly Schedule Specifics --- */
    /* If the schedule uses grid/table classes not yet defined for mobile, force them */

    /* Assuming .schedule-section uses day-cards inside a grid */
    #tab-schedule .day-card {
        width: 100% !important;
        margin: 0 0 15px 0 !important;
        padding: 10px !important;
        background: #222;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    /* Ensure table-like structures in schedule are readable */
    /* You might need to make them block-level or scrollable */

    /* Force full width for charts and tables container */
    canvas#revenueChart {
        max-height: 250px !important;
    }

    /* Payment Tables in Admin (Payment Control) / Students List */
    .history-table th,
    .history-table td {
        font-size: 0.8rem !important;
        padding: 8px 4px !important;
    }

    /* Actions buttons */
    .compact-btn {
        padding: 4px 8px !important;
        font-size: 0.8rem !important;
    }

    /* Student cards in admin view - if list based */
    .student-row-card {
        /* Hypothetical class if you refactor students list to cards on mobile */
        /* Currently it's a table or div list? It seems to be div blocks in code */
    }
}


/* Force Schedule Grid column layout on mobile to stack */
@media (max-width: 768px) {
    .schedule-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        /* Spacing between stacked days */
    }

    .day-card {
        width: 100% !important;
        /* Full width for each day */
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    /* Ensure the admin's 'add class' button and header fit */
    .schedule-header-container {
        flex-wrap: wrap;
        /* Allow wrapping if needed */
        justify-content: center;
        gap: 10px;
    }

    #week-range {
        font-size: 0.9rem;
    }
}


/* Mobile optimization for Schedule Header and Rows */
@media (max-width: 768px) {
    .schedule-header-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .nav-controls {
        width: 100%;
        justify-content: center;
    }

    /* Ensure rows are compact but name is visible */
    .compact-row-item .class-name {
        max-width: 140px;
        /* Truncate loop name on very small screens */
    }
}


/* Ultra Compact Admin Schedule for Mobile */
@media (max-width: 768px) {

    /* Maximize panel width */
    #tab-schedule .dashboard-panel {
        padding: 5px !important;
        background: transparent !important;
        /* Remove bg to save visual weight? Or keep it */
        border: none !important;
    }

    #tab-schedule .day-card {
        padding: 5px !important;
        margin-bottom: 8px !important;
        border-radius: 6px;
    }

    /* Compact Row tweaks */
    .compact-row-item {
        padding: 6px 2px !important;
        /* Very minimal padding */
        gap: 5px !important;
    }

    /* Smaller Admin Buttons */
    .admin-actions button {
        padding: 2px 5px !important;
        font-size: 0.75rem !important;
        line-height: 1;
        height: 24px;
        width: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Avatars in compact row */
    .mini-avatars {
        display: flex;
        margin-left: 5px;
        margin-right: 5px;
    }

    .mini-avatar {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 1px solid white;
        margin-left: -8px;
        /* Overlap */
    }

    .mini-avatar:first-child {
        margin-left: 0;
    }

    /* Text sizes */
    .row-time span {
        font-size: 0.75rem !important;
        padding: 2px 4px !important;
    }

    .class-name {
        font-size: 0.85rem !important;
    }
}


/* Mobile Optimization: Maximize Schedule Section Width */
@media (max-width: 768px) {
    .schedule-section {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden;
    }

    /* Ensure the inner container also stretches */
    .schedule-section .dashboard-container {
        padding-left: 2px !important;
        padding-right: 2px !important;
        width: 100% !important;
    }

    /* Remove extra spacing from titles if needed */
    .schedule-section h2.section-title {
        margin-top: 10px !important;
        font-size: 1.5rem !important;
    }
}


/* Ensure Admin Buttons are visible and compact on mobile */
@media (max-width: 768px) {
    .admin-actions {
        display: flex !important;
        gap: 2px !important;
    }

    .admin-actions button {
        padding: 4px 6px !important;
        font-size: 0.8rem !important;
        min-width: 24px;
    }
}



/* =========================================
   Schedule Avatars Enhancements
   ========================================= */
.mini-avatars {
    display: flex;
    align-items: center;
    margin-left: 8px !important;
    padding-left: 4px;
    /* Space for first margin-left negative */
}

.mini-avatar {
    width: 26px !important;
    /* Slightly larger */
    height: 26px !important;
    border-radius: 50%;
    border: 1.5px solid #1a1a1a !important;
    margin-left: -8px !important;
    /* Force overlap */
    object-fit: cover;
    flex-shrink: 0;
    background-color: #333;
    transition: transform 0.2s ease, z-index 0.2s ease, border-color 0.2s;
    position: relative;
    z-index: 1;
}

.mini-avatar:first-child {
    margin-left: 0 !important;
}

.mini-avatar:hover {
    transform: scale(1.3) translateY(-2px);
    z-index: 100;
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Ensure they are visible in the row */
.compact-row-item .mini-avatars {
    overflow: visible !important;
    /* Allow hover pop-out */
}