/* ==========================================================================
   Anvista Lab - Theme Stylesheet
   Blue & white medical theme with green accents
   ========================================================================== */

:root {
    --primary: #0b5ed7;
    --primary-dark: #084298;
    --primary-light: #e7f1ff;
    --accent-green: #16a34a;
    --accent-green-light: #e7f9ee;
    --ink: #17203a;
    --muted: #64748b;
    --surface: #ffffff;
    --surface-alt: #f5f9ff;
    --border-color: #e6edf7;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-soft: 0 10px 30px rgba(11, 94, 215, 0.08);
    --shadow-card: 0 6px 20px rgba(23, 32, 58, 0.06);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--ink);
}

a { text-decoration: none; }

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    z-index: 2000;
}
.skip-link:focus { top: 0; }

/* ---------------- Topbar ---------------- */
.topbar {
    background: var(--primary-dark);
    color: #dbeafe;
    font-size: 0.85rem;
}
.topbar-info span { margin-right: 22px; }
.topbar-info i { color: var(--accent-green); margin-right: 6px; }
.topbar-social a { color: #dbeafe; margin-left: 14px; font-size: 0.95rem; }
.topbar-social a:hover { color: #fff; }

/* ---------------- Navbar (Aero glass) ---------------- */
.navbar-main {
    position: relative;
    z-index: 1030;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(226, 238, 255, 0.55) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 12px 30px rgba(11, 94, 215, 0.12);
    padding-top: 12px;
    padding-bottom: 12px;
}
.navbar-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    pointer-events: none;
}
.navbar-main > .container { position: relative; z-index: 1; }
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--primary-dark) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-icon { color: var(--accent-green); }
.brand-logo { width: 52px; height: 52px; object-fit: contain; vertical-align: middle; border-radius: 10px; }
.footer-brand .brand-logo { background: #fff; padding: 3px; }
.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--ink);
    padding: 0.5rem 0.9rem !important;
    border-radius: 999px;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--primary-dark);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(219, 234, 254, 0.75));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 3px 8px rgba(11, 94, 215, 0.16);
}
.mega-menu {
    min-width: 300px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 20px 45px rgba(11, 94, 215, 0.18), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    padding: 10px;
}
.mega-menu .dropdown-item { border-radius: var(--radius-sm); padding: 8px 12px; }
.mega-menu .dropdown-item:hover { background: var(--primary-light); color: var(--primary-dark); }
.nav-actions .btn-icon {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    color: var(--primary);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 8px rgba(11, 94, 215, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.nav-actions .btn-outline-primary {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    border-color: rgba(11, 94, 215, 0.35);
}
.nav-actions .btn-outline-primary:hover { background: var(--primary); color: #fff; }
.nav-actions .btn-book-now {
    position: relative;
    background: linear-gradient(180deg, #2f7ceb 0%, var(--primary) 55%, var(--primary-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 16px rgba(11, 94, 215, 0.4);
    overflow: hidden;
}
.nav-actions .btn-book-now::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    pointer-events: none;
}
.nav-actions .btn-book-now:hover {
    background: linear-gradient(180deg, #3b86f0 0%, var(--primary) 45%, var(--primary-dark) 100%);
}
.btn-book-now { border-radius: 999px; padding: 0.55rem 1.3rem; font-weight: 600; }
.avatar-xs { width: 28px; height: 28px; object-fit: cover; }

/* ---------------- Buttons ---------------- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn-accent { background: var(--accent-green); border-color: var(--accent-green); color: #fff; }
.btn-accent:hover { background: #128a3e; border-color: #128a3e; color: #fff; }
.btn { border-radius: 999px; font-weight: 600; }
.btn-lg { padding: 0.8rem 1.8rem; }

/* ---------------- Badge pill (standalone, usable anywhere) ---------------- */
.badge-pill {
    background: var(--accent-green-light);
    color: var(--accent-green);
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------------- Hero (image background + gradient overlay) ---------------- */
.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-dark);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(8, 66, 152, 0.95) 0%, rgba(11, 94, 215, 0.86) 55%, rgba(8, 66, 152, 0.78) 100%);
    z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero .badge-pill {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(4px);
}
.hero .btn-outline-primary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}
.hero .btn-outline-primary:hover {
    background: #fff;
    border-color: #fff;
    color: var(--primary-dark);
}
.hero h1 { font-size: 3rem; line-height: 1.15; color: #fff; }
.hero p.lead { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; }
.hero .hero-highlight {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 8px;
}
.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-stat-card {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 16px 20px;
}
.hero-search {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 10px;
    margin-top: 30px;
}
.hero-search .form-control, .hero-search .form-select {
    border: none; padding: 12px 16px;
}
.hero-search .form-control:focus, .hero-search .form-select:focus { box-shadow: none; }

/* ---------------- Page hero (interior page banners: image bg + overlay) ---------------- */
.page-hero {
    position: relative;
    padding: 90px 0 60px;
    overflow: hidden;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-dark);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(8, 66, 152, 0.93), rgba(11, 94, 215, 0.83));
    z-index: 0;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1, .page-hero .section-title { color: #fff; }
.page-hero p, .page-hero .section-subtitle { color: rgba(255, 255, 255, 0.85); }
.page-hero .section-eyebrow { color: #86efac; }
.page-hero .breadcrumb { background: transparent; padding: 0; margin-bottom: 14px; }
.page-hero .breadcrumb-item a { color: rgba(255, 255, 255, 0.75); }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.5); }
.page-hero .badge-status { background: rgba(255, 255, 255, 0.18) !important; color: #fff !important; }
.page-hero .text-muted { color: rgba(255, 255, 255, 0.8) !important; }
.page-hero .icon-box { background: rgba(255, 255, 255, 0.9); }

/* ---------------- Section spacing ---------------- */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--surface-alt); }
.section-title-wrap { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-green);
}
.section-title { font-size: 2.2rem; margin-top: 10px; }
.section-subtitle { color: var(--muted); margin-top: 12px; }

