/* ============================================================
   EduInstitute Pro - Main Stylesheet
   Modern Blue Education Theme
   ============================================================ */

:root {
    --primary:        #2563eb;
    --primary-dark:   #1e40af;
    --primary-deep:   #1e3a8a;
    --accent:         #38bdf8;
    --gradient:       linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #38bdf8 100%);
    --gradient-soft:  linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    --body-bg:        #ffffff;
    --bg-alt:         #f2f6fd;
    --text-dark:      #0f172a;
    --text-muted:     #64748b;
    --border:         #e2e8f0;
    --shadow-sm:      0 2px 10px rgba(15, 23, 42, 0.06);
    --shadow:         0 8px 28px rgba(37, 99, 235, 0.14);
    --shadow-lg:      0 18px 45px rgba(30, 58, 138, 0.18);
    --radius:         14px;
    --radius-lg:      20px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--body-bg);
    overflow-x: hidden;
}

a { text-decoration: none; color: var(--primary); }
ul { margin: 0; padding: 0; }

::selection { background: var(--primary); color: #fff; }

/* ---------------- Top bar ---------------- */
.topbar {
    background: linear-gradient(90deg, var(--primary-deep), var(--primary-dark));
    color: #dbeafe;
    font-size: 0.82rem;
}
.topbar a { color: #dbeafe; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--accent); margin-right: 4px; }
.top-address i { color: var(--accent); margin-right: 4px; }
.top-social {
    width: 26px; height: 26px; display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff !important;
    font-size: 0.75rem;
}
.top-social:hover { background: var(--accent); }

/* ---------------- Navbar ---------------- */
.main-navbar {
    background: #fff;
    box-shadow: 0 2px 14px rgba(15,23,42,0.07);
    padding: 0.6rem 0;
}
.main-navbar .navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.55rem 0.9rem;
    position: relative;
}
.main-navbar .navbar-nav .nav-link:hover { color: var(--primary); }
.main-navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}
.main-navbar .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.1rem;
    height: 3px; border-radius: 3px;
    background: var(--gradient-soft);
}
.brand-logo { height: 46px; width: auto; }
.brand-logo-sm { height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; color: var(--primary-deep); font-size: 1.05rem; }
.brand-tag { font-size: 0.66rem; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; }

