@charset "UTF-8";
/* GLOBAL STYLES & VARIABLES */
:root {
    --primary-blue: #007BFF;
    --primary-gradient: linear-gradient(135deg, #007BFF, #00C6FF);
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-hero: linear-gradient(135deg, #f0f9ff, #e0f7ff);
    --text-dark: #212529;
    --text-medium: #495057;
    --text-light: #6c757d;
    --border-color: #e3e8f0;
    --success-green: #28a745;
    --font-family: 'Manrope', sans-serif;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); color: var(--text-dark); line-height: 1.65; background-color: var(--bg-white); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.3; }
section { padding: 80px 0; }

/* ANIMATION STYLES */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-visible { opacity: 1; transform: translateY(0); }

/* ИСПРАВЛЕНИЕ АНИМАЦИИ ЛОГОТИПА */
.bounce-logo {
    animation: logo-bounce 1s ease-out 0.2s forwards;
    /* Убрали opacity: 0 отсюда, чтобы логотип был видимым по умолчанию */
}
@keyframes logo-bounce {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* GENERIC COMPONENTS */
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; text-align: center; color: var(--text-light); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-button, .cta-button-form, .cta-button-secondary { display: inline-block; padding: 14px 32px; border-radius: 12px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; border: none; cursor: pointer; text-align: center; }
.cta-button { background: var(--primary-gradient); color: white; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 4px 20px rgba(0, 123, 255, 0.35); }
.cta-button-secondary { background-color: var(--bg-white); color: var(--primary-blue); border: 1px solid var(--border-color); }
.cta-button-secondary:hover { background-color: var(--bg-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cta-button-form { width: 100%; font-size: 1rem; background: var(--primary-gradient); color: white; }

/* HERO SECTION */
.hero-section { background: var(--bg-hero); text-align: center; overflow: hidden; padding: 60px 0; }
.logo-container { margin: 0 auto 1.5rem; }
.logo-image { width: 120px; height: auto; display: block; margin: 0 auto; }
.logo-text { font-size: 1.5rem; font-weight: 800; margin-top: 0.5rem; display: block; }
.hero-content h1 { font-size: 3.5rem; }
.text-gradient { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content .subtitle { font-size: 1.25rem; color: var(--text-medium); margin: 1rem auto 2.5rem; max-width: 600px; }
.hero-features { margin-top: 2rem; display: flex; justify-content: center; gap: 2rem; color: var(--text-light); }
.hero-features span { display: flex; align-items: center; }
.hero-features .dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.dot.green { background-color: var(--success-green); }
.dot.blue { background-color: var(--primary-blue); }
.dot.light-blue { background-color: #00C6FF; }

/* ====================================================== */
/* TABS (FOR WHOM SECTION) - УЛУЧШЕННАЯ И ИСПРАВЛЕННАЯ ВЕРСИЯ */
/* ====================================================== */

.for-whom-section {
    background: var(--bg-white);
}
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}
.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 5px;
    border: 1px solid var(--border-color);
}
.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    color: var(--text-medium);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.tab-button.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.tabs-content-wrapper {
    position: relative;
    /* ИСПРАВЛЕНИЕ: Убираем min-height и добавляем плавный переход высоты */
    transition: height 0.4s ease-out; 
}

.tab-panel {
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
    pointer-events: none;
    
    background: var(--bg-white);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.tab-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative; /* Активная панель должна быть в потоке документа */
}

/* ====================================================== */
/* FEATURES (Решатель vs Репетитор) - УЛУЧШЕННАЯ ВЕРСИЯ   */
/* ====================================================== */

.features-section {
    /* 1. Меняем фон на премиальный градиент, как в шапке */
    background: var(--bg-hero);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    /* 2. Добавляем более глубокую, красивую тень с синим оттенком */
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease-out;
}

/* Добавляем эффект "приподнимания" при наведении */
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 123, 255, 0.15);
}

.feature-icon-wrapper {
    font-size: 1.5rem;
    width: 60px; /* Немного увеличим иконки */
    height: 60px;
    border-radius: 16px; /* Сделаем более скругленными */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    /* 3. Делаем фон иконок ярким, с основным градиентом */
    background: var(--primary-gradient);
    color: white; /* Цвет самой иконки-эмодзи это не изменит, но полезно для будущих SVG-иконок */
}

.feature-card h4 {
    font-size: 1.75rem; /* Увеличим заголовки */
    margin-bottom: 1rem;
    /* 4. Применяем эффект градиента к заголовкам */
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Обязательно для работы background-clip */
}

.feature-card .feature-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.feature-card ul {
    list-style: none;
    text-align: left;
    padding-left: 0; /* Убираем отступ по умолчанию */
}

.feature-card ul li {
    margin-bottom: 0.75rem; /* Увеличим расстояние между пунктами */
    position: relative;
    padding-left: 30px; /* Добавляем место для галочки */
    font-weight: 600; /* Делаем текст пунктов более жирным */
}

/* Рисуем кастомную галочку */
.feature-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-green);
    font-weight: 800;
    font-size: 1.2rem;
}

