/* Унифицированные стили для родительского портала - идентичны маркету */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--dark-bg, #16191e);
}

:root {
    --primary-yellow: #FBE61A;
    --primary-yellow-rgb: 251, 230, 26;
    --dark-bg: #16191e;
    --dark-bg-secondary: #1c2128;
    --surface: rgba(31, 35, 40, 0.82);
    --surface-hover: rgba(44, 49, 56, 0.94);
    --text-white: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.68);
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #8ee69c;
    --success-strong: #3dbe72;
    --error-color: #F44336;
    --radius-card: 16px;
    --radius-control: 10px;
    --radius-badge: 6px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.32);
}

body {
    font-family: 'Montserrat', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: var(--dark-bg);
    color: var(--text-white);
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
}

body::before,
body::after {
    content: '';
    position: fixed;
    z-index: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        -38deg,
        rgba(var(--primary-yellow-rgb), 0.18) 0 18px,
        rgba(var(--primary-yellow-rgb), 0) 18px 46px
    );
}

body::before {
    top: 0;
    right: 0;
    width: min(760px, 62vw);
    height: min(620px, 72vh);
    -webkit-mask-image: radial-gradient(ellipse 120% 110% at 100% 0%, #000 0%, #000 32%, transparent 78%);
    mask-image: radial-gradient(ellipse 120% 110% at 100% 0%, #000 0%, #000 32%, transparent 78%);
}

body::after {
    left: 0;
    bottom: 0;
    width: min(680px, 56vw);
    height: min(560px, 66vh);
    background-image: repeating-linear-gradient(
        -38deg,
        rgba(var(--primary-yellow-rgb), 0.14) 0 18px,
        rgba(var(--primary-yellow-rgb), 0) 18px 46px
    );
    -webkit-mask-image: radial-gradient(ellipse 120% 110% at 0% 100%, #000 0%, #000 26%, transparent 76%);
    mask-image: radial-gradient(ellipse 120% 110% at 0% 100%, #000 0%, #000 26%, transparent 76%);
}

@media (max-width: 720px) {
    body::before {
        width: 78vw;
        height: 52vh;
    }
    body::after {
        width: 72vw;
        height: 46vh;
    }
}

/* Шапка - идентична маркету */
.portal-header {
    background: rgba(31, 35, 40, 0.92);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 28px;
}

/* Контейнер для header и мобильного меню */
.portal-header-wrapper {
    position: relative;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    min-width: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1 1 auto;
}

.header-nav.desktop-nav {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}

.header-nav.desktop-nav .nav-link {
    white-space: nowrap;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(220px, 22vw);
}

.mobile-menu-toggle {
    display: none;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    background: rgba(255,255,255,.1);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
    height: 36px;
}

.logo-image {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: inline-flex;
    align-items: center;
    gap: 0.32em;
    line-height: 1;
    letter-spacing: 0.02em;
    padding-top: 1px;
}

.logo-mark {
    color: var(--text-white);
    -webkit-text-fill-color: var(--text-white);
}

.logo .highlight {
    color: var(--primary-yellow);
}

@media (min-width: 1280px) and (max-width: 1440px) {
    .header-nav.desktop-nav {
        gap: 16px;
    }

    .header-nav.desktop-nav .nav-link {
        font-size: 15px;
    }
}

body.portal-menu-open {
    overflow: hidden;
}

body.portal-menu-open .cart-widget-btn,
body.portal-menu-open .cart-widget {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 12, 0.78);
    z-index: 90;
}

.mobile-nav-backdrop.is-open {
    display: block;
}

.mobile-nav {
    display: none; /* По умолчанию скрыто на десктопе */
    flex-direction: column;
    background: #1a1e23;
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-nav-group {
    display: none;
}

/* Широкий десктоп: выпадающее меню не показываем */
@media (min-width: 1280px) {
    .mobile-nav,
    .mobile-nav-backdrop {
        display: none !important;
    }
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-yellow), #fff200);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link.active,
.nav-link[aria-current="page"] {
    color: var(--primary-yellow);
}

.nav-link.active::after,
.nav-link[aria-current="page"]::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-yellow);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    flex: 0 0 auto;
}

@media (max-width: 1279px) {
    .portal-header {
        padding: 10px 0;
    }

    .header-content {
        align-items: center;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        gap: 8px;
        padding: 0 16px;
    }

    .header-left {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        justify-content: flex-start;
        gap: 10px;
    }

    .logo .logo-image {
        height: 22px;
    }

    .logo {
        font-size: 15px;
        height: 36px;
        min-width: 0;
    }

    .header-nav.desktop-nav {
        display: none !important;
    }

    .mobile-nav {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1a1e23;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
        z-index: 95;
        max-height: 0;
        overflow: hidden;
        padding: 0 20px;
        gap: 0;
        transition: max-height 0.25s ease-out, padding 0.25s ease-out;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-nav:not(.mobile-nav-open) {
        max-height: 0 !important;
        padding: 0 20px !important;
        border-bottom: none;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .mobile-nav.mobile-nav-open {
        max-height: calc(100vh - 56px) !important;
        overflow-y: auto !important;
        padding: 12px 16px 28px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .mobile-nav.mobile-nav-open::-webkit-scrollbar {
        width: 4px;
    }

    .mobile-nav.mobile-nav-open::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.22);
        border-radius: 4px;
    }

    .mobile-nav .nav-link::after {
        display: none;
    }

    .mobile-nav-shop {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 6px 0 8px;
        padding: 12px 16px;
        border-radius: 12px;
        background: var(--primary-yellow);
        color: var(--dark-bg);
        text-decoration: none;
        font-size: 20px;
        font-weight: 800;
        letter-spacing: -0.03em;
        line-height: 1;
        box-shadow: 0 10px 24px rgba(var(--primary-yellow-rgb), 0.18);
    }

    .mobile-nav-shop:hover {
        background: #fff200;
    }

    .mobile-nav-shop.active {
        box-shadow: 0 10px 24px rgba(var(--primary-yellow-rgb), 0.18);
    }

    .mobile-nav-group {
        display: block;
        margin: 16px 0 4px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.45);
    }

    .mobile-nav-user + .mobile-nav-shop {
        margin-top: 10px;
    }

    .mobile-nav-shop + .mobile-nav-group {
        margin-top: 8px;
        padding-top: 14px;
    }

    .mobile-nav .nav-link.active {
        color: var(--primary-yellow);
        font-weight: 700;
    }

    .header-actions {
        display: flex;
        align-items: center;
        flex-wrap: nowrap !important;
        gap: 8px;
        margin-top: 0;
        width: auto;
        flex: 0 0 auto;
    }

    .header-actions-mobile {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-left: 0;
        width: 36px;
        height: 36px;
    }

    .header-bell,
    .btn-logout,
    .logout-btn,
    .btn-enter,
    .login-btn {
        box-sizing: border-box;
        height: 36px;
        min-height: 36px;
        flex-shrink: 0;
    }

    .header-bell {
        width: 36px;
        padding: 0;
        font-size: 14px;
    }

    .mobile-nav .nav-link {
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-nav .nav-link:last-child {
        border-bottom: none;
    }

    .parent-announce-modal {
        padding: 12px;
        align-items: center;
        justify-content: center;
    }

    .parent-announce-modal-content {
        max-width: 100%;
        max-height: 90vh;
        min-height: 0;
        border-radius: 14px;
    }

    .header-actions .user-name {
        max-width: min(160px, 18vw);
    }

    .mobile-nav-user {
        color: var(--primary-yellow);
        font-weight: 700;
        padding: 2px 0 10px;
        margin-bottom: 0;
        border-bottom: 0;
    }

    .btn-logout, .logout-btn,
    .btn-enter, .login-btn {
        padding: 0 12px;
        font-size: 12px;
        line-height: 1;
        transform: none;
    }

    .btn-enter:hover, .login-btn:hover {
        transform: none;
    }
}

@media (max-width: 420px) {
    .logo {
        font-size: 14px;
        gap: 6px;
    }

    .header-content {
        padding: 0 12px;
        gap: 6px;
    }

    .header-actions {
        gap: 6px;
    }

    .btn-enter, .login-btn,
    .btn-logout, .logout-btn {
        padding: 0 10px;
        font-size: 11px;
    }
}

/* На широком десктопе скрываем кнопку меню */
@media (min-width: 1280px) {
    .header-actions-mobile {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .user-info {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        white-space: nowrap;
        min-width: 0;
    }
    
    .user-name {
        display: inline-block;
        max-width: min(220px, 22vw);
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }

    /* Стили для ссылок в мобильном меню */
    .mobile-nav .nav-link {
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-nav .nav-link:last-child {
        border-bottom: none;
    }
}

.header-bell {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,.1);
    color: var(--text-white);
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.header-bell:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    background: rgba(255,255,255,.15);
}
.header-bell-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.header-bell-dot[hidden] { display: none; }
.parent-announce-modal-content { max-width: 520px; }
.announce-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}
.announce-item h4 { margin: 0 0 6px; font-size: 16px; }
.announce-item p { margin: 0; color: var(--text-gray); font-size: 14px; line-height: 1.5; }
.announce-item time { display: block; margin-top: 8px; font-size: 12px; color: var(--text-gray); }
.announce-all { display: inline-block; margin: 16px 0 4px; color: var(--primary-yellow); font-weight: 700; text-decoration: none; }
.empty-announce { color: var(--text-gray); }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal.active {
    display: flex;
}
.modal-content {
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    border-radius: 14px;
    background: rgba(31, 35, 40, 0.97);
    border: 1px solid var(--border-color);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h3 {
    margin: 0;
    font-size: 18px;
}
.modal-body { padding: 16px 18px 20px; }
.modal-close {
    background: none;
    border: 0;
    color: var(--text-gray);
    font-size: 22px;
    cursor: pointer;
    width: 36px;
    height: 36px;
}

.btn-enter, .login-btn {
    box-sizing: border-box;
    height: 36px;
    padding: 0 16px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-enter:hover, .login-btn:hover {
    background: #fff200;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-yellow-rgb), 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    color: var(--text-white);
    font-size: 14px;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(220px, 22vw);
}

.btn-logout, .logout-btn {
    height: 36px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-logout:hover, .logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .header-actions .user-name {
        display: none !important;
    }

    .portal-header .header-content {
        flex-wrap: nowrap !important;
    }

    .portal-header .header-left {
        flex: 1 1 0;
        width: auto !important;
        min-width: 0;
    }

    .portal-header .header-actions,
    .portal-header .user-info {
        flex: 0 0 auto;
        flex-wrap: nowrap !important;
        width: auto !important;
        gap: 8px;
    }

    .portal-header .btn-enter,
    .portal-header .login-btn,
    .portal-header .btn-logout,
    .portal-header .logout-btn {
        height: 36px;
        min-height: 36px;
        max-height: 36px;
        padding: 0 12px;
        font-size: 12px;
        line-height: 1;
        white-space: nowrap;
        transform: none;
    }

    .portal-header .header-bell,
    .portal-header .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        max-height: 36px;
        padding: 0;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .portal-header .btn-enter,
    .portal-header .login-btn,
    .portal-header .btn-logout,
    .portal-header .logout-btn {
        padding: 0 8px;
        font-size: 11px;
        letter-spacing: 0.2px;
    }

    .portal-header .logo {
        font-size: 13px;
        gap: 6px;
    }
}

/* Контейнер */
.portal-container, .portal-wrapper {
    min-height: calc(100vh - 200px);
    padding: 0 20px 60px;
    position: relative;
    z-index: 1;
}

.portal-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Заголовок секции */
.section-title, .page-header {
    text-align: left;
    margin-bottom: 28px;
    position: relative;
}

.section-title h1, .page-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 10px;
    letter-spacing: -0.04em;
    line-height: 1.15;
    position: relative;
    display: block;
    text-wrap: balance;
}

.page-kicker {
    color: var(--primary-yellow);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title h1::after, .page-header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary-yellow);
}

.section-title h1 .highlight, .page-header h1 .highlight {
    color: var(--primary-yellow);
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #fff200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title p, .page-header p {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1.55;
    max-width: 40rem;
    margin: 14px 0 0;
}

/* Сетка карточек */
.sections-grid, .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

/* Карточки - современный дизайн с улучшенными визуальными эффектами */
.section-card, .dashboard-card, .student-card, .announcement-card, .upload-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(31, 35, 40, 0.8) 0%, rgba(31, 35, 40, 0.6) 100%);
    backdrop-filter: blur(20px);
    padding: 32px;
    text-decoration: none;
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.section-card::before, .dashboard-card::before, .student-card::before,
.announcement-card::before, .upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section-card:hover::before, .dashboard-card:hover::before, .student-card:hover::before,
.announcement-card:hover::before, .upload-card:hover::before {
    opacity: 1;
}

.section-card:hover, .dashboard-card:hover, .student-card:hover, 
.announcement-card:hover, .upload-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(var(--primary-yellow-rgb), 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 
                0 0 40px rgba(var(--primary-yellow-rgb), 0.15);
    background: linear-gradient(135deg, rgba(31, 35, 40, 0.95) 0%, rgba(31, 35, 40, 0.75) 100%);
}

.students-section.dashboard-card:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.section-icon {
    font-size: 56px;
    color: var(--primary-yellow);
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(var(--primary-yellow-rgb), 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-card:hover .section-icon::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.section-card:hover .section-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(var(--primary-yellow-rgb), 0.5));
}

.section-title, .dashboard-card h2, .student-header h2 {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.section-card:hover .section-title {
    color: var(--primary-yellow);
    text-shadow: 0 0 20px rgba(var(--primary-yellow-rgb), 0.3);
}

.section-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    font-weight: 400;
    transition: color 0.3s ease;
}

.section-card:hover .section-description {
    color: rgba(255, 255, 255, 0.85);
}

/* Футер - идентичен маркету */
.portal-footer {
    background: rgba(31, 35, 40, 0.7);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px 48px;
    justify-content: start;
}

.footer-link {
    padding: 10px 20px;
    border-radius: 6px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.footer-link:hover {
    color: var(--primary-yellow);
    border-color: rgba(var(--primary-yellow-rgb), 0.3);
    background: rgba(var(--primary-yellow-rgb), 0.1);
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
}

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

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

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 5px 0;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

/* Формы и кнопки */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(22, 25, 30, 0.7) 0%, rgba(22, 25, 30, 0.5) 100%);
    color: var(--text-white);
    font-size: 15px;
    font-family: inherit;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: rgba(var(--primary-yellow-rgb), 0.6);
    background: linear-gradient(135deg, rgba(22, 25, 30, 0.9) 0%, rgba(22, 25, 30, 0.7) 100%);
    box-shadow: 0 0 0 4px rgba(var(--primary-yellow-rgb), 0.15),
                0 4px 20px rgba(var(--primary-yellow-rgb), 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-gray);
}

.btn, .btn-primary {
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #fff200 100%);
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(var(--primary-yellow-rgb), 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fff200 0%, var(--primary-yellow) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-yellow-rgb), 0.5);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(var(--primary-yellow-rgb), 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-color: rgba(var(--primary-yellow-rgb), 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Статистика - улучшенный дизайн */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.stat-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-yellow-rgb), 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-yellow-rgb), 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(var(--primary-yellow-rgb), 0.1);
}

