@font-face {
    font-family: 'Farabee';
    src: url('/fonts/Farabee-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Farabee';
    src: url('/fonts/Farabee-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Farabee';
    src: url('/fonts/Farabee-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

html {
    font-size: 125%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: auto;
    cursor: default;
}
input, textarea, [contenteditable] {
    user-select: text;
    -webkit-user-select: text;
}

:focus-visible {
    outline: 2px solid #a2ff00;
    outline-offset: 2px;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

#preloader.loaded {
    display: none;
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #222;
    border-top-color: #8A2BE2;
    border-radius: 50%;
    animation: preloaderSpin 0.8s linear infinite;
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

.preloader-text {
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.styles-section {
    background-color: #000;
    width: 100%;
    padding: 80px 0;
    display: block;
    clear: both;
    position: relative;
}

.styles-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(162, 255, 0, 0.15), transparent);
}

.styles-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(162, 255, 0, 0.15), transparent);
}

.styles-title {
    color: #fff;
    font-size: 60px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
    text-shadow: 0 0 30px rgba(162, 255, 0, 0.15);
    background: linear-gradient(180deg, #fff 30%, rgba(162, 255, 0, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 равные колонки */
    gap: 25px;
    max-width: 1100px;     /* Ширина контейнера с карточками */
    margin: 0 auto;        /* МАГИЯ ЦЕНТРИРОВАНИЯ: равные отступы слева и справа */
    padding: 0 20px;       /* Защитные отступы для мобильных */
}

.style-card {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.style-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(162, 255, 0, 0.2);
}

.style-card img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.style-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.4);
}

.style-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.style-card:hover .style-card-overlay {
    opacity: 1;
}

.style-card-desc {
    color: #ddd;
    font-size: 15px;
    line-height: 1.5;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.style-card:hover .style-card-desc {
    transform: translateY(0);
}

.style-name {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    transform-origin: left center;
}

.style-card:hover .style-name {
    transform: scale(1.2);
    color: var(--accent);
}

nav { position: absolute; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; z-index: 10; box-sizing: border-box; }
.logo { font-size: 28px; font-weight: 600; color: #a2ff00; letter-spacing: 2px; }
.nav-links a { color: #fff; text-decoration: none; margin-right: 30px; font-size: 14px; }
.cabinet-btn { background: #a2ff00; color: #000; border: none; padding: 10px 20px; border-radius: 5px; font-weight: 600; cursor: pointer; }

/* Hero section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    overflow: hidden;
    background: #000;
}

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    overflow: hidden;
}

.hero-text { position: relative; z-index: 5; max-width: 500px; color: #fff; }
.hero-text h1 { font-size: 56px; line-height: 1.1; margin-bottom: 40px; font-weight: 900; }
.hero-text h1 br { display: none; }
@media (min-width: 769px) { .hero-text h1 br { display: inline; } }
.start-btn { background: #a2ff00; color: #000; border: none; padding: 30px 70px; font-size: 32px; border-radius: 5px; cursor: pointer; font-weight: 600; transition: 0.2s; text-decoration: none; }
.start-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 40px rgba(162, 255, 0, 0.25); }
.start-btn:active { transform: translateY(0); }

/* Video background */
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; }
video { min-width: 100%; min-height: 100%; object-fit: cover; opacity: 0.7; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.8), transparent); z-index: 2; }

:root {
    --accent: #a2ff00;
    --secondary: #8A2BE2;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
}

::selection {
    background: rgba(162, 255, 0, 0.3);
    color: #fff;
}

::placeholder {
    color: #555;
    transition: color 0.3s ease;
}

input:focus::placeholder, textarea:focus::placeholder {
    color: #333;
}

body {
    font-family: 'Farabee', Arial, sans-serif;
    font-weight: 600;
    background: radial-gradient(circle at top right, #111, #000);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Карточка профиля */
.profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 23px 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}


.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #222, #444);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(162, 255, 0, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
}

.stat-box:hover {
    border-color: var(--accent);
    background: rgba(162, 255, 0, 0.05);
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}






.class-card {
    position: relative;
    min-height: 320px; /* Увеличили высоту */
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 30px; /* Больше внутренних отступов */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: 0.4s ease;
}

/* Затемняющая подложка (overlay) */
.class-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
    transition: 0.3s;
}

.class-card:hover::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.95) 100%);
}

/* Поднимаем контент над подложкой */
.class-card > * {
    position: relative;
    z-index: 2;
}




.btn-dashboard {
    background: rgba(255, 255, 255, 0.05); /* Полупрозрачный фон */
    color: #fff;
    border: 1px solid rgba(162, 255, 0, 0.3); /* Тонкая неоновая граница */
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px); /* Эффект матового стекла */
}