/* HOW IT WORKS */
.how-it-works-section { background: var(--bg-white); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.step-number { display: inline-block; background: var(--primary-gradient); color: white; border-radius: 50%; width: 40px; height: 40px; line-height: 40px; font-weight: bold; margin-bottom: 1rem; }
.step-card h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* TARIFFS */
.tariffs-section { background: var(--bg-light); }
.tariffs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: center; }
.tariff-card { background: var(--bg-white); padding: 2rem; border-radius: 16px; border: 1px solid var(--border-color); text-align: center; transition: all 0.3s ease; }
.tariff-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.tariff-card.popular { border: 2px solid var(--primary-blue); transform: scale(1.05); position: relative; }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary-blue); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.tariff-card h4 { font-size: 1.5rem; }
.price { font-size: 2.5rem; font-weight: 800; margin: 1rem 0; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.tariff-card ul { list-style: none; margin: 1.5rem 0; text-align: left; }
.tariff-card ul li { margin-bottom: 0.75rem; }

/* REVIEWS */
.reviews-section { background-color: var(--bg-white); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.review-card { background: var(--bg-light); padding: 2rem; border-radius: 16px; border: 1px solid var(--border-color); }

/* FAQ SECTION */
.faq-section { background-color: var(--bg-light); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-white); margin-bottom: 1rem; border-radius: 12px; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.faq-item summary { padding: 1.5rem; font-size: 1.1rem; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--primary-blue); transition: transform 0.3s ease; }
.faq-item[open] { border-color: var(--primary-blue); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.5rem; color: var(--text-light); }

/* CTA FORM SECTION */
.cta-section { background-color: #f0f9ff; padding: 60px 0; }
.form-container { max-width: 500px; margin: 0 auto; background: var(--bg-white); padding: 3rem; border-radius: 16px; box-shadow: var(--shadow-md); text-align: center; }
.form-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.form-container h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.form-container p { color: var(--text-light); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; font-family: var(--font-family); }
.privacy-note { font-size: 0.8rem; color: #aaa; margin-top: 1.5rem; margin-bottom: 0; }

/* TEAM SECTION */
.team-section { background-color: var(--bg-white); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.team-block { text-align: center; padding: 2rem; background-color: var(--bg-light); border-radius: 16px; }
.team-icons { font-size: 2.5rem; margin-bottom: 1rem; }
.team-block h4 { font-size: 1.75rem; margin-bottom: 1rem; }
.tech-stack, .roles-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 1.5rem 0; }
.tech-stack span, .roles-stack span { background: var(--bg-white); color: var(--text-medium); padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; border: 1px solid var(--border-color); }

/* FOOTER */
.footer { background-color: var(--bg-white); padding-top: 60px; color: var(--text-medium); border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 40px; align-items: start; }
.footer-logo { width: 50px; height: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 250px; }
.footer h4 { margin-bottom: 1rem; color: var(--text-dark); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer a { text-decoration: none; color: var(--text-medium); transition: color 0.3s ease; }
.footer a:hover { color: var(--primary-blue); }
.footer-bottom { padding: 20px 0; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; font-size: 0.9rem; }

/* RESPONSIVENESS */
@media (max-width: 992px) {
    .tariffs-grid, .reviews-grid, .steps-grid, .team-grid { grid-template-columns: 1fr; }
    .tariff-card.popular { transform: scale(1); }
}
@media (max-width: 768px) {
    section { padding: 60px 0; }
    h1 { font-size: 2.5rem !important; }
    .section-title { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .tabs-nav { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-brand p { margin: 1rem auto 0; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
}

/* ================================================== */
/* СТИЛИ ДЛЯ ЮРИДИЧЕСКОЙ ИНФОРМАЦИИ И СТРАНИЦЫ ПОЛИТИКИ */
/* ================================================== */

/* --- Стили для футера --- */

/* Делаем нижнюю часть футера более гибкой для длинного текста */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Вертикальное выравнивание по центру */
    flex-wrap: wrap; /* Разрешаем перенос на новую строку на маленьких экранах */
    gap: 1rem; /* Добавляем отступ между элементами при переносе */
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* --- Стили для страницы privacy-policy.html --- */

.legal-document-container {
    max-width: 800px; /* Ограничиваем ширину для лучшей читаемости */
    margin: 40px auto; /* Центрируем и добавляем отступы сверху/снизу */
    padding: 40px;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.legal-document-container h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.legal-document-container h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-document-container h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.legal-document-container p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

.legal-document-container ul,
.legal-document-container ol {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-medium);
}

.legal-document-container li {
    margin-bottom: 0.6rem;
    line-height: 1.65;
}

/* AI Чат-виджет */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    font-family: 'Manrope', sans-serif;
}

.chat-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 16px 16px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-container {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-container.hidden {
    display: none;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.4;
}

.message.user {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message.bot {
    background: white;
    border: 1px solid #e1e5e9;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.chat-controls {
    padding: 16px;
    background: white;
    border-top: 1px solid #e1e5e9;
    border-radius: 0 0 16px 16px;
}

.class-select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
}

.input-group {
    display: flex;
    gap: 8px;
}

#chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
}

.send-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    min-width: 50px;
}

.send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.spinner {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .chat-widget {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
}

/* ====================================================== */
/* MODERN THEME OVERRIDES                                 */
/* ====================================================== */

:root {
    --primary-blue: #1463ff;
    --primary-gradient: linear-gradient(135deg, #1463ff 0%, #2dd4bf 100%);
    --bg-light: #f3f6fb;
    --bg-white: #ffffff;
    --bg-hero: radial-gradient(1200px 600px at 20% -10%, rgba(20, 99, 255, 0.16), transparent 55%),
        radial-gradient(900px 500px at 85% 0%, rgba(45, 212, 191, 0.14), transparent 60%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
    --text-dark: #0b1220;
    --text-medium: #1f2937;
    --text-light: #6b7280;
    --border-color: #e3e8f3;
    --success-green: #22c55e;
    --font-family: 'Space Grotesk', 'Manrope', sans-serif;
    --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 30px 60px rgba(15, 23, 42, 0.12);
}

body {
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 70%);
    color: var(--text-dark);
}

h1, h2, h3, h4 {
    letter-spacing: -0.02em;
}

.hero-section {
    position: relative;
    padding: 80px 0 70px;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.4;
    pointer-events: none;
}

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

.hero-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.hero-topbar .logo-container {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-topbar .logo-text {
    margin-top: 0;
}

.hero-topbar .logo-image {
    width: 52px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ghost-button {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.ghost-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.cta-button {
    border-radius: 999px;
    padding: 14px 30px;
}

.cta-button-secondary {
    border-radius: 999px;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.hero-content .subtitle {
    font-size: 1.2rem;
}

.hero-features {
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 10px 18px;
    display: inline-flex;
    gap: 18px;
}

.tabs-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

.tab-panel,
.feature-card,
.tariff-card,
.review-card,
.faq-item,
.form-container {
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.feature-card {
    background: linear-gradient(145deg, #ffffff 0%, #f6f9ff 100%);
}

.feature-icon-wrapper {
    box-shadow: 0 12px 30px rgba(20, 99, 255, 0.18);
}

.tariff-card.popular {
    border: 2px solid rgba(20, 99, 255, 0.3);
}

.reviews-section,
.faq-section {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
}

.cta-section .form-container {
    background: linear-gradient(160deg, #ffffff 0%, #f5f8ff 100%);
}

/* Modern block styling */
.section-title {
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: var(--primary-gradient);
    margin: 16px auto 0;
}

.for-whom-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 60%);
}

.tabs-nav {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 6px;
    gap: 6px;
    border: 1px solid rgba(20, 99, 255, 0.12);
    box-shadow: var(--shadow-sm);
}

.tab-button {
    border-radius: 999px;
    font-weight: 700;
    color: var(--text-medium);
}

.tab-button.active {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(20, 99, 255, 0.25);
}

.tab-panel {
    border: 1px solid rgba(20, 99, 255, 0.12);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
}

.tab-panel,
.feature-card,
.tariff-card,
.review-card,
.faq-item,
.form-container {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tab-panel:hover,
.review-card:hover,
.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.features-grid {
    gap: 2.4rem;
}

.feature-card {
    border: 1px solid rgba(20, 99, 255, 0.12);
    background: linear-gradient(145deg, #ffffff 0%, #f6f9ff 100%);
}

.tariffs-section {
    background: radial-gradient(900px 500px at 20% 0%, rgba(20, 99, 255, 0.08), transparent 60%),
        linear-gradient(180deg, #f7faff 0%, #ffffff 70%);
}

.tariff-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(20, 99, 255, 0.12);
    box-shadow: var(--shadow-sm);
}

.tariff-card.popular {
    border: 2px solid rgba(20, 99, 255, 0.25);
    transform: translateY(-6px);
}

.review-card {
    border: 1px solid rgba(20, 99, 255, 0.12);
    background: #ffffff;
}

.faq-item {
    border: 1px solid rgba(20, 99, 255, 0.1);
    background: #ffffff;
}

.form-container {
    border: 1px solid rgba(20, 99, 255, 0.12);
}

/* ====================================================== */
/* AI MENTOR + EXAM BLOCKS                                */
/* ====================================================== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-blue);
    background: rgba(20, 99, 255, 0.08);
    margin-bottom: 14px;
}

.ai-mentor-section {
    background: radial-gradient(1000px 500px at 10% -10%, rgba(20, 99, 255, 0.12), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 70%);
}

.ai-mentor-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.ai-mentor-copy .section-title::after {
    margin-left: 0;
    margin-right: 0;
}

.mentor-points {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.mentor-point {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(20, 99, 255, 0.12);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.ai-mentor-cards {
    display: grid;
    gap: 16px;
}

.ai-card {
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid rgba(20, 99, 255, 0.12);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.ai-card-tag {
    display: inline-block;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
}

.exam-section {
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 70%);
}

.exam-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

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

.exam-card {
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid rgba(20, 99, 255, 0.12);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.exam-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.exam-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(20, 99, 255, 0.08);
    color: var(--text-medium);
    font-weight: 600;
}

/* Parents reports block */
.parents-section {
    background: radial-gradient(900px 450px at 90% -10%, rgba(45, 212, 191, 0.12), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 70%);
}

.parents-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    padding: 32px;
    border-radius: 26px;
    border: 1px solid rgba(20, 99, 255, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-md);
    align-items: center;
}

.parents-copy .section-title::after {
    margin-left: 0;
    margin-right: 0;
}

.parents-points {
    display: grid;
    gap: 14px;
    margin: 18px 0 22px;
}

.parents-point {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(20, 99, 255, 0.12);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.parents-visual {
    display: grid;
    gap: 14px;
    justify-items: stretch;
}

.parents-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(20, 99, 255, 0.1);
    font-weight: 700;
    color: var(--text-dark);
    width: max-content;
}

.parents-card-mini {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(20, 99, 255, 0.12);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.parents-card-mini h4 {
    margin: 0 0 6px;
}

.parents-card-mini p {
    margin: 0;
    color: var(--text-light);
}

@media (max-width: 980px) {
    .ai-mentor-grid {
        grid-template-columns: 1fr;
    }
    .exam-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .exam-grid {
        grid-template-columns: 1fr;
    }
    .parents-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .hero-features {
        border-radius: 16px;
    }
}

/* ====================================================== */
/* AUTH PAGE                                              */
/* ====================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(900px 400px at 10% -10%, rgba(20, 99, 255, 0.18), transparent 60%),
        radial-gradient(800px 400px at 90% -10%, rgba(45, 212, 191, 0.18), transparent 60%),
        linear-gradient(180deg, #f6f9ff 0%, #ffffff 70%);
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px 0;
}

.auth-header .logo-container {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-header .logo-text {
    margin-top: 0;
}

.auth-header .logo-image {
    width: 40px;
}

.auth-header a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
}

.auth-shell {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 40px 20px 80px;
}

.auth-card {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.auth-info {
    padding: 48px;
    background: linear-gradient(160deg, rgba(20, 99, 255, 0.1), rgba(45, 212, 191, 0.1));
}

.auth-info h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 16px;
}

.auth-info p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.auth-stats {
    display: grid;
    gap: 16px;
}

.auth-stat {
    padding: 16px 18px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.auth-forms {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-tabs {
    display: inline-flex;
    gap: 6px;
    background: var(--bg-light);
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
}

.auth-tabs button {
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    color: var(--text-medium);
}

.auth-tabs button.active {
    background: #ffffff;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.auth-form.active {
    display: flex;
}

.auth-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-form input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-family: var(--font-family);
}

.auth-form select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-family: var(--font-family);
    background: #ffffff;
}

.auth-field {
    display: block;
}

.auth-form button {
    border: none;
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.auth-form button:hover {
    transform: translateY(-1px);
}

.auth-steps {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.auth-step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.9);
    color: var(--text-medium);
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-step-pill.active {
    background: var(--primary-gradient);
    color: #ffffff;
}

.auth-step {
    display: none;
    gap: 16px;
}

.auth-step.active {
    display: grid;
}

.auth-step-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.auth-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-note a {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
}

.auth-note a:hover {
    text-decoration: underline;
}

.auth-hint {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.auth-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.auth-checkbox input {
    margin-top: 3px;
}

.auth-checkbox a {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
}

.auth-checkbox a:hover {
    text-decoration: underline;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin: 12px 0 16px;
    font-weight: 600;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-alert.success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.simple-footer {
    padding: 20px 0 36px;
    text-align: center;
    color: var(--text-light);
}

.simple-footer a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

/* ACCOUNT / DASHBOARD */
.account-page {
    background: var(--bg-light);
}
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}
.account-nav {
    display: flex;
    gap: 12px;
}
.account-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}
.account-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    align-items: center;
}
.account-hero h1 { font-size: 2.2rem; }
.role-pill {
    display: inline-block;
    background: rgba(0, 123, 255, 0.12);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
}
.account-meta {
    display: grid;
    gap: 12px;
    text-align: right;
}
.account-meta .label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
}
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 28px;
}
.account-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.account-card h3 {
    margin-bottom: 12px;
}
.account-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 20px;
}
.account-list .label {
    display: inline-block;
    min-width: 140px;
    color: var(--text-light);
    font-size: 0.9rem;
}
.account-alert {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 600;
}
.account-alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}
.account-alert.success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}
.account-form label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
}
.account-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 6px;
}
.account-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 6px;
    font-family: var(--font-family);
    background: #ffffff;
}
.account-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 6px;
    font-family: var(--font-family);
    min-height: 90px;
}
.account-form .cta-button {
    width: 100%;
    margin-top: 16px;
}
.account-chat-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 12px;
}
.account-chat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}
.report-excerpt {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--text-medium);
}
.report-filter {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}
.report-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.report-filter label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.report-filter input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    font-family: var(--font-family);
}
.report-filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.report-draft {
    margin: 20px 0;
    padding: 16px;
    border-radius: 16px;
    border: 1px dashed var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}