.stat-item.success {
    border-color: rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
}

.stat-item.error {
    border-color: rgba(244, 67, 54, 0.3);
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(244, 67, 54, 0.05) 100%);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-value {
    transform: scale(1.1);
}

.stat-item.success .stat-value {
    color: #4CAF50;
}

.stat-item.error .stat-value {
    color: #F44336;
}

.stat-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Таблицы - улучшенный дизайн */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(135deg, rgba(31, 35, 40, 0.8) 0%, rgba(31, 35, 40, 0.6) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.data-table th, .data-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    color: var(--text-white);
    transition: all 0.2s ease;
    line-height: 1.4;
}

.data-table thead th {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    font-weight: 700;
    color: var(--primary-yellow);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.8px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
}

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

/* Статусные бейджи - улучшенный дизайн */
.status-badge, .badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.status-pending, .badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25) 0%, rgba(255, 193, 7, 0.15) 100%);
    color: #FFC107;
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.status-verified {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25) 0%, rgba(76, 175, 80, 0.15) 100%);
    color: #4CAF50;
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.status-rejected {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.25) 0%, rgba(244, 67, 54, 0.15) 100%);
    color: #F44336;
    border-color: rgba(244, 67, 54, 0.3);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.status-badge:hover, .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Загрузка и ошибки */
