@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   LIGHT MODE DESIGN SYSTEM — BD VIETNAM
   ============================================================ */
:root {
    /* Brand Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-glow: rgba(37, 99, 235, 0.18);
    --accent: #0891b2;
    --accent-light: #ecfeff;
    /* Backgrounds */
    --bg-page: #f8fafc;
    --bg-white: #ffffff;
    --bg-section: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    /* Text */
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    /* Borders & Shadows */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 24px 56px rgba(15, 23, 42, 0.14);
    /* Card */
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-hover-bg: #f8faff;
    /* Gradients */
    --gradient: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --gradient-soft: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
    --gradient-hero: linear-gradient(160deg, #f0f7ff 0%, #e0f2fe 50%, #f8fafc 100%);
    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;
    --radius-pill: 50rem;
    /* Fonts */
    --font-heading: 'Be Vietnam Pro', sans-serif;
    --font-body: 'Be Vietnam Pro', sans-serif;
    /* Layout */
    --header-height: 72px;
    --header-shrink-height: 60px;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   BASE RESET
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    transition: var(--transition-base);
}

    a:hover {
        color: var(--primary);
    }

main {
    min-height: 60vh;
}

/* ============================================================
   BODY — LIGHT THEME
   ============================================================ */
body.light-theme {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 9px 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

    .top-bar a {
        color: var(--text-muted);
        margin-right: 1.5rem;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .top-bar a:hover {
            color: var(--primary);
        }

.top-social {
    display: flex;
    gap: 0.75rem;
}

    .top-social a {
        margin-right: 0;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--bg-section);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        color: var(--text-muted);
        border: 1px solid var(--border-light);
        transition: var(--transition-base);
    }

        .top-social a:hover {
            background: var(--primary);
            color: #fff!important;
            border-color: var(--primary);
            transform: translateY(-2px);
        }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.main-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-base);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

    .main-header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: var(--border-medium);
        height: var(--header-shrink-height);
        box-shadow: var(--shadow-md);
    }

.navbar {
    width: 100%;
    padding: 0 !important;
}

.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 46px;
    width: auto;
    transition: var(--transition-base);
}

.main-header.scrolled .logo-img {
    height: 38px;
}

.logo-img:hover {
    transform: scale(1.04);
}

/* Nav Links */
.nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-body) !important;
    transition: var(--transition-base);
    padding: 0.5rem 1.1rem !important;
    position: relative;
    letter-spacing: 0.2px;
    white-space: nowrap; /* Prevent text wrap in nav items */
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 1.1rem;
        right: 1.1rem;
        height: 2px;
        background: var(--gradient);
        transform: scaleX(0);
        transition: transform 0.3s ease;
        transform-origin: right;
        border-radius: 2px;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        transform: scaleX(1);
        transform-origin: left;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary) !important;
    }

/* Dropdown */
.glass-dropdown {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    margin-top: 8px !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition-base);
    display: block;
    min-width: 230px;
}

.nav-item.dropdown:hover .glass-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.glass-dropdown .dropdown-item {
    color: var(--text-body) !important;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-base);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .glass-dropdown .dropdown-item:hover {
        background: var(--primary-light) !important;
        color: var(--primary) !important;
        transform: translateX(3px);
    }

/* Hamburger Toggler */
.navbar-toggler {
    width: 40px;
    height: 40px;
    position: relative;
    transition: .5s ease-in-out;
    cursor: pointer;
    padding: 0;
    border: none !important;
    background: transparent;
}

    .navbar-toggler span {
        display: block;
        position: absolute;
        height: 2px;
        width: 24px;
        background: var(--text-dark);
        border-radius: 9px;
        opacity: 1;
        left: 8px;
        transition: .25s ease-in-out;
    }

        .navbar-toggler span:nth-child(1) {
            top: 12px;
        }

        .navbar-toggler span:nth-child(2) {
            top: 19px;
        }

        .navbar-toggler span:nth-child(3) {
            top: 26px;
        }

    .navbar-toggler:not(.collapsed) span:nth-child(1) {
        top: 19px;
        transform: rotate(135deg);
    }

    .navbar-toggler:not(.collapsed) span:nth-child(2) {
        opacity: 0;
        left: -40px;
    }

    .navbar-toggler:not(.collapsed) span:nth-child(3) {
        top: 19px;
        transform: rotate(-135deg);
    }