.report-draft h4 {
    margin-bottom: 10px;
}
.report-detail h2 {
    margin-bottom: 8px;
}
.report-body {
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
}
.report-meta {
    margin-top: 12px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
}
.report-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

@media print {
    .account-header,
    .simple-footer,
    .report-actions {
        display: none;
    }
    body {
        background: #ffffff;
    }
    .account-shell {
        padding: 0;
    }
    .account-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}
.account-chat-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}
.muted {
    color: var(--text-light);
}
.chat-view {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}
.chat-view-message {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}
.chat-view-message.user {
    border-color: rgba(0, 123, 255, 0.3);
    background: rgba(0, 123, 255, 0.08);
}
.chat-view-role {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}
.chat-view-time {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.stat-card {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.02);
}
.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
}
.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 4px;
}
.teacher-students {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}
.teacher-student-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
}
.teacher-student-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.teacher-student-fields {
    display: grid;
    gap: 12px;
}
.teacher-student-fields label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.teacher-student-fields input,
.teacher-student-fields textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    font-family: var(--font-family);
}
.teacher-student-fields textarea {
    min-height: 80px;
}
.teacher-student-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.danger-link {
    background: none;
    border: none;
    color: #dc2626;
    font-weight: 700;
    cursor: pointer;
}
.danger-link:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    .account-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .account-meta {
        text-align: left;
    }
    .account-header {
        flex-direction: column;
        gap: 16px;
    }
}