.btn-nav-cta {
    background: var(--gradient-soft);
    color: #fff !important;
    border-radius: 50rem;
    padding: 0.5rem 1.25rem !important;
    font-weight: 600;
    border: none;
}
.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* ---------------- Buttons ---------------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.btn-hero-primary {
    background: #fff; color: var(--primary-dark); font-weight: 700;
    border-radius: 50rem; padding: 0.85rem 1.8rem; border: none;
    box-shadow: 0 10px 25px rgba(15,23,42,0.2);
}
.btn-hero-primary:hover { color: var(--primary); transform: translateY(-2px); }
.btn-hero-secondary {
    background: rgba(255,255,255,0.14); color: #fff; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 50rem; padding: 0.85rem 1.8rem;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ---------------- Hero ---------------- */
.hero {
    background: var(--gradient);
    color: #fff;
    padding: 5.5rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 12% 20%, rgba(255,255,255,0.14) 0, transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(56,189,248,0.3) 0, transparent 30%),
        radial-gradient(circle at 70% 12%, rgba(255,255,255,0.08) 0, transparent 18%);
    pointer-events: none;
}
.hero-kicker {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.35rem 1rem; border-radius: 50rem;
    font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: clamp(2.35rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.1rem;
}
.hero-subtitle { font-size: 1.05rem; color: #dbeafe; max-width: 560px; }
.hero-trust { font-size: 0.9rem; }
.hero-trust i { color: #6ee7b7; margin-right: 6px; }

.hero-visual { position: relative; max-width: 460px; margin-left: auto; }
.hero-img { width: 100%; filter: drop-shadow(0 22px 45px rgba(15,23,42,0.35)); }
.hero-float-card {
    position: absolute;
    background: #fff; color: var(--text-dark);
    border-radius: 14px; padding: 0.8rem 1.1rem;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 0.7rem;
    animation: float 5s ease-in-out infinite;
}
.hero-float-card i { font-size: 1.4rem; color: var(--primary); }
.hero-float-card strong { font-size: 1.15rem; display: block; line-height: 1; }
.hero-float-card small { color: var(--text-muted); }
.float-card-top { top: 6%; left: -4%; animation-delay: 0s; }
.float-card-bottom { bottom: 8%; right: -2%; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------------- Section helpers ---------------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-kicker {
    display: inline-block;
    color: var(--primary);
    font-weight: 700; font-size: 0.82rem;
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.section-title { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--text-dark); margin-bottom: 1rem; }
.section-title em { color: var(--primary); font-style: normal; }
.section-lead { max-width: 620px; }

/* ---------------- About preview ---------------- */
.about-visual { position: relative; }
.mini-feature { display: flex; align-items: flex-start; gap: 0.8rem; }
.mini-feature i {
    width: 46px; height: 46px; flex: 0 0 46px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-alt); color: var(--primary);
    border-radius: 12px; font-size: 1.15rem;
}
.mini-feature strong { display: block; font-size: 0.95rem; }
.mini-feature span { color: var(--text-muted); font-size: 0.8rem; }

/* ---------------- Feature cards ---------------- */
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon {
    width: 58px; height: 58px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gradient-soft); color: #fff;
    border-radius: 14px; font-size: 1.4rem;
    margin-bottom: 1rem;
}
.feature-card h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; }

/* ---------------- Stats ---------------- */
.section-stats {
    background: var(--gradient);
    color: #fff;
}
.stat-box i { font-size: 2rem; color: rgba(255,255,255,0.75); margin-bottom: 0.4rem; }
.stat-box h2 { font-weight: 800; font-size: 2.4rem; margin: 0; }
.stat-box span { opacity: 0.85; font-size: 0.9rem; }

/* ---------------- Course cards ---------------- */
.course-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-card-img { position: relative; height: 168px; overflow: hidden; }
.course-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.course-card:hover .course-card-img img { transform: scale(1.06); }
.course-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--gradient-soft); color: #fff;
    font-size: 0.7rem; font-weight: 600;
    padding: 0.25rem 0.7rem; border-radius: 50rem;
}
.course-duration-badge {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(15,23,42,0.75); color: #fff;
    font-size: 0.7rem; padding: 0.25rem 0.7rem; border-radius: 50rem;
}
.course-card-body { padding: 1.1rem 1.15rem 1.25rem; }
.course-card-head { gap: 6px; }
.course-code { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.5px; }
.cert-badge {
    font-size: 0.68rem; font-weight: 600; color: #047857;
    background: #d1fae5; padding: 0.2rem 0.6rem; border-radius: 50rem;
}
.course-card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.course-card-title a { color: var(--text-dark); }
.course-card-title a:hover { color: var(--primary); }
.course-card-desc {
    font-size: 0.82rem; color: var(--text-muted);
    min-height: 40px; margin-bottom: 0.9rem;
}
.course-card-footer { border-top: 1px dashed var(--border); padding-top: 0.9rem; }
.course-fee { font-weight: 700; font-size: 1.05rem; color: var(--primary-dark); }
.fee-label { display: block; font-size: 0.66rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-course-detail {
    background: var(--bg-alt); color: var(--primary);
    font-size: 0.78rem; font-weight: 600; border-radius: 50rem;
}
.btn-course-detail:hover { background: var(--primary); color: #fff; }

/* ---------------- Testimonials ---------------- */
.testimonial-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.8rem;
    position: relative;
    transition: box-shadow .25s;
}
.testimonial-card:hover { box-shadow: var(--shadow); }
.testimonial-quote {
    position: absolute; top: -14px; right: 20px;
    width: 44px; height: 44px;
    background: var(--gradient-soft); color: #fff;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.testimonial-text { font-size: 0.92rem; color: #334155; margin: 0.5rem 0 1.2rem; }
.testimonial-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--primary-deep); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.testimonial-course { font-size: 0.78rem; color: var(--text-muted); }
.testimonial-stars i { color: #f59e0b; font-size: 0.8rem; }

/* ---------------- Notices ---------------- */
.notice-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    transition: box-shadow .25s;
    position: relative;
}
.notice-card:hover { box-shadow: var(--shadow); }
.notice-date {
    width: 58px; text-align: center;
    background: var(--gradient-soft); color: #fff;
    border-radius: 12px; padding: 0.55rem 0.3rem; margin-bottom: 1rem;
}
.notice-day { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.notice-month { font-size: 0.66rem; text-transform: uppercase; }
.notice-title { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.55rem; }
.notice-title a { color: var(--text-dark); }
.notice-title a:hover { color: var(--primary); }
.notice-link { font-size: 0.85rem; font-weight: 600; }
.notice-badge {
    background: var(--gradient-soft); color: #fff;
    padding: 0.3rem 0.9rem; border-radius: 50rem;
    font-size: 0.75rem; font-weight: 600;
}

/* ---------------- CTA ---------------- */
.cta-box {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 2.8rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-box::after {
    content: ''; position: absolute;
    right: -80px; top: -80px; width: 260px; height: 260px;
    background: rgba(255,255,255,0.08); border-radius: 50%;
}
.cta-title { font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); }
.btn-cta-light { background: #fff; color: var(--primary-dark); border-radius: 50rem; font-weight: 700; }
.btn-cta-light:hover { color: var(--primary); }
.btn-cta-call { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.5); border-radius: 50rem; }
.btn-cta-call:hover { background: #fff; color: var(--primary-dark); }

/* ---------------- Footer ---------------- */
.site-footer { background: #0a1b3e; color: #c7d2fe; padding-top: 3.5rem; }
.footer-heading {
    font-weight: 600; color: #fff;
    font-size: 1.05rem; margin-bottom: 1.1rem;
}
.footer-heading i { color: var(--accent); margin-right: 6px; }
.footer-text { font-size: 0.88rem; }
.footer-social a {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.09); color: #fff;
    border-radius: 8px; font-size: 0.9rem;
    transition: background .2s;
}
.footer-social a:hover { background: var(--accent); }
.footer-contact li { margin-bottom: 0.65rem; font-size: 0.88rem; }
.footer-contact i { color: var(--accent); width: 20px; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: #c7d2fe; font-size: 0.88rem; }
.footer-links a i { font-size: 0.7rem; margin-right: 5px; color: var(--accent); }
.footer-links a:hover { color: #fff; padding-left: 2px; }
.footer-bottom {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.1rem 0;
    font-size: 0.82rem; color: #93a4d8;
}

/* ---------------- Back to top ---------------- */
.back-to-top {
    position: fixed; right: 22px; bottom: 24px;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--primary); color: #fff; border: none;
    font-size: 1.1rem; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: all .3s; z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary-dark); }

/* ---------------- WhatsApp float ---------------- */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 76px;
    width: 52px; height: 52px; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 1.7rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(37,211,102,.45);
    transition: transform .3s; z-index: 998;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* WhatsApp CTA strip (contact page) */
.whatsapp-cta { background: linear-gradient(135deg, #128C7E, #25d366); }
.whatsapp-cta-icon {
    width: 58px; height: 58px; border-radius: 14px;
    background: rgba(255,255,255,.18); color: #fff;
    display: flex; align-items: center; justify-content: center;
}

/* ---------------- Page banner ---------------- */
.page-banner {
    background: var(--gradient);
    color: #fff; padding: 3.2rem 0;
    position: relative; overflow: hidden;
}
.page-banner::after {
    content: ''; position: absolute;
    right: -60px; top: -60px; width: 230px; height: 230px;
    background: rgba(255,255,255,0.07); border-radius: 50%;
}
.page-banner-title { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.page-banner .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,0.5); }
.page-banner .breadcrumb-item a { color: rgba(255,255,255,0.85); }
.page-banner .breadcrumb-item.active { color: #fff; }

/* ---------------- Course detail ---------------- */
.course-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--bg-alt); color: var(--primary-dark);
    font-size: 0.8rem; font-weight: 600;
    padding: 0.35rem 0.9rem; border-radius: 50rem;
}
.course-tag-success { background: #d1fae5; color: #047857; }
.course-desc { font-size: 0.95rem; color: #475569; line-height: 1.8; }
.module-item {
    background: var(--bg-alt);
    border-radius: 12px; padding: 0.95rem 1.1rem;
    margin-bottom: 0.7rem;
}
.module-item i { color: #16a34a; margin-top: 3px; font-size: 1.1rem; }
.batch-item {
    background: #fff; border: 1px solid var(--border);
    border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 0.7rem;
}
.batch-room { font-size: 0.78rem; background: var(--bg-alt); padding: 0.3rem 0.8rem; border-radius: 50rem; color: var(--primary-dark); font-weight: 600; }

.course-sidebar .fee-box { background: #fff; border: 1px solid var(--border); }
.fee-total { border-bottom: 1px dashed var(--border); padding-bottom: 0.8rem; }
.fee-amount { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.fee-detail li { padding: 0.45rem 0; font-size: 0.9rem; color: #475569; border-bottom: 1px dotted var(--border); }
.fee-detail li:last-child { border-bottom: 0; }

.enquiry-box { background: var(--gradient); color: #fff; position: relative; overflow: hidden; }
.enquiry-box::after {
    content: ''; position: absolute;
    bottom: -70px; right: -70px; width: 190px; height: 190px;
    background: rgba(255,255,255,0.08); border-radius: 50%;
}
.enquiry-title { font-weight: 700; }
.enquiry-box .form-label { color: #e0e7ff; }
.enquiry-box ::placeholder { color: #a5b4fc; }
.enquiry-box .form-control, .enquiry-box .form-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.enquiry-box .form-control:focus { background: rgba(255,255,255,0.18); border-color: #fff; box-shadow: none; color: #fff; }
.enquiry-box .form-control option, .enquiry-box .form-select option { color: #0f172a; }

/* ---------------- Contact page ---------------- */
.contact-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.6rem 1.3rem;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.contact-icon {
    width: 54px; height: 54px; margin: 0 auto 0.9rem;
    background: var(--gradient-soft); color: #fff;
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.contact-card h6 { font-weight: 600; }
.contact-form-box { background: var(--bg-alt); }
.form-control, .form-select {
    border-radius: 10px;
    border-color: var(--border);
    padding: 0.6rem 0.9rem;
    font-size: 0.92rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}
.form-message { min-height: 24px; font-size: 0.88rem; }

/* ---------------- Trainers / Gallery ---------------- */
.trainer-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem 1.5rem;
    transition: box-shadow .25s;
}
.trainer-card:hover { box-shadow: var(--shadow); }
.trainer-avatar {
    width: 86px; height: 86px; margin: 0 auto 1rem;
    background: var(--gradient-soft); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
}
.trainer-exp {
    font-size: 0.75rem; color: var(--primary);
    background: var(--bg-alt); padding: 0.3rem 0.8rem; border-radius: 50rem; font-weight: 600;
}
.gallery-card {
    height: 190px; border-radius: var(--radius);
    background: var(--gradient-soft);
    color: #fff; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.6rem;
    font-weight: 600; position: relative; overflow: hidden;
    transition: transform .25s;
}
.gallery-card::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(15,23,42,0.12);
}
.gallery-card:hover { transform: translateY(-5px); }
.gallery-icon { font-size: 2.2rem; opacity: 0.95; z-index: 1; }
.gallery-card span { z-index: 1; }

/* ---------------- Notice article ---------------- */
.notice-article { background: #fff; }
.notice-body { color: #475569; line-height: 1.8; font-size: 0.96rem; }

/* ---------------- About page ---------------- */
.about-list li { display: flex; gap: 0.7rem; margin-bottom: 0.7rem; font-size: 0.92rem; color: #334155; }
.about-list li i { color: var(--primary); margin-top: 4px; }

/* ---------------- Filter panel ---------------- */
.filter-panel { background: #fff; border: 1px solid var(--border); }
.empty-state i { display: block; }

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page {
    min-height: 100vh;
    background: var(--bg-alt);
    display: flex; align-items: center; justify-content: center;
}
.error-wrap { max-width: 560px; padding: 1rem; }
.error-code {
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.error-title { font-weight: 700; }
.error-sub { color: var(--text-muted); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body { background: #f1f5f9; font-family: 'Poppins', sans-serif; }
.admin-wrapper { min-height: 100vh; }

.admin-sidebar {
    width: 258px; flex: 0 0 258px;
    background: linear-gradient(180deg, #0f2557 0%, #14275c 100%);
    color: #cbd5e1;
    padding: 1.1rem 0.9rem;
    position: sticky; top: 0; height: 100vh;
    overflow-y: auto;
}
.admin-brand { padding: 0.2rem 0.7rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 1rem; }
.admin-brand-name { font-weight: 600; font-size: 0.95rem; line-height: 1.1; }
.admin-menu li { margin-bottom: 0.25rem; }
.admin-menu a {
    display: flex; align-items: center; gap: 0.7rem;
    color: #cbd5e1; padding: 0.62rem 0.85rem;
    border-radius: 10px; font-size: 0.9rem;
    transition: background .2s, color .2s;
}
.admin-menu a i { width: 20px; text-align: center; }
.admin-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-menu a.active { background: var(--gradient-soft); color: #fff; font-weight: 500; }

.admin-main { min-width: 0; }
.admin-topbar {
    background: #fff; padding: 0.8rem 1.4rem;
    box-shadow: 0 1px 8px rgba(15,23,42,0.05);
    position: sticky; top: 0; z-index: 20;
}
.admin-web-link { color: var(--text-muted); font-size: 0.88rem; text-decoration: none; }
.admin-web-link:hover { color: var(--primary); }

.admin-panel { background: #fff; box-shadow: var(--shadow-sm); }
.admin-panel-title { font-weight: 700; }

.stat-card { background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.2rem; }
.stat-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.15rem; margin-bottom: 0.5rem;
}
.stat-blue  { background: var(--gradient-soft); }
.stat-green { background: linear-gradient(135deg,#059669,#34d399); }
.stat-orange { background: linear-gradient(135deg,#ea580c,#fb923c); }
.stat-red   { background: linear-gradient(135deg,#dc2626,#f87171); }
.stat-pink  { background: linear-gradient(135deg,#db2777,#f472b6); }
.stat-purple{ background: linear-gradient(135deg,#7c3aed,#a78bfa); }
.stat-teal  { background: linear-gradient(135deg,#0d9488,#2dd4bf); }

.admin-overlay { display: none; }

/* Admin login */
.admin-login-body {
    min-height: 100vh;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.admin-login-wrap { width: 100%; max-width: 430px; }
.admin-login-card {
    background: #fff; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-lg);
}
.admin-login-head { background: var(--primary-deep); color: #fff; }
.login-logo { height: 52px; background: #fff; border-radius: 12px; padding: 4px; }
.admin-login-foot { background: var(--bg-alt); }