.btn-dashboard:hover {
    background: rgba(162, 255, 0, 0.1); /* Легкое зеленое свечение при наведении */
    border-color: #a2ff00; /* Яркая граница при наведении */
    box-shadow: 0 0 20px rgba(162, 255, 0, 0.2);
    transform: translateY(-2px); /* Легкий подъем */
}

.btn-dashboard:active {
    transform: translateY(0);
}

.btn-dashboard .icon {
    font-size: 18px;
}





.tabs-container {
    display: flex;
    gap: 5px;
    margin-bottom: -1px;
}

.tab {
    padding: 15px 40px;
    border-radius: 15px 15px 0 0;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.6;
    border: 1px solid rgba(255,255,255,0.15);
    border-bottom: none;
    position: relative;
    color: #ccc;
    background: rgba(255,255,255,0.03);
}

.tab::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab.active::after {
    width: 80%;
}

.tab-green.active::after {
    background: var(--accent);
}

.tab-purple.active::after {
    background: var(--secondary);
}

/* Активная вкладка */
.tab.active {
    opacity: 1;
    transform: translateY(-2px);
}

/* Зеленая вкладка */
.tab-green.active {
    background: #a2ff00;
    color: #000;
    box-shadow: 0 -5px 15px rgba(162, 255, 0, 0.2);
}

/* Фиолетовая вкладка */
.tab-purple.active {
    background: #8A2BE2;
    color: #fff;
    box-shadow: 0 -5px 15px rgba(138, 43, 226, 0.2);
}