/* HOWTO PAGE */
.howto-page {
    background: var(--bg-light);
}
.howto-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}
.howto-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
    background: var(--bg-white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.howto-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
}
.howto-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.howto-highlight {
    border-radius: 18px;
    border: 1px solid var(--border-color);
    padding: 20px;
    background: rgba(0, 123, 255, 0.05);
}
.howto-highlight ol {
    margin: 12px 0 0 18px;
}
.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 28px;
}
.howto-step-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.howto-screens {
    margin-top: 32px;
}
.howto-section-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
}
.screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.screen-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.screen-placeholder {
    height: 160px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 198, 255, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}
.howto-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 28px;
}
.howto-tip {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
}
.howto-tip ul {
    margin: 12px 0 0 18px;
}

@media (max-width: 900px) {
    .howto-hero {
        grid-template-columns: 1fr;
    }
    .howto-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

@media (max-width: 980px) {
    .auth-card {
        grid-template-columns: 1fr;
    }
    .auth-info {
        padding: 36px;
    }
    .auth-forms {
        padding: 32px;
    }
}

/* 2026 visual refresh */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-cyan: #06b6d4;
    --bg-light: #f3f7ff;
    --bg-white: #ffffff;
    --bg-soft: rgba(255, 255, 255, 0.78);
    --bg-hero: radial-gradient(1200px 560px at 12% -12%, rgba(37, 99, 235, 0.22), transparent 56%),
        radial-gradient(900px 480px at 92% -12%, rgba(6, 182, 212, 0.18), transparent 50%),
        linear-gradient(180deg, #eef5ff 0%, #fbfdff 50%, #ffffff 100%);
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --border-color: rgba(148, 163, 184, 0.22);
    --text-dark: #0f172a;
    --text-medium: #334155;
    --text-light: #64748b;
    --success-green: #16a34a;
    --shadow-sm: 0 18px 50px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 28px 80px rgba(15, 23, 42, 0.14);
}

body {
    background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 58%);
    color: var(--text-dark);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.35;
    z-index: -1;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    letter-spacing: -0.03em;
}

