/* =====================================================
   PinCloud Complete UI Theme
   - Vietnamese B2B SaaS style
   - Light theme default
   - National color accents (red / gold / deep blue)
   - Local payment / trust / support elements
   ===================================================== */

/* ---- 1. Typography ---- */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --vn-red: #DA020E;
    --vn-red-dark: #B00009;
    --vn-red-light: #FF4D57;
    --vn-gold: #FFD700;
    --vn-gold-dark: #E6C200;
    --vn-blue: #0057B8;
    --vn-blue-dark: #003D82;
    --vn-navy: #0A2540;
    --vn-green: #009944;
    --vn-orange: #FF6B00;

    /* Bootstrap overrides */
    --bs-primary: #DA020E;
    --bs-primary-rgb: 218, 2, 14;
    --bs-primary-bg-subtle: #FFF0F1;
    --bs-primary-border-subtle: #F5B8BB;
    --bs-primary-text-emphasis: #5A0003;
    --bs-secondary: #64748B;
    --bs-secondary-rgb: 100, 116, 139;
    --bs-success: #009944;
    --bs-info: #0057B8;
    --bs-warning: #FF6B00;

    /* PinCloud custom vars */
    --primary-color: #DA020E;
    --primary-light: #FF4D57;
    --accent-color: #FFD700;
    --gradient-text: linear-gradient(135deg, #DA020E 0%, #FFD700 100%);
    --gradient-hero: linear-gradient(135deg, #FFF9F0 0%, #FFFFFF 50%, #FFF0F1 100%);
    --gradient-primary: linear-gradient(135deg, #DA020E 0%, #FF4D57 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFAA00 100%);

    /* Layout */
    --section-spacing: 5rem;
    --card-radius: 1.25rem;
    --btn-radius: 999px;
    --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
    --shadow: 0 8px 30px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.12);
    --shadow-red: 0 10px 30px rgba(218, 2, 14, 0.2);
}

[data-bs-theme="dark"] {
    --bs-body-bg: #0F172A;
    --bs-body-color: #F8FAFC;
    --bs-primary-bg-subtle: rgba(218, 2, 14, 0.15);
    --bs-primary-border-subtle: rgba(218, 2, 14, 0.3);
    --bs-primary-text-emphasis: #FF6B73;
}

* {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-padding-top: 90px;
}

body {
    font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Layout Primitives (Redesigned) ---- */
.pc-section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.pc-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 160px 0 100px;
}

.pc-hero.hero-section,
.pc-hero.page-header {
    padding: 160px 0 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.pc-hero-content {
    max-width: 720px;
}

.pc-split {
    width: 100%;
}

.pc-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .pc-split {
        grid-template-columns: 1.2fr 0.8fr;
    }
    .pc-split.reverse {
        grid-template-columns: 0.8fr 1.2fr;
    }
    .pc-split.reverse > :first-child {
        order: 2;
    }
    .pc-split.reverse > :last-child {
        order: 1;
    }
}

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

@media (min-width: 768px) {
    .pc-bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .pc-bento .pc-bento-wide {
        grid-column: span 2;
    }
    .pc-bento .pc-bento-tall {
        grid-row: span 2;
    }
}

@media (min-width: 992px) {
    .pc-bento.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    .pc-bento.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pc-overlap {
    margin-top: -4rem;
    position: relative;
    z-index: 2;
}

.pc-overlap + .pc-section,
.pc-overlap + section {
    padding-top: calc(var(--section-spacing) + 4rem);
}

.pc-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 1.75rem;
    border: 1px solid rgba(10, 37, 64, 0.06);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.pc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(218, 2, 14, 0.15);
}

.pc-card-highlight {
    background: linear-gradient(135deg, var(--vn-red) 0%, var(--vn-red-dark) 100%);
    color: #fff;
    border-color: transparent;
}

.pc-card-highlight h3,
.pc-card-highlight h4,
.pc-card-highlight h5,
.pc-card-highlight h6,
.pc-card-highlight .fw-bold {
    color: #fff !important;
}

.pc-sticky-sidebar {
    position: sticky;
    top: 120px;
}

.pc-divider-band {
    background: var(--vn-navy);
    color: #fff;
    padding: 2rem 0;
}

/* ---- 2. Navigation ---- */
.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--vn-red) !important;
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
    padding: 0.85rem 0;
    top: 0;
    z-index: 1030;
}