/* ---------------- Cards ---------------- */
.card { border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.icon-box {
    width: 60px; height: 60px; border-radius: var(--radius-sm);
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}
.feature-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 40px 28px 32px;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px rgba(11, 94, 215, 0.14);
    border-color: transparent;
}
.feature-card .feature-number {
    position: absolute;
    top: -6px;
    right: 14px;
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--surface-alt);
    z-index: 0;
    line-height: 1;
    user-select: none;
}
.feature-card .icon-box {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    font-size: 1.8rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 24px rgba(11, 94, 215, 0.14);
    transition: transform .3s ease, background .3s ease, color .3s ease;
}
.feature-card:nth-child(2n) .icon-box { background: linear-gradient(135deg, var(--accent-green-light), #fff); color: var(--accent-green); }
.feature-card:hover .icon-box {
    transform: rotate(-6deg) scale(1.08);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.feature-card:nth-child(2n):hover .icon-box { background: linear-gradient(135deg, var(--accent-green), #128a3e); color: #fff; }
.feature-card h5, .feature-card p { position: relative; z-index: 1; }

.service-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px rgba(11, 94, 215, 0.16);
    border-color: transparent;
}
.service-card-media {
    position: relative;
    height: 168px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-green-light));
}
.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.service-card:hover .service-card-media img { transform: scale(1.08); }
.service-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 66, 152, 0) 45%, rgba(8, 66, 152, 0.6) 100%);
}
.service-card .service-icon-wrap {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    box-shadow: 0 8px 18px rgba(11, 94, 215, 0.28);
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.service-card:not(:has(.service-card-media)) .service-icon-wrap {
    position: static;
    margin: 18px 0 0 18px;
    box-shadow: 0 8px 18px rgba(11, 94, 215, 0.18);
}
.service-card:hover .service-icon-wrap {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}
.service-card .card-body { display: flex; flex-direction: column; flex-grow: 1; padding: 22px; }
.service-card h5 { margin-bottom: 8px; }
.service-card .card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-card .card-actions {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    flex-wrap: wrap;
}
.service-card .card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.service-card .card-link i { transition: transform .25s ease; }
.service-card .card-link:hover i { transform: translateX(3px); }
.service-card .card-actions .btn { border-radius: 999px; padding: 0.4rem 1.1rem; }

@media (max-width: 420px) {
    .service-card .card-actions { justify-content: stretch; }
    .service-card .card-actions .btn { flex: 1 1 auto; text-align: center; }
    .service-card .card-link { flex: 1 1 100%; justify-content: center; padding-bottom: 4px; }
}

/* ---------------- Test list (service-details.php) ---------------- */
.test-list { display: flex; flex-direction: column; }
.test-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 18px;
    padding: 24px 6px;
    border-bottom: 1px solid var(--border-color);
}
.test-item:first-child { padding-top: 6px; }
.test-item:last-child { border-bottom: none; padding-bottom: 6px; }
.test-item-main { flex: 1 1 320px; min-width: 240px; }
.test-item-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 130px;
}
.test-item-price { font-weight: 700; color: var(--primary); font-size: 1.1rem; white-space: nowrap; }
.test-item-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-alt);
    color: var(--muted);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.meta-chip-accent { background: var(--accent-green-light); color: var(--accent-green); }

@media (max-width: 576px) {
    .test-item { flex-direction: column; align-items: stretch; }
    .test-item-action {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        margin-top: 4px;
    }
    .test-item-action .btn { flex: 0 0 auto; }
}

.package-card { border-radius: var(--radius-lg); overflow: hidden; height: 100%; box-shadow: var(--shadow-card); position: relative; }
.package-card .badge-popular {
    position: absolute; top: 16px; right: 16px; z-index: 2;
    background: var(--accent-green); color: #fff; border-radius: 999px; padding: 5px 14px; font-size: 0.75rem; font-weight: 700;
}
.package-card img { height: 200px; object-fit: cover; width: 100%; }
.package-price .old-price { text-decoration: line-through; color: var(--muted); font-size: 0.95rem; margin-right: 8px; }
.package-price .new-price { color: var(--accent-green); font-weight: 700; font-size: 1.4rem; }