section {
    padding: 96px 0;
}

.brand-link {
    text-decoration: none;
    color: inherit;
}

.hero-section {
    background: var(--bg-hero);
    padding: 26px 0 88px;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 40px auto auto 50%;
    width: min(1120px, calc(100% - 32px));
    height: calc(100% - 40px);
    transform: translateX(-50%);
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.36));
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-md);
    z-index: 0;
}

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

.hero-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
}

.hero-nav-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
}

.hero-nav a,
.hero-actions a,
.footer a,
.simple-footer a,
.account-chat-list a,
.auth-header a {
    transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
}

.hero-nav a:hover {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.9);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 34px;
    align-items: center;
}

.hero-copy {
    max-width: 620px;
}

.hero-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: rgba(255, 255, 255, 0.78);
    color: var(--primary-blue-dark);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: none;
}

.hero-copy h1 {
    margin-top: 22px;
    margin-bottom: 18px;
    font-size: clamp(3rem, 5vw, 5.2rem);
    line-height: 0.95;
}

.hero-content .subtitle {
    margin: 0 0 28px;
    max-width: 560px;
    color: var(--text-medium);
    font-size: 1.12rem;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.hero-ghost {
    background: rgba(255, 255, 255, 0.88);
}

.hero-features {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 18px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
}

.hero-showcase {
    display: grid;
    gap: 18px;
}

.hero-panel,
.hero-mini-card,
.feature-card,
.tab-panel,
.tariff-card,
.review-card,
.faq-item,
.form-container,
.account-card,
.howto-hero,
.howto-step-card,
.screen-card,
.howto-tip,
.teacher-student-card,
.auth-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-sm);
}

.hero-panel {
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 255, 0.88));
}

.hero-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-pill,
.panel-muted,
.mini-label,
.popular-badge,
.parents-chip,
.ai-card-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.panel-pill,
.mini-label,
.popular-badge,
.parents-chip,
.ai-card-tag {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-blue-dark);
}

.panel-muted {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-light);
}

.hero-panel h3 {
    font-size: clamp(1.7rem, 2.2vw, 2.2rem);
    margin-bottom: 12px;
}

.hero-panel p,
.hero-mini-card p {
    color: var(--text-medium);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.metric-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.metric-card strong,
.hero-mini-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.metric-card span,
.hero-mini-card p,
.account-list .label,
.report-excerpt,
.account-meta .label,
.stat-label,
.auth-hint,
.auth-note,
.muted,
.footer,
.section-subtitle,
.parents-card-mini p,
.exam-note,
.result-line,
.result-explain,
.exam-subtitle {
    color: var(--text-light);
}

.hero-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hero-mini-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
}

.accent-card {
    background: linear-gradient(160deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.08) 80%, rgba(255, 255, 255, 0.88));
}

.ghost-button {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: var(--text-dark);
}

.cta-button,
.cta-button-form,
.auth-form button,
.account-form .cta-button {
    background: var(--primary-gradient);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.22);
}

.cta-button:hover,
.cta-button-form:hover,
.auth-form button:hover,
.ghost-button:hover,
.tariff-card:hover,
.feature-card:hover,
.review-card:hover,
.account-card:hover,
.howto-step-card:hover,
.screen-card:hover,
.howto-tip:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.for-whom-section,
.features-section,
.reviews-section,
.tariffs-section,
.faq-section,
.cta-section,
.team-section,
.parents-section,
.ai-mentor-section,
.exam-section,
.how-it-works-section {
    position: relative;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    width: 84px;
    height: 5px;
    margin-top: 18px;
}

