h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ── Modern Public Page Styles ── */

/* Fade-in-up animation for sections */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.3); }
    50% { box-shadow: 0 0 0 12px rgba(99,102,241,0); }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

.animate-float {
    animation: floatBounce 3s ease-in-out infinite;
}

/* Hero gradient background */
.hero-gradient {
    background: linear-gradient(135deg, #1a237e 0%, #283593 25%, #3949ab 50%, #5c6bc0 75%, #7986cb 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Glassmorphism navbar */
.glass-navbar {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    transition: box-shadow 0.3s ease;
}

.glass-navbar:hover {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* Public navbar responsive */
.public-desktop-nav {
    display: none !important;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.public-mobile-toggle {
    display: flex !important;
    align-items: center;
}

@media (min-width: 960px) {
    .public-desktop-nav {
        display: flex !important;
    }

    .public-mobile-toggle {
        display: none !important;
    }
}

/* Card hover lift effect */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
    border-radius: 16px !important;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1) !important;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #1a237e, #5c6bc0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stat card styling */
.stat-card {
    border-radius: 16px !important;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08) !important;
}

/* Feature icon bubble */
.icon-bubble {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: transform 0.3s ease;
}

.icon-bubble:hover {
    transform: scale(1.1) rotate(-5deg);
}

.icon-bubble-primary { background: linear-gradient(135deg, #e8eaf6, #c5cae9); }
.icon-bubble-success { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.icon-bubble-warning { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.icon-bubble-info    { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.icon-bubble-error   { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }

/* Pricing card */
.pricing-card {
    border-radius: 20px !important;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12) !important;
}

.pricing-card .price-badge {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: white;
    padding: 4px 16px;
    border-radius: 24px;
    display: inline-block;
}

/* Section divider with gradient */
.section-gradient {
    background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
}

.section-dark-gradient {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 40%, #1a237e 100%);
}

/* Modern footer */
.modern-footer {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 50%, #1a237e 100%);
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), transparent);
}

/* Timeline modern style */
.timeline-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

/* Pulse button animation */
.btn-pulse {
    animation: pulse-glow 2s infinite;
}

/* Trust badge row */
.trust-badge {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 12px 20px;
    transition: border-color 0.3s ease;
}

.trust-badge:hover {
    border-color: var(--mud-palette-primary);
}

/* About page hero overlay */
.about-hero {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 40%, #01579b 100%);
    position: relative;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, white);
}

/* Pricing hero */
.pricing-hero {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 40%, #388e3c 100%);
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Feature showcase card */
.feature-showcase {
    border-radius: 20px !important;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.feature-showcase:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08) !important;
}

/* Testimonial card */
.testimonial-card {
    border-radius: 20px !important;
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 4rem;
    line-height: 1;
    font-family: Georgia, serif;
    opacity: 0.08;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08) !important;
}

/* Number badge for numbered features */
.number-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ══════════════════════════════════════════════════
   DASHBOARD UI — Admin / Parent / Student
   ══════════════════════════════════════════════════ */

/* ── Page Header Banners ── */
.page-header {
    padding: 24px 28px;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.page-header-admin {
    background: linear-gradient(135deg, #1a237e 0%, #283593 60%, #3949ab 100%);
}

.page-header-parent {
    background: linear-gradient(135deg, #004d40 0%, #00695c 60%, #00897b 100%);
}

.page-header-child {
    background: linear-gradient(135deg, #e65100 0%, #f57c00 60%, #ff9800 100%);
}

.page-header-employee {
    background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 60%, #9c27b0 100%);
}

.page-header .page-header-subtitle {
    opacity: 0.85;
    font-size: 0.9rem;
    margin-top: 2px;
    color: rgba(255,255,255,0.85);
}

/* ── Dashboard Stat Cards ── */
.dash-stat {
    border-radius: 16px !important;
    padding: 20px 24px !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: none !important;
}

.dash-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10) !important;
}

.dash-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-stat-indigo  { background: linear-gradient(135deg, #e8eaf6, #c5cae9); color: #283593; }
.dash-stat-teal    { background: linear-gradient(135deg, #e0f2f1, #b2dfdb); color: #00695c; }
.dash-stat-amber   { background: linear-gradient(135deg, #fff8e1, #ffe082); color: #f57f17; }
.dash-stat-rose    { background: linear-gradient(135deg, #fce4ec, #f8bbd0); color: #c62828; }
.dash-stat-green   { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: #2e7d32; }
.dash-stat-blue    { background: linear-gradient(135deg, #e3f2fd, #bbdefb); color: #1565c0; }
.dash-stat-purple  { background: linear-gradient(135deg, #f3e5f5, #ce93d8); color: #6a1b9a; }
.dash-stat-orange  { background: linear-gradient(135deg, #fff3e0, #ffcc80); color: #e65100; }

/* ── Enhanced Cards ── */
.role-card {
    border: 1px solid rgba(0,0,0,0.08) !important;
    transition: box-shadow 0.25s ease;
}

.role-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06) !important;
}

.role-card-bordered {
    border-left: 1px solid rgba(0,0,0,0.08) !important;
}

/* ── User Avatar ── */
.user-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.user-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.avatar-indigo  { background: linear-gradient(135deg, #3949ab, #5c6bc0); }
.avatar-teal    { background: linear-gradient(135deg, #00897b, #26a69a); }
.avatar-amber   { background: linear-gradient(135deg, #f57c00, #ffb74d); }
.avatar-rose    { background: linear-gradient(135deg, #e53935, #ef5350); }
.avatar-green   { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.avatar-purple  { background: linear-gradient(135deg, #7b1fa2, #ab47bc); }

/* ── Sidebar Section Labels ── */
.nav-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(0,0,0,0.4);
    padding: 4px 20px 4px;
}

/* ── Dashboard Content ── */
.dashboard-content {
    background: #f5f6fa;
    min-height: 100vh;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 24px;
}

/* ── Gamification (Student) ── */
.points-trophy {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255,152,0,0.3);
    animation: floatBounce 3s ease-in-out infinite;
}

.score-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 4px solid rgba(0,0,0,0.06);
    position: relative;
}

.score-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--ring-color, #3949ab);
    border-right-color: var(--ring-color, #3949ab);
    animation: spin-in 0.8s ease-out both;
}

@keyframes spin-in {
    from { transform: rotate(0deg); }
    to   { transform: rotate(var(--ring-deg, 180deg)); }
}

.exam-card-fun {
    border-radius: 20px !important;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06) !important;
}

.exam-card-fun:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12) !important;
}

.exam-card-header {
    padding: 20px 24px 16px;
    color: white;
    border-radius: 20px 20px 0 0;
}

.exam-card-header-1 { background: linear-gradient(135deg, #3949ab, #5c6bc0); }
.exam-card-header-2 { background: linear-gradient(135deg, #00897b, #26a69a); }
.exam-card-header-3 { background: linear-gradient(135deg, #e65100, #f57c00); }
.exam-card-header-4 { background: linear-gradient(135deg, #7b1fa2, #ab47bc); }
.exam-card-header-5 { background: linear-gradient(135deg, #c62828, #ef5350); }
.exam-card-header-6 { background: linear-gradient(135deg, #1565c0, #42a5f5); }

/* ── Ticket Status Borders ── */
.ticket-open       { border-left: 4px solid #1e88e5 !important; }
.ticket-inprogress { border-left: 4px solid #ff9800 !important; }
.ticket-resolved   { border-left: 4px solid #43a047 !important; }
.ticket-closed     { border-left: 4px solid #9e9e9e !important; }

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    border-radius: 20px;
}

.empty-state-icon {
    font-size: 4rem !important;
    color: rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

/* ── Result Celebration ── */
.result-celebration {
    border-radius: 24px !important;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 50%, #f0fff4 100%);
    text-align: center;
}

/* ── Appbar User Chip ── */
.appbar-user-chip {
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 4px 16px 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.appbar-user-chip:hover {
    background: rgba(255,255,255,0.25);
}

.appbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

/* ══════════════════════════════════════════════════
   CERTIFICATE — Printable Achievement Certificate
   ══════════════════════════════════════════════════ */

.certificate-container {
    display: flex;
    justify-content: center;
    padding: 16px;
}

.certificate {
    width: 900px;
    max-width: 100%;
    background: #fffef9;
    border: 3px solid #00695c;
    padding: 12px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.certificate-inner {
    border: 2px solid #b2dfdb;
    padding: 48px 56px;
    text-align: center;
    position: relative;
}

/* Corner decorations */
.certificate-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: #00695c;
    border-style: solid;
    border-width: 0;
    z-index: 1;
}

.certificate-corner-tl { top: 20px; left: 20px; border-top-width: 3px; border-left-width: 3px; }
.certificate-corner-tr { top: 20px; right: 20px; border-top-width: 3px; border-right-width: 3px; }
.certificate-corner-bl { bottom: 20px; left: 20px; border-bottom-width: 3px; border-left-width: 3px; }
.certificate-corner-br { bottom: 20px; right: 20px; border-bottom-width: 3px; border-right-width: 3px; }

/* Header */
.certificate-header {
    margin-bottom: 8px;
}

.certificate-logo {
    margin-bottom: 8px;
}

.certificate-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #00695c;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.certificate-subtitle {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.4rem;
    color: #004d40;
    margin: 4px 0 0;
    font-style: italic;
    letter-spacing: 3px;
}

/* Divider */
.certificate-divider {
    display: flex;
    align-items: center;
    margin: 20px 60px;
}

.certificate-divider::before,
.certificate-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00695c, transparent);
}

.certificate-divider-star {
    color: #00695c;
    font-size: 1.2rem;
    margin: 0 16px;
}

/* Content */
.certificate-presented {
    font-size: 1rem;
    color: #555;
    margin: 16px 0 8px;
    letter-spacing: 1px;
}

.certificate-student-name {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a237e;
    margin: 8px 0;
    border-bottom: 2px solid #c5cae9;
    display: inline-block;
    padding: 0 32px 8px;
}

.certificate-achievement {
    font-size: 1rem;
    color: #555;
    margin: 16px 0 8px;
}

.certificate-set-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00695c;
    margin: 4px 0 12px;
}

.certificate-details {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 24px;
}

.certificate-detail-sep {
    margin: 0 12px;
    color: #ccc;
}

/* Score boxes */
.certificate-score-section {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 24px 0;
}

.certificate-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
    border-radius: 12px;
    padding: 16px 28px;
    min-width: 120px;
}

.certificate-score-label {
    font-size: 0.75rem;
    color: #00695c;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.certificate-score-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #004d40;
    margin-top: 4px;
}

/* Congratulations */
.certificate-congrats {
    margin: 28px 40px;
    padding: 20px;
    background: linear-gradient(135deg, #f1f8e9, #dcedc8);
    border-radius: 12px;
}

.certificate-congrats p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #33691e;
    margin: 0;
}

.certificate-congrats-sub {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: #558b2f !important;
    margin-top: 8px !important;
    line-height: 1.5;
}

/* Footer */
.certificate-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 36px;
    padding: 0 20px;
}

.certificate-date,
.certificate-authority {
    text-align: center;
    font-size: 0.85rem;
    color: #333;
    min-width: 160px;
}

.certificate-seal {
    text-align: center;
}

.certificate-seal-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #00695c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 4px;
    background: #e0f2f1;
}

.certificate-footer-line {
    width: 100%;
    height: 1px;
    background: #999;
    margin-bottom: 6px;
}

.certificate-footer-label {
    display: block;
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.certificate-id {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 20px;
    letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════
   MOBILE RESPONSIVE STYLES
   ══════════════════════════════════════════════════ */

/* ── Small devices (phones, < 600px) ── */
@media (max-width: 599.98px) {

    /* Navbar */
    .glass-navbar .mud-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Page headers — stack vertically */
    .page-header {
        padding: 16px !important;
    }

    .page-header > .mud-stack-row {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .page-header > .mud-stack-row .mud-spacer {
        display: none !important;
    }

    .page-header .mud-text-h4 {
        font-size: 1.25rem !important;
    }

    .page-header .page-header-subtitle {
        font-size: 0.8rem;
    }

    /* Dashboard main content */
    .mud-main-content[style*="padding-left:24px"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Appbar user chip — hide username, keep avatar */
    .appbar-user-chip .mud-text-body2 {
        display: none !important;
    }

    .appbar-user-chip {
        padding: 4px !important;
        border-radius: 50% !important;
    }

    /* Hero section typography */
    .hero-gradient .mud-text-h2 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    .hero-gradient .mud-text-h6 {
        font-size: 0.95rem !important;
    }

    .hero-gradient .mud-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* About hero */
    .about-hero .mud-text-h2 {
        font-size: 1.75rem !important;
    }

    .about-hero .mud-text-h6 {
        font-size: 0.95rem !important;
    }

    /* Section typography */
    .mud-text-h3 {
        font-size: 1.5rem !important;
    }

    .mud-text-h4 {
        font-size: 1.25rem !important;
    }

    /* Stats bar */
    .stat-card .mud-text-h4 {
        font-size: 1.2rem !important;
    }

    /* Hero stats bar — reduce overlap on mobile */
    .hero-stats-bar {
        margin-top: 24px !important;
    }

    /* Hero buttons — stack vertically */
    .hero-gradient .mud-stack[style*="row"] {
        flex-wrap: wrap !important;
    }

    .hero-gradient .mud-button-root.mud-button-sizeLarge {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        width: 100%;
    }

    /* CTA sections buttons */
    .btn-pulse {
        padding: 10px 24px !important;
        font-size: 0.9rem !important;
    }

    /* Score ring — smaller on mobile */
    .score-ring {
        width: 70px;
        height: 70px;
    }

    .points-trophy {
        width: 72px;
        height: 72px;
    }

    /* Exam cards */
    .exam-card-header {
        padding: 16px !important;
    }

    /* Table horizontal scroll */
    .mobile-scroll-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-scroll-table .mud-table {
        min-width: 600px;
    }

    /* Card padding reduction */
    .role-card {
        padding: 12px !important;
    }

    /* Footer bottom bar — stack vertically */
    .modern-footer .mud-stack[style*="row"] {
        flex-direction: column !important;
        gap: 4px !important;
        text-align: center !important;
    }

    /* Feature showcase */
    .feature-showcase {
        padding: 20px !important;
    }

    /* Testimonial cards */
    .testimonial-card {
        padding: 20px !important;
    }

    /* Certificate responsive */
    .certificate-inner {
        padding: 24px 16px !important;
    }

    .certificate-student-name {
        font-size: 1.5rem !important;
        padding: 0 12px 6px !important;
    }

    .certificate-title {
        font-size: 1.5rem !important;
    }

    .certificate-subtitle {
        font-size: 1rem !important;
    }

    .certificate-score-section {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center;
    }

    .certificate-footer {
        flex-direction: column !important;
        gap: 24px !important;
        align-items: center !important;
    }

    /* Child profile card — stack chips below name */
    .child-profile-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .child-profile-actions {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* Dialog fullscreen on mobile */
    .mud-dialog {
        margin: 8px !important;
        max-height: calc(100vh - 16px) !important;
    }

    .mud-dialog .mud-dialog-content {
        max-height: calc(100vh - 130px) !important;
        overflow-y: auto !important;
    }

    /* Expansion panels */
    .mud-expand-panel .mud-expand-panel-header {
        padding: 12px 16px !important;
    }

    /* Icon bubble — smaller on mobile */
    .icon-bubble {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    /* Number badge */
    .number-badge {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    /* Container spacing */
    .mud-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Reduce section padding */
    div[style*="padding:80px 0"] {
        padding: 48px 0 !important;
    }

    div[style*="padding: 80px 0"] {
        padding: 48px 0 !important;
    }

    div[style*="padding:60px 0"] {
        padding: 40px 0 !important;
    }

    /* Dashboard content spacing */
    .dashboard-content {
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-bottom: 16px !important;
    }
}

/* ── Medium devices (tablets, 600-959px) ── */
@media (max-width: 959.98px) {

    /* Appbar user chip — truncate name */
    .appbar-user-chip .mud-text-body2 {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Hero section */
    .hero-gradient .mud-text-h2 {
        font-size: 2rem;
    }

    /* Table scroll for medium screens */
    .mobile-scroll-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ── Print Styles ── */
@media print {
    /* Hide everything except the certificate */
    .certificate-actions,
    .mud-appbar,
    .mud-drawer,
    .mud-overlay,
    .mud-snackbar-provider,
    nav {
        display: none !important;
    }

    .mud-main-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .certificate-container {
        padding: 0;
    }

    .certificate {
        width: 100%;
        box-shadow: none;
        border-width: 2px;
        page-break-inside: avoid;
    }

    body {
        background: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ===================================================================
   AUTH PAGES — Login, Register, Forgot Password
   =================================================================== */

.auth-page {
    background: #f5f5f5;
    min-height: calc(100vh - 120px);
}

/* ── Brand Panel (left side) ── */
.auth-brand-panel {
    background: linear-gradient(135deg, #1a237e 0%, #283593 30%, #3949ab 60%, #5c6bc0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 48px 40px;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.07) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 420px;
}

.auth-brand-logo {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.auth-brand-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.auth-brand-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin: 0 0 32px;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-brand-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ── Form Panel (right side) ── */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: white;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-mobile-logo {
    display: none;
    margin-bottom: 20px;
}

.auth-form-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1a237e;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.auth-form-subtitle {
    font-size: 0.92rem;
    color: #757575;
    margin: 0;
    line-height: 1.5;
}

.auth-field {
    margin-top: 16px;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fce4ec;
    border: 1px solid #ef9a9a;
    border-radius: 10px;
    color: #c62828;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-error-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-submit-btn {
    margin-top: 20px !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 14px rgba(26,35,126,0.3) !important;
    transition: all 0.2s ease !important;
}

.auth-submit-btn:hover {
    box-shadow: 0 6px 20px rgba(26,35,126,0.4) !important;
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #bdbdbd;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-alt-btn {
    border-radius: 12px !important;
    padding: 10px 24px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    border-width: 2px !important;
}

.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #757575;
}

/* ── Centered Layout (ForgotPassword) ── */
.auth-centered-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 32px 16px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8eaf6 50%, #c5cae9 100%);
}

.auth-centered-card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px 36px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(26,35,126,0.10), 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
}

.auth-centered-logo {
    margin-bottom: 24px;
}

.auth-forgot-icon {
    margin-bottom: 16px;
    opacity: 0.9;
}

.auth-success-state {
    text-align: center;
}

.auth-success-icon {
    margin-bottom: 16px;
    animation: auth-bounce 0.6s ease;
}

@keyframes auth-bounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.auth-dev-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    background: #e8eaf6;
    border: 1px solid #c5cae9;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 959.98px) {
    .auth-brand-panel {
        display: none;
    }

    .auth-mobile-logo {
        display: inline-flex !important;
    }

    .auth-form-panel {
        padding: 32px 20px;
        min-height: calc(100vh - 120px);
    }

    .auth-form-title {
        font-size: 1.4rem;
    }

    .auth-centered-card {
        padding: 32px 24px 28px;
        border-radius: 20px;
    }
}

@media (max-width: 599.98px) {
    .auth-form-panel {
        padding: 24px 16px;
    }

    .auth-form-wrapper {
        max-width: 100%;
    }

    .auth-centered-card {
        padding: 28px 20px 24px;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

    .auth-submit-btn {
        padding: 10px 20px !important;
    }
}