/* ---------------- How it works ---------------- */
.how-it-works-row { position: relative; }
.how-it-works-row::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 14%;
    right: 14%;
    height: 0;
    border-top: 2px dashed var(--border-color);
    z-index: 0;
}
.step-card {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    transition: transform .3s ease, box-shadow .3s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.step-number {
    position: relative;
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
    box-shadow: 0 12px 26px rgba(11, 94, 215, 0.32);
    transition: transform .3s ease;
}
.step-card:hover .step-number { transform: scale(1.08); }
.step-icon-badge {
    position: absolute;
    bottom: -4px;
    right: calc(50% - 46px);
    width: 30px; height: 30px; border-radius: 50%;
    background: #fff; color: var(--accent-green);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(23, 32, 58, 0.18);
}
@media (max-width: 991.98px) {
    .how-it-works-row::before { display: none; }
}

/* ---------------- Doctors ---------------- */
.doctor-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); text-align: center; background: #fff; }
.doctor-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.doctor-card .doctor-body { padding: 20px; }
.doctor-card .doctor-specialty { color: var(--accent-green); font-weight: 600; font-size: 0.9rem; }

/* ---------------- Stats ---------------- */
.stats-section { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; }
.stat-label { color: #dbeafe; font-size: 0.95rem; }

/* ---------------- Testimonials ---------------- */
.testimonial-card { border-radius: var(--radius-lg); padding: 30px; background: #fff; box-shadow: var(--shadow-card); height: 100%; }
.testimonial-card .stars { color: #f5b301; margin-bottom: 12px; }
.testimonial-card .testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-card .testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ---------------- FAQ accordion ---------------- */
.accordion-item {
    border: none;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
    color: var(--ink);
    padding: 18px 22px;
}
.accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--border-color); }
.accordion-body { padding: 4px 22px 22px; }

/* ---------------- Partners ---------------- */
.partner-logo { filter: grayscale(100%); opacity: 0.7; transition: all .25s ease; max-height: 60px; }
.partner-logo:hover { filter: none; opacity: 1; }

/* ---------------- Blog ---------------- */
.blog-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); height: 100%; background: #fff; }
.blog-card img { height: 210px; object-fit: cover; width: 100%; }
.blog-card .blog-body { padding: 22px; }
.blog-meta { font-size: 0.82rem; color: var(--muted); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding-top: 70px; }
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.footer-heading { color: #fff; font-weight: 600; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 10px; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: var(--accent-green); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--accent-green); margin-top: 3px; }
.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: #fff; margin-right: 8px;
}
.social-icons a:hover { background: var(--accent-green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 50px; padding: 18px 0; font-size: 0.85rem; }

/* ---------------- Floating elements ---------------- */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 1050;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.back-to-top {
    position: fixed; bottom: 24px; right: 92px; z-index: 1050;
    width: 46px; height: 46px; border-radius: 50%; border: none;
    background: var(--primary); color: #fff; display: none; align-items: center; justify-content: center;
    box-shadow: var(--shadow-card);
}
.back-to-top.show { display: flex; }

/* ---------------- Forms ---------------- */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(11, 94, 215, 0.15);
}
.form-label { font-weight: 600; font-size: 0.9rem; }
.auth-card { max-width: 460px; margin: 60px auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 40px; }
.auth-card .icon-box { margin: 0 auto 18px; }

/* ---------------- Portal / Admin shared ---------------- */
.portal-sidebar { background: #fff; border-right: 1px solid var(--border-color); min-height: 100vh; }
.portal-sidebar .nav-link { color: var(--ink); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 500; }
.portal-sidebar .nav-link.active, .portal-sidebar .nav-link:hover { background: var(--primary-light); color: var(--primary-dark); }
.portal-topbar { background: #fff; border-bottom: 1px solid var(--border-color); padding: 14px 0; }
.stat-tile { border-radius: var(--radius-md); padding: 22px; background: #fff; box-shadow: var(--shadow-card); }
.stat-tile .stat-tile-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.table-card { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); background: #fff; }
.badge-status { border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: 0.75rem; }

/* ---------------- Utilities ---------------- */
.text-primary-custom { color: var(--primary); }
.text-accent { color: var(--accent-green); }
.bg-surface-alt { background: var(--surface-alt); }
.rounded-xl { border-radius: var(--radius-lg); }
.shadow-soft { box-shadow: var(--shadow-soft); }

@media (max-width: 991.98px) {
    .hero h1 { font-size: 2.2rem; }
    .section { padding: 60px 0; }
    .hero-stat-card { position: static; margin-top: 20px; }
}