.section-subtitle {
    font-size: 1.04rem;
    max-width: 680px;
}

.tabs-content-wrapper {
    margin-top: 14px;
}

.tab-panel {
    border-radius: 28px;
    padding: 36px;
    background: rgba(255, 255, 255, 0.88);
}

.panel-content h3 {
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
    margin-bottom: 14px;
}

.panel-content p,
.panel-content li,
.feature-card p,
.feature-card li,
.step-card p,
.review-card p,
.faq-item p,
.account-card p,
.auth-info p,
.howto-tip li {
    font-size: 1rem;
    color: var(--text-medium);
}

.steps-grid,
.features-grid,
.tariffs-grid,
.reviews-grid,
.team-grid {
    gap: 24px;
}

.step-card,
.review-card,
.tariff-card,
.team-block,
.ai-card,
.parents-card-mini,
.stat-card {
    border-radius: 24px;
}

.step-card,
.review-card,
.team-block {
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 52px;
    height: 52px;
    line-height: 52px;
    font-size: 1rem;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.tariff-card {
    padding: 30px 28px;
    background: rgba(255, 255, 255, 0.92);
}

.tariff-card.popular {
    transform: translateY(-10px) scale(1.02);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 255, 0.96));
}

.review-card span {
    display: block;
    margin-top: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.form-container {
    max-width: 620px;
    padding: 40px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
}

.form-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(6, 182, 212, 0.16));
}

.form-group {
    text-align: left;
    margin-bottom: 16px;
}

.form-group label,
.account-form label,
.report-filter label,
.teacher-student-fields label,
.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.account-form input,
.account-form select,
.account-form textarea,
.report-filter input,
.auth-form input,
.auth-form select,
.teacher-student-fields input,
.teacher-student-fields textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.96);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus,
.report-filter input:focus,
.auth-form input:focus,
.auth-form select:focus,
.teacher-student-fields input:focus,
.teacher-student-fields textarea:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.footer {
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-grid {
    gap: 28px;
}

.footer-logo {
    width: 62px;
}

.footer-brand,
.footer-nav,
.footer-contacts {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-bottom {
    margin-top: 10px;
    padding-top: 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-page,
.account-page,
.howto-page {
    background: radial-gradient(1000px 460px at 8% -10%, rgba(37, 99, 235, 0.16), transparent 56%),
        radial-gradient(860px 420px at 92% -10%, rgba(6, 182, 212, 0.16), transparent 50%),
        linear-gradient(180deg, #f4f8ff 0%, #ffffff 72%);
}

.auth-header,
.account-header {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 24px 0 0;
}

.auth-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
}

.auth-info {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.1));
}

.auth-stat {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.auth-tabs {
    background: rgba(241, 245, 249, 0.9);
}

.auth-tabs button.active {
    background: var(--primary-gradient);
    color: #ffffff;
}

.account-shell {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 84px;
}

.account-hero {
    padding: 34px;
    border-radius: 30px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.82));
    box-shadow: var(--shadow-sm);
}

.role-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue-dark);
    font-weight: 800;
}

.account-meta {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.account-grid {
    gap: 22px;
    margin-top: 26px;
}

.account-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.88);
}

.account-list,
.report-filter-row,
.report-filter-actions,
.teacher-student-fields {
    gap: 14px;
}

.account-chat-list {
    gap: 12px;
}

.account-chat-list li {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.stat-card,
.teacher-student-card,
.chat-view-message {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.report-filter,
.report-draft {
    margin-top: 18px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.report-filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.report-filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.simple-footer {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 40px;
}

@media (max-width: 1100px) {
    .hero-grid,
    .ai-mentor-grid,
    .parents-card,
    .howto-hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-stack,
    .hero-metrics,
    .report-filter-row {
        grid-template-columns: 1fr;
    }

    .hero-nav-wrap {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    section {
        padding: 78px 0;
    }

    .hero-section {
        padding-bottom: 72px;
    }

    .hero-section::before {
        inset: 16px;
        width: auto;
        transform: none;
        border-radius: 24px;
    }

    .hero-topbar,
    .account-header,
    .auth-header,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-nav {
        flex-wrap: wrap;
        border-radius: 24px;
    }

    .tabs-nav,
    .hero-features,
    .hero-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .features-grid,
    .reviews-grid,
    .tariffs-grid,
    .steps-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .tariff-card.popular {
        transform: none;
    }

    .account-shell,
    .auth-header,
    .account-header,
    .simple-footer {
        width: calc(100% - 24px);
    }

    .form-container,
    .tab-panel,
    .account-card,
    .account-hero,
    .hero-panel,
    .hero-mini-card,
    .step-card,
    .review-card,
    .team-block {
        padding: 22px;
    }
}

@media (max-width: 640px) {
    .hero-copy h1 {
        font-size: clamp(2.4rem, 10vw, 3.4rem);
    }

    .hero-cta-row,
    .hero-actions,
    .report-filter-actions,
    .auth-tabs {
        width: 100%;
    }

    .hero-cta-row > a,
    .hero-actions > a,
    .report-filter-actions > a,
    .report-filter-actions > button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .auth-info,
    .auth-forms {
        padding: 24px;
    }

    .auth-card {
        border-radius: 22px;
    }
}

/* 2026 product polish */
.brand-link {
    gap: 14px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f3f8c;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(59, 130, 246, 0.16);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
}

.hero-section {
    position: relative;
}

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

.hero-copy h1,
.auth-info h1,
.account-hero h1 {
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    max-width: 11ch;
}

.hero-content .subtitle {
    max-width: 640px;
}

.hero-badge,
.panel-pill,
.mini-label,
.role-pill {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero-features span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(12px);
}

.hero-panel-primary {
    position: relative;
    overflow: hidden;
}

.hero-panel-primary::after {
    content: "";
    position: absolute;
    inset: auto -40px -70px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.24), transparent 68%);
    pointer-events: none;
}

.metric-card {
    min-height: 132px;
}

.metric-card strong,
.hero-mini-card strong {
    line-height: 1.2;
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(37, 99, 235, 0.03));
    pointer-events: none;
}

.feature-icon-wrapper {
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.16);
}

