/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --primary-color: #c8102e;       /* Medicare Red */
    --primary-hover: #a00d24;
    --secondary-color: #eaaa00;     /* Medicare Gold */
    --secondary-hover: #d49800;
    --accent-color: #b91c1c;        /* Deep Red Accent */
    
    --bg-main: #F8FAFD;             /* Very light slate blue background */
    --bg-card: #FFFFFF;
    --bg-header: rgba(255, 255, 255, 0.85);
    
    --text-primary: #1E293B;        /* Slate 800 */
    --text-muted: #64748B;          /* Slate 500 */
    --text-light: #94A3B8;          /* Slate 400 */
    
    --border-color: #E2E8F0;        /* Slate 200 */
    --border-focus: #fca5a5;        /* Red 300 */
    
    --shadow-sm: 0 2px 4px rgba(200, 16, 46, 0.04);
    --shadow-md: 0 10px 25px rgba(200, 16, 46, 0.06);
    --shadow-lg: 0 20px 40px rgba(200, 16, 46, 0.1);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */
html.dark {
    /* Backgrounds */
    --bg-main: #090d16;             /* Ultra deep dark canvas */
    --bg-card: #111827;             /* Slate 900 for containers/cards */
    --bg-header: rgba(17, 24, 39, 0.85); /* Glassmorphism header */
    
    /* Text colors hierarchy */
    --text-primary: #f8fafc;        /* Slate 50 (bright and clear) */
    --text-muted: #94a3b8;          /* Slate 400 (description text) */
    --text-light: #64748b;          /* Slate 500 (small captions) */
    
    /* Adaptive Brand Colors for Dark Canvas */
    --primary-color: #ef4444;       /* High-contrast Red (Red 500) */
    --primary-hover: #f87171;
    --secondary-color: #fbbf24;     /* High-contrast Gold (Amber 400) */
    --secondary-hover: #fef08a;
    --accent-color: #f87171;        /* Soft Red Accent */
    
    /* Borders & Focus colors */
    --border-color: #1f2937;        /* Slate 800 (subtle separators) */
    --border-focus: #f87171;        /* Focus border */
    
    /* Premium dark shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
}

body, header, aside, .app-header, .top-bar, .app-footer, .card, .vaccine-card, .btn-primary-header, .hotline-btn, .admin-header, .admin-content, .admin-sidebar, input, select, textarea, .sidebar-brand {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}


/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button, select, input {
    font-family: inherit;
    outline: none;
}

/* Make input and textarea placeholders faded enough (slate gray) */
input::placeholder,
textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}


/* ==========================================================================
   HEADER & FOOTER (LAYOUT)
   ========================================================================== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Roboto', sans-serif;
    color: var(--primary-color);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #FFF;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(10, 88, 202, 0.2);
}

.logo-text span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.1rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.hotline-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(200, 16, 46, 0.05);
    color: var(--primary-color);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(200, 16, 46, 0.15);
    transition: all 0.2s ease;
}

.hotline-btn:hover {
    background-color: var(--primary-color);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.15);
}

.app-main {
    min-height: calc(100vh - 80px - 250px);
    padding: 2rem 0 6rem 0;
}
.app-main.home-main {
    padding-top: 0;
}

.app-footer {
    background-color: #0F172A; /* Deep slate */
    color: #F8FAFC;
    padding: 4rem 2rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.footer-info h3 {
    color: #FFF;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--text-light);
    max-width: 450px;
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.footer-links h4 {
    color: #FFF;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-tagline {
    grid-column: span 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-banner {
    background: linear-gradient(135deg, rgba(10, 88, 202, 0.04) 0%, rgba(0, 168, 150, 0.04) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 3.5rem 3rem;
    margin: 0 auto 3rem auto;
    max-width: 1280px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-banner p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.search-bar-container {
    max-width: 600px;
    margin: 0 auto;
    background: #FFF;
    padding: 6px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    color: var(--text-light);
    margin-left: 1rem;
}

.search-form input {
    border: none;
    padding: 0.8rem 1rem;
    flex-grow: 1;
    font-size: 1rem;
    color: var(--text-primary);
}

.search-btn {
    background-color: var(--primary-color);
    color: #FFF;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 10px rgba(10, 88, 202, 0.2);
}

/* ==========================================================================
   VACCINE SELECTION PAGE (MAIN LAYOUT)
   ========================================================================== */
.vaccine-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.product-catalog-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.catalog-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.93) 0%, rgba(145, 10, 33, 0.90) 100%), 
                url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1920&q=80') no-repeat center center / cover;
    color: #fff;
    min-height: 310px;
    padding: 4.5rem 0;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md, 0 12px 30px rgba(200, 16, 46, 0.20));
}

.catalog-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .catalog-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .catalog-hero-visual,
    .news-hero-cloud-visual {
        display: none !important;
    }
}

.catalog-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.catalog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.catalog-hero-visual {
    position: relative;
    z-index: 1;
    height: 250px;
}

.hero-vaccine-orbit {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 24px 45px rgba(60, 0, 20, 0.18);
    padding: 16px;
}

.hero-vaccine-orbit img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.orbit-1 {
    top: 10px;
    right: 42px;
    transform: rotate(6deg);
}

.orbit-2 {
    left: 8px;
    bottom: 18px;
    transform: rotate(-8deg);
}

.orbit-3 {
    right: 0;
    bottom: 0;
    width: 118px;
    height: 118px;
    border-radius: 26px;
    transform: rotate(12deg);
}

.catalog-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
    font-weight: 600;
}

.catalog-breadcrumb svg {
    width: 15px;
    height: 15px;
}

.catalog-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 0.9rem;
}

.catalog-hero p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
}

.catalog-search-box {
    margin: 0;
    max-width: 640px;
}

.catalog-category-section,
.catalog-filter-panel,
.catalog-products-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.catalog-promo-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.catalog-promo-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 0.75rem;
    align-items: center;
    min-height: 110px;
    border: 1px solid #dceafe;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0f8ff, #ffffff 62%);
    padding: 0.9rem;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-fast);
}

.catalog-promo-card:hover {
    border-color: rgba(200, 16, 46, 0.32);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.catalog-promo-card span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.45rem;
    border-radius: 999px;
    background: #fff1f2;
    color: var(--primary-color);
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 900;
}

.catalog-promo-card strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    font-size: 0.98rem;
}

.catalog-promo-card img {
    width: 86px;
    height: 76px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    padding: 8px;
}

.catalog-category-section {
    padding: 1.4rem;
    margin-bottom: 1.5rem;
}

.catalog-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.catalog-section-heading span {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 800;
}

.catalog-section-heading h2 {
    font-size: 1.35rem;
}

.catalog-link-btn {
    border: none;
    background: #fff1f2;
    color: var(--primary-color);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

.catalog-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.catalog-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    min-height: 148px;
    padding: 1rem;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: #f8fafc;
    color: var(--text-primary);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.catalog-category-card:hover {
    border-color: rgba(200, 16, 46, 0.35);
    background: #fff7f7;
    transform: translateY(-2px);
}

.catalog-category-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #fff;
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.catalog-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-category-card span {
    font-weight: 800;
    line-height: 1.25;
}

.catalog-category-card small {
    color: var(--text-muted);
    font-weight: 600;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    align-items: start;
    background: #eff7ff;
    border-radius: 24px;
    padding: 1rem;
}

.catalog-filter-panel {
    position: sticky;
    top: 100px;
    padding: 0;
    overflow: hidden;
}

.catalog-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.catalog-filter-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #031b33;
}