.class-expired {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.class-expired:hover {
    transform: none !important;
    box-shadow: none !important;
}

.content-panel {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0 20px 20px 20px;
    padding: 30px;
    min-height: 400px;
}

/* ----- REVIEWS ----- */
.review-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.review-class-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.review-class-header-toggle {
    cursor: pointer;
    user-select: none;
}

.review-class-header-toggle::before {
    content: '▾';
    margin-right: 12px;
    color: var(--accent);
    transition: transform 0.2s;
}

.review-class-header-toggle.collapsed::before {
    transform: rotate(-90deg);
}

.review-class-title {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-class-date {
    color: #888;
    font-size: 12px;
}

.review-count {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.review-class-body {
    padding: 16px 24px;
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.review-item:last-child {
    border-bottom: none;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 15px;
    color: #000;
    flex-shrink: 0;
}

.review-name {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.review-date {
    color: #666;
    font-size: 11px;
    margin-left: auto;
}

.review-text {
    color: #bbb;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 0 48px;
}

.review-form {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: #000;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.review-textarea:focus {
    border-color: var(--accent);
}

/* ----- END REVIEWS ----- */

.btn-edit {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-edit:hover {
    background: #fff;
    color: #000;
}

.btn-delete-small {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-delete-small:hover {
    background: #ff4444;
    color: #fff;
}


.class-card-compact {
    position: relative;
    height: 240px; /* Фиксированная небольшая высота */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.title-mini {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.badge-mini {
    font-size: 10px;
    background: rgba(138, 43, 226, 0.6);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Кнопки контроля */
.btn-ctrl {
    border: none;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
}

.btn-ctrl.edit { background: rgba(255,255,255,0.1); color: #fff; }
.btn-ctrl.edit:hover { background: #fff; color: #000; }

.btn-ctrl.delete { background: rgba(255, 68, 68, 0.1); color: #ff4444; }
.btn-ctrl.delete:hover { background: #ff4444; color: #fff; }

.btn-exit-back {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-exit-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary); /* Твой фиолетовый цвет */
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    transform: translateX(-5px); /* Кнопка чуть сдвигается влево, указывая направление назад */
}

/* Detailed class card for coaching tab */
.class-card-detailed {
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.class-card-detailed.class-expired {
    opacity: 0.5;
}

.class-detailed-cover {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    background: #1a1a1a;
}

.class-detailed-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.class-detailed-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.class-detailed-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.class-detailed-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
}

.class-detailed-title {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}

.class-detailed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #888;
}

.class-detailed-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.class-detailed-participants {
    background: rgba(255,255,255,0.03);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 16px;
}

.class-detailed-participants strong {
    display: block;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 8px;
}

.class-detailed-participants ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.class-detailed-participants li {
    background: rgba(138,43,226,0.15);
    color: #b366ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.class-detailed-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.class-detailed-actions .btn-ctrl {
    padding: 12px 0;
    font-size: 13px;
}

.class-detailed-expired {
    text-align: center;
    color: #ff4444;
    font-weight: 600;
    font-size: 14px;
    padding: 12px;
    border: 1px solid rgba(255,68,68,0.2);
    border-radius: 8px;
    background: rgba(255,68,68,0.05);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tabs-header {
    display: flex;
    justify-content: space-between; /* РАЗНОСИТ ЭЛЕМЕНТЫ: вкладки влево, кнопку вправо */
    align-items: flex-end;         /* Выравнивает кнопку по нижнему краю вкладок */
    margin-bottom: -1px;           /* Чтобы не было щели над контент-панелью */
    width: 100%;
}



.status-author {
    font-size: 12px;
    color: var(--secondary);
    background: rgba(138, 43, 226, 0.1);
    padding: 4px 8px;
    border-radius: 5px;
}
.participants-list {
    font-size: 14px;
    color: #ccc;
    margin: 10px 0;
    line-height: 1.4;
}





/* Статус "Вы записаны" */
.status-badge {
    display: inline-block;
    background: rgba(173, 255, 47, 0.1); /* Прозрачный неон */
    color: #adff2f; /* Твой зеленый цвет */
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Блок информации (Хореограф, Стиль, Группа) */
.info-body p {
    margin: 8px 0;
    color: #bbb;
    font-size: 15px;
}

.info-body b {
    color: #fff;
    margin-right: 5px;
}

/* Кнопки действий */
.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-details {
    flex: 2;
    background: #fff;
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-details:hover {
    background: #eee;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.btn-exit {
    flex: 1;
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-exit:hover {
    background: #ff4444;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

/* ===============================
   Catalog card (app.html)
   Hover: info → top, details appear
   =============================== */

.class-card-catalog {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #0d0d0d;
    aspect-ratio: 1 / 1;
    container-type: inline-size;
}

.class-card-catalog:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.25);
}

.class-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s ease;
}

.class-card-catalog:hover .class-cover-img {
    transform: scale(1.08);
}

/* Dark overlay that fades in on hover (sits between image and content) */
.class-card-catalog::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.95) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.class-card-catalog:hover::after {
    opacity: 1;
}

/* Overlay — fills card, flex column */
.class-card-catalog .class-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: clamp(12px, 4cqi, 24px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.3) 100%);
    box-sizing: border-box;
}

/* Top row: badge + price, always at the very top */
.class-card-catalog .class-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}

.class-badge {
    background: rgba(162, 255, 0, 0.15);
    color: var(--accent);
    font-size: clamp(10px, 3cqi, 16px);
    font-weight: 800;
    padding: clamp(2px, 0.8cqi, 6px) clamp(6px, 2.5cqi, 14px);
    border-radius: 12px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(162, 255, 0, 0.2);
}

.class-card-top-right {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1cqi, 10px);
}

.class-card-top-right .class-max-participants {
    font-size: clamp(11px, 3cqi, 15px);
    font-weight: 700;
    color: #888;
    padding: clamp(2px, 0.8cqi, 6px) clamp(6px, 2.5cqi, 14px);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.class-price {
    font-size: clamp(12px, 3.5cqi, 18px);
    font-weight: 900;
    color: #fff;
    padding: clamp(2px, 0.8cqi, 6px) clamp(6px, 2.5cqi, 14px);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Body — spacer + info + details, stretches to fill */
.class-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Spacer grows to push info/details to the bottom */
.class-card-spacer {
    flex: 1;
    transition: flex 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.class-card-catalog:hover .class-card-spacer {
    flex: 0;
}

/* === INFO section — shown by default at bottom === */
.class-card-info {
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: clamp(1px, 0.5cqi, 4px);
}

.class-card-catalog:hover .class-card-info {
    transform: scale(0.65) translateY(-10px);
    transform-origin: bottom left;
    opacity: 0.7;
}

.class-card-info .class-title {
    font-size: clamp(22px, 10cqi, 44px);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: font-size 0.4s ease;
}

.class-card-info .class-author {
    font-size: clamp(15px, 5.5cqi, 26px);
    color: #ccc;
    font-weight: 600;
    transition: font-size 0.4s ease;
}

.class-card-info .class-datetime {
    font-size: clamp(14px, 5cqi, 22px);
    color: var(--accent);
    font-weight: 700;
    transition: font-size 0.4s ease;
}

/* === DETAILS section — hidden, appears on hover === */
.class-card-details {
    flex-shrink: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease 0.05s;
}

.class-card-catalog:hover .class-card-details {
    max-height: 300px;
    opacity: 1;
    margin-top: clamp(2px, 1cqi, 8px);
}

.class-description {
    font-size: clamp(13px, 4cqi, 18px);
    color: #bbb;
    line-height: 1.4;
    margin-bottom: clamp(3px, 1.5cqi, 8px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.class-level-row {
    margin-bottom: clamp(2px, 1cqi, 6px);
}

.class-level {
    letter-spacing: 2px;
    font-size: clamp(12px, 3.5cqi, 16px);
    line-height: 1;
}

.level-sticker-mini {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: -4px;
    object-fit: contain;
}

.level-sticker {
    position: absolute;
    top: 12px;
    right: 12px;
    width: clamp(56px, 14vw, 84px);
    height: auto;
    z-index: 5;
    pointer-events: none;
    transform: rotate(-8deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
    animation: sticker-pop .45s cubic-bezier(.2, .9, .3, 1.4) .15s both;
}

@keyframes sticker-pop {
    0% { transform: rotate(-8deg) scale(0.4); opacity: 0; }
    70% { transform: rotate(-8deg) scale(1.12); opacity: 1; }
    100% { transform: rotate(-8deg) scale(1); opacity: 1; }
}

.payment-cover-wrap {
    position: relative;
}

.class-location {
    font-size: clamp(12px, 3.5cqi, 16px);
    color: #888;
    margin-bottom: clamp(2px, 1cqi, 6px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-cabinet {
    margin-top: clamp(2px, 1cqi, 6px);
    padding: clamp(6px, 2cqi, 12px) clamp(12px, 4cqi, 24px);
    border-radius: 8px;
    border: none;
    background: var(--secondary);
    color: #fff;
    font-weight: 900;
    font-size: clamp(11px, 3cqi, 15px);
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
}

.btn-cabinet:hover {
    background: #9b30ff;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

/* Container layout — 3 per row full width */
#classes-container.grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* === Choreographer blocks === */
#choreographer-list {
    padding: 20px 0;
}

.choreo-block {
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.choreo-block:hover {
    border-color: #333;
}

.choreo-top {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.choreo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.choreo-classes {
    border-top: 1px solid #222;
    padding-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.choreo-classes .class-card-catalog {
    aspect-ratio: auto;
    height: 160px;
}

.choreo-classes .class-card-catalog .class-description {
    font-size: 14px;
    -webkit-line-clamp: 3;
}

.choreo-classes .class-card-catalog .class-card-info {
    transform: none !important;
    opacity: 1 !important;
}

.choreo-classes .class-card-catalog:hover .class-card-info {
    transform: none !important;
    opacity: 1 !important;
}

.choreo-classes .class-card-catalog:hover .class-card-spacer {
    flex: 1;
}

.choreo-classes .class-card-catalog .class-card-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease 0.05s;
}

.choreo-classes .class-card-catalog:hover .class-card-details {
    max-height: 300px;
    opacity: 1;
}



@media (max-width: 768px) {
    .choreo-classes {
        grid-template-columns: 1fr;
    }
}

/* === Auth modal input === */
.auth-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box;
}

.auth-btn-full {
    width: 100%;
}

/* === Modal shared styles === */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-window-inner {
    background: #1a1a1a;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: var(--shadow-modal);
}

.modal-window-inner h2 {
    color: white;
    margin-top: 0;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
}

.modal-field-group {
    margin-top: 20px;
}

.modal-label {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.modal-input {
    width: 100%;
    background: #222;
    border: 1px solid #444;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    outline: none;
    box-sizing: border-box;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-actions .btn {
    flex: 2;
}

.modal-actions .btn.btn-glass {
    flex: 1;
}

/* === Search inputs === */
#filter-choreo-search {
    transition: border-color 0.2s, box-shadow 0.2s;
}

#filter-choreo-search:focus {
    outline: none;
    border-color: #8A2BE2 !important;
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.4) !important;
}

/* === Footer === */
.site-footer {
    padding: 40px 8%;
    background: #050505;
    border-top: 1px solid #111;
    text-align: center;
}

.site-footer p {
    color: #555;
}

.site-footer .footer-main {
    font-size: 14px;
    margin-bottom: 8px;
}

.site-footer .footer-sub {
    font-size: 12px;
    color: #444;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.site-footer .footer-links a {
    color: #888;
    font-size: 13px;
    transition: color 0.2s;
}

.site-footer .footer-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* === Agreement checkboxes (registration) === */
.agreement-checkboxes {
    text-align: left;
    margin-bottom: 20px;
}

.agreement-checkboxes label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #888;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 8px;
    cursor: pointer;
}

.agreement-checkboxes input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.agreement-checkboxes a {
    color: var(--accent);
    text-decoration: none;
}

.agreement-checkboxes a:hover {
    text-decoration: underline;
}

/* === Farabee headings === */
h1, h2, h3, h4, .logo, .style-name {
    font-family: 'Farabee', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

