:root {
    --bg-page: #f4f7fb;
    --card-radius: 20px;
    --primary-accent: #2563eb;
    --text-main: #0f172a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Контрастная тёмная верхняя панель навигации */
.navbar-glass {
    --bs-navbar-bg: #0f172a;
    --bs-navbar-color: rgba(255, 255, 255, 0.88);
    --bs-navbar-hover-color: #ffffff;
    --bs-navbar-active-color: #ffffff;
    background: #0f172a !important;
    background-color: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
    padding: 0.8rem 0;
    z-index: 1030;
}

.navbar-glass .navbar-brand,
.navbar-glass .nav-link,
.navbar-glass .user-pill {
    color: #ffffff !important;
}

.navbar-glass .nav-link:hover,
.navbar-glass .nav-link.active {
    background-color: rgba(255, 255, 255, 0.18) !important;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.user-pill {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
}

/* Bento-карточки */
.bento-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--card-radius);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

/* Виртуальная банковская карта ученика */
.virtual-card {
    position: relative;
    border-radius: 20px;
    padding: 1.65rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 205px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.virtual-card:hover {
    transform: translateY(-4px);
}

.virtual-card-gold {
    background: linear-gradient(135deg, #f6d365 0%, #e6b946 48%, #c99324 100%);
    color: #2d1e00;
    box-shadow: 0 14px 30px rgba(217, 155, 38, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.virtual-card-silver {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 52%, #94a3b8 100%);
    color: #0f172a;
    box-shadow: 0 14px 30px rgba(100, 116, 139, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.virtual-card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.card-chip {
    width: 42px;
    height: 30px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.2));
    border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Карточки привилегий */
.privilege-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
}

.privilege-card:hover:not(.privilege-disabled) {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
}

.privilege-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.privilege-disabled {
    background-color: #f8fafc;
    opacity: 0.72;
}

/* Бейджи карт */
.badge-card-gold {
    background: linear-gradient(135deg, #f6d365 0%, #e6b946 100%);
    color: #3d2800;
    font-weight: 700;
    padding: 0.45em 0.85em;
}

.badge-card-silver {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #1e293b;
    font-weight: 700;
    padding: 0.45em 0.85em;
}

/* Современные таблицы */
.table-modern thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.9rem 0.75rem;
}

.table-modern tbody td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.footer-modern {
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

@media (max-width: 576px) {
    .virtual-card {
        padding: 1.25rem;
        min-height: 180px;
    }
}
/* Официальная эмблема Гимназии № 16 */
.gymnasium-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.gymnasium-logo-card {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