/* Header CTA */
.header-cta {
    margin-left: 1.25rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gradient {
    background: var(--gradient);
    color: #fff !important;
    border: none;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    box-shadow: 0 4px 14px var(--primary-glow);
    letter-spacing: 0.3px;
}

    .btn-gradient:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 24px var(--primary-glow);
        filter: brightness(1.08);
        color: #fff !important;
    }

.btn-outline-primary {
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    background: transparent;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

    .btn-outline-primary:hover {
        background: var(--primary) !important;
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px var(--primary-glow);
    }

.btn-light-outline {
    border: 2px solid var(--border-medium);
    color: var(--text-body) !important;
    background: var(--bg-white);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

    .btn-light-outline:hover {
        border-color: var(--primary);
        color: var(--primary) !important;
        background: var(--primary-light);
        transform: translateY(-1px);
    }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 480px;
        height: 480px;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        bottom: -60px;
        left: -60px;
        width: 360px;
        height: 360px;
        background: radial-gradient(circle, rgba(8, 145, 178, 0.07) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-size: 0.78rem;
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.75rem;
    letter-spacing: -1.5px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 660px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 3.5rem;
    letter-spacing: -0.75px;
    color: var(--text-dark);
}

.bg-section {
    background-color: var(--bg-section) !important;
}

.bg-dark {
    background-color: var(--bg-section) !important;
}

/* ============================================================
   CARDS
   ============================================================ */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

    .glass-card:hover {
        background: var(--card-hover-bg);
        border-color: rgba(37, 99, 235, 0.25);
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }

    .glass-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--gradient);
        opacity: 0;
        transition: opacity 0.35s ease;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .glass-card:hover::before {
        opacity: 1;
    }

/* Card Icon */
.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    font-size: 1.6rem;
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
    transition: var(--transition-base);
}

.glass-card:hover .card-icon {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    transform: scale(1.08);
}

/* ============================================================
   POSTS & CONTENT
   ============================================================ */
.post-card {
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: var(--shadow-sm);
}

    .post-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: rgba(37, 99, 235, 0.2);
    }

    .post-card h5 {
        color: var(--text-dark);
        transition: color 0.3s;
        font-weight: 700;
    }

    .post-card:hover h5 {
        color: var(--primary);
    }

.post-content,
.page-content {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.85;
}

    .post-content p,
    .page-content p {
        color: var(--text-body);
        margin-bottom: 1.5rem;
    }

/* ============================================================
   HOSTING PLANS SECTION
   ============================================================ */
.hosting-plans-section {
    background: var(--bg-section);
}

    .hosting-plans-section .glass-card {
        border-top: 4px solid transparent;
    }

        .hosting-plans-section .glass-card:hover {
            border-top-color: var(--primary);
        }

/* ============================================================
   DOMAIN SEARCH
   ============================================================ */
.domain-search-section {
    background: var(--bg-white);
}

    .domain-search-section .glass-card {
        background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
        border-color: rgba(37, 99, 235, 0.12);
    }

    .domain-search-section input.form-control {
        background: #fff !important;
        border: 1.5px solid var(--border-medium) !important;
        color: var(--text-dark) !important;
        border-radius: 0.5rem 0 0 0.5rem;
    }

        .domain-search-section input.form-control::placeholder {
            color: var(--text-muted);
        }

        .domain-search-section input.form-control:focus {
            border-color: var(--primary) !important;
            box-shadow: 0 0 0 3px var(--primary-glow) !important;
        }

/* ============================================================
   PARTNERS / CLIENTS SECTION
   ============================================================ */
