:root {
    --green: #16a34a;
    --green-dark: #15803d;
    --green-light: #22c55e;
    --green-soft: rgba(22, 163, 74, 0.08);
    --gold: #d97706;
    --gold-light: #f59e0b;
    --gold-soft: rgba(217, 119, 6, 0.08);
    --dark: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --glass-border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--green); }
a:hover { color: var(--green-dark); }

/* ===== FONT ===== */
.font-mono {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    letter-spacing: 0.3px;
}

/* ===== CARD ===== */
.card-premium {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.card-premium:hover { box-shadow: var(--shadow-md); }

.card-premium .card-header-custom {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.card-premium .card-body-custom {
    padding: 24px;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 10px 20px;
    transition: var(--transition);
}
.btn-lg { padding: 14px 28px; border-radius: var(--radius-md); }
.btn-sm { padding: 6px 14px; border-radius: 6px; font-size: 0.85rem; }

.btn-green {
    background: var(--green);
    border: 2px solid var(--green);
    color: #fff;
}
.btn-green:hover:not(:disabled) {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
}
.btn-green:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline-green {
    border: 2px solid var(--green);
    color: var(--green);
    background: transparent;
}
.btn-outline-green:hover {
    background: var(--green);
    color: #fff;
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    color: #fff;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.3);
    color: #fff;
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    border: 2px solid var(--gray-200);
    color: var(--dark);
}
.btn-white:hover {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ===== FORMS ===== */
.form-control, .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--dark);
    transition: var(--transition);
    background: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px var(--green-soft);
    outline: none;
}
.form-control::placeholder { color: var(--gray-400); }
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}
.form-text { font-size: 0.8rem; color: var(--gray-400); }

select.form-select { cursor: pointer; }