@media (min-width: 768px) {
    .vn-hotline-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1040;
    }

    .navbar {
        top: 42px;
    }

    body {
        padding-top: 42px;
    }

    html {
        scroll-padding-top: 120px;
    }

    .hero-section {
        padding-top: 170px;
    }
}

[data-bs-theme="dark"] .navbar {
    background-color: rgba(30, 41, 59, 0.98) !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar-brand {
    font-weight: 800 !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--vn-navy);
}

[data-bs-theme="dark"] .navbar-brand span {
    color: #fff;
}

.nav-link {
    font-weight: 600;
    color: #374151 !important;
    padding: 0.6rem 1rem !important;
    border-radius: 999px;
    transition: all 0.25s ease;
    margin: 0 0.15rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--vn-red) !important;
    background: rgba(218, 2, 14, 0.06);
}

[data-bs-theme="dark"] .nav-link {
    color: #E2E8F0 !important;
}

[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .nav-link.active {
    color: #FF6B73 !important;
    background: transparent;
}

.nav-link::after {
    display: none;
}

.navbar-toggler {
    color: var(--vn-red) !important;
}

/* ---- 3. Buttons ---- */
.btn {
    font-weight: 700;
    border-radius: var(--btn-radius);
    padding: 0.75rem 1.75rem;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--gradient-primary) !important;
    border-color: var(--vn-red) !important;
    color: #fff !important;
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(218, 2, 14, 0.3);
}

.btn-outline-primary {
    color: var(--vn-red) !important;
    border-color: var(--vn-red) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--vn-red) !important;
    color: #fff !important;
}

.btn-secondary {
    background: var(--vn-blue) !important;
    border-color: var(--vn-blue) !important;
    color: #fff !important;
}

.btn-warning {
    background: var(--gradient-gold) !important;
    border-color: var(--vn-gold) !important;
    color: var(--vn-navy) !important;
}

.btn-light {
    background: #fff !important;
    color: var(--vn-red) !important;
    border-color: #fff !important;
    font-weight: 700;
}

/* ---- 4. Hero Section ---- */
.hero-section {
    background: var(--gradient-hero);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(218, 2, 14, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.hero-section h1 {
    font-weight: 900;
    line-height: 1.15;
    color: var(--vn-navy);
    letter-spacing: -1.5px;
}

[data-bs-theme="dark"] .hero-section h1 {
    color: #fff;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid rgba(218, 2, 14, 0.2);
    border-radius: 999px;
    font-weight: 600;
    color: var(--vn-red);
    box-shadow: var(--shadow-sm);
}

/* ---- 5. Cards ---- */
.feature-card-premium,
.service-card,
.model-card,
.market-card,
.support-card,
.strength-card,
.custom-card,
.bento-item,
.security-card,
.testimonial-card,
.case-card,
.hardware-card,
.mode-card {
    background: #fff;
    color: var(--bs-body-color);
    border-radius: var(--card-radius);
    padding: 1.75rem;
    border: 1px solid rgba(10, 37, 64, 0.06);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card-premium:hover,
.service-card:hover,
.model-card:hover,
.market-card:hover,
.support-card:hover,
.strength-card:hover,
.custom-card:hover,
.bento-item:hover,
.security-card:hover,
.testimonial-card:hover,
.case-card:hover,
.hardware-card:hover,
.mode-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(218, 2, 14, 0.15);
}

/* Keep gradient highlights when they also carry a component card class */
.strength-card.pc-card-highlight,
.bento-card.pc-card-highlight,
.testimonial-card.pc-card-highlight,
.market-card.pc-card-highlight,
.model-card.pc-card-highlight,
.pain-point-card.pc-card-highlight {
    background: linear-gradient(135deg, var(--vn-red) 0%, var(--vn-red-dark) 100%);
    color: #fff;
    border-color: transparent;
}
.pain-point-card.pc-card-highlight h5,
.pain-point-card.pc-card-highlight p {
    color: #fff !important;
}
.pain-point-card.pc-card-highlight .pain-icon {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.agent-card-home,
.agent-card-basic,
.agent-card-exclusive,
.agent-card-oem {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(10, 37, 64, 0.06);
}

.agent-card-exclusive {
    border-top: 4px solid var(--vn-gold);
    position: relative;
}

/* ---- 6. Section Styles ---- */
section {
    padding: var(--section-spacing) 0;
}

.bg-body-tertiary {
    background: #F8FAFC !important;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-weight: 800;
    color: var(--vn-navy);
    margin-bottom: 1rem;
}

.section-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(218, 2, 14, 0.08);
    color: var(--vn-red);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* ---- 7. Stats ---- */
.stats-strip {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(10, 37, 64, 0.06);
    padding: 2rem;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--vn-red);
    background: none;
    -webkit-text-fill-color: var(--vn-red);
}

.stat-label {
    color: #6B7280;
    font-weight: 600;
    font-size: 0.9rem;
}

.stat-icon-wrapper {
    background: rgba(218, 2, 14, 0.08) !important;
    color: var(--vn-red) !important;
}

/* ---- 8. Trust Badge ---- */
.vn-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(90deg, var(--vn-red) 0%, var(--vn-gold) 100%);
    box-shadow: 0 4px 12px rgba(218, 2, 14, 0.25);
}

.vn-trust-badge::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 11px;
    background: linear-gradient(180deg, var(--vn-red) 50%, var(--vn-gold) 50%);
    border-radius: 1px;
    flex-shrink: 0;
}