.loading, .error, .empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
    font-size: 18px;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Адаптивность */
@media (max-width: 1024px) {
    .sections-grid, .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
        gap: 20px;
    }
}

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

    .header-nav.desktop-nav {
        display: none !important;
    }

    .section-title, .page-header {
        margin-bottom: 40px;
    }

    .sections-grid, .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .portal-footer {
        margin-top: 60px;
        padding: 25px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
    }

    .footer-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .portal-container {
        padding: 0 10px 30px;
    }
}

/* ============================================
   DASHBOARD & PORTAL UX ENHANCEMENTS
   ============================================ */

.dashboard-info-panel {
    display: grid;
    gap: 32px;
    margin-bottom: 48px;
}

.info-panel-section {
    background: linear-gradient(135deg, rgba(31, 35, 40, 0.85) 0%, rgba(31, 35, 40, 0.65) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
}

.info-panel-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.info-panel-section .section-header h2 {
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 700;
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.info-panel-section .section-header h2 i {
    color: var(--primary-yellow);
}

.view-all-link {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-yellow-rgb), 0.3);
    background: rgba(var(--primary-yellow-rgb), 0.08);
    transition: all 0.2s ease;
}

.view-all-link:hover {
    background: rgba(var(--primary-yellow-rgb), 0.2);
    transform: translateY(-1px);
}

.announcements-preview {
    display: grid;
    gap: 16px;
}

.announcement-preview-item {
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.announcement-preview-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
}

.announcement-preview-item p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.announcement-preview-item .announcement-date {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.08);
}

.announcement-preview-item:hover {
    border-color: rgba(var(--primary-yellow-rgb), 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.quick-action-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.quick-action-card .action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--primary-yellow-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-yellow);
    font-size: 20px;
}

.quick-action-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.quick-action-card p {
    font-size: 13px;
    color: var(--text-gray);
}

.quick-action-card:hover {
    border-color: rgba(var(--primary-yellow-rgb), 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.students-section {
    margin-top: 24px;
}

.students-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-add-child {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(var(--primary-yellow-rgb), 0.4);
    background: rgba(var(--primary-yellow-rgb), 0.12);
    color: var(--primary-yellow);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-add-child:hover {
    background: rgba(var(--primary-yellow-rgb), 0.2);
    transform: translateY(-1px);
}

.student-attendance {
    margin-top: 12px;
}

.training-balance {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(var(--primary-yellow-rgb), 0.28);
    border-radius: 10px;
    background: rgba(var(--primary-yellow-rgb), 0.08);
}

.training-balance .mini-stat-value {
    font-size: 22px;
    line-height: 1.1;
}

.training-balance .mini-stat-label {
    margin-top: 0;
    font-size: 13px;
}

.training-until {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-gray);
}

.attendance-mini-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.mini-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-yellow);
}

.mini-stat-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