.partners-section {
    background: var(--bg-white);
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section {
    background: var(--bg-section);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: var(--bg-white);
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */
.form-control,
.form-select {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

    .form-control:focus,
    .form-select:focus {
        background-color: var(--bg-white);
        border-color: var(--primary);
        box-shadow: 0 0 0 0.25rem var(--primary-glow);
        color: var(--text-dark);
    }

    .form-control::placeholder {
        color: var(--text-muted);
    }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.top-bar {
    background-color: var(--bg-section);
    color: var(--text-dark);
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

    .top-bar a {
        color: var(--text-body);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .top-bar a:hover {
            color: var(--primary);
        }

.top-social a {
    margin-left: 1rem;
}

.top-info a {
    margin-right: 1.5rem;
}

.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

    .main-header.scrolled {
        background-color: var(--bg-white);
        box-shadow: var(--shadow-sm);
        padding: 0.25rem 0;
    }

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem !important;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--primary) !important;
    }

.glass-dropdown {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    min-width: 220px;
}

    .glass-dropdown .dropdown-item {
        color: var(--text-body);
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }

        .glass-dropdown .dropdown-item:hover {
            background-color: var(--primary-light);
            color: var(--primary);
        }

/* ============================================================
   CARDS & CONTAINERS
   ============================================================ */
.glass-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

    .glass-card:hover {
        box-shadow: var(--shadow-md);
        border-color: var(--border-medium);
    }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
    color: var(--text-body);
}

.footer-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer-links a:hover {
        color: var(--primary);
    }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .footer-social a:hover {
        background-color: var(--primary);
        color: #ffffff;
        transform: translateY(-3px);
    }

.footer-contact li {
    margin-bottom: 1rem;
    color: var(--text-body);
}

.footer-contact i {
    color: var(--primary);
}



/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
    border-radius: 4px;
}

    .skeleton-text.title {
        height: 22px;
        width: 80%;
    }

    .skeleton-text.short {
        width: 55%;
    }

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 10;
}

    .footer p,
    .footer li,
    .footer span {
        color: #94a3b8;
    }

.footer-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    padding: 0;
}

    .footer-links li {
        margin-bottom: 0.6rem;
    }

    .footer-links a {
        color: #94a3b8;
        font-size: 0.9rem;
        transition: all 0.3s;
        display: inline-block;
    }

        .footer-links a:hover {
            color: var(--primary);
            padding-left: 6px;
        }

.footer-contact li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #94a3b8;
}

    .footer-contact li i {
        color: var(--primary);
        margin-top: 3px;
    }

.footer-social {
    display: flex;
    gap: 10px;
}

    .footer-social a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.04);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        font-size: 0.85rem;
        transition: var(--transition-base);
    }

        .footer-social a:hover {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
            transform: translateY(-3px);
        }

.footer-logo-img {
    height: 44px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 1rem;
}

    .footer-bottom p,
    .footer-bottom a {
        color: #64748b;
        font-size: 0.85rem;
    }

        .footer-bottom a:hover {
            color: var(--primary);
        }

/* ============================================================
   HOTLINE FLOATING
   ============================================================ */