/* ===== NAVBAR ===== */
.navbar-main {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-200);
    height: 68px;
    transition: var(--transition);
}
.navbar-main .navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar-main .navbar-brand i { color: var(--green); font-size: 1.5rem; }
.navbar-main .navbar-brand span { font-weight: 400; color: var(--gray-400); }
.navbar-main .nav-link {
    color: var(--gray-500);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.navbar-main .nav-link:hover { color: var(--green); background: var(--green-soft); }

/* ===== HERO ===== */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f0fdf4 0%, #fefce8 50%, #f0fdf4 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(22,163,74,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(217,119,6,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.hero-section .hero-shape {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(22,163,74,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-soft);
    border: 1px solid rgba(22,163,74,0.15);
    color: var(--green);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 16px;
}
.hero-section h1 .text-green { color: var(--green); }
.hero-section h1 .text-gold { color: var(--gold); }
.hero-section .hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 28px;
}
.hero-illustration {
    width: 100%;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-illustration .illustration-box {
    width: 380px;
    height: 380px;
    background: linear-gradient(135deg, var(--green-soft), var(--gold-soft));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-illustration .illustration-box i {
    font-size: 10rem;
    color: var(--green);
    opacity: 0.3;
}
.hero-illustration .floating-badge {
    position: absolute;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 3s ease-in-out infinite;
}
.hero-illustration .floating-badge:nth-child(2) { top: 10%; right: 0; animation-delay: 0.5s; }
.hero-illustration .floating-badge:nth-child(3) { bottom: 15%; left: 10%; animation-delay: 1s; }
.hero-illustration .floating-badge i { font-size: 1.5rem; margin: 0; opacity: 1; }
.hero-illustration .floating-badge span { font-weight: 600; font-size: 0.85rem; color: var(--dark); }

@media (max-width: 991.98px) {
    .hero-section { min-height: auto; padding: 100px 0 60px; text-align: center; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-section .d-flex { justify-content: center; }
    .hero-illustration { display: none; }
    .hero-shape { display: none; }
}

/* ===== RESULT CHECKER ===== */
.checker-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 640px;
    margin: -80px auto 0;
    position: relative;
    z-index: 10;
}
.checker-card .checker-icon {
    width: 64px;
    height: 64px;
    background: var(--gold-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: var(--gold);
}
.checker-card h3 {
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}
.checker-card .checker-subtitle {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.checker-card .input-group-custom {
    margin-bottom: 16px;
}
.checker-card .input-group-custom label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}
.checker-card .input-group-custom label .required {
    color: #dc2626;
}
.checker-card .checkbox-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 575.98px) {
    .checker-card { padding: 24px 20px; margin: -40px 16px 0; }
    .checker-card .checkbox-group { flex-wrap: wrap; }
}

/* ===== RESULT DISPLAY ===== */
.result-dashboard {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 640px;
    margin: 32px auto 0;
}
.result-dashboard .result-header {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    padding: 28px 32px;
    color: #fff;
    position: relative;
}
.result-dashboard .result-header::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.06);
    border-radius: 0 0 0 100%;
}
.result-dashboard .result-header .waec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.result-dashboard .result-header .candidate-info-row {
    display: flex;
    align-items: center;
    gap: 20px;
}
.result-dashboard .result-header .candidate-photo {
    flex-shrink: 0;
}
.result-dashboard .result-header .candidate-photo img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 3px solid rgba(255,255,255,0.3);
    object-fit: cover;
    background: #fff;
}
.result-dashboard .result-header .candidate-details {
    flex: 1;
    min-width: 0;
}
.result-dashboard .result-header .candidate-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.result-dashboard .result-header .candidate-id {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 2px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.result-dashboard .result-header .exam-details {
    font-size: 0.8rem;
    opacity: 0.75;
}
.result-dashboard .result-header .school-name {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.result-dashboard .result-body {
    padding: 24px 32px;
}
.result-dashboard .result-body .subjects-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    font-weight: 600;
    margin-bottom: 12px;
}
.result-dashboard .result-body .subject-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}
.result-dashboard .result-body .subject-row:last-child { border-bottom: none; }
.result-dashboard .result-body .subject-row .subject-name {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
}
.result-dashboard .result-body .subject-row .subject-grade {
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: 6px;
    min-width: 40px;
    text-align: center;
}
.result-dashboard .result-body .grade-A { background: #dcfce7; color: #16a34a; }
.result-dashboard .result-body .grade-B { background: #dbeafe; color: #2563eb; }
.result-dashboard .result-body .grade-C { background: #fef3c7; color: #d97706; }
.result-dashboard .result-body .grade-D { background: #fed7aa; color: #ea580c; }
.result-dashboard .result-body .grade-F { background: #fee2e2; color: #dc2626; }
.result-dashboard .result-body .overall-result {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px dashed var(--gray-200);
}
.result-dashboard .result-body .overall-result .result-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
}
.result-dashboard .result-body .overall-result .badge-pass { background: #dcfce7; color: #16a34a; }
.result-dashboard .result-body .overall-result .badge-fail { background: #fee2e2; color: #dc2626; }
.result-dashboard .result-footer {
    padding: 16px 32px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.result-dashboard .result-footer .btn { flex: 1; min-width: 140px; }
.result-dashboard .result-note {
    padding: 12px 32px;
    background: var(--gray-50);
    font-size: 0.8rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--gray-100);
}
@media (max-width: 575.98px) {
    .result-dashboard .result-header { padding: 20px; }
    .result-dashboard .result-body { padding: 16px 20px; }
    .result-dashboard .result-footer { padding: 12px 20px; }
}

/* ===== PURCHASE SECTION ===== */
.purchase-section {
    padding: 80px 0;
    background: var(--gray-50);
}
.purchase-section .section-title {
    font-weight: 800;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 8px;
}
.purchase-section .section-subtitle {
    text-align: center;
    color: var(--gray-400);
    margin-bottom: 40px;
    font-size: 1.05rem;
}
.pricing-card-modern {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.pricing-card-modern:hover {
    border-color: var(--green);
    box-shadow: 0 12px 40px rgba(22,163,74,0.1);
    transform: translateY(-4px);
}
.pricing-card-modern.selected {
    border-color: var(--green);
    box-shadow: 0 0 0 4px var(--green-soft);
}
.pricing-card-modern .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.pricing-card-modern .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}
.pricing-card-modern .card-icon.wassce { background: #dbeafe; color: #2563eb; }
.pricing-card-modern .card-icon.bece { background: #fef3c7; color: #d97706; }
.pricing-card-modern .card-icon.novdec { background: #fce7f3; color: #db2777; }
.pricing-card-modern h4 { font-weight: 700; margin-bottom: 4px; }
.pricing-card-modern .card-desc { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 16px; }
.pricing-card-modern .price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}
.pricing-card-modern .price-amount small { font-size: 1rem; font-weight: 400; color: var(--gray-400); }
.pricing-card-modern .avail-count {
    display: inline-block;
    padding: 4px 14px;
    background: var(--green-soft);
    color: var(--green);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== TRUST SECTION ===== */
.trust-section {
    padding: 80px 0;
    background: #fff;
}
.trust-section .section-title {
    font-weight: 800;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 8px;
}
.trust-section .section-subtitle {
    text-align: center;
    color: var(--gray-400);
    margin-bottom: 48px;
}
.trust-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.trust-card:hover { transform: translateY(-4px); }
.trust-card .trust-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
}
.trust-card h5 { font-weight: 700; margin-bottom: 8px; }
.trust-card p { font-size: 0.9rem; color: var(--gray-400); margin: 0; }

/* ===== STATS COUNTER ===== */
.stats-section {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    padding: 60px 0;
    color: #fff;
}
.stats-section .stat-item { text-align: center; }
.stats-section .stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.stats-section .stat-item .stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ===== FOOTER ===== */
.footer-main {
    background: var(--dark);
    color: var(--gray-400);
    padding: 60px 0 0;
}
.footer-main h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer-main .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-main .footer-links li { margin-bottom: 8px; }
.footer-main .footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-main .footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-main .footer-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.footer-main .footer-brand i { color: var(--green-light); }
.footer-main .footer-brand span { font-weight: 400; color: var(--gray-500); }
.footer-main .footer-desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-main .social-links { display: flex; gap: 10px; }
.footer-main .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 1.1rem;
    transition: var(--transition);
}
.footer-main .social-links a:hover {
    background: var(--green);
    color: #fff;
    transform: translateY(-3px);
}
.footer-main .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
    margin-top: 48px;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 24px rgba(37,211,102,0.35);
    transition: var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 32px rgba(37,211,102,0.5);
    color: #fff;
}
.whatsapp-float .tooltip-text {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.whatsapp-float:hover .tooltip-text { opacity: 1; }

/* ===== TOAST ===== */
.toast-container { z-index: 9999; }
.toast-custom {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 14px 20px;
    min-width: 320px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
}
.toast-custom i { font-size: 1.2rem; }
.toast-custom.toast-success { border-left: 4px solid var(--green); }
.toast-custom.toast-success i { color: var(--green); }
.toast-custom.toast-danger { border-left: 4px solid #dc2626; }
.toast-custom.toast-danger i { color: #dc2626; }
.toast-custom.toast-warning { border-left: 4px solid var(--gold); }
.toast-custom.toast-warning i { color: var(--gold); }

/* ===== SPINNER ===== */
.spinner-custom {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}
.spinner-custom-lg {
    width: 48px;
    height: 48px;
    border-width: 4px;
    margin: 0 auto 16px;
    display: block;
}

/* ===== BADGES (Admin) ===== */
.badge {
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
}
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-info { background: #dbeafe; color: #2563eb; }

/* ===== MODAL ===== */
.modal-premium .modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.modal-premium .modal-header {
    border-bottom: 1px solid var(--gray-100);
    padding: 20px 24px;
}
.modal-premium .modal-body { padding: 24px; }
.modal-premium .modal-footer {
    border-top: 1px solid var(--gray-100);
    padding: 16px 24px;
}

/* ===== RECEIPT MODAL ===== */
.receipt-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2.2rem;
    color: var(--green);
}
.receipt-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.receipt-table th {
    padding: 10px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    border-bottom: 2px solid var(--gray-100);
    font-weight: 600;
}
.receipt-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--gray-50);
    vertical-align: middle;
}
.receipt-table tr:last-child td { border-bottom: none; }
.receipt-summary {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 16px;
}
.receipt-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}
.receipt-summary .summary-row .label { color: var(--gray-400); }
.receipt-summary .summary-row .value { font-weight: 600; color: var(--dark); }

/* ===== ERROR DISPLAY ===== */
.error-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-xl);
    background: #fff;
    border: 1px solid var(--gray-200);
    max-width: 640px;
    margin: 32px auto 0;
}
.error-card .error-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    background: #fee2e2;
    color: #dc2626;
}
.error-card h4 { font-weight: 700; margin-bottom: 8px; }
.error-card p { color: var(--gray-400); margin: 0; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.animate-fade-in { animation: fadeIn 0.4s ease; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease; }

/* ===== PRINT ===== */
@media print {
    .navbar-main, .whatsapp-float, footer, .trust-section, .purchase-section,
    .stats-section, .hero-section, .toast-container, .no-print,
    #checkerCardInner, #purchaseFormWrapper { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .result-dashboard { box-shadow: none !important; border: 1px solid #ddd !important; border-radius: 8px !important; max-width: 100% !important; }
    .result-dashboard .result-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .result-dashboard .result-body .grade-A,
    .result-dashboard .result-body .grade-B,
    .result-dashboard .result-body .grade-C,
    .result-dashboard .result-body .grade-D,
    .result-dashboard .result-body .grade-F,
    .result-dashboard .result-body .overall-result .badge-pass,
    .result-dashboard .result-body .overall-result .badge-fail { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ===== RESPONSIVE EXTRAS ===== */
@media (min-width: 576px) {
    .container { max-width: 540px; }
}
@media (min-width: 768px) {
    .container { max-width: 720px; }
}
@media (min-width: 992px) {
    .container { max-width: 960px; }
}
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

@media (max-width: 767.98px) {
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section .hero-subtitle { font-size: 1rem; }
    .pricing-card-modern { padding: 20px 14px; }
    .pricing-card-modern .price-amount { font-size: 2rem; }
    .pricing-card-modern .card-icon { width: 48px; height: 48px; font-size: 1.3rem; margin-bottom: 12px; }
    .pricing-card-modern .card-desc { font-size: 0.78rem; }
    .stats-section .stat-item .stat-number { font-size: 1.8rem; }
    .whatsapp-float { width: 48px; height: 48px; font-size: 1.3rem; bottom: 16px; right: 16px; }
}
@media (max-width: 420px) {
    .pricing-card-modern { padding: 16px 12px; }
    .pricing-card-modern .popular-badge { font-size: 0.65rem; padding: 3px 12px; top: -10px; }
    .pricing-card-modern .card-icon { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 8px; border-radius: 12px; }
    .pricing-card-modern h4 { font-size: 1rem; }
    .pricing-card-modern .card-desc { font-size: 0.7rem; margin-bottom: 10px; }
    .pricing-card-modern .price-amount { font-size: 1.6rem; }
    .pricing-card-modern .avail-count { font-size: 0.7rem; padding: 3px 10px; }
    .purchase-compact { padding: 16px; }
    .purchase-row { flex-direction: column; gap: 12px; }
    .purchase-total { text-align: left; width: 100%; display: flex; align-items: center; gap: 8px; }
    .purchase-total-label { margin-bottom: 0; }
    .purchase-total-amount { font-size: 1.1rem; }
}

/* ===== GLASS CARD (Admin) ===== */
.glass-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.stat-card {
    transition: var(--transition);
    cursor: default;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ===== ADMIN TOP NAVBAR ===== */
.admin-topbar {
    background: rgba(15,23,41,0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border) !important;
    padding: 10px 16px !important;
}
.admin-topbar .form-check-input:checked {
    background-color: var(--green);
    border-color: var(--green);
}

/* ===== ADMIN BUTTONS ===== */
.admin-btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 18px;
    transition: var(--transition);
}
.admin-btn-primary {
    background: var(--green);
    border: 2px solid var(--green);
    color: #fff;
}
.admin-btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22,163,74,0.3);
}
.admin-btn-outline {
    border: 2px solid var(--gray-600);
    color: var(--gray-400);
    background: transparent;
}
.admin-btn-outline:hover {
    border-color: var(--green);
    color: var(--green);
    background: rgba(22,163,74,0.08);
}
.admin-btn-sm {
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* ===== ADMIN TABLES ===== */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.admin-table th {
    padding: 12px 14px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-500);
    border-bottom: 1px solid var(--glass-border);
    font-weight: 700;
    white-space: nowrap;
}
.admin-table td {
    padding: 10px 14px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(22,163,74,0.04); }

/* ===== ADMIN PAGINATION ===== */
.admin-pagination .page-link {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    color: var(--gray-400);
    border-radius: 8px !important;
    margin: 0 2px;
    padding: 6px 12px;
    font-size: 0.8rem;
    transition: var(--transition);
}
.admin-pagination .page-link:hover {
    background: rgba(22,163,74,0.1);
    color: var(--green);
    border-color: var(--green);
}
.admin-pagination .page-item.active .page-link {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.admin-pagination .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* ===== ADMIN FORM LABELS ===== */
.admin-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    margin-bottom: 6px;
}

/* ===== ADMIN DARK THEME ===== */
[data-bs-theme="dark"] {
    --bs-body-bg: #0b1120;
    --bs-body-color: #e2e8f0;
    --glass-border: #1e293b;
}
[data-bs-theme="dark"] .card, [data-bs-theme="dark"] .card-premium,
[data-bs-theme="dark"] .modal-content {
    background: #111827;
    border-color: #1e293b;
}
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .table { --bs-table-color: #e2e8f0; --bs-table-bg: transparent; --bs-table-hover-bg: rgba(255,255,255,0.03); --bs-table-striped-bg: rgba(255,255,255,0.02); }
[data-bs-theme="dark"] .sidebar { background: #0f1729; border-color: #1e293b; }
[data-bs-theme="dark"] .sidebar .nav-link { color: #94a3b8; }
[data-bs-theme="dark"] .sidebar .nav-link:hover,
[data-bs-theme="dark"] .sidebar .nav-link.active { background: rgba(22,163,74,0.1); color: #22c55e; }
[data-bs-theme="dark"] .stat-card { background: #111827; border-color: #1e293b; }
[data-bs-theme="dark"] .navbar-dark.bg-dark { background: #0f1729 !important; border-color: #1e293b !important; }
[data-bs-theme="dark"] .modal-premium .modal-content { background: #111827; }
[data-bs-theme="dark"] .receipt-summary { background: #1e293b; }
[data-bs-theme="dark"] .receipt-table th { color: #64748b; border-color: #1e293b; }
[data-bs-theme="dark"] .receipt-table td { border-color: rgba(255,255,255,0.04); color: #cbd5e1; }
[data-bs-theme="dark"] ::-webkit-scrollbar-track { background: #0b1120; }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; }
[data-bs-theme="dark"] .text-muted { color: #64748b !important; }

/* ===== ADMIN DASHBOARD - MODERN LAYOUT ===== */

/* Layout */
#app {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

/* ===== SIDEBAR ===== */
.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1040;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
}

.sidebar-brand-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
}

.sidebar-logo i {
    font-size: 1.4rem;
    color: #22c55e;
}

.sidebar-logo span small {
    font-weight: 400;
    color: rgba(255,255,255,0.35);
    font-size: 1rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
    padding: 4px 8px;
    transition: color 0.2s;
    cursor: pointer;
}

.sidebar-close:hover { color: #fff; }

.sidebar-nav {
    flex: 1;
    padding: 12px 12px;
    overflow-y: auto;
}

.nav-section-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.25);
    font-weight: 700;
    padding: 16px 12px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.55);
    font-size: 0.87rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.nav-item i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.nav-item.active {
    background: rgba(22,163,74,0.12);
    color: #22c55e;
    font-weight: 600;
}

.nav-item.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-item.logout-item {
    margin-top: 4px;
    color: #f87171;
}

.nav-item.logout-item:hover {
    background: rgba(239,68,68,0.1);
}

/* Sidebar Footer - User Profile */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-info {
    min-width: 0;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
}

/* ===== MAIN CONTENT ===== */
.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ===== TOPBAR ===== */
.admin-topbar-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1025;
    min-height: 60px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #475569;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.hamburger:hover { color: var(--green); }

.topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 8px 14px;
    min-width: 240px;
}

.topbar-search i {
    color: #94a3b8;
    font-size: 0.9rem;
}

.topbar-search input {
    border: none;
    background: none;
    outline: none;
    font-size: 0.85rem;
    color: #475569;
    width: 100%;
}

.topbar-search input::placeholder { color: #94a3b8; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-btn {
    position: relative;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s;
}

.topbar-btn:hover {
    background: #e2e8f0;
    color: var(--green);
}

.notif-dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff;
}

.topbar-divider {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    cursor: default;
}

.user-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ===== CONTENT AREA ===== */
.admin-content {
    padding: 24px;
    flex: 1;
}

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

.content-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.content-subtitle {
    font-size: 0.87rem;
    color: #64748b;
    margin: 4px 0 0;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-action-primary {
    background: var(--green);
    color: #fff;
    border: 2px solid var(--green);
}

.btn-action-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22,163,74,0.3);
}

.btn-action-secondary {
    background: #fff;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.btn-action-secondary:hover {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-1px);
}

.btn-action-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

/* ===== STAT CARDS ===== */
.col-xl-1-5 {
    flex: 0 0 auto;
    width: 12.5%;
}

.stat-card-modern {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.stat-card-modern .stat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.stat-card-modern .stat-info {
    margin-bottom: 6px;
}

.stat-card-modern .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    display: block;
    margin-bottom: 2px;
}

.stat-card-modern .stat-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.stat-card-modern .stat-trend {
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1px;
}

.stat-card-modern .stat-trend.up { color: var(--green); }
.stat-card-modern .stat-trend.down { color: #ef4444; }
.stat-card-modern .stat-trend i { font-size: 1rem; }

/* ===== DASHBOARD CARDS ===== */
.card-dashboard {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.card-dashboard:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.04); }

.card-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.card-dash-header h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-dash-header h5 i {
    color: var(--green);
    font-size: 1rem;
}

.badge-dash {
    font-size: 0.65rem;
    font-weight: 600;
    background: #dcfce7;
    color: #16a34a;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-dash-body {
    padding: 20px;
}

.btn-dash-sm {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-dash-sm:hover {
    background: rgba(22,163,74,0.06);
    color: var(--green-dark);
}

/* ===== SYSTEM STATUS ===== */
.status-item {
    margin-bottom: 16px;
}

.status-item:last-child { margin-bottom: 0; }

.status-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 6px;
}

.status-value {
    font-weight: 700;
    color: #0f172a;
}

.status-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* ===== DASHBOARD TABLE ===== */
.table-dash-wrap {
    overflow-x: auto;
}

.table-dash {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.table-dash th {
    padding: 12px 16px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    font-weight: 700;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
    background: #fafbfc;
    text-align: left;
}

.table-dash td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    vertical-align: middle;
}

.table-dash tbody tr {
    transition: background 0.15s ease;
}

.table-dash tbody tr:hover {
    background: rgba(22,163,74,0.03);
}

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

.table-dash code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    color: #475569;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ===== TOAST (for admin) ===== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-custom {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding: 14px 20px;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
}

.toast-custom i { font-size: 1.15rem; }
.toast-custom.toast-success { border-left: 4px solid var(--green); }
.toast-custom.toast-success i { color: var(--green); }
.toast-custom.toast-danger { border-left: 4px solid #dc2626; }
.toast-custom.toast-danger i { color: #dc2626; }
.toast-custom.toast-warning { border-left: 4px solid #d97706; }
.toast-custom.toast-warning i { color: #d97706; }
.toast-custom.toast-info { border-left: 4px solid #3b82f6; }
.toast-custom.toast-info i { color: #3b82f6; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        height: 100vh;
        width: 280px;
        box-shadow: none;
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0,0,0,0.2);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .col-xl-1-5 {
        width: 25%;
    }
}

@media (max-width: 767.98px) {
    .admin-content {
        padding: 16px;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-title {
        font-size: 1.2rem;
    }

    .content-actions {
        width: 100%;
    }

    .content-actions .btn-action {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .admin-topbar-modern {
        padding: 10px 16px;
    }

    .topbar-search { display: none !important; }

    .stat-card-modern {
        padding: 14px 12px;
    }

    .stat-card-modern .stat-value {
        font-size: 1.2rem;
    }

    .stat-card-modern .stat-icon-wrap {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .col-xl-1-5 {
        width: 50%;
    }

    .card-dash-body {
        padding: 14px;
    }

    .table-dash {
        font-size: 0.78rem;
    }

    .table-dash th,
    .table-dash td {
        padding: 10px 12px;
    }

    .toast-custom {
        min-width: auto;
        width: calc(100vw - 40px);
        font-size: 0.8rem;
    }
}

@media (max-width: 374.98px) {
    .col-xl-1-5 {
        width: 100%;
    }

    .admin-content {
        padding: 12px;
    }
}

/* ===== MOMO PAYMENT — REDESIGNED ===== */

/* Outer wrapper — glass card */
.momo-wrap {
    max-width: 820px;
    margin: 0 auto;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226,232,240,0.6);
    border-radius: 24px;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.02),
        0 8px 32px rgba(0,0,0,0.04),
        0 24px 60px rgba(0,0,0,0.03);
    padding: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Two-column flex */
.momo-inner {
    display: flex;
    align-items: stretch;
    min-height: 420px;
}

/* ===== LEFT COLUMN — PAYMENT FORM ===== */
.momo-form-col {
    flex: 1;
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
}

/* Header row */
.momo-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.momo-head-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(22,163,74,0.2);
}
.momo-head-text {
    flex: 1;
    min-width: 140px;
}
.momo-head-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
    line-height: 1.3;
}
.momo-head-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 2px 0 0;
}
.momo-head-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid rgba(22,163,74,0.12);
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* Form body */
.momo-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Field group */
.momo-fgroup {
    margin-bottom: 22px;
}
.momo-flabel {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

/* ===== PHONE INPUT ===== */
.momo-phone {
    display: flex;
    align-items: center;
    height: 54px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.momo-phone:focus-within {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22,163,74,0.08);
}
.momo-phone-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    font-size: 1.3rem;
    background: #f8fafc;
    border-right: 2px solid #e2e8f0;
    align-self: stretch;
}
.momo-phone-code {
    display: flex;
    align-items: center;
    padding: 0 10px 0 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border-right: 2px solid #e2e8f0;
    align-self: stretch;
    letter-spacing: 0.3px;
}
.momo-phone-input {
    flex: 1;
    height: 100%;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 16px;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    color: #0f172a;
    outline: none;
    background: transparent;
}
.momo-phone-input::placeholder {
    color: #cbd5e1;
    letter-spacing: 0;
    font-weight: 400;
}
.momo-phone-input:focus {
    box-shadow: none !important;
}

/* ===== NETWORK SELECTION ===== */
.momo-nets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.momo-net {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 8px 14px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
}
.momo-net:hover {
    border-color: #86efac;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(22,163,74,0.07);
}
.momo-net.selected {
    border-color: #16a34a;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(22,163,74,0.08);
}
.momo-net.selected .momo-net-icon {
    transform: scale(1.12);
}
.momo-net-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    transition: transform 0.2s;
}
.momo-net-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: #0f172a;
}
.momo-net-chk {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #16a34a;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.momo-net.selected .momo-net-chk {
    opacity: 1;
    transform: scale(1);
}

/* ===== CONTINUE BUTTON ===== */
.momo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    padding: 0 24px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #15803d);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}
.momo-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(22,163,74,0.3);
}
.momo-btn:active:not(:disabled) {
    transform: translateY(0);
}
.momo-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.momo-btn-icon {
    display: flex;
    align-items: center;
    font-size: 1rem;
    opacity: 0.85;
}
.momo-btn-arrow {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    transition: transform 0.2s;
}
.momo-btn:hover:not(:disabled) .momo-btn-arrow {
    transform: translateX(3px);
}
.momo-btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}
.momo-btn-loader .spinner-custom {
    margin: 0;
}

/* ===== QUANTITY SELECTOR ===== */
.momo-qty {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    max-width: 140px;
    margin: 0 auto;
}
.momo-qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f8fafc;
    font-size: 1.2rem;
    font-weight: 700;
    color: #16a34a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.momo-qty-btn:hover {
    background: #dcfce7;
}
.momo-qty-input {
    width: 52px;
    height: 44px;
    border: none;
    border-left: 2px solid #e2e8f0;
    border-right: 2px solid #e2e8f0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    background: #fff;
    -moz-appearance: textfield;
}
.momo-qty-input::-webkit-inner-spin-button,
.momo-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== PAYSTACK BADGE ===== */
.momo-pay-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0fdf4;
    border: 1px solid rgba(22,163,74,0.15);
    border-radius: 20px;
    font-size: 0.82rem;
    color: #166534;
}
.momo-pay-badge i {
    font-size: 0.95rem;
}

/* ===== SECURITY FOOTER ===== */
.momo-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.4;
}
.momo-secure i {
    color: #16a34a;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.momo-secure strong {
    color: #64748b;
}

/* ===== RIGHT COLUMN — HOW IT WORKS ===== */
.momo-info-col {
    width: 280px;
    min-width: 280px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 1px solid #e2e8f0;
    padding: 36px 28px 32px;
    display: flex;
    flex-direction: column;
}
.momo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.momo-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
}
.momo-info-title i {
    color: #16a34a;
    font-size: 1rem;
}
.momo-info-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.momo-info-step {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(226,232,240,0.6);
}
.momo-info-step:last-child {
    border-bottom: none;
}
.momo-info-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #16a34a;
    margin-top: 1px;
}
.momo-info-step strong {
    display: block;
    font-size: 0.85rem;
    color: #0f172a;
    margin-bottom: 2px;
}
.momo-info-step p {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}
.momo-info-shield {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(226,232,240,0.6);
    font-size: 0.75rem;
    color: #94a3b8;
}
.momo-info-shield i {
    color: #16a34a;
    font-size: 0.9rem;
}

/* ===== COMPACT PURCHASE FORM ===== */
.purchase-compact {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 24px 20px;
    margin-top: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.purchase-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}
.purchase-qty {
    flex: 1;
}
.purchase-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.purchase-total {
    text-align: right;
    flex-shrink: 0;
}
.purchase-total-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.purchase-total-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: #16a34a;
    line-height: 1.2;
}
.purchase-total-exam {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}
.purchase-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.3;
    justify-content: center;
}
.purchase-hint i {
    font-size: 0.8rem;
    color: #16a34a;
    flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */

/* Tablet / small desktop: stack columns */
@media (max-width: 767.98px) {
    .momo-inner {
        flex-direction: column;
    }
    .momo-info-col {
        width: 100%;
        min-width: auto;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 24px 28px;
        background: #f8fafc;
    }
    .momo-info-steps {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
    }
    .momo-info-step {
        flex: 1;
        min-width: 140px;
        padding: 14px 12px 14px 0;
        border-bottom: none;
    }
    .momo-info-title {
        margin-bottom: 16px;
    }
    .momo-head-badge {
        margin-left: auto;
    }
}

/* Phone */
@media (max-width: 575.98px) {
    .momo-form-col {
        padding: 24px 18px 20px;
    }
    .momo-head {
        gap: 12px;
    }
    .momo-head-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }
    .momo-head-title {
        font-size: 1rem;
    }
    .momo-head-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
        margin-left: 0;
        width: 100%;
        order: 3;
    }
    .momo-head-text {
        min-width: auto;
    }
    .momo-phone {
        height: 48px;
        border-radius: 12px;
    }
    .momo-phone-flag {
        width: 42px;
        min-width: 42px;
        font-size: 1.1rem;
    }
    .momo-phone-code {
        font-size: 0.82rem;
        padding: 0 8px 0 4px;
    }
    .momo-phone-input {
        font-size: 0.95rem;
        padding: 0 12px;
    }
    .momo-nets {
        gap: 8px;
    }
    .momo-net {
        padding: 14px 6px 12px;
    }
    .momo-net-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    .momo-net-label {
        font-size: 0.75rem;
    }
    .momo-btn {
        height: 48px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    .momo-secure {
        font-size: 0.7rem;
        padding: 10px 12px;
    }
    .momo-info-col {
        padding: 20px 18px;
    }
    .momo-info-step {
        min-width: 100%;
        padding: 12px 0;
    }
}

/* Tiny screens */
@media (max-width: 374.98px) {
    .momo-nets {
        grid-template-columns: 1fr;
    }
    .momo-net {
        flex-direction: row;
        padding: 12px 14px;
        gap: 12px;
    }
    .momo-net .momo-net-icon {
        margin: 0;
    }
    .momo-net .momo-net-chk {
        top: 50%;
        transform: translateY(-50%) scale(0.3);
        right: 12px;
    }
    .momo-net.selected .momo-net-chk {
        transform: translateY(-50%) scale(1);
    }
}

/* ===== PAYMENT PULSE — REDESIGNED ===== */

.ppulse {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ppulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(22,163,74,0.15);
    animation: ppulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.ppulse-ring-2 {
    animation-delay: 0.6s;
}
@keyframes ppulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}
.ppulse-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #15803d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(22,163,74,0.25);
    z-index: 1;
}