.catalog-filter-header h3 svg,
.catalog-product-meta svg,
.origin-badge svg,
.btn-select-vaccine svg {
    width: 15px;
    height: 15px;
}

.catalog-filter-header button {
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-weight: 800;
    cursor: pointer;
}

.lc-filter-group {
    border-bottom: 1px solid #dbe5ef;
}

.lc-filter-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: none;
    background: #fff;
    color: #031b33;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.lc-filter-toggle svg {
    width: 18px;
    height: 18px;
}

.lc-filter-body {
    display: none;
    padding: 0 1rem 1rem;
}

.lc-filter-group.open .lc-filter-body {
    display: grid;
    gap: 0.75rem;
}

.lc-check-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: none;
    background: transparent;
    color: #031b33;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 650;
    cursor: pointer;
}

.lc-check-box {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #8da1b5;
    border-radius: 4px;
    color: transparent;
    background: #fff;
}

.lc-check-box svg {
    width: 14px;
    height: 14px;
}

.lc-check-row.active .lc-check-box {
    border-color: var(--primary-color, #c8102e);
    background: var(--primary-color, #c8102e);
    color: #fff;
}

.lc-filter-search {
    position: relative;
    display: block;
}

.lc-filter-search input {
    width: 100%;
    min-height: 38px;
    border: 1px solid #cfdbe7;
    border-radius: 8px;
    padding: 0.55rem 2.25rem 0.55rem 0.8rem;
    color: #031b33;
}

.lc-filter-search svg {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    width: 17px;
    height: 17px;
    color: #466078;
    transform: translateY(-50%);
}

.catalog-filter-group {
    margin-bottom: 1.4rem;
}

.compact-filter-grid {
    display: grid;
    gap: 0.85rem;
}

.compact-filter-field {
    display: grid;
    gap: 0.38rem;
}

.compact-filter-field span {
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.compact-filter-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    color: var(--text-primary);
    padding: 0.62rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.compact-filter-field select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}

.catalog-filter-group h4 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.filter-options-inline {
    flex-direction: row;
    flex-wrap: wrap;
}

.catalog-products-section {
    padding: 1.25rem;
    min-width: 0;
}

.catalog-advice-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 48%, #fff1f2 100%);
    border: 1px solid #fed7aa;
    box-shadow: var(--shadow-sm);
}

.catalog-advice-banner span {
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog-advice-banner h2 {
    margin-top: 0.25rem;
    font-size: 1.65rem;
}

.catalog-advice-banner p {
    color: var(--text-muted);
    max-width: 620px;
}

.catalog-advice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    padding: 0.85rem 1.25rem;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(200, 16, 46, 0.18);
}

.catalog-advice-btn svg {
    width: 18px;
    height: 18px;
}

.catalog-tabs {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: #f1f5f9;
    margin-bottom: 1rem;
}

.catalog-tab {
    border: none;
    border-radius: 999px;
    background: transparent;
    padding: 0.72rem 1.1rem;
    color: var(--text-muted);
    font-weight: 900;
    cursor: pointer;
}

.catalog-tab.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 18px rgba(200, 16, 46, 0.18);
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.catalog-toolbar h2 {
    color: #031b33;
    font-size: 1.12rem;
    line-height: 1.25;
    font-weight: 900;
}

.catalog-toolbar h2 span,
.catalog-toolbar p {
    color: var(--text-muted);
}

.catalog-toolbar .catalog-count {
    color: #64748b;
}

.catalog-sort-box {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.catalog-sort-box > span {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.catalog-sort-pills {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-pill {
    border: 1px solid #d7e1ec;
    background: #fff;
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sort-pill:hover {
    border-color: var(--primary-color, #c8102e);
    color: var(--primary-color, #c8102e);
}

.sort-pill.active {
    border-color: var(--primary-color, #c8102e);
    color: var(--primary-color, #c8102e);
    box-shadow: inset 0 0 0 1px var(--primary-color, #c8102e);
}

#btnFeaturedFilterPill {
    background: #ffffff !important;
    border: 1px solid #d7e1ec !important;
    color: var(--text-primary) !important;
}

#btnFeaturedFilterPill.active {
    background: #fff1f2 !important;
    border-color: var(--primary-color, #c8102e) !important;
    color: var(--primary-color, #c8102e) !important;
    box-shadow: none !important;
}

#btnFeaturedFilterPill:hover {
    border-color: var(--primary-color, #c8102e) !important;
    color: var(--primary-color, #c8102e) !important;
}

.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 1rem;
}

.catalog-result-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

/* Standardized Dynamic Red-Pill Centered Pagination System */
.catalog-pagination,
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.news-pagination-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 auto;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 50px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-btn.active {
    background-color: var(--primary-color, #c8102e);
    color: #ffffff;
    border-color: var(--primary-color, #c8102e);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
    border-radius: 50px;
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background-color: #fef2f2;
    border-color: var(--primary-color, #c8102e);
    color: var(--primary-color, #c8102e);
    transform: translateY(-1px);
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 38px;
    font-weight: 800;
    color: #64748b;
    font-size: 14px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.catalog-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 20px;
    overflow: hidden;
    min-height: 100%;
    transition: var(--transition-fast);
}

.catalog-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 16, 46, 0.32);
    box-shadow: var(--shadow-lg);
}

.catalog-product-card.selected {
    border-color: var(--primary-color, #c8102e);
    box-shadow: 0 12px 28px rgba(200, 16, 46, 0.08);
}

.catalog-product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: none;
    background: #f8fafc;
    cursor: pointer;
    padding: 1rem;
}

.catalog-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.origin-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    font-size: 0.76rem;
    font-weight: 800;
}

.catalog-product-body {
    padding: 1rem 1rem 0.75rem;
    flex-grow: 1;
}

.catalog-product-title,
.catalog-product-disease {
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.catalog-product-title {
    display: -webkit-box;
    min-height: 44px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 0.45rem;
}

.catalog-product-title:hover {
    color: var(--primary-color);
}

.catalog-product-disease {
    display: -webkit-box;
    min-height: 38px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.catalog-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.catalog-product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    color: var(--text-muted);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.catalog-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid #eef2f7;
}

.catalog-price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
}

.catalog-price-block strong {
    color: var(--primary-color);
    font-size: 1.08rem;
    font-weight: 950;
}

.catalog-price-block span,
.catalog-price-block del {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.btn-select-vaccine {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    padding: 0.62rem 0.82rem;
    font-size: 0.84rem;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.btn-select-vaccine.btn-selected {
    background-color: #fff1f2;
    border: 1px solid var(--primary-color, #c8102e);
    color: var(--primary-color, #c8102e);
}

.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Filters Sidebar */
.sidebar-filters {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
}

.filter-card h3 {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-chip {
    padding: 0.6rem 1rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-muted);
}

.filter-chip:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-chip.active {
    background-color: var(--primary-color);
    color: #FFF;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(10, 88, 202, 0.15);
}

.disease-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.disease-list a {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: block;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
}

.disease-list a:hover, .disease-list a.active {
    color: var(--primary-color);
    background-color: rgba(10, 88, 202, 0.05);
    font-weight: 600;
}

/* Vaccine Grid section */
.vaccine-grid-section {
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

.empty-vaccines {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    padding: 4rem 2rem;
    box-shadow: var(--shadow-sm);
}

.empty-icon {
    width: 60px;
    height: 60px;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: block;
}

.empty-vaccines p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Vaccine Cards */
.vaccines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.vaccine-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.vaccine-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.vaccine-card.selected {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 10px 20px rgba(0, 168, 150, 0.05);
}

.vaccine-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Hiệu ứng zoom hình ảnh khi hover card */
.vaccine-card-img img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.vaccine-card:hover .vaccine-card-img img {
    transform: scale(1.08) !important;
}


.vaccine-card-body {
    flex-grow: 1;
    margin-top: 1.2rem;
}

.vaccine-name {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    padding-right: 4rem; /* Để trống cho badge */
}

.vaccine-prevent, .vaccine-age {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.vaccine-prevent strong, .vaccine-age strong {
    color: var(--text-primary);
}

.vaccine-prevent {
    color: var(--secondary-color);
}

.vaccine-age {
    color: var(--text-muted);
}

.vaccine-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

.vaccine-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
}

.vaccine-price {
    display: flex;
    flex-direction: column;
}

.vaccine-price span {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.vaccine-price strong {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
}

.btn-select-vaccine {
    border: 1px solid #fca5a5;
    background-color: #fdf2f2;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.82rem;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-select-vaccine:hover {
    background-color: #fee2e2;
    border-color: var(--primary-color);
    color: var(--primary-hover, #a00d24);
}

.btn-selected {
    background-color: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: var(--primary-color) !important;
}

/* ==========================================================================
   FLOATING CART (CART SYSTEM)
   ========================================================================== */
.floating-cart {
    position: fixed;
    bottom: 28px;
    right: 90px;
    z-index: 1000;
    width: 380px;
    background-color: var(--bg-card);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    border: 1px solid #d9e2ee;
    overflow: hidden;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.floating-cart.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.cart-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem 1.2rem;
    background: linear-gradient(135deg, #c8102e 0%, #a00d24 58%, #eaaa00 145%);
    color: #FFF;
    cursor: pointer;
}

.cart-icon-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #eaaa00;
    color: #6d0515;
    color: #FFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
}

.cart-toggle-text {
    flex-grow: 1;
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
}

.cart-toggle-text span {
    font-size: 0.75rem;
    opacity: 0.85;
}

.cart-toggle-text strong {
    font-size: 1.1rem;
    font-family: 'Roboto', sans-serif;
}

.chevron-icon {
    transition: transform var(--transition-normal);
}

.floating-cart.expanded .chevron-icon {
    transform: rotate(180deg);
}

/* Cart Drawer */
.cart-drawer {
    height: 0;
    transition: height var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.floating-cart.expanded .cart-drawer {
    height: 380px;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.drawer-header h4 {
    font-size: 1rem;
}

.clear-cart-text-btn {
    border: none;
    background: none;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
}

.drawer-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.cart-item-info h5 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e293b;
}

.cart-item-info span {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 800;
}

.remove-item-btn {
    border: none;
    background: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.4rem;
}

.remove-item-btn:hover {
    color: var(--accent-color);
}

.drawer-footer {
    padding: 1.2rem;
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.drawer-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.drawer-total strong {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-family: 'Roboto', sans-serif;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #eaaa00 0%, #f4b400 100%);
    color: #ffffff;
    width: 100%;
    padding: 0.9rem;
    border-radius: 8px;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 8px 18px rgba(234, 170, 0, 0.26);
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #d49800 0%, #eaaa00 100%);
}

/* ==========================================================================
   REGISTRATION FORM & STEPPER
   ========================================================================== */
.registration-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Stepper progress */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 3rem auto;
    max-width: 700px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 0.5rem;
    width: 140px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #FFF;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.step.active .step-num {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFF;
    box-shadow: 0 0 0 4px rgba(10, 88, 202, 0.15);
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
}

.step.completed .step-num {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #FFF;
}

.step.completed .step-label {
    color: var(--secondary-color);
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--border-color);
    margin-bottom: 1.5rem; /* Canh giữa với hình tròn */
    position: relative;
    z-index: 1;
}

.step-line.active {
    background-color: var(--secondary-color);
}

/* Form Layout */
.registration-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.form-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.form-step-content {
    display: none;
}

.form-step-content.active {
    display: block;
    animation: fadeIn var(--transition-fast) ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.required {
    color: var(--accent-color);
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.1);
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.radio-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.guardian-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border-color);
}

.guardian-section h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/* Payment selection */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.payment-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(10, 88, 202, 0.02);
}

.payment-card input[type="radio"] {
    margin-top: 0.3rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.payment-card input[type="radio"]:checked + .payment-card-content {
    color: var(--primary-color);
}

.payment-card input[type="radio"]:checked {
    /* Apply borders dynamically in client-side JS or CSS selector sibling */
}

.payment-card-content {
    display: flex;
    gap: 1rem;
}

.payment-icon {
    color: var(--primary-color);
    width: 24px;
}

.payment-text {
    display: flex;
    flex-direction: column;
}

.payment-text strong {
    font-size: 0.95rem;
}

.payment-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.payment-info-box {
    display: flex;
    gap: 0.8rem;
    background-color: rgba(10, 88, 202, 0.05);
    border: 1px solid rgba(10, 88, 202, 0.1);
    padding: 1rem;
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.btn-primary, .btn-secondary, .btn-submit-registration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFF;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.btn-submit-registration {
    background-color: var(--secondary-color);
    color: #FFF;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 168, 150, 0.2);
}

.btn-submit-registration:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 168, 150, 0.3);
}

/* Sidebar Order Summary */
.summary-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.summary-card h3 {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.item-name {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.item-name strong {
    font-weight: 600;
}

.item-name span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.summary-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1.5rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.summary-total span {
    font-weight: 600;
}

.summary-total strong {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-family: 'Roboto', sans-serif;
}

.summary-note {
    display: flex;
    gap: 0.5rem;
    background-color: rgba(0, 168, 150, 0.05);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--secondary-color);
}

.summary-note p {
    margin: 0;
}

/* Alert styles */
.alert {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: rgba(255, 90, 95, 0.08);
    border: 1px solid rgba(255, 90, 95, 0.15);
    color: var(--accent-color);
}

.alert-danger ul {
    margin-left: 1rem;
}

/* ==========================================================================
   SUCCESS & TICKET PAGE
   ========================================================================== */
.success-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.success-banner {
    text-align: center;
    margin-bottom: 3rem;
}

.success-icon-animation {
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.success-icon-animation i {
    width: 64px;
    height: 64px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.success-banner p {
    color: var(--text-muted);
}

.registration-code-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #FFF;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(10, 88, 202, 0.2);
}

/* Grid Layout Success */
.success-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
}

/* Premium Ticket */
.ticket-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.ticket-card::before, .ticket-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-main);
    border-radius: 50%;
    top: 50px; /* Định vị điểm cắt vé */
    z-index: 3;
    border: 1px solid var(--border-color);
}

.ticket-card::before { left: -10px; }
.ticket-card::after { right: -10px; }

.ticket-header {
    background: linear-gradient(to right, #0A58CA, #00A896);
    color: #FFF;
    padding: 1.8rem 2rem;
    text-align: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.ticket-header h3 {
    color: #FFF;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
}

.ticket-header span {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
}

.ticket-body {
    padding: 2rem;
}

.ticket-section {
    margin-bottom: 1.8rem;
}

.ticket-section h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.4rem;
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
}

.ticket-table th, .ticket-table td {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    text-align: left;
}

.ticket-table th {
    width: 160px;
    color: var(--text-muted);
    font-weight: 500;
}

.ticket-table td {
    color: var(--text-primary);
    font-weight: 600;
}

.highlight-date {
    color: var(--secondary-color) !important;
    font-size: 1.05rem;
}

.ticket-vaccines-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ticket-vaccine-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.ticket-vaccine-item .vaccine-info {
    display: flex;
    flex-direction: column;
}

.ticket-vaccine-item .vaccine-info strong {
    font-size: 0.9rem;
    font-weight: 600;
}

.ticket-vaccine-item .vaccine-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.ticket-vaccine-item .vaccine-price {
    font-weight: 600;
    font-size: 0.9rem;
}

.ticket-section-total {
    background-color: var(--bg-main);
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.total-row strong {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-family: 'Roboto', sans-serif;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.status-paid {
    background-color: rgba(0, 168, 150, 0.12);
    color: var(--secondary-color);
}

.status-pending {
    background-color: rgba(255, 90, 95, 0.12);
    color: var(--accent-color);
}

.ticket-footer {
    border-top: 1px dashed var(--border-color);
    padding: 1.8rem 2rem;
    text-align: center;
    background-color: #FAFBFD;
}

.barcode-mock {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.barcode-lines {
    display: flex;
    height: 40px;
    gap: 1.5px;
}

.barcode-lines span {
    display: block;
    width: 2px;
    background-color: #1E293B;
}

/* Tạo độ rộng giả lập khác nhau cho vạch mã vạch */
.barcode-lines span:nth-child(3n) { width: 4px; }
.barcode-lines span:nth-child(4n) { width: 1px; }
.barcode-lines span:nth-child(5n) { width: 3px; }

.barcode-text {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-top: 0.25rem;
}

.ticket-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* Payment box / Action Box */
.payment-action-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.payment-success-box {
    text-align: center;
}

.payment-success-icon {
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
}

.payment-success-icon i {
    width: 48px;
    height: 48px;
}

.payment-success-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.payment-success-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.qr-payment-box {
    text-align: center;
}

.qr-payment-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.qr-payment-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.qr-code-wrapper {
    background-color: #FFF;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.qr-code-wrapper img {
    width: 200px;
    height: 200px;
    display: block;
}

.payment-transfer-details {
    background-color: var(--bg-main);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding-bottom: 0.4rem;
}

.detail-row:last-child {
    border: none;
    padding: 0;
}

.detail-row span {
    color: var(--text-muted);
}

.detail-row strong {
    color: var(--text-primary);
}

.price-highlight {
    color: var(--accent-color) !important;
    font-size: 1rem;
}

.code-highlight {
    color: var(--primary-color) !important;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.counter-payment-box {
    text-align: center;
}

.later-payment-icon {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.later-payment-icon i {
    width: 48px;
    height: 48px;
}

.counter-payment-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.counter-payment-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.step-guide {
    text-align: left;
    font-size: 0.88rem;
    padding-left: 1.2rem;
    margin-bottom: 2rem;
}

.step-guide li {
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.warning-alert {
    display: flex;
    gap: 0.6rem;
    background-color: rgba(255, 90, 95, 0.05);
    border: 1px solid rgba(255, 90, 95, 0.1);
    padding: 1rem;
    border-radius: var(--radius-sm);
    color: #b82d31;
    font-size: 0.8rem;
    text-align: left;
    margin-bottom: 2rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-hero {
        grid-template-columns: 1fr;
    }

    .catalog-hero-visual {
        display: none;
    }

    .catalog-promo-strip,
    .catalog-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-filter-panel {
        position: static;
    }
    
    .sidebar-filters {
        position: static;
        margin-bottom: 1.5rem;
    }
    
    .registration-layout {
        grid-template-columns: 1fr;
    }
    
    .summary-card {
        position: static;
        order: -1; /* Hiển thị tóm tắt lên trước trên mobile */
    }
    
    .success-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-tagline {
        grid-column: 1;
    }
}

@media (max-width: 1200px) {
    .header-container {
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hotline-btn-desktop {
        display: none;
    }
    
    .btn-primary-header span {
        display: none;
    }
    
    .top-bar {
        display: none;
    }
    
    .hero-banner {
        padding: 2rem 1.5rem;
    }

    .product-catalog-page {
        padding: 0 1rem 2rem;
    }

    .catalog-hero {
        padding: 1.5rem;
        border-radius: 0;
        min-height: auto;
    }

    .catalog-section-heading,
    .catalog-toolbar,
    .catalog-advice-banner,
    .catalog-product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-sort-box {
        justify-content: flex-start;
    }

    .catalog-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .catalog-tab {
        padding: 0.75rem 0.6rem;
    }

    .catalog-category-grid,
    .catalog-product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-category-card {
        min-height: 140px;
    }

    .catalog-product-card {
        border-radius: 16px;
    }

    .catalog-product-body,
    .catalog-product-footer {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .btn-select-vaccine {
        width: 100%;
    }

    .catalog-advice-btn {
        width: 100%;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .full-width {
        grid-column: 1;
    }
    
    .stepper {
        margin-bottom: 2rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .floating-cart {
        width: auto;
        left: 1rem;
        right: 1rem;
        bottom: 88px;
        border-radius: 14px;
    }
    
    .ticket-table th {
        width: 120px;
    }
}

@media (max-width: 520px) {
    .catalog-promo-strip,
    .catalog-category-grid,
    .catalog-product-grid {
        grid-template-columns: 1fr;
    }

    .catalog-layout {
        padding: 0.75rem;
        border-radius: 18px;
    }

    .catalog-search-box .search-form {
        gap: 4px;
    }

    .catalog-search-box .search-btn {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ==========================================================================
   MEDICARE BRAND & HOME PAGE STYLES
   ========================================================================== */
.top-bar {
    background-color: #f4f8fa; /* Premium Medical Light Blue */
    color: #475569;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}
.topbar-info a {
    color: #b91c1c !important; /* Deep red text for links */
}
.topbar-info a:hover {
    color: #c8102e !important; /* Hover transitions to Medicare Red */
}
.topbar-info i, .topbar-info svg {
    color: #c8102e !important; /* Overwrite map-pin icon to Medicare Red */
}
.topbar-social a {
    color: #ffffff !important;
    background-color: #c8102e !important; /* Red badge button */
    border: 1px solid #b00d25 !important;
    transition: all 0.2s ease-in-out;
}
.topbar-social a:hover {
    background-color: #a00d24 !important;
}
.topbar-info .divider {
    color: #cbd5e1 !important;
}
.topbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-info {
    display: flex;
    gap: 16px;
    align-items: center;
}
.topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.topbar-info i, .topbar-info svg {
    width: 14px;
    height: 14px;
    color: #eaaa00;
}
.topbar-actions a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.topbar-actions a:hover {
    color: #ffffff;
}

/* Home Banner Slider (Tràn màn hình giống VNVC) */
.banner-slider {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    min-height: 460px;
}
@media (min-width: 640px) {
    .banner-slider {
        min-height: 500px;
    }
}
@media (min-width: 1024px) {
    .banner-slider {
        min-height: 520px;
    }
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 460px;
}
@media (min-width: 640px) {
    .hero-carousel-wrapper {
        height: 500px;
    }
}
@media (min-width: 1024px) {
    .hero-carousel-wrapper {
        height: 520px;
    }
}
.slider-wrapper {
    position: relative;
    width: 100%;
    min-height: 480px;
}
.slide {
    display: none;
    padding: 60px;
}
.slide.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    animation: fadeIn 0.5s ease-in-out;
}
.slide-badge {
    background-color: #c8102e;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}
.slide h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.2;
}
.slide p {
    color: #64748b;
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 30px;
}
.btn-cta {
    background-color: #c8102e;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}
.btn-cta:hover {
    background-color: #a00d24;
}

/* Recommendations Section */
.recommendations-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}
.section-title-wrapper {
    text-align: center;
    margin-bottom: 40px;
}
.section-badge {
    color: #c8102e;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}
.section-title-wrapper h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
}
.section-title-wrapper p {
    color: #64748b;
    font-size: 16px;
}
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.rec-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.rec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(200, 16, 46, 0.08);
    border-color: rgba(200, 16, 46, 0.2);
}
.rec-card-img img {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.rec-card:hover .rec-card-img img {
    transform: scale(1.06);
}
.rec-card p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}
.rec-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: #fff5f5;
    color: #c8102e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.rec-icon i {
    width: 32px;
    height: 32px;
}
.rec-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}
.rec-card p {
    color: #64748b;
    font-size: 15px;
}

/* Qdenga Promo Section */
.qdenga-promo {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px;
    box-shadow: var(--shadow-md);
}
.promo-container {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}
.promo-image {
    flex: 1 1 300px;
    background: #ffffff;
    border-radius: var(--radius-md);
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.qdenga-promo:hover .promo-image img {
    transform: scale(1.05);
}
.promo-content {
    flex: 2 2 450px;
}
.new-tag {
    background-color: #eaaa00;
    color: #1e2229;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}
.promo-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
}
.promo-desc {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 20px;
}
.promo-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
}
.promo-features p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
}
.promo-features p i {
    color: #10b981;
}
.btn-secondary {
    background-color: #ffffff;
    color: #c8102e;
    border: 2px solid #c8102e;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    background-color: #c8102e;
    color: #ffffff;
}

/* Home Grid */
.home-vaccines, .why-us {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-item {
    text-align: center;
    padding: 40px 30px;
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(200, 16, 46, 0.08);
    border-color: rgba(200, 16, 46, 0.2);
}
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(200, 16, 46, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    transition: all 0.4s ease;
}
.feature-item:hover .feature-icon {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: rotate(360deg);
}
.feature-icon i, .feature-icon svg {
    width: 30px;
    height: 30px;
}
.feature-item h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
}
.feature-item p {
    color: #475569;
    font-size: 14.5px;
    line-height: 1.6;
}

.btn-view-detail {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    transition: all 0.2s ease;
}
.btn-view-detail:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   LARAVEL DEFAULT PAGINATION CUSTOM STYLES
   ========================================================================== */
nav[role="navigation"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    width: 100%;
}
nav[role="navigation"] svg {
    width: 16px !important;
    height: 16px !important;
    display: inline-block;
    vertical-align: middle;
}
nav[role="navigation"] .flex.justify-between.flex-1 {
    display: none !important; /* Ẩn phân trang mobile thô sơ */
}
nav[role="navigation"] div:last-child {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}
@media (min-width: 640px) {
    nav[role="navigation"] div:last-child {
        flex-direction: row !important;
        justify-content: space-between;
    }
}
nav[role="navigation"] .relative.z-0 {
    display: inline-flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
nav[role="navigation"] span[aria-current="page"] .relative {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}
nav[role="navigation"] .relative.z-0 a.relative, 
nav[role="navigation"] .relative.z-0 span.relative {
    padding: 10px 16px;
    background-color: #ffffff;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
nav[role="navigation"] .relative.z-0 a.relative:last-child, 
nav[role="navigation"] .relative.z-0 span.relative:last-child {
    border-right: none;
}
nav[role="navigation"] .relative.z-0 a.relative:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}
nav[role="navigation"] p.text-sm {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}


/* ==========================================================================
   DARK MODE OVERRIDES FOR INLINE STYLES & SPECIAL UTILITIES
   ========================================================================== */
html.dark [style*="background-color: #ffffff"], 
html.dark [style*="background-color: #fff"], 
html.dark [style*="background-color: rgb(255, 255, 255)"], 
html.dark [style*="background: #ffffff"], 
html.dark [style*="background: #fff"], 
html.dark [style*="background: rgb(255, 255, 255)"],
html.dark .card,
html.dark .vaccine-card,
html.dark .stat-card,
html.dark .alert,
html.dark .alert-success,
html.dark .alert-danger,
html.dark .alert-warning,
html.dark .alert-info,
html.dark .top-bar {
    background-color: var(--bg-card) !important;
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

html.dark [style*="color: #1e293b"],
html.dark [style*="color: #334155"],
html.dark [style*="color: #475569"],
html.dark [style*="color: #0f172a"],
html.dark [style*="color: #1e2229"] {
    color: var(--text-primary) !important;
}

html.dark [style*="color: #64748b"],
html.dark [style*="color: #94a3b8"] {
    color: var(--text-muted) !important;
}

html.dark [style*="border: 1px solid #e2e8f0"],
html.dark [style*="border: 1px solid #cbd5e1"],
html.dark [style*="border: 1px solid #cbd5e1;"],
html.dark [style*="border-bottom: 1px solid #e2e8f0"],
html.dark [style*="border-bottom: 2px solid #cbd5e1"] {
    border-color: var(--border-color) !important;
}

html.dark table tr, html.dark table td, html.dark table th {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

html.dark table thead tr {
    color: var(--text-muted) !important;
    border-bottom: 2px solid var(--border-color) !important;
}

html.dark table tbody tr {
    border-bottom: 1px solid var(--border-color) !important;
}

html.dark table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

html.dark input, 
html.dark select, 
html.dark textarea {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

html.dark .text-gray-500,
html.dark .text-gray-600 {
    color: var(--text-muted) !important;
}
html.dark .bg-gray-50,
html.dark .bg-gray-100 {
    background-color: var(--bg-main) !important;
}

html.dark input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* SPA Animations & Keyframes */
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   MOBILE HAMBURGER & DRAWER MENU
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}
.mobile-menu-toggle:hover {
    background-color: var(--bg-main);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 1200px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 9999;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-close-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}
.mobile-close-btn:hover {
    background-color: #fef2f2;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-drawer-links {
    flex: 1;
    padding: 16px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: #fef2f2;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}
.mobile-nav-link i, .mobile-nav-link svg {
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}
.mobile-nav-link.active i, .mobile-nav-link:hover i,
.mobile-nav-link.active svg, .mobile-nav-link:hover svg {
    color: var(--primary-color);
}

.mobile-drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.2);
    transition: all 0.2s;
}
.mobile-cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.mobile-hotline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(200, 16, 46, 0.06);
    color: var(--primary-color);
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(200, 16, 46, 0.15);
    transition: all 0.2s;
}
.mobile-hotline-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   BTN-PRIMARY-HEADER (Replaced inline styles)
   ========================================================================== */
.btn-primary-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.15);
}
.btn-primary-header:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.25);
}

/* ==========================================================================
   FOOTER 4-COLUMN LAYOUT (NEW)
   ========================================================================== */
.app-footer-vnvc {
    background-color: #0f172a;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--primary-color);
}

.footer-top-header {
    background-color: #020617;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.35rem 0;
}

.footer-header-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.footer-brand-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.footer-brand-title h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

.footer-top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.footer-top-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-top-item:hover {
    color: var(--secondary-color);
}

.footer-body-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 2.75rem 0;
}

.footer-branches-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 32px;
    box-sizing: border-box;
}

.footer-branches-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.footer-branch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 2.75rem;
}

@media (max-width: 768px) {
    .footer-branch-grid {
        grid-template-columns: 1fr;
    }
}

.footer-branch-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.footer-branch-item {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.footer-branch-item:hover {
    border-color: rgba(234, 170, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.footer-branch-item h4 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0 0 0.85rem;
}

.footer-branch-selected {
    background: var(--primary-color);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.2rem 0.5rem;
    text-transform: uppercase;
}

.footer-branch-info {
    font-size: 0.84rem;
    color: #e2e8f0;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-branch-info p {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-branch-meta {
    display: grid;
    gap: 0.5rem;
}

.footer-branch-meta span {
    align-items: flex-start;
    display: flex;
    gap: 8px;
}

.footer-branch-meta i {
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-branch-item-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1rem;
    padding-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 480px) {
    .footer-branch-item-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .footer-branch-link-map,
    .footer-branch-link-book {
        justify-content: center !important;
        width: 100% !important;
        padding: 8px 10px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
}

.footer-branch-link-map,
.footer-branch-link-book {
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.footer-branch-link-map {
    color: #ff5c77;
}

.footer-branch-link-map:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-branch-link-book {
    color: var(--secondary-color);
    background: transparent;
    padding: 0;
}

.footer-branch-link-book:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-branch-more-card {
    text-decoration: none !important;
    cursor: pointer;
}

.footer-branch-more-card:hover {
    border-color: rgba(234, 170, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.footer-branch-more-card:hover .footer-branch-link-book {
    color: #ffffff;
    text-decoration: underline;
}

.footer-branch-more-card:hover .footer-branch-link-map {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .footer-main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-policy-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    font-size: 0.86rem;
    height: 32px;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .footer-policy-links {
        height: auto;
        justify-content: center !important;
        flex-wrap: wrap;
        width: 100%;
        text-align: center;
        gap: 0.85rem;
    }
}

.footer-policy-links a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-policy-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-legal-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.footer-company-details {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-company-details h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    font-family: var(--font-display, inherit);
}

.footer-legal-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.75rem;
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.82rem;
    padding: 1.25rem 0;
    text-align: center;
}

@media (max-width: 640px) {
    .footer-branch-list {
        grid-template-columns: 1fr;
    }

    .footer-main-layout {
        gap: 1.5rem;
    }

    .footer-legal-panel,
    .footer-branch-item {
        border-radius: 10px;
        padding: 1rem;
    }
}


.footer-bottom-gold-bar {
    background-color: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 1.25rem 0;
    font-size: 0.78rem;
    line-height: 1.6;
}

.footer-bottom-gold-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.footer-disclaimer-text {
    flex: 1;
    min-width: 280px;
    font-weight: 400;
    color: #94a3b8;
}

.footer-trust-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-badge-icon:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.footer-gov-badge {
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.footer-gov-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Homepage Section Dynamically Styled Wrappers */
.section-style-white {
    background: #ffffff;
    color: #1e293b;
}

.section-style-red {
    background: linear-gradient(135deg, #850b1d 0%, #c8102e 50%, #b00d25 100%);
    color: #ffffff;
}
.section-style-red h1,
.section-style-red h2,
.section-style-red h3,
.section-style-red h4,
.section-style-red p:not(.btn-primary-header):not(.hotline-btn),
.section-style-red span:not(.badge):not(.footer-branch-badge) {
    color: #ffffff !important;
}
.section-style-red .text-slate-900,
.section-style-red .text-slate-850,
.section-style-red .text-slate-800,
.section-style-red .text-slate-700,
.section-style-red .text-slate-600,
.section-style-red .text-slate-500,
.section-style-red .text-slate-400 {
    color: rgba(255, 255, 255, 0.9) !important;
}
.section-style-red button.bg-slate-100,
.section-style-dark button.bg-slate-100 {
    color: #334155 !important;
}
.section-style-red button.bg-slate-100:hover,
.section-style-dark button.bg-slate-100:hover {
    color: #0f172a !important;
}

.section-style-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
}
.section-style-dark h1,
.section-style-dark h2,
.section-style-dark h3,
.section-style-dark h4,
.section-style-dark p:not(.btn-primary-header):not(.hotline-btn),
.section-style-dark span:not(.badge):not(.footer-branch-badge) {
    color: #ffffff !important;
}
.section-style-dark .text-slate-900,
.section-style-dark .text-slate-850,
.section-style-dark .text-slate-800,
.section-style-dark .text-slate-700,
.section-style-dark .text-slate-600,
.section-style-dark .text-slate-500,
.section-style-dark .text-slate-400 {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Restore nested card content colors for cards with white or light backgrounds inside styled sections */
.section-style-red :is(.bg-white, .bg-slate-50, .bg-red-50, .bg-red-50\/50, #qdenga-promo),
.section-style-dark :is(.bg-white, .bg-slate-50, .bg-red-50, .bg-red-50\/50, #qdenga-promo) {
    color: #1e293b !important;
}

.section-style-red :is(.bg-white, .bg-slate-50, .bg-red-50, .bg-red-50\/50, #qdenga-promo) :is(h1, h2, h3, h4, strong:not(.text-\[\#eaaa00\]):not(.text-\[\#c8102e\]), b) {
    color: #0f172a !important;
}

.section-style-red :is(.bg-white, .bg-slate-50, .bg-red-50, .bg-red-50\/50, #qdenga-promo) :is(p, div, li, td, th) {
    color: #334155 !important;
}

.section-style-red :is(.bg-white, .bg-slate-50, .bg-red-50, .bg-red-50\/50, #qdenga-promo) span:not(.text-white):not(.text-\[\#c8102e\]):not(.text-\[\#eaaa00\]) {
    color: #475569 !important;
}

.section-style-dark :is(.bg-white, .bg-slate-50, .bg-red-50, .bg-red-50\/50, #qdenga-promo) :is(h1, h2, h3, h4, strong:not(.text-\[\#eaaa00\]):not(.text-\[\#c8102e\]), b) {
    color: #0f172a !important;
}

.section-style-dark :is(.bg-white, .bg-slate-50, .bg-red-50, .bg-red-50\/50, #qdenga-promo) :is(p, div, li, td, th) {
    color: #334155 !important;
}

.section-style-dark :is(.bg-white, .bg-slate-50, .bg-red-50, .bg-red-50\/50, #qdenga-promo) span:not(.text-white):not(.text-\[\#c8102e\]):not(.text-\[\#eaaa00\]) {
    color: #475569 !important;
}

/* Allow explicit Tailwind utility text classes to function normally inside white cards in red/dark sections */
.section-style-red :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-slate-900 { color: #0f172a !important; }
.section-style-red :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-slate-800 { color: #1e293b !important; }
.section-style-red :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-slate-700 { color: #334155 !important; }
.section-style-red :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-slate-600 { color: #475569 !important; }
.section-style-red :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-slate-500 { color: #64748b !important; }
.section-style-red :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-\[\#c8102e\] { color: #c8102e !important; }
.section-style-red :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-\[\#eaaa00\] { color: #eaaa00 !important; }
.section-style-red :is(.bg-white, .bg-slate-50, #qdenga-promo) .bg-\[\#c8102e\]\/10 {
    background-color: rgba(200, 16, 46, 0.1) !important;
    color: #c8102e !important;
}

.section-style-dark :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-slate-900 { color: #0f172a !important; }
.section-style-dark :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-slate-800 { color: #1e293b !important; }
.section-style-dark :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-slate-700 { color: #334155 !important; }
.section-style-dark :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-slate-600 { color: #475569 !important; }
.section-style-dark :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-slate-500 { color: #64748b !important; }
.section-style-dark :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-\[\#c8102e\] { color: #c8102e !important; }
.section-style-dark :is(.bg-white, .bg-slate-50, #qdenga-promo) .text-\[\#eaaa00\] { color: #eaaa00 !important; }
.section-style-dark :is(.bg-white, .bg-slate-50, #qdenga-promo) .bg-\[\#c8102e\]\/10 {
    background-color: rgba(200, 16, 46, 0.1) !important;
    color: #c8102e !important;
}

/* Auto-switch styles for Qdenga promo section when wrapped in white background */


/* Auto-switch styles for Testimonials section when wrapped in white background */
.section-style-white .testimonial-card {
    background-color: #f8fafc !important;
    border-color: #fee2e2 !important;
}
.section-style-white .testimonial-card p,
.section-style-white .testimonial-card .text-slate-300 {
    color: #475569 !important;
}
.section-style-white .testimonial-card .text-white.font-bold {
    color: #1e293b !important;
}
.section-style-white .testimonial-card .bg-white {
    background-color: #c8102e !important;
    color: #ffffff !important;
}

/* Fallback vertical paddings for homepage section wrappers if Tailwind classes are omitted */
.homepage-section-wrapper {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.homepage-section-wrapper.py-12 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
.homepage-section-wrapper.py-20 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}
.homepage-section-wrapper.py-28 {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
}

/* Global Section Header Badges (Medicare Gold background with white text) */
span.section-badge,
div.section-badge,
.section-style-red span.section-badge,
.section-style-dark span.section-badge,
.section-style-white span.section-badge {
    display: inline-block !important;
    background-color: #eaaa00 !important; /* Medicare Gold */
    color: #ffffff !important; /* White text for consistent design */
    font-weight: 800 !important;
    font-size: 0.75rem !important; /* text-xs */
    padding: 0.375rem 0.875rem !important; /* px-3.5 py-1.5 */
    border-radius: 9999px !important; /* rounded-full */
    text-transform: uppercase !important; /* uppercase */
    letter-spacing: 0.05em !important; /* tracking-wider */
    box-shadow: 0 2px 8px rgba(234, 170, 0, 0.2) !important;
}

/* Floating Expandable Contact Widget */
.floating-chat-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.floating-btn-expandable {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 48px; /* Default round button */
    height: 48px;
    border-radius: 24px;
    border: 2px solid #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    color: #ffffff !important;
    cursor: pointer;
}

.floating-btn-expandable .btn-icon {
    width: 44px; /* Matches height subtract border */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-btn-expandable .btn-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease-out, padding 0.3s;
    font-family: 'Inter', sans-serif;
    padding-right: 0;
}

/* Hover state: expands width smooth transition */
.floating-btn-expandable:hover {
    width: auto;
    padding-left: 0;
    padding-right: 18px; /* Right padding when expanded */
    transform: translateY(-2px);
}

.floating-btn-expandable:hover .btn-text {
    max-width: 180px;
    opacity: 1;
    padding-left: 4px;
}

/* Header Cart Button & Dropdown Styles */
.header-cart-wrapper {
    position: relative;
    display: inline-block;
}

.header-cart-btn-pill {
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.header-cart-badge-inline {
    background: var(--primary-color, #c8102e);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    margin-left: 2px;
    transition: all 0.2s ease;
}

.hotline-btn:hover .header-cart-badge-inline {
    background: var(--secondary-color, #eaaa00);
    color: #0f172a;
}

.header-cart-dropdown {
    position: absolute;
    top: 52px;
    right: 0;
    width: 360px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    z-index: 999999;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top right;
}

.header-cart-dropdown.hidden {
    opacity: 0;
    transform: scale(0.92) translateY(-8px);
    pointer-events: none;
    visibility: hidden;
}
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.cart-drawer-close {
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-drawer-close:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.cart-drawer-body {
    max-height: 280px;
    overflow-y: auto;
    padding: 12px 18px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item-name {
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 700;
}

.cart-item-price {
    font-size: 12.5px;
    color: var(--primary-color, #c8102e);
    font-weight: 700;
}

.cart-item-remove {
    border: none;
    background: #fff1f2;
    color: #e11d48;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    background: #ffe4e6;
    transform: scale(1.1);
}

.cart-drawer-footer {
    padding: 14px 18px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.btn-checkout-drawer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border-radius: 30px;
    background: linear-gradient(135deg, #c8102e 0%, #a00d24 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.25);
}

.btn-checkout-drawer:hover {
    background: linear-gradient(135deg, #a00d24 0%, #800a1d 100%);
    transform: translateY(-1px);
    color: #ffffff;
}

/* ==========================================================================
   ABOUT US PAGE STYLES
   ========================================================================== */
.about-wrapper {
    color: var(--text-primary);
    line-height: 1.7;
}

/* Hero Section */
.about-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(0, 75, 143, 0.88) 100%), 
                url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1600&q=80') no-repeat center center / cover;
    padding: 5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    color: #ffffff;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.about-hero-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.about-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.3;
}

.about-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.about-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ffffff;
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.about-hero-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
}

/* Layout Grids */
.about-section {
    padding: 3rem 0;
}

.about-grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-grid-2.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.highlight-text {
    color: var(--secondary-color);
    font-weight: 700;
}

.text-content {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Stat Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Illustrative SVGs */
.illustration-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 75, 143, 0.03);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px dashed var(--border-color);
    height: 100%;
    min-height: 350px;
}

/* Core Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.value-card:hover::before {
    opacity: 1;
}

.value-icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(200, 16, 46, 0.06);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.value-card:hover .value-icon-box {
    background-color: var(--primary-color);
    color: #ffffff;
}

.value-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.value-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Dual Section Boxes (Vision / Mission) */
.mission-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: transform 0.2s ease;
}

.mission-box:hover {
    transform: translateX(5px);
}

.mission-icon-wrapper {
    background-color: rgba(0, 75, 143, 0.06);
    color: var(--accent-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mission-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.mission-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Meet Our Team */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    flex: 1 1 260px;
    max-width: 280px;
    width: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.team-avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.team-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    background-color: var(--bg-main);
}

.team-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.team-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
    display: block;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social-link {
    width: 34px;
    height: 32px;
    padding: 0;
    background-color: #fee2e2;
    color: #b91c1c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    transition: all 0.2s ease;
    border: 1px solid #fecaca;
}

.team-social-link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.team-facebook-letter {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-1px);
}

/* Screen Responsiveness */
@media (max-width: 1024px) {
    .about-grid-2, .about-grid-2.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-grid-2.reverse .illustration-wrapper {
        order: -1;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .team-grid {
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 3.5rem 1.5rem;
    }

    .about-hero-title {
        font-size: 1.8rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Responsive Header Refinements */
@media (max-width: 1250px) {
    .header-container {
        padding: 0.75rem 1.25rem !important;
    }
    .nav-menu {
        gap: 0.85rem !important;
    }
    .nav-link {
        font-size: 0.88rem !important;
    }
    .header-actions {
        gap: 8px !important;
    }
    .hotline-btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.82rem !important;
    }
    .hotline-phone-suffix {
        display: none !important;
    }
    /* Also decrease other action buttons size in header to fit perfectly */
    .header-actions .btn-primary-header,
    .header-actions .cart-btn,
    .header-actions a.btn-primary,
    .header-actions button {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.82rem !important;
    }
}

/* Mobile Catalog Header Bar & Bottom Sheet Styles */
.mobile-catalog-header-bar {
    display: none;
}
.mobile-filter-overlay,
.mobile-filter-bottom-sheet {
    display: none;
}

@media (max-width: 768px) {
    /* Hide Category Section completely on Mobile */
    .catalog-category-section {
        display: none !important;
    }

    /* Hide tall vertical sidebar on Mobile */
    .catalog-filter-panel {
        display: none !important;
    }
    .catalog-layout {
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
    }
    .catalog-products-section {
        padding: 0 !important;
    }
    .catalog-toolbar {
        display: none !important;
    }

    /* Sleek Mobile Clean Header Bar */
    .catalog-products-section {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .catalog-result-summary {
        display: none !important;
    }

    .mobile-catalog-header-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px;
        margin-bottom: 12px;
        padding: 0 4px;
    }

    .mobile-catalog-title {
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .mobile-catalog-title span {
        font-size: 15.5px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
    }

    .mobile-catalog-title small {
        font-size: 12px !important;
        color: #64748b !important;
        font-weight: 600 !important;
    }

    .btn-mobile-filter-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 32px !important;
        padding: 0 12px !important;
        background: #ffffff !important;
        border: 1px solid #fecaca !important;
        border-radius: 20px !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        color: var(--primary-color, #c8102e) !important;
        cursor: pointer;
        position: relative;
        box-shadow: 0 2px 6px rgba(200, 16, 46, 0.08) !important;
        transition: all 0.2s ease;
        box-sizing: border-box !important;
    }

    .btn-mobile-filter-pill i,
    .btn-mobile-filter-pill svg {
        width: 14px;
        height: 14px;
        color: var(--primary-color, #c8102e);
    }

    .btn-mobile-filter-pill .filter-active-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background-color: var(--primary-color, #c8102e);
    }

    /* Mobile Filter Bottom Sheet Modal */
    .mobile-filter-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 99998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .mobile-filter-overlay.open {
        opacity: 1;
        visibility: visible;
    }
    .mobile-filter-bottom-sheet {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-radius: 20px 20px 0 0;
        z-index: 99999;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    }
    .mobile-filter-bottom-sheet.open {
        transform: translateY(0);
    }
    .mobile-filter-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #e2e8f0;
    }
    .mobile-filter-pill {
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #475569;
        font-size: 12px;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .mobile-filter-pill.active {
        border-color: var(--primary-color, #c8102e);
        background: rgba(200, 16, 46, 0.08);
        color: var(--primary-color, #c8102e);
        font-weight: 700;
    }

    /* Mobile Product Grid n x 2 */
    .catalog-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .catalog-product-card {
        padding: 10px !important;
    }
    .catalog-product-card .catalog-product-title {
        font-size: 12.5px !important;
        line-height: 1.35 !important;
    }
    .catalog-product-card .catalog-price-block strong {
        font-size: 15px !important;
    }
    .catalog-action-group .btn-detail-link,
    .catalog-action-group .btn-select-vaccine {
        padding: 6px 4px !important;
        font-size: 11px !important;
    }
}

/* Mobile Branch Modal Styles */
.mobile-branch-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-branch-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-branch-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: min(92vw, 420px);
    max-height: 85vh;
    background: #ffffff;
    border-radius: 20px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mobile-branch-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.mobile-branch-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.mobile-branch-modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mobile-branch-modal-header h3 i,
.mobile-branch-modal-header h3 svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color, #c8102e);
}
.mobile-branch-modal-header .modal-close-btn {
    border: none;
    background: #e2e8f0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mobile-branch-modal-body {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 65vh;
}
.modal-branch-option {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
}
.modal-branch-option:hover {
    border-color: rgba(200, 16, 46, 0.4);
    background: #fff7f7;
}
.modal-branch-option.active {
    border-color: var(--primary-color, #c8102e);
    background: rgba(200, 16, 46, 0.05);
}
.modal-branch-option .branch-option-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #64748b;
    margin-top: 2px;
}
.modal-branch-option.active .branch-option-icon {
    background: rgba(200, 16, 46, 0.12);
    color: var(--primary-color, #c8102e);
}
.modal-branch-option .branch-option-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.modal-branch-option .branch-option-content strong {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}
.modal-branch-option.active .branch-option-content strong {
    color: var(--primary-color, #c8102e);
}
.modal-branch-option .branch-option-content small {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
}
.modal-branch-option .active-badge {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary-color, #c8102e);
    background: rgba(200, 16, 46, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    align-self: flex-start;
}

/* Universal Custom Dropdown Component */
.custom-dropdown-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1001;
}

.custom-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #fecaca;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color, #c8102e);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.08);
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.custom-dropdown-trigger:hover {
    border-color: var(--primary-color, #c8102e);
    background: #fff7f7;
}

.custom-dropdown-trigger .dropdown-chevron-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-color, #c8102e);
    transition: transform 0.2s ease;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 6px);
    min-width: 210px;
    width: max-content;
    max-width: min(290px, 90vw);
    background: #ffffff;
    border: 1px solid #fecaca;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 99999 !important;
    flex-direction: column;
    gap: 2px;
}

.custom-dropdown-menu.open {
    display: flex !important;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -6px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.custom-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.custom-dropdown-item:hover {
    background: rgba(200, 16, 46, 0.05);
    color: var(--primary-color, #c8102e);
}

.custom-dropdown-item.active {
    background: rgba(200, 16, 46, 0.08);
    color: var(--primary-color, #c8102e);
    font-weight: 800;
}

.custom-dropdown-item .item-check-icon {
    width: 14px;
    height: 14px;
    color: var(--primary-color, #c8102e);
    flex-shrink: 0;
}

/* Hide ugly default browser scrollbars for SPA Modals & Custom Popups */
.spa-modal-overlay,
.spa-modal-card,
#spaRegisterBody,
#spaRegisterModal,
#vaccineDetailModal,
#modalDetailContent,
.medicare-select-popup,
.medicare-datepicker-popup {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.spa-modal-overlay::-webkit-scrollbar,
.spa-modal-card::-webkit-scrollbar,
#spaRegisterBody::-webkit-scrollbar,
#spaRegisterModal::-webkit-scrollbar,
#vaccineDetailModal::-webkit-scrollbar,
#modalDetailContent::-webkit-scrollbar,
.medicare-select-popup::-webkit-scrollbar,
.medicare-datepicker-popup::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Premium Hover Transition & Lift Effects for All Action Buttons */
.catalog-advice-btn,
.fb-modal-footer button,
.btn-primary,
.btn-secondary,
.btn-secondary-outline,
.desktop-only-back-btn,
.btn-select-detail,
.btn-detail-link,
.btn-select-vaccine,
.vaccine-btn-add,
#btnToggleCategories {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.catalog-advice-btn:hover,
.fb-modal-footer button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-secondary-outline:hover,
#btnToggleCategories:hover {
    transform: translateY(-3px) !important;
}

/* Shadow details for Primary / Red Buttons (Medicare Red) */
.catalog-advice-btn:hover,
.fb-modal-footer button.btn-primary:hover,
.btn-primary:hover {
    box-shadow: 0 6px 18px rgba(200, 16, 46, 0.3) !important;
    background-color: #a00d24 !important;
    border-color: #a00d24 !important;
}

/* Shadow details for Secondary / Outline / White Buttons */
.fb-modal-footer button.btn-secondary:hover,
.btn-secondary:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08) !important;
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.fb-modal-footer button.btn-secondary-outline:hover,
.btn-secondary-outline:hover {
    box-shadow: 0 6px 15px rgba(0, 75, 143, 0.12) !important;
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* Custom hover invert colors for Category Toggle Button */
#btnToggleCategories:hover {
    background-color: var(--primary-color, #c8102e) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(200, 16, 46, 0.2) !important;
}

/* Custom styling for datepicker select dropdowns to prevent default browser rendering */
.medicare-gdp-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: transparent !important;
    color: #0f172a !important;
    border: none !important;
    outline: none !important;
    padding: 2px 14px 2px 4px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 2px center !important;
    background-size: 10px !important;
    font-family: inherit !important;
    width: auto !important;
    min-width: 60px !important;
    height: auto !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.medicare-gdp-select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-weight: 500 !important;
}