.loading-small,
.error-small {
    font-size: 12px;
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .dashboard-info-panel {
        gap: 20px;
    }

    .info-panel-section {
        padding: 20px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .attendance-mini-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .attendance-mini-stats {
        grid-template-columns: 1fr;
    }
}

/* Информационные блоки - улучшенный дизайн */
.info-box {
    background: linear-gradient(135deg, rgba(31, 35, 40, 0.85) 0%, rgba(31, 35, 40, 0.65) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-yellow);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(var(--primary-yellow-rgb), 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.info-box i {
    font-size: 56px;
    color: var(--primary-yellow);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 15px rgba(var(--primary-yellow-rgb), 0.4));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.info-box p {
    font-size: 17px;
    color: var(--text-gray);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.info-box a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.info-box a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width 0.3s ease;
}

.info-box a:hover::after {
    width: 100%;
}

.info-box a:hover {
    color: #fff200;
    text-shadow: none;
}

/* Элементы учеников - улучшенный дизайн */
.student-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.student-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-yellow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.student-item:hover::before {
    opacity: 1;
}

.student-item:hover {
    transform: translateX(4px);
    border-color: rgba(var(--primary-yellow-rgb), 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(var(--primary-yellow-rgb), 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.student-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-white);
    transition: color 0.3s ease;
}

.student-item:hover h3 {
    color: var(--primary-yellow);
}

.student-item p {
    color: var(--text-gray);
    font-size: 14px;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.student-item p i {
    color: var(--primary-yellow);
    width: 18px;
    text-align: center;
}

.student-header {
    margin-bottom: 24px;
}

.student-header h2 {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* Быстрые ссылки - улучшенный дизайн */
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quick-link {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.quick-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(var(--primary-yellow-rgb), 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.quick-link:hover::before {
    width: 200px;
    height: 200px;
}

.quick-link:hover {
    border-color: rgba(var(--primary-yellow-rgb), 0.5);
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(var(--primary-yellow-rgb), 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.quick-link i {
    font-size: 36px;
    color: var(--primary-yellow);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(var(--primary-yellow-rgb), 0.3));
}

.quick-link:hover i {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(var(--primary-yellow-rgb), 0.6));
}

.quick-link span {
    font-weight: 600;
    font-size: 15px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.quick-link:hover span {
    color: var(--primary-yellow);
}

/* Список учеников */
.students-list {
    display: grid;
    gap: 24px;
}

/* Список справок */
.certificates-list {
    display: grid;
    gap: 16px;
}

.certificate-info {
    flex: 1;
}

.certificate-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.certificate-info p {
    color: var(--text-gray);
    font-size: 13px;
    margin: 0;
}

.btn-view {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 14px;
}

.btn-view:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.12) 100%);
    border-color: rgba(var(--primary-yellow-rgb), 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--primary-yellow);
}

/* Объявления - улучшенный дизайн */
.announcements-list {
    display: grid;
    gap: 24px;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.announcement-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    flex: 1;
    min-width: 200px;
    transition: color 0.3s ease;
}

.announcement-card:hover .announcement-header h3 {
    color: var(--primary-yellow);
}

.announcement-date {
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.announcement-content {
    color: var(--text-gray);
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 15px;
    transition: color 0.3s ease;
}

.announcement-card:hover .announcement-content {
    color: rgba(255, 255, 255, 0.85);
}

/* Справки - улучшенный дизайн */
.upload-section {
    display: grid;
    gap: 30px;
}

.upload-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-card h3 i {
    color: var(--primary-yellow);
    font-size: 24px;
}

.certificates-list {
    display: grid;
    gap: 16px;
}

.certificate-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.certificate-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-yellow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-item:hover::before {
    opacity: 1;
}

.certificate-item:hover {
    transform: translateX(4px);
    border-color: rgba(var(--primary-yellow-rgb), 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(var(--primary-yellow-rgb), 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.certificate-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.certificate-item:hover .certificate-info h4 {
    color: var(--primary-yellow);
}

.certificate-info p {
    color: var(--text-gray);
    font-size: 13px;
    margin: 0;
}

.certificate-item.is-rejected {
    border-color: rgba(244, 67, 54, 0.35);
}

.certificate-item.is-rejected::before {
    opacity: 1;
    background: linear-gradient(180deg, #f44336, transparent);
}

.certificate-reject-reason {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.28);
    color: #ffc9c4;
    font-size: 13px;
    line-height: 1.45;
    max-width: 42rem;
}

.certificate-reject-reason strong {
    display: block;
    margin-bottom: 4px;
    color: #ff8a80;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Логотип - улучшенный дизайн */
.logo {
    transition: transform 0.3s ease;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.logo:hover {
    transform: scale(1.05);
}

.logo .highlight {
    color: var(--primary-yellow);
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #fff200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo:hover .highlight {
    filter: drop-shadow(0 0 8px rgba(var(--primary-yellow-rgb), 0.6));
}

/* Hero секция - улучшенный дизайн */
.hero-section {
    text-align: center;
    padding: 80px 0 60px;
    margin-bottom: 60px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--primary-yellow-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-white);
    letter-spacing: -1.5px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(18px, 2.2vw, 24px);
    color: var(--text-gray);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(31, 35, 40, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-yellow-rgb), 0.3);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-yellow-rgb), 0.5);
}

/* ============================================
   Audit refinements: modern, cleaner UI
   ============================================ */
.section-card:hover,
.dashboard-card:hover,
.student-card:hover,
.announcement-card:hover,
.upload-card:hover {
    transform: translateY(-6px) scale(1.01);
}

.student-item:hover {
    transform: translateX(2px);
}

.quick-link:hover {
    transform: translateY(-4px) scale(1.02);
}

.section-card,
.dashboard-card,
.student-card,
.announcement-card,
.upload-card {
    padding: 28px;
}

.students-list {
    gap: 20px;
}

.announcement-preview-item {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(31, 35, 40, 0.6);
}

.announcement-preview-item:hover {
    border-color: rgba(var(--primary-yellow-rgb), 0.35);
}

.form-control {
    min-height: 46px;
    border-radius: 10px;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-yellow-rgb), 0.2);
}

.btn-enter,
.login-btn,
.btn-logout,
.logout-btn {
    letter-spacing: 0.3px;
}

@media (max-width: 1024px) {
    .sections-grid,
    .dashboard-grid {
        gap: 20px;
    }

    .portal-container {
        padding: 28px 16px 40px;
    }
}

@media (max-width: 768px) {
    .section-card,
    .dashboard-card,
    .student-card,
    .announcement-card,
    .upload-card {
        padding: 22px;
    }

    .student-item {
        padding: 16px;
    }

    .student-meta {
        gap: 8px;
    }
}

.shop-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 36px;
    flex-wrap: wrap;
}
.shop-tab {
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.shop-tab.active {
    background: var(--primary-yellow);
    color: #171717;
    border-color: var(--primary-yellow);
}
.shop-panel { display: none; }
.shop-panel.active { display: block; }
.shop-panel-title { margin: 8px 0 12px; font-size: clamp(28px, 4vw, 42px); }
.shop-trainings { padding: 0 0 40px; }
.subscription-kicker { color: var(--primary-yellow, #ffd700); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.subscription-lead { max-width: 680px; color: var(--text-gray, #a8a8b3); font-size: 18px; margin-bottom: 24px; }
.wizard-progress { display: flex; gap: 8px; margin: 0 0 22px; }
.wizard-progress span { height: 5px; flex: 1; border-radius: 4px; background: rgba(255,255,255,.13); }
.wizard-progress span.active { background: var(--primary-yellow, #ffd700); }
.subscription-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr); gap: 22px; align-items: start; }
.subscription-panel { padding: 26px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #171b1e; }
.subscription-sidebar { position: sticky; top: 92px; display: grid; gap: 14px; }
.subscription-sidebar-card { padding: 20px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: #171b1e; }
.subscription-sidebar-card h2 { margin: 0 0 14px; font-size: 18px; }
.balance-child { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.09); }
.balance-child:first-of-type { border-top: 0; }
.balance-value { margin-top: 5px; color: var(--primary-yellow, #ffd700); font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.history-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.history-line:first-of-type { border-top: 0; }
.history-all-link { display: inline-block; margin-top: 12px; color: var(--primary-yellow); }
.child-meta { color: var(--text-gray, #aaa); margin-top: 6px; }
.training-modal { max-width: 640px; }
.training-modal .tariff-grid,
.tariff-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.training-modal .tariff-card,
.tariff-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    border: 1px solid var(--border-color, rgba(255,255,255,.14));
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transform: none;
}
.tariff-card:hover {
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.05);
    transform: none;
}
.tariff-card.tariff-hero {
    border-color: #3dbe72;
    background: rgba(61, 190, 114, .08);
}
.tariff-card.tariff-hero:hover {
    border-color: #4ad184;
    background: rgba(61, 190, 114, .12);
}
.tariff-card.selected {
    border-color: var(--primary-yellow, #FBE61A);
    background: rgba(var(--primary-yellow-rgb, 251, 234, 22), .10);
    box-shadow: inset 0 0 0 1px rgba(var(--primary-yellow-rgb, 251, 234, 22), .35);
}
.tariff-card.tariff-hero.selected {
    border-color: var(--primary-yellow, #FBE61A);
    background: linear-gradient(90deg, rgba(var(--primary-yellow-rgb, 251, 234, 22), .12), rgba(61, 190, 114, .10));
}
.tariff-copy { min-width: 0; display: grid; gap: 4px; }
.tariff-badge {
    display: inline-flex;
    width: fit-content;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    margin-right: 6px;
}
.tariff-badge-best {
    background: #3dbe72;
    color: #062012;
}
.tariff-badge-picked {
    background: var(--primary-yellow, #FBE61A);
    color: var(--dark-bg, #16191e);
}
.tariff-name { display: block; font-weight: 800; font-size: 15px; line-height: 1.3; }
.tariff-cost { flex-shrink: 0; text-align: right; }
.tariff-price {
    display: block;
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-yellow, #FBE61A);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}
.tariff-old {
    display: block;
    color: #8a8a8a;
    text-decoration: line-through;
    font-size: 13px;
    white-space: nowrap;
}
.tariff-meta { color: var(--text-gray, #aaa); font-size: 12px; }
.tariff-saving { display: block; color: #8ee69c; font-weight: 700; font-size: 12px; }
.tariff-discount {
    display: block;
    margin-top: 2px;
    color: var(--primary-yellow, #FBE61A);
    font-size: 12px;
    font-weight: 700;
}
.family-discount-note {
    margin: 12px 0 4px;
    padding: 12px 14px;
    border-radius: var(--radius-control, 10px);
    background: rgba(var(--primary-yellow-rgb, 251, 230, 26), .12);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}
.family-discount-note strong {
    color: var(--primary-yellow, #FBE61A);
    margin-right: 6px;
    font-variant-numeric: tabular-nums;
}
.family-discount-note.is-muted {
    background: rgba(255, 255, 255, .05);
}
.family-discount-note.is-muted strong {
    color: #fff;
}
.offer-pay-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color, rgba(255,255,255,.1));
    font-weight: 800;
}
.offer-pay-total span:last-child {
    color: var(--primary-yellow, #FBE61A);
    font-variant-numeric: tabular-nums;
    font-size: 20px;
}
.custom-amount-card { margin-top: 12px; border: 1px dashed rgba(255,255,255,.18); border-radius: 12px; overflow: hidden; }
.custom-amount-card.selected { border-style: solid; border-color: var(--primary-yellow, #FBE61A); }
.custom-amount-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    border: 0;
    color: #fff;
    text-align: left;
    padding: 14px 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.custom-amount-chevron { color: var(--text-gray, #aaa); }
.custom-amount-body { display: none; padding: 0 16px 16px; }
.custom-amount-card.is-open .custom-amount-body { display: block; }
.checkout-total { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-color, rgba(255,255,255,.1)); }
.wizard-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 560px) {
    .training-modal .tariff-card,
    .tariff-card {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .tariff-cost { text-align: left; }
}
.subscription-btn { min-height: 46px; padding: 12px 20px; border: 0; border-radius: 8px; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.subscription-btn.primary { background: var(--primary-yellow, #ffd700); color: #171717; }
.subscription-btn.secondary { background: rgba(255,255,255,.09); color: #fff; }
.subscription-btn:disabled { opacity: .45; cursor: not-allowed; }
.summary-list { display: grid; gap: 10px; margin: 20px 0; }
.summary-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.05); }
.summary-total { display: flex; justify-content: space-between; font-size: 24px; font-weight: 900; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); }
.offer-scroll {
    max-height: min(58vh, 560px);
    min-height: 280px;
    overflow: auto;
    padding: 22px 24px 28px;
    white-space: pre-wrap;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    line-height: 1.75;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
}
.offer-scroll-hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--text-gray, #aaa);
}
.offer-check {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 18px;
    line-height: 1.45;
}
.offer-check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary-yellow, #FBE61A);
    cursor: pointer;
}
.offer-check input:disabled {
    cursor: not-allowed;
}
.child-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 8px; }
.child-chip { border: 1px solid var(--border-color); background: rgba(255,255,255,.04); color: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; font-family: inherit; text-align: left; min-width: 160px; }
.child-chip strong { display: block; font-size: 14px; }
.child-chip span { display: block; color: var(--text-gray); font-size: 12px; margin-top: 2px; }
.child-chip.selected { border-color: var(--primary-yellow); background: rgba(var(--primary-yellow-rgb), .12); }
.child-chip.has-pack { box-shadow: none; }
.child-hint { color: var(--text-gray); margin: 4px 0 10px; font-size: 13px; }
.pack-progress { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 4px 0 8px; }
.pick-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pick-pill { font-size: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--text-gray); }
.pick-pill.is-set { background: rgba(61, 190, 114, .12); color: #b7f0cc; }
.notice { margin: 20px 0; padding: 14px 16px; border-radius: 12px; background: rgba(255,193,7,.12); border: 1px solid rgba(255,193,7,.35); }
.page-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.page-toolbar .page-header {
    margin-bottom: 0;
    flex: 1;
    min-width: min(100%, 280px);
}
.segmented {
    display: inline-flex;
    padding: 4px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    flex-shrink: 0;
}
.segmented button {
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
}
.segmented button:hover { color: #fff; }
.segmented button.active {
    background: var(--primary-yellow);
    color: var(--dark-bg);
}
.segmented button:focus-visible {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}
.usage-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 0 0 18px;
}
.usage-chip {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(var(--primary-yellow-rgb), .28);
    background: rgba(var(--primary-yellow-rgb), .07);
    border-radius: 10px;
    white-space: nowrap;
}
.usage-chip strong {
    color: var(--primary-yellow);
    font-variant-numeric: tabular-nums;
    font-size: 20px;
    line-height: 1;
}
.usage-chip span { color: var(--text-gray); font-size: 13px; }
.orders-list { display: grid; gap: 10px; }
.order-row {
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
}
.order-row-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 20px;
    align-items: start;
}
.order-kind {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primary-yellow);
    margin-bottom: 4px;
}
.order-number { font-size: 16px; font-weight: 700; }
.order-when, .order-who { display: block; color: var(--text-gray); font-size: 13px; margin-top: 2px; }
.order-row-aside {
    text-align: right;
    display: grid;
    gap: 6px;
    justify-items: end;
}
.order-amount {
    color: var(--primary-yellow);
    font-weight: 800;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.order-status {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.order-status.paid { color: #8ee69c; background: rgba(142,230,156,.12); }
.order-status.pending { color: #FBE61A; background: rgba(251,230,26,.12); }
.order-status.cancelled, .order-status.refunded { color: #f2a6a0; background: rgba(244,67,54,.12); }
.order-row-items { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.item-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}
.item-image {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-yellow);
}
.item-name { font-weight: 600; font-size: 14px; }
.item-details { color: var(--text-gray); font-size: 13px; margin-top: 2px; }
.item-price { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; color: #fff; }
.order-skel {
    height: 84px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04));
    background-size: 200% 100%;
    animation: cabinet-sheen 1.3s ease-in-out infinite;
}
@keyframes cabinet-sheen {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.empty-state {
    text-align: left;
    padding: 28px 0;
    color: var(--text-gray);
}
.empty-state h3 { color: #fff; margin: 0 0 8px; font-size: 20px; }
.shortcut-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
}
.shortcut-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,.04);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.shortcut-link i { color: var(--primary-yellow); }
.shortcut-link:hover { border-color: rgba(var(--primary-yellow-rgb), .45); background: rgba(var(--primary-yellow-rgb), .08); }
.shortcut-link:active { transform: scale(0.98); }
.students-section .student-item {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
    gap: 16px 24px;
    align-items: stretch;
}
.student-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    width: 100%;
}
.students-section .mini-stat {
    min-width: 0;
    min-height: 86px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 12px;
    text-align: left;
}
.students-section .mini-stat-value {
    font-size: 20px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.students-section .mini-stat-label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
}
.students-section .mini-stat-balance {
    border-color: rgba(var(--primary-yellow-rgb), .28);
    background: rgba(var(--primary-yellow-rgb), .08);
}
.students-section .mini-stat-school {
    opacity: .85;
}
.students-section .training-until {
    margin-left: 0;
    margin-top: 4px;
    font-size: 11px;
}
.dash-analytics {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
}
.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.dash-kpi {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 16px 18px;
}
.dash-kpi-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
}
.dash-kpi-value {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--primary-yellow);
}
.dash-kpi-meta {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-gray);
}
.dash-chart-card {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 18px 14px;
}
.dash-chart-head h2 {
    margin: 0 0 4px;
    font-size: 18px;
}
.dash-chart-head p {
    margin: 0 0 14px;
    color: var(--text-gray);
    font-size: 13px;
    max-width: 62ch;
}
.dash-chart {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    align-items: end;
    gap: 6px;
    height: 140px;
}
.dash-bar {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    gap: 6px;
}
.dash-bar span {
    width: 100%;
    max-width: 18px;
    border-radius: 4px 4px 2px 2px;
    background: rgba(var(--primary-yellow-rgb), .75);
    min-height: 4px;
}
.dash-bar.is-empty span {
    background: rgba(255,255,255,.12);
    min-height: 4px;
}
.dash-bar em {
    font-style: normal;
    font-size: 9px;
    color: rgba(255,255,255,.4);
    letter-spacing: 0;
}
@media (max-width: 768px) {
    .order-row-top, .students-section .student-item { grid-template-columns: 1fr; }
    .order-row-aside { text-align: left; justify-items: start; }
    .item-card { grid-template-columns: 44px minmax(0,1fr); }
    .item-price { grid-column: 2; }
    .segmented { width: 100%; }
    .segmented button { flex: 1; }
    .student-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-kpi-value { font-size: 22px; }
}
@media (max-width: 900px) {
    .subscription-layout { grid-template-columns: 1fr; }
    .subscription-sidebar { position: static; }
}
@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; }
}

/* ============================================
   Product-card tokens applied to the portal
   ============================================ */
.section-card::before,
.dashboard-card::before,
.student-card::before,
.announcement-card::before,
.upload-card::before,
.student-item::before,
.quick-link::before {
    display: none;
}

.section-card,
.dashboard-card,
.student-card,
.announcement-card,
.upload-card,
.student-item,
.dash-kpi,
.dash-chart-card,
.shortcut-link,
.mini-stat,
.order-card,
.item-card,
.announcement-preview-item,
.certificate-item,
.quick-action-card {
    border: 0;
    box-shadow: none;
    border-radius: var(--radius-card);
    background: var(--surface);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-stat,
.shortcut-link,
.dash-kpi {
    border-radius: var(--radius-control);
}

.section-card:hover,
.dashboard-card:hover,
.student-card:hover,
.announcement-card:hover,
.upload-card:hover,
.student-item:hover,
.dash-kpi:hover,
.dash-chart-card:hover,
.shortcut-link:hover,
.mini-stat:hover,
.certificate-item:hover,
.quick-action-card:hover {
    border-color: transparent;
    background: var(--surface-hover);
    box-shadow: var(--shadow-soft);
}

.section-card:hover,
.dashboard-card:hover,
.student-card:hover,
.announcement-card:hover,
.upload-card:hover {
    transform: translateY(-4px);
}

.students-section.dashboard-card:hover,
.dash-chart-card:hover {
    transform: none;
}

.student-item:hover {
    transform: none;
}

.student-item:hover h3 {
    color: var(--text-white);
}

.students-section .mini-stat-balance {
    border: 0;
    background: rgba(var(--primary-yellow-rgb), .12);
}

.dash-kpi-action {
    cursor: pointer;
    background: rgba(var(--primary-yellow-rgb), .10);
}

.dash-kpi-action:hover {
    background: rgba(var(--primary-yellow-rgb), .16);
}

.dash-kpi-action:focus-visible {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

.student-item.needs-topup {
    background: rgba(var(--primary-yellow-rgb), .12);
}

.student-item.needs-topup:hover {
    background: rgba(var(--primary-yellow-rgb), .16);
}

.student-item.is-flash {
    animation: studentFlash 1.1s ease;
}

@keyframes studentFlash {
    0%, 100% { background: rgba(var(--primary-yellow-rgb), .12); }
    40% { background: rgba(var(--primary-yellow-rgb), .24); }
}

.student-pay-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-control);
    background: var(--primary-yellow);
    color: var(--dark-bg);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.student-pay-link:hover {
    background: #fff200;
}

.student-pay-link:active {
    transform: scale(0.98);
}

.student-pay-link.is-quiet {
    background: rgba(255,255,255,.08);
    color: var(--text-white);
    font-weight: 700;
}

.student-pay-link.is-quiet:hover {
    background: rgba(255,255,255,.14);
}

.tariff-card,
.child-chip,
.custom-amount-card,
.subscription-panel,
.subscription-sidebar-card {
    border: 0;
    box-shadow: none;
    background: var(--surface);
}

.tariff-card:hover,
.child-chip:hover {
    border-color: transparent;
    background: var(--surface-hover);
    transform: none;
}

.tariff-card.tariff-hero {
    border: 0;
    background: rgba(61, 190, 114, .16);
}

.tariff-card.tariff-hero:hover {
    background: rgba(61, 190, 114, .22);
}

.tariff-card.selected,
.tariff-card.tariff-hero.selected {
    border: 0;
    box-shadow: none;
    background: rgba(var(--primary-yellow-rgb), .18);
}

.child-chip {
    min-width: 168px;
    padding: 12px 14px;
    border-radius: 12px;
}

.child-chip.selected {
    border: 0;
    background: rgba(var(--primary-yellow-rgb), .14);
}

.child-chip.has-pack {
    background: rgba(61, 190, 114, .22);
    box-shadow: none;
}

.child-chip.has-pack.selected {
    background: rgba(61, 190, 114, .34);
}

.chip-pack {
    display: inline-flex;
    margin-top: 8px;
    padding: 3px 8px;
    border-radius: var(--radius-badge);
    background: rgba(0, 0, 0, .22);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.chip-discount {
    display: inline-flex;
    margin-top: 6px;
    margin-right: 6px;
    padding: 2px 7px;
    border-radius: var(--radius-badge);
    background: var(--primary-yellow);
    color: var(--dark-bg);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.child-inline .chip-discount {
    align-self: center;
}

.child-chip span {
    color: rgba(255,255,255,.7);
}

.content-section {
    border: 0 !important;
    background: var(--surface) !important;
    border-radius: var(--radius-card) !important;
}

.gerta-poster {
    position: relative;
    overflow: hidden;
    padding: 18px 14px 14px;
    background-color: var(--primary-yellow);
    background-image: repeating-linear-gradient(
        -38deg,
        rgba(22, 25, 30, 0) 0 18px,
        rgba(22, 25, 30, 0.14) 18px 32px
    );
}

.gerta-poster-mark {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}

.gerta-poster-panel {
    margin: 34px 10px 12px;
    padding: 18px 22px;
    background: #fff;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gerta-poster-product {
    width: auto;
    height: 78%;
    max-height: 118px;
    max-width: 46%;
    object-fit: contain;
    display: block;
}

.gerta-poster-title {
    margin: 2px 0 4px;
    text-align: center;
    color: #111;
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.product-card.product-card-trainings {
    overflow: hidden;
}

.product-card-trainings .product-image-wrapper {
    aspect-ratio: 16 / 9;
    min-height: 0;
    background: #111;
}

.product-card-trainings .product-image-wrapper img {
    object-fit: contain;
}

.product-card-trainings:hover .product-image-wrapper img {
    transform: none;
}

.product-card-trainings .product-name {
    display: none;
}

.product-card-trainings .product-info {
    padding: 16px 16px 18px;
}

.stat-item,
.info-box,
.btn-view,
.usage-chip,
.attendance-table-container,
.attendance-record-card {
    border: 0;
    box-shadow: none;
}

.stat-item,
.attendance-table-container,
.attendance-record-card {
    background: var(--surface);
    border-radius: var(--radius-control);
}

.stat-item:hover {
    border-color: transparent;
    background: var(--surface-hover);
    box-shadow: var(--shadow-soft);
}

.info-box {
    background: var(--surface);
    border-radius: var(--radius-card);
}

.info-box::before {
    display: none;
}

.info-box i {
    filter: none;
    animation: none;
}

.btn-view {
    background: rgba(255, 255, 255, 0.08);
}

.btn-view:hover {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.usage-chip {
    background: rgba(var(--primary-yellow-rgb), .10);
}

.section-card:hover .section-icon,
.quick-link i,
.quick-link:hover i {
    filter: none;
}

.section-card:hover .section-title {
    text-shadow: none;
}

.pay-success {
    padding-bottom: 72px;
}

.pay-success-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 20px 28px;
    align-items: start;
}

.pay-success-layout.is-single {
    grid-template-columns: minmax(0, 640px);
}

.pay-success-order {
    margin: 0;
}

.pay-success-panel {
    padding: 22px 22px 26px;
    border-radius: var(--radius-card);
    background: var(--surface);
}

.pay-success-panel h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-white);
}

.pay-success-panel > p {
    margin: 0 0 18px;
    max-width: 36rem;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}

.pay-success-docs {
    display: grid;
    gap: 8px;
    margin: 0 0 20px;
}

.pay-success-docs-label {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.pay-success-doc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    align-items: center;
    padding: 14px 14px 14px 16px;
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.04);
}

.pay-success-doc strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pay-success-doc .child-meta {
    margin-top: 3px;
    font-size: 13px;
}

.pay-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.pay-success-actions .btn-enter,
.pay-success-actions .btn-logout {
    height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-control);
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.pay-success-actions .btn-enter:focus-visible,
.pay-success-actions .btn-logout:focus-visible,
.pay-success-doc .btn-logout:focus-visible {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

.pay-success-actions .btn-enter:active,
.pay-success-actions .btn-logout:active,
.pay-success-doc .btn-logout:active {
    transform: translateY(1px) scale(0.98);
}

@media (max-width: 900px) {
    .pay-success-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .pay-success-doc {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .pay-success-doc .btn-logout {
        justify-self: start;
    }

    .pay-success-actions .btn-enter,
    .pay-success-actions .btn-logout {
        flex: 1 1 auto;
    }
}

/* Кабинет: карточка ученика и табель */
.cabinet-shortcuts {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cabinet-shortcuts::-webkit-scrollbar {
    display: none;
    height: 0;
}

.cabinet-shortcuts .shortcut-link {
    flex: 0 0 auto;
}

.students-section .section-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.students-section .section-header h2 {
    margin: 0;
    min-width: 0;
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.students-section .btn-add-child {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.students-section .btn-add-child:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: none;
}

.students-section .btn-add-child:active {
    transform: scale(0.98);
}

.students-section .btn-add-child:focus-visible,
.student-inline-link:focus-visible,
.student-pay-link:focus-visible {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}

.students-section .student-item,
.students-section .student-item:hover,
.students-section .student-item.needs-topup,
.students-section .student-item.needs-topup:hover {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
    grid-template-areas:
        "facts metrics"
        "sheet sheet"
        "pay pay";
    gap: 14px 28px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.students-section.dashboard-card,
.students-list > .student-card {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.students-section .student-item + .student-item {
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.students-section .student-item.is-flash {
    animation: studentFlashSoft 1.1s ease;
}

@keyframes studentFlashSoft {
    0%, 100% { background: transparent; }
    40% { background: rgba(var(--primary-yellow-rgb), 0.14); }
}

.students-section .student-main-info {
    grid-area: facts;
    min-width: 0;
}

.students-section .student-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.students-section .student-item h3 {
    margin: 0;
    font-size: clamp(24px, 5.4vw, 32px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    text-wrap: balance;
}

.student-flag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 700;
}

.student-flag-warn {
    background: rgba(var(--primary-yellow-rgb), 0.16);
    color: var(--primary-yellow);
}

.students-section .student-item .student-context,
.student-card .student-context {
    display: block;
    margin: 6px 0 0;
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-wrap: pretty;
}

.student-context + .student-context {
    margin-top: 4px;
}

.student-contract {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.86);
}

.student-inline-link {
    margin-left: 10px;
    color: var(--primary-yellow);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.student-inline-link:hover {
    border-bottom-color: currentColor;
}

.students-section .student-metrics {
    grid-area: metrics;
    min-width: 0;
}

.students-section .student-pay-link {
    grid-area: pay;
    justify-self: start;
    margin-top: 0;
}

.students-section .attend-sheet {
    grid-area: sheet;
}

.attend-sheet {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    contain: inline-size;
}

.attend-sheet-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin: 0 0 8px;
}

.attend-sheet-head h3 {
    flex: 0 0 auto;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.attend-sheet-caption,
.attend-sheet-empty {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.attend-sheet-empty {
    white-space: normal;
}

.attend-sheet-viewport {
    height: 68px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 14px;
}

.attend-sheet-viewport:focus-within {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 3px;
}

.attend-sheet-track {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 68px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.attend-sheet-track:focus {
    outline: none;
}

.attend-sheet-track::-webkit-scrollbar {
    display: none;
    height: 0;
}

.attend-sheet-viewport.can-left .attend-sheet-track {
    mask-image: linear-gradient(90deg, transparent, #000 14px);
}

.attend-sheet-viewport.can-right .attend-sheet-track {
    mask-image: linear-gradient(90deg, #000 calc(100% - 14px), transparent);
}

.attend-sheet-viewport.can-left.can-right .attend-sheet-track {
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}

.attend-sheet-day {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.attend-sheet-dow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.45);
}

.attend-sheet-num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.attend-sheet-day.is-today .attend-sheet-num {
    color: var(--primary-yellow);
}

.attend-sheet-mark {
    width: 7px;
    height: 7px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.attend-sheet-day.is-present .attend-sheet-mark {
    background: #7dcaa0;
}

.attend-sheet-day.is-absent .attend-sheet-mark {
    background: #d98982;
}

.attend-sheet-day.is-unknown .attend-sheet-mark {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}

.attend-sheet-day.is-mixed .attend-sheet-mark {
    background: var(--primary-yellow);
}

.attend-sheet-day.is-planned .attend-sheet-mark {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--primary-yellow);
}

.attend-sheet-day.is-personal {
    box-shadow: inset 0 0 0 1.5px var(--primary-yellow);
}

.attend-sheet-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.attend-sheet-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1.5px var(--primary-yellow);
}

.attend-sheet-mark.is-fraction {
    width: auto;
    height: auto;
    margin-top: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--primary-yellow);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.attend-sheet.is-ready {
    animation: sheetRise 0.35s ease both;
}

@keyframes sheetRise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.attend-sheet-mobile {
    display: none;
}

@media (max-width: 768px) {
    .students-section .student-item,
    .students-section .student-item:hover,
    .students-section .student-item.needs-topup,
    .students-section .student-item.needs-topup:hover {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "facts"
            "metrics"
            "sheet"
            "pay";
        gap: 14px;
    }

    .students-section .student-pay-link {
        width: 100%;
    }

    .attendance-records-heading,
    .attendance-table-container,
    .attendance-mobile-records {
        display: none;
    }

    .attend-sheet-mobile {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .attend-sheet.is-ready,
    .attend-sheet-day {
        animation: none;
        transition: none;
    }

    .attend-sheet-track {
        scroll-behavior: auto;
    }
}