.auth-page,
.account-page {
    background:
        radial-gradient(900px 500px at 8% -10%, rgba(14, 165, 233, 0.14), transparent 56%),
        radial-gradient(720px 480px at 100% 0%, rgba(59, 130, 246, 0.14), transparent 52%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.auth-card {
    overflow: hidden;
}

.auth-info {
    position: relative;
    background:
        radial-gradient(420px 240px at 15% 15%, rgba(125, 211, 252, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 247, 255, 0.78));
}

.auth-info::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 68%);
}

.auth-stats {
    gap: 12px;
}

.auth-stat {
    position: relative;
    padding-left: 42px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.auth-stat::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08);
}

.auth-forms {
    background: rgba(255, 255, 255, 0.9);
}

.auth-tabs {
    padding: 6px;
    background: rgba(226, 232, 240, 0.66);
}

.auth-tabs button {
    font-weight: 800;
}

.auth-step-pill {
    letter-spacing: -0.01em;
}

.auth-step-actions {
    align-items: center;
}

.account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.account-hero::before {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 68%);
    pointer-events: none;
}

.account-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.account-meta > div {
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.account-meta > div:last-child {
    border-bottom: 0;
}

.account-card h3 {
    margin-bottom: 10px;
}

.account-card > p,
.account-card .muted {
    max-width: 62ch;
}

.account-chat-list li,
.teacher-student-card,
.report-draft,
.report-filter {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.stat-card {
    min-height: 118px;
    justify-content: space-between;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.games-announcement-section {
    padding: 28px 0 12px;
}

.games-announcement-card,
.games-history-card,
.games-embed-card,
.games-preview-card,
.games-side-card,
.games-session-item {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.games-announcement-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 159, 28, 0.16), transparent 32%),
        radial-gradient(circle at bottom left, rgba(46, 196, 182, 0.14), transparent 30%),
        rgba(255, 255, 255, 0.94);
}

.games-announcement-grid,
.games-preview-grid,
.games-session-list {
    display: grid;
    gap: 16px;
}

.games-announcement-mini,
.games-preview-card,
.games-side-card,
.games-history-card,
.games-embed-card,
.games-session-item {
    padding: 22px;
}

.games-page {
    background:
        radial-gradient(circle at top left, rgba(255, 217, 135, 0.16), transparent 24%),
        radial-gradient(circle at bottom right, rgba(46, 196, 182, 0.14), transparent 24%),
        linear-gradient(180deg, #f7fbff 0%, #fffaf0 46%, #f5fff8 100%);
}

.games-shell-page {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 48px;
    display: grid;
    gap: 24px;
}

.games-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
}

.games-hero-copy,
.games-hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.games-hero-actions,
.games-session-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.games-email-chip,
.games-sync-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.games-bullets {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
}

.games-preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.games-preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 159, 28, 0.16), rgba(46, 196, 182, 0.18));
    font-size: 24px;
}

.games-history-head,
.games-embed-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.games-session-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
}

.games-session-top {
    margin: 0;
    grid-column: 1 / -1;
    color: var(--text-secondary);
}

.games-sync-indicator[data-state="syncing"] {
    background: rgba(255, 159, 28, 0.18);
    color: #8d4e08;
}

.games-sync-indicator[data-state="error"] {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
}

.games-iframe {
    width: 100%;
    min-height: 1240px;
    border: 0;
    border-radius: 24px;
    background: #fff;
}

.auth-card-premium {
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 0.95fr);
    min-height: 640px;
}

.auth-card-single {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
}

.auth-info-premium,
.auth-info-compact {
    padding: 34px;
}

.auth-forms-premium {
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form-head {
    margin-bottom: 6px;
}

.auth-form-head h2 {
    font-size: 1.55rem;
    margin-bottom: 4px;
}

.auth-inline-actions {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 8px;
}

.auth-text-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.auth-text-link:hover {
    text-decoration: underline;
}

.auth-highlight-list,
.auth-side-metrics,
.admin-role-list,
.admin-metrics-grid {
    display: grid;
    gap: 14px;
}

.auth-side-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
}

.auth-side-metrics .metric-card {
    min-height: auto;
}

.reset-preview-card {
    margin-top: 8px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.88);
    display: grid;
    gap: 12px;
}

.admin-page {
    background:
        radial-gradient(920px 520px at 4% -10%, rgba(14, 165, 233, 0.12), transparent 54%),
        radial-gradient(860px 520px at 100% 0%, rgba(99, 102, 241, 0.14), transparent 52%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
}

.admin-hero {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 242, 255, 0.88));
}

.admin-subtitle {
    text-align: left;
    margin-left: 0;
}