/* Status Dot */
.pstatus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--gray-500);
}
.pstatus-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    animation: pstatus-blink 1.2s ease-in-out infinite;
    display: inline-block;
}
.pstatus-dot-otp {
    background: #d97706;
}
.pstatus-dot-ok {
    background: #16a34a;
    animation: none;
}
@keyframes pstatus-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Legacy pulse kept for compatibility */
.payment-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--green);
    position: relative;
    animation: paymentPulse 2s ease-in-out infinite;
}
.payment-pulse::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid var(--green);
    opacity: 0.2;
    animation: paymentRing 2s ease-in-out infinite;
}
.payment-pulse::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 2px solid var(--green);
    opacity: 0.1;
    animation: paymentRing 2s ease-in-out infinite 0.5s;
}
@keyframes paymentPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes paymentRing {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Payment Info Box */
.payment-info-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* Timer Bar */
.payment-timer {
    width: 100%;
    max-width: 280px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}
.payment-timer .timer-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--green-light));
    border-radius: 2px;
    width: 0%;
}

/* Spin Slow */
.spin-slow {
    animation: spin 2s linear infinite;
    display: inline-block;
}

/* ===== SUCCESS ANIMATION ===== */
.success-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-circle .checkmark {
    width: 80px;
    height: 80px;
}
.success-circle .checkmark-circle {
    stroke: var(--green);
    stroke-width: 3;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeDraw 0.6s ease forwards 0.2s;
}
.success-circle .checkmark-check {
    stroke: var(--green);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeDraw 0.4s ease forwards 0.6s;
}
@keyframes strokeDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes successPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* ===== FAIL ANIMATION ===== */
.fail-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #dc2626;
    animation: failShake 0.5s ease;
}
@keyframes failShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* ===== OTP INPUT ===== */
.otp-box {
    max-width: 320px;
    margin: 0 auto 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.otp-input-group {
    display: flex;
    gap: 8px;
}
.otp-input {
    flex: 1;
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 8px;
    text-align: center;
    color: #0f172a;
    outline: none;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Courier New', monospace;
}
.otp-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22,163,74,0.08);
}
.otp-submit-btn {
    height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.otp-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22,163,74,0.25);
}
.otp-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}