.hotline-wrapper {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hotline-item {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

    .hotline-item:hover {
        transform: scale(1.12) rotate(5deg);
        color: #fff;
    }

    .hotline-item.phone {
        background: linear-gradient(45deg, #22c55e, #16a34a);
    }

    .hotline-item.zalo {
        background: linear-gradient(45deg, #0068ff, #0056d2);
    }

    .hotline-item.messenger {
        background: linear-gradient(45deg, #0084ff, #0072e5);
    }

/* ============================================================
   PRICING MODULE
   ============================================================ */
.pricing-tabs-wrapper {
    background: var(--bg-section);
    padding: 6px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-tabs .nav-link {
    border-radius: var(--radius-pill) !important;
    padding: 9px 22px !important;
    color: var(--text-muted) !important;
    font-weight: 600;
    border: none !important;
    background: transparent !important;
    font-size: 0.9rem;
}

    .pricing-tabs .nav-link.active {
        background: var(--gradient) !important;
        color: #fff !important;
        box-shadow: 0 4px 12px var(--primary-glow);
    }

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

    .pricing-card.popular {
        border-color: var(--primary);
        transform: scale(1.04);
        z-index: 10;
        box-shadow: var(--shadow-xl);
    }

.popular-badge {
    position: absolute;
    top: 20px;
    right: -34px;
    background: var(--gradient);
    color: #fff;
    padding: 5px 38px;
    font-size: 0.72rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.card-header-pricing .plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.card-header-pricing .price-box {
    margin: 1.25rem 0;
}

.card-header-pricing .price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
}

.card-header-pricing .currency {
    font-size: 1rem;
    vertical-align: top;
    margin-top: 10px;
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
}

.card-header-pricing .cycle {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.card-header-pricing .price-contact {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.feature-list {
    margin: 1.75rem 0;
}

.feature-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.92rem;
    color: var(--text-body);
}

    .feature-item .feature-name {
        flex: 1;
        min-width: 0;
        padding-right: 12px;
    }

    .feature-item:last-child {
        border-bottom: none;
    }

    .feature-item.disabled {
        opacity: 0.38;
    }

.feature-value {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .navbar-collapse,
    .navbar-collapse.collapsing {
        position: absolute !important;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: 0 20px 40px rgba(15,23,42,0.1);
        padding: 1rem 0 2rem; /* Remove horizontal padding so slide is 100% of screen */
        z-index: 1050;
        height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden; /* Important for sliding panels */
        border-top: 1px solid var(--border-light);
        border-bottom: 3px solid var(--primary);
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transform: translateY(-10px);
    }

        .navbar-collapse.collapsing {
            height: auto !important;
            opacity: 0;
        }

        .navbar-collapse.show {
            opacity: 1;
            transform: translateY(0);
        }

    .navbar-nav {
        transition: transform 0.3s ease;
        width: 100%;
    }

    .navbar-collapse.submenu-opened .navbar-nav,
    .navbar-collapse.submenu-opened .header-cta {
        transform: translateX(-100%);
    }

    .header-cta {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid var(--border-light);
        position: static !important; /* Ensure dropdowns are relative to navbar-collapse */
        margin: 0 1.5rem; /* Add horizontal margin here to match previous collapse padding */
    }

    .navbar-nav .nav-link {
        padding: 1rem 0 !important;
        font-size: 1.05rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        white-space: normal; /* Override nowrap for mobile stacked menu */
    }

        .navbar-nav .nav-link::after {
            display: none; /* Hide the underline animation on mobile */
        }

    .pricing-card.popular {
        transform: scale(1);
        margin: 16px 0;
    }

    .glass-dropdown {
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        transform: none !important; /* Disable Popper's inline transform */
        width: 100%;
        height: auto !important;
        min-height: calc(100vh - 70px) !important;
        padding: 0 1.5rem 2rem 1.5rem !important;
        background: var(--bg-white);
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: none !important; /* Hide until active */
        opacity: 1 !important;
        visibility: visible !important;
        overflow-y: auto;
        z-index: 100;
    }

    .nav-item.is-active .glass-dropdown {
        display: block !important;
    }

    .glass-dropdown .dropdown-item {
        padding: 1rem 0;
        border-radius: 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 1.05rem;
    }

        .glass-dropdown .dropdown-item:last-child {
            border-bottom: none;
        }

    .nav-item.dropdown:hover .glass-dropdown:not(.is-active) {
        /* Disable hover slide on mobile */
    }

    .header-cta {
        margin-left: 0;
        margin-top: 1.5rem;
        display: block !important;
        padding: 0 1.5rem;
    }

        .header-cta .btn {
            width: 100%;
            padding: 0.85rem;
            font-size: 1rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }

    .navbar-toggler {
        z-index: 1060;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 90px 0 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .footer {
        padding: 60px 0 30px;
    }
}

/* ============================================================
   TABLET — iPad Pro 2018 & Tablet Responsive
   iPad Pro 11" portrait: ~834px  | landscape: ~1194px
   iPad Pro 12.9" portrait: ~1024px | landscape: ~1366px
   ============================================================ */

/* --- Show top-bar on all tablets (md+, overrides Bootstrap d-none) --- */
@media (min-width: 768px) {
    .top-bar {
        display: block !important;
    }
}

/* ============================================================
   PORTRAIT TABLET — 768px to 991px
   (iPad Pro 11" portrait, standard tablets)
   ============================================================ */
@media (min-width: 768px) and (max-width: 991px) {

    /* === Top bar: compact === */
    .top-bar {
        padding: 6px 0;
        font-size: 0.82rem;
    }

    /* === Hamburger nav: cap height, don't use full-screen === */
    .navbar-collapse,
    .navbar-collapse.collapsing {
        max-height: 78vh !important;
        height: auto !important;
        overflow-y: auto;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    /* Show CTA button inside collapsed menu on tablet */
    .header-cta {
        display: block !important;
        padding: 0 1.5rem 1rem;
    }

    .header-cta .btn {
        width: auto !important;
        display: inline-flex !important;
        padding: 0.7rem 2rem !important;
        font-size: 0.95rem !important;
        justify-content: center;
    }

    /* === Hero section === */
    .hero-section {
        padding: 95px 0 65px;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 2.9rem);
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    /* === Section titles === */
    .section-title {
        font-size: clamp(1.5rem, 3.2vw, 2.1rem);
        margin-bottom: 2.5rem;
    }

    /* === Cards === */
    .glass-card {
        padding: 1.75rem;
    }

    /* === Pricing: no scale on portrait tablet to avoid overflow === */
    .pricing-card.popular {
        transform: scale(1) !important;
        margin: 0.75rem 0;
    }

    /* === News section header: stack title + button === */
    .news-section .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    /* === Partners: 3 per row on tablet (was 2) === */
    .partners-section .col-6 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        width: 33.333%;
    }

    /* === CTA section === */
    .cta-section .glass-card {
        padding: 3.5rem 1.75rem !important;
    }

    .cta-section .glass-card h2 {
        font-size: 1.7rem;
    }

    .cta-section .glass-card p {
        font-size: 0.95rem;
    }

    /* === Footer === */
    .footer {
        padding: 56px 0 32px;
    }

    .footer-logo-img {
        height: 38px;
    }

    /* === Hotline FAB: slightly smaller on portrait tablet === */
    .hotline-wrapper {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .hotline-item {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    /* === Pricing tabs: scrollable on tablet === */
    .pricing-tabs-wrapper {
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* === Domain search: stack on portrait tablet === */
    .domain-search-section .input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .domain-search-section .input-group .form-control {
        border-radius: var(--radius-sm) !important;
        border: 1.5px solid var(--border-medium) !important;
    }

    .domain-search-section .input-group .btn {
        border-radius: var(--radius-sm) !important;
        width: 100%;
        padding: 0.75rem;
    }

    /* === Post sidebar: show on tablet (col-md-4 via HTML) === */
    .post-sidebar-sticky {
        position: sticky;
        top: 90px;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
}

/* ============================================================
   LANDSCAPE TABLET — 992px to 1199px
   (iPad Pro 11" landscape ~1194px, iPad Pro 12.9" portrait ~1024px)
   ============================================================ */
@media (min-width: 992px) and (max-width: 1199px) {

    /* === Nav: cần fit tất cả items trong container 960-1140px === */
    .nav-link {
        padding: 0.38rem 0.52rem !important;
        font-size: 0.83rem;
        letter-spacing: 0;
        white-space: nowrap;
    }

    /* Underline animation: căn theo padding mới */
    .nav-link::after {
        left: 0.52rem;
        right: 0.52rem;
    }

    /* Logo: giảm kích thước để tiết kiệm chỗ */
    .logo-img {
        height: 40px;
    }

    .main-header.scrolled .logo-img {
        height: 34px;
    }

    /* CTA button: ẩn ở 992-1080px (quá hẹp), hiện ở 1081-1199px */
    .header-cta {
        display: none !important;
    }

    /* === Hero === */
    .hero-section {
        padding: 110px 0 72px;
    }

    /* === Cards === */
    .glass-card {
        padding: 1.875rem;
    }

    /* === Pricing: subtle scale on landscape tablet === */
    .pricing-card.popular {
        transform: scale(1.02);
    }

    /* === Footer === */
    .footer {
        padding: 65px 0 36px;
    }

    /* === Hotline === */
    .hotline-wrapper {
        bottom: 24px;
        right: 24px;
    }

    /* === Section title === */
    .section-title {
        font-size: clamp(1.6rem, 3vw, 2.4rem);
    }
}

/* === CTA button: hiện lại ở 1101-1199px khi đủ chỗ === */
@media (min-width: 1101px) and (max-width: 1199px) {
    .header-cta {
        display: block !important;
        margin-left: 0.5rem;
    }

    .header-cta .btn {
        padding: 0.5rem 1.1rem;
        font-size: 0.83rem;
    }

    /* Thêm tý nữa padding cho nav-link khi đủ chỗ */
    .nav-link {
        padding: 0.42rem 0.62rem !important;
    }
}

/* ============================================================
   TOUCH DEVICE IMPROVEMENTS (all tablets)
   ============================================================ */
@media (pointer: coarse) and (min-width: 768px) {

    /* Larger tap targets for nav items */
    .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .glass-dropdown .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Disable hover animations on touch (no hover state) */
    .glass-card:hover {
        transform: none;
    }

    .post-card:hover {
        transform: none;
    }

    /* Hotline: larger tap targets on touch */
    .hotline-item {
        min-width: 44px;
        min-height: 44px;
    }

    /* Footer links: easier to tap */
    .footer-links a {
        padding: 4px 0;
        display: inline-block;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
    }
}