/* ---- 9. Payment Badges ---- */
.vn-payment-strip {
    background: #fff;
    border-top: 1px solid rgba(10, 37, 64, 0.06);
    border-bottom: 1px solid rgba(10, 37, 64, 0.06);
    padding: 1.25rem 0;
    overflow: hidden;
}

.vn-payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #fff;
    border: 1px solid rgba(10, 37, 64, 0.08);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.vn-payment-badge.vn-momo { color: #ae2070; border-color: rgba(174, 32, 112, 0.2); }
.vn-payment-badge.vn-zalopay { color: #0068ff; border-color: rgba(0, 104, 255, 0.2); }
.vn-payment-badge.vn-vnpay { color: #0057b8; border-color: rgba(0, 87, 184, 0.2); }
.vn-payment-badge.vn-vietqr { color: #009944; border-color: rgba(0, 153, 68, 0.2); }
.vn-payment-badge.vn-cash { color: #e6a200; border-color: rgba(230, 162, 0, 0.2); }

/* ---- 10. Hotline Banner ---- */
.vn-hotline-bar {
    background: linear-gradient(90deg, var(--vn-red) 0%, var(--vn-red-dark) 100%);
    color: #fff;
    padding: 0.75rem 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.vn-hotline-bar a {
    color: var(--vn-gold);
    font-weight: 800;
    text-decoration: none;
}

/* ---- 11. Footer ---- */
.footer-premium {
    background: var(--vn-navy);
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer-premium h6,
.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--vn-red);
    border-radius: 3px;
}

.footer-premium a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-premium a:hover {
    color: var(--vn-gold);
}

.footer-premium hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ---- 12. Floating Contact Buttons ---- */
.vn-float-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vn-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.vn-float-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.vn-float-btn.zalo {
    background: #0068ff;
}

.vn-float-btn.phone {
    background: var(--vn-red);
}

.vn-float-btn.chat {
    background: var(--vn-gold);
    color: var(--vn-navy);
}

.vn-float-btn .vn-tooltip {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--vn-navy);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.vn-float-btn:hover .vn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ---- 13. Modal ---- */
.modal-content {
    border-radius: var(--card-radius);
    border: none;
}

.modal-header {
    border-bottom: 2px solid rgba(218, 2, 14, 0.1);
}

.modal-title {
    color: var(--vn-navy);
    font-weight: 800;
}

/* ---- 14. Accordion ---- */
.accordion-item {
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 700;
    color: var(--vn-navy);
}

.accordion-button:not(.collapsed) {
    background: rgba(218, 2, 14, 0.05);
    color: var(--vn-red);
}

/* ---- 15. Lists & Icons ---- */
.feature-detail-list li,
.agent-feature-list li,
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.check-icon-circle,
.bi-check-circle-fill {
    color: var(--vn-red);
}

/* ---- 16. Feature Panel ---- */
.feature-panel {
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(10, 37, 64, 0.06);
    overflow: hidden;
}

.feature-sidebar {
    background: #F8FAFC;
    border-right: 1px solid rgba(10, 37, 64, 0.06);
}

.feature-nav-btn {
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-nav-btn.active {
    background: var(--vn-red) !important;
    color: #fff !important;
}

/* ---- 17. Tables ---- */
.comparison-table th:last-child {
    background: var(--vn-red) !important;
    color: #fff;
}

.comparison-table .check-icon {
    color: var(--vn-green);
}

/* ---- 18. Timeline ---- */
.timeline-date {
    background: var(--vn-red);
    color: #fff;
}

/* ---- 19. General Overrides ---- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--vn-navy);
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #fff;
}

.lead {
    color: #4B5563;
    font-weight: 400;
}

.text-body-secondary {
    color: #6B7280 !important;
}

[data-bs-theme="dark"] .text-body-secondary {
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #94A3B8 !important;
}

[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-dark-emphasis {
    color: #E2E8F0 !important;
}

.badge.bg-primary {
    background: var(--vn-red) !important;
}

.badge.bg-warning-subtle {
    background: rgba(255, 215, 0, 0.15) !important;
    color: #B45309 !important;
}

.badge.bg-primary-subtle {
    background: rgba(218, 2, 14, 0.1) !important;
    color: var(--vn-red) !important;
}

.progress-bar {
    background: var(--vn-red) !important;
}

/* ---- 20. Dark Mode Adjustments ---- */
[data-bs-theme="dark"] .feature-card-premium,
[data-bs-theme="dark"] .service-card,
[data-bs-theme="dark"] .model-card,
[data-bs-theme="dark"] .market-card,
[data-bs-theme="dark"] .support-card,
[data-bs-theme="dark"] .strength-card,
[data-bs-theme="dark"] .bento-item,
[data-bs-theme="dark"] .security-card,
[data-bs-theme="dark"] .testimonial-card,
[data-bs-theme="dark"] .case-card,
[data-bs-theme="dark"] .hardware-card,
[data-bs-theme="dark"] .mode-card,
[data-bs-theme="dark"] .stats-strip,
[data-bs-theme="dark"] .feature-panel {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    color: #F1F5F9;
}

[data-bs-theme="dark"] .hero-badge {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #FF6B73;
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

[data-bs-theme="dark"] .lead {
    color: #CBD5E1;
}

[data-bs-theme="dark"] .pc-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    color: #F1F5F9;
}

[data-bs-theme="dark"] .pc-card-highlight {
    background: linear-gradient(135deg, var(--vn-red-dark) 0%, var(--vn-navy) 100%);
    color: #fff;
}

[data-bs-theme="dark"] .strength-card.pc-card-highlight,
[data-bs-theme="dark"] .bento-card.pc-card-highlight,
[data-bs-theme="dark"] .testimonial-card.pc-card-highlight,
[data-bs-theme="dark"] .market-card.pc-card-highlight,
[data-bs-theme="dark"] .model-card.pc-card-highlight,
[data-bs-theme="dark"] .pain-point-card.pc-card-highlight {
    background: linear-gradient(135deg, var(--vn-red-dark) 0%, var(--vn-navy) 100%);
    color: #fff;
    border-color: transparent;
}
[data-bs-theme="dark"] .pain-point-card.pc-card-highlight h5,
[data-bs-theme="dark"] .pain-point-card.pc-card-highlight p {
    color: #fff !important;
}
[data-bs-theme="dark"] .pain-point-card.pc-card-highlight .pain-icon {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

[data-bs-theme="dark"] .pc-divider-band {
    background: #020617;
}

[data-bs-theme="dark"] .bg-body-tertiary {
    background: #1E293B !important;
}

[data-bs-theme="dark"] .page-header {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
}

[data-bs-theme="dark"] .pc-hero.hero-section,
[data-bs-theme="dark"] .pc-hero.page-header {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

[data-bs-theme="dark"] .advantage-section {
    background-color: #0F172A !important;
}

[data-bs-theme="dark"] .agent-section {
    background-color: #0F172A !important;
    background-image: none !important;
}

[data-bs-theme="dark"] .feature-sidebar {
    background: #1E293B !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .section-label {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .vn-payment-strip {
    background: #0F172A;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .vn-payment-badge {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
}

[data-bs-theme="dark"] .feature-nav-btn {
    color: #CBD5E1 !important;
}

[data-bs-theme="dark"] .feature-nav-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .custom-card {
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #F1F5F9;
}

[data-bs-theme="dark"] .custom-card h5 {
    color: #fff;
}

[data-bs-theme="dark"] .custom-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

[data-bs-theme="dark"] .navbar-collapse {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

[data-bs-theme="dark"] .modal-content {
    background: #1E293B;
}

[data-bs-theme="dark"] .modal-title {
    color: #fff;
}

[data-bs-theme="dark"] .accordion-button {
    color: #F1F5F9;
    background: #1E293B;
}

[data-bs-theme="dark"] .accordion-body {
    color: #CBD5E1;
}

/* ---- 22. Footer Helpers ---- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    display: inline-flex;
    align-items: center;
    opacity: 0.75;
    transition: all 0.2s ease;
}

.footer-links a::before {
    content: '\203A';
    margin-right: 0.5rem;
    color: var(--vn-gold);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--vn-gold);
    transform: translateX(3px);
}

.hover-opacity-100 {
    transition: opacity 0.2s ease;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* ---- 21. Responsive ---- */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .navbar-collapse {
        background: #fff;
        border-radius: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
    }
    
    .vn-float-contact {
        bottom: 20px;
        right: 20px;
    }
}

/* ---- 23. Page Header Consistency ---- */
.page-header {
    background: var(--gradient-hero) !important;
}

/* ---- 24. Dark Section Contrast Fixes ---- */
.map-section,
.global-section,
.integration-section,
.cta-box {
    color: #fff;
}

.map-section h1,
.map-section h2,
.global-section h1,
.global-section h2,
.integration-section h1,
.integration-section h2,
.cta-box h1,
.cta-box h2 {
    color: #fff;
}

.map-section .lead,
.global-section .lead,
.integration-section .lead,
.cta-box .lead,
.custom-section > .container .lead {
    color: rgba(255, 255, 255, 0.9);
}

.map-section .text-body-secondary,
.global-section .text-body-secondary,
.integration-section .text-body-secondary,
.cta-box .text-body-secondary {
    color: rgba(255, 255, 255, 0.75) !important;
}

.map-section .text-info,
.global-section .text-info,
.integration-section .text-info,
.cta-box .text-info,
.custom-section .text-info {
    color: #93C5FD !important;
}

/* ---- 25. Legacy Blue-to-Red Theme Fixes ---- */
.cta-box {
    background: linear-gradient(135deg, var(--vn-red) 0%, var(--vn-navy) 100%) !important;
}

.custom-section {
    background: linear-gradient(135deg, var(--vn-red) 0%, var(--vn-red-dark) 100%) !important;
}

.custom-section > .container h2 {
    color: #fff;
}

.scroll-top-btn:hover {
    background: var(--vn-red-dark) !important;
}

/* ---- 26. Feature Nav Button Contrast ---- */
.feature-nav-btn {
    color: #4B5563 !important;
}

.feature-nav-btn:hover {
    color: var(--vn-red) !important;
}

/* ---- 27. Index Feature Panel Theme Alignment ---- */
.feature-panel {
    background: linear-gradient(135deg, #ffffff 0%, #FFF5F5 100%);
    border-color: rgba(218, 2, 14, 0.08);
}

.feature-content-area {
    background: transparent;
}

.feature-sidebar {
    background: linear-gradient(180deg, #FFF5F5 0%, #ffffff 100%);
    border-right-color: rgba(218, 2, 14, 0.06);
}

.feature-nav-lang.active,
.feature-nav-chain.active,
.feature-nav-cashier.active,
.feature-nav-app.active,
.feature-nav-print.active {
    background: rgba(218, 2, 14, 0.08);
    color: var(--vn-red);
    border-color: rgba(218, 2, 14, 0.12);
}

.feature-nav-lang.active .feature-nav-icon,
.feature-nav-chain.active .feature-nav-icon,
.feature-nav-cashier.active .feature-nav-icon,
.feature-nav-app.active .feature-nav-icon,
.feature-nav-print.active .feature-nav-icon {
    background: var(--vn-red);
    color: #fff;
    box-shadow: 0 4px 10px rgba(218, 2, 14, 0.25);
}

[data-bs-theme="dark"] .feature-panel {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .feature-sidebar {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-right-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .feature-nav-lang.active,
[data-bs-theme="dark"] .feature-nav-chain.active,
[data-bs-theme="dark"] .feature-nav-cashier.active,
[data-bs-theme="dark"] .feature-nav-app.active,
[data-bs-theme="dark"] .feature-nav-print.active {
    background: rgba(218, 2, 14, 0.15);
    color: #fff;
    border-color: transparent;
}

[data-bs-theme="dark"] .feature-nav-lang.active .feature-nav-icon,
[data-bs-theme="dark"] .feature-nav-chain.active .feature-nav-icon,
[data-bs-theme="dark"] .feature-nav-cashier.active .feature-nav-icon,
[data-bs-theme="dark"] .feature-nav-app.active .feature-nav-icon,
[data-bs-theme="dark"] .feature-nav-print.active .feature-nav-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: none;
}

/* ---- 28. SaaS Service Card Theme Alignment ---- */
.service-card-blue {
    --card-tint: rgba(218, 2, 14, 0.08);
    --card-border: rgba(218, 2, 14, 0.3);
    --card-shadow: rgba(218, 2, 14, 0.15);
}

.service-card-cyan {
    --card-tint: rgba(255, 215, 0, 0.12);
    --card-border: rgba(255, 215, 0, 0.35);
    --card-shadow: rgba(255, 215, 0, 0.18);
}

.service-card-purple {
    --card-tint: rgba(10, 37, 64, 0.08);
    --card-border: rgba(10, 37, 64, 0.25);
    --card-shadow: rgba(10, 37, 64, 0.15);
}

.service-card-yellow {
    --card-tint: rgba(184, 134, 11, 0.10);
    --card-border: rgba(184, 134, 11, 0.3);
    --card-shadow: rgba(184, 134, 11, 0.15);
}

.service-card-green {
    --card-tint: rgba(199, 0, 17, 0.08);
    --card-border: rgba(199, 0, 17, 0.3);
    --card-shadow: rgba(199, 0, 17, 0.15);
}

.service-card-orange {
    --card-tint: rgba(255, 140, 0, 0.10);
    --card-border: rgba(255, 140, 0, 0.3);
    --card-shadow: rgba(255, 140, 0, 0.15);
}

.service-card-blue .service-icon { color: var(--vn-red); }
.service-card-cyan .service-icon { color: #D4A000; }
.service-card-purple .service-icon { color: var(--vn-navy); }
.service-card-yellow .service-icon { color: #B8860B; }
.service-card-green .service-icon { color: var(--vn-red-dark); }
.service-card-orange .service-icon { color: #E67E00; }

[data-bs-theme="dark"] .service-card-blue .service-icon { color: #FF4D57; }
[data-bs-theme="dark"] .service-card-cyan .service-icon { color: #FFE066; }
[data-bs-theme="dark"] .service-card-purple .service-icon { color: #93C5FD; }
[data-bs-theme="dark"] .service-card-yellow .service-icon { color: #FCD34D; }
[data-bs-theme="dark"] .service-card-green .service-icon { color: #FF4D57; }
[data-bs-theme="dark"] .service-card-orange .service-icon { color: #FDBA74; }

/* ---- 29. Index Testimonial Card Size ---- */
.testimonial-section .pc-card-highlight.testimonial-card {
    padding: 24px 22px;
    height: auto;
}

.testimonial-section .pc-card-highlight.testimonial-card .quote-bg-icon {
    top: 16px;
    right: 20px;
    font-size: 4rem;
}

.testimonial-section .testimonial-card {
    padding: 22px 20px;
}

/* ---- 30. Hero UI Cards Layout Fix ---- */
.hero-ui-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
    height: auto;
    padding: 0.5rem;
}

.hero-ui-group .ui-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 220px;
}

.hero-ui-group .ui-card-sub-1 {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}

.hero-ui-group .ui-card-sub-2 {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    max-width: 260px;
}

.hero-ui-group .ui-card-sub-3 {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

@media (max-width: 991.98px) {
    .hero-ui-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
        height: auto;
        transform: none;
        padding: 0.5rem;
    }
    .hero-ui-group .ui-card {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 220px;
    }
    .hero-ui-group .ui-card-sub-1 {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    .hero-ui-group .ui-card-sub-2 {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        max-width: 260px;
    }
    .hero-ui-group .ui-card-sub-3 {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }
}

@media (max-width: 575.98px) {
    .hero-ui-group {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, auto);
        gap: 1rem;
    }
    .hero-ui-group .ui-card-sub-1,
    .hero-ui-group .ui-card-sub-2,
    .hero-ui-group .ui-card-sub-3 {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
        max-width: 300px;
    }
}

/* ---- 31. Why Choose Section Height / Advantage Spacing ---- */
#why-us {
    padding-top: 5rem;
    padding-bottom: 6rem;
}

.advantage-section {
    margin-top: 0;
}