.admin-metrics-grid {
    margin-top: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stat-card {
    padding: 24px;
}

.admin-role-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-role-item,
.admin-table-row,
.admin-table-head {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(80px, 0.6fr));
    gap: 12px;
    align-items: center;
}

.admin-role-item {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-table {
    display: grid;
    gap: 10px;
}

.admin-table-head {
    padding: 0 12px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
}

.admin-table-row {
    padding: 16px 12px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.simple-footer p,
.footer-bottom p {
    color: #5b6474;
}

/* Widget polish */
.chat-widget {
    width: min(340px, calc(100vw - 32px));
    right: 16px;
    bottom: 16px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
}

.chat-widget .chat-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

.chat-widget .chat-container {
    height: min(460px, 70vh);
}

.chat-widget .chat-messages {
    background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
}

.chat-widget .chat-controls,
.chat-widget .class-select,
.chat-widget #chat-input {
    background: rgba(255, 255, 255, 0.94);
}

.chat-widget .send-btn {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

@media (max-width: 768px) {
    .chat-widget {
        display: none;
    }

    .account-hero {
        grid-template-columns: 1fr;
    }

    .games-announcement-card,
    .games-hero,
    .games-preview-grid {
        grid-template-columns: 1fr;
    }

    .auth-card-premium,
    .auth-card-single,
    .admin-metrics-grid,
    .auth-side-metrics,
    .admin-role-list {
        grid-template-columns: 1fr;
    }

    .games-shell-page {
        width: calc(100% - 20px);
        margin-bottom: 28px;
    }

    .games-hero-actions,
    .games-session-stats,
    .games-history-head,
    .games-embed-head {
        flex-direction: column;
    }

    .games-announcement-card,
    .games-history-card,
    .games-embed-card,
    .games-preview-card,
    .games-side-card,
    .games-session-item {
        padding: 18px;
    }

    .games-iframe {
        min-height: 980px;
    }

    .games-session-item {
        grid-template-columns: 1fr;
    }

    .admin-table-head,
    .admin-table-row {
        grid-template-columns: 1fr;
    }
}

/* dashboard system refresh */
.hero-topbar,
.hero-nav-wrap,
.hero-actions,
.account-nav,
.account-hero-actions {
    flex-wrap: wrap;
}

.user-dashboard-grid,
.admin-metrics-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.user-dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-focus-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
    margin-top: 24px;
}

.dashboard-focus-card,
.dashboard-rail-card {
    padding: 24px 26px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.dashboard-focus-card {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 30%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.9));
}

.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-focus-card h3,
.dashboard-rail-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.dashboard-focus-card p,
.dashboard-rail-card p {
    color: var(--text-medium);
}

.dashboard-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.dashboard-rail-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.dashboard-rail-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-medium);
}

.dashboard-rail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
    align-items: start;
}

.dashboard-panel {
    height: 100%;
}

.dashboard-span-3 { grid-column: span 3; }
.dashboard-span-4 { grid-column: span 4; }
.dashboard-span-5 { grid-column: span 5; }
.dashboard-span-7 { grid-column: span 7; }
.dashboard-span-8 { grid-column: span 8; }

.dashboard-panel-list .account-chat-list {
    margin-top: 16px;
}

.dashboard-panel-form .account-form,
.dashboard-panel-form .report-draft {
    margin-top: 18px;
}

.account-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 320px);
    align-items: stretch;
}

.account-meta {
    min-width: 0;
    gap: 0;
}

.account-meta > div > span:last-child {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.account-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-card > .cta-button:last-child,
.account-card > .ghost-button:last-child {
    margin-top: auto;
}

.account-chat-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    align-items: start;
}

.account-chat-list li > :first-child,
.admin-table-row > :first-child {
    min-width: 0;
}

.account-chat-list li span,
.account-chat-list li a,
.muted,
.report-excerpt {
    overflow-wrap: anywhere;
}

.admin-focus-card {
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 32%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(239, 243, 255, 0.92));
}

.admin-table {
    overflow: hidden;
}

.admin-table-head,
.admin-table-row {
    grid-template-columns: minmax(0, 1.7fr) minmax(100px, 0.7fr) minmax(70px, 0.55fr) minmax(70px, 0.55fr);
}

.admin-table-head {
    gap: 16px;
}

.admin-table-row {
    gap: 16px;
    overflow: visible;
}

.admin-table-row .muted,
.admin-role-item,
.admin-table-row span {
    overflow-wrap: anywhere;
}

.admin-role-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.auth-card-premium {
    min-height: auto;
}

.auth-side-metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (max-width: 1180px) {
    .dashboard-focus-grid {
        grid-template-columns: 1fr;
    }

    .account-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-span-3,
    .dashboard-span-4,
    .dashboard-span-5,
    .dashboard-span-7,
    .dashboard-span-8 {
        grid-column: span 6;
    }
}

@media (max-width: 1024px) {
    .auth-card-premium,
    .auth-card-single {
        grid-template-columns: 1fr;
    }

    .admin-table-head,
    .admin-table-row {
        grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(74px, 0.6fr));
    }
}

@media (max-width: 860px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-span-3,
    .dashboard-span-4,
    .dashboard-span-5,
    .dashboard-span-7,
    .dashboard-span-8 {
        grid-column: span 1;
    }

    .account-chat-list li,
    .admin-table-head,
    .admin-table-row {
        grid-template-columns: 1fr;
    }

    .hero-topbar,
    .hero-nav-wrap,
    .hero-actions,
    .account-header,
    .account-nav {
        align-items: stretch;
    }
}
