@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- 1. PREMIUM DESIGN SYSTEM VARIABLES --- */
:root {
    --primary-color: #00D09C;      /* Digital Mint Green */
    --primary-hover: #00B083;
    --secondary-color: #0A84FF;    /* Digital Blue */
    --secondary-hover: #0070E0;
    --dark-slate: #0B132B;         /* Deep Slate Navy */
    --card-dark: #1C2541;          /* Secondary Navy */
    --light-bg: #F4F7F6;           /* Minty Off-White */
    --pure-white: #FFFFFF;
    --text-primary: #1C2541;       /* Deep Slate Text */
    --text-secondary: #5C6E7E;     /* Muted Grey Text */
    --border-color: #E2E8F0;       /* Cool Border */
    --shadow-premium: 0 12px 30px rgba(11, 19, 43, 0.05);
    --shadow-hover: 0 20px 40px rgba(11, 19, 43, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

/* --- 2. BASE GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-inter);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 3. TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-outfit);
    font-weight: 700;
    color: var(--dark-slate);
    line-height: 1.25;
}

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

/* --- 4. CONTAINER & UTILITIES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.py-section { padding: 80px 0; }
.py-medium { padding: 40px 0; }

/* --- 5. PREMIUM BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-family: var(--font-outfit);
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #00BD8E);
    color: var(--pure-white);
    box-shadow: 0 4px 15px rgba(0, 208, 156, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 208, 156, 0.35);
}

.btn-secondary {
    background: var(--dark-slate);
    color: var(--pure-white);
    box-shadow: 0 4px 15px rgba(11, 19, 43, 0.15);
}

.btn-secondary:hover {
    background: var(--card-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 19, 43, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* --- 6. STAR HEALTH TWO-TIER PREMIUM HEADER --- */

/* 6.1 Top Bar styling */
.topbar-two-tier {
    background-color: #F1F4F7;
    height: 38px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    font-size: 11.5px;
    color: #4A5568;
    font-weight: 600;
}

.topbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.new-badge {
    background-color: #2F3E46;
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 6.1.1 Premium Continuous Running News Ticker */
.ticker-container {
    width: 380px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Linear gradient mask to fade text nicely at boundaries */
.ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, rgba(241, 244, 247, 0) 0%, rgba(241, 244, 247, 1) 100%);
    pointer-events: none;
    z-index: 2;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-ticker 28s linear infinite;
    color: #1E293B;
    font-weight: 600;
    letter-spacing: 0.3px;
}

@keyframes marquee-ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* 6.1.2 Topbar Dropdown (Hover Activation) */
.topbar-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu-box {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #FFFFFF;
    min-width: 170px;
    box-shadow: 0 10px 30px rgba(11, 19, 43, 0.12);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 0;
    z-index: 2000;
    margin-top: 6px;
    animation: dropdownPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-dropdown.active .dropdown-menu-box {
    display: block;
}

.dropdown-menu-box a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #1C2541;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.dropdown-menu-box a i {
    font-size: 14px;
    color: #718096;
}

.dropdown-menu-box a:hover {
    background-color: #F1F4F7;
    color: #0050D8;
}

.dropdown-menu-box a:hover i {
    color: #0050D8;
}

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

/* 6.2.1 Navigation Schemes Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    background-color: #FFFFFF;
    min-width: 210px;
    box-shadow: 0 12px 35px rgba(11, 19, 43, 0.12);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px 0;
    z-index: 2000;
    margin-top: 12px;
    animation: navDropdownPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Elegant CSS triangle decorator pointing to parent menu */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #FFFFFF transparent;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: #1C2541;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    text-align: left;
}

.nav-dropdown-menu a i {
    font-size: 16px;
    color: #718096;
    transition: var(--transition-smooth);
}

.nav-dropdown-menu a:hover {
    background-color: #F1F4F7;
    color: #0050D8;
}

.nav-dropdown-menu a:hover i {
    color: #0050D8;
}

@keyframes navDropdownPop {
    from {
        opacity: 0;
        transform: translate3d(-50%, 8px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(-50%, 0, 0);
    }
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar-link {
    color: #4A5568;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.topbar-link:hover {
    color: #0050D8;
}

.topbar-link i {
    font-size: 11px;
}

.topbar-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #4A5568;
    cursor: pointer;
    font-size: 13px;
}

.topbar-lang:hover {
    color: #0050D8;
}

/* 6.2 Main Nav Bar styling */
.header-two-tier {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-two-tier.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: transparent;
    box-shadow: 0 10px 40px rgba(11, 19, 43, 0.06);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    transition: height 0.4s ease;
}

.header-two-tier.scrolled .nav-wrapper {
    height: 68px;
}

/* Star Health exact outlined logo typography grid */
.logo-star {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

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

.star-title {
    font-family: var(--font-outfit);
    font-size: 20px;
    font-weight: 700;
    color: #0050D8;
    line-height: 1;
    letter-spacing: 0.5px;
}

.star-subtitle {
    font-size: 9px;
    font-weight: 600;
    color: #5C6E7E;
    margin-top: 2px;
    text-transform: capitalize;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 22px;
}

.nav-link-item {
    font-weight: 600;
    font-size: 14.5px;
    color: #4A5568;
    position: relative;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.nav-link-item i {
    font-size: 11px;
    color: #A0AEC0;
    transition: var(--transition-smooth);
}

.nav-link-item:hover,
.nav-link-item.active {
    color: #153677;
}

.nav-link-item:hover i,
.nav-link-item.active i {
    color: #153677;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark-slate);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-icon {
    display: none;
    align-items: center;
    gap: 4px;
    color: #4A5568;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mobile-nav-icon:hover {
    color: #0050D8;
}

.mobile-only-link {
    display: none;
}

/* 6.3 Action Buttons (Renew / Buy Now) */
.nav-actions-two-tier {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-renew {
    border: 1.5px solid #284486;
    color: #284486;
    padding: 6.5px 18px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
}

.btn-renew:hover {
    background-color: #284486;
    color: #FFFFFF;
}

.btn-buy {
    background-color: #153677;
    color: #FFFFFF;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
}

.btn-buy:hover {
    background-color: #0D224D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 80, 216, 0.25);
}


/* --- 7. DYNAMIC HERO SECTION --- */
.hero {
    background: linear-gradient(180deg, #284486 0%, #153677 100%);
    padding: 80px 0 100px 0;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
}

.hero::before {
    display: none;
}

.hero-content-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    background: #FFC107;
    color: #153677;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 24px;
    gap: 6px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.hero-title span {
    color: #FFC107;
}

.hero-desc {
    font-size: 17px;
    color: #85A5D8;
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 300px;
    margin: 0 auto;
}

.btn-apply-hero {
    background: #F97316;
    color: #FFFFFF;
    border: none;
    padding: 16px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-apply-hero:hover {
    background: #EA580C;
    transform: translateY(-2px);
    color: #FFFFFF;
}

.btn-track-hero {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-track-hero:hover {
    background: rgba(255,255,255,0.1);
    color: #FFFFFF;
}

.hero-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    font-size: 14px;
    color: #85A5D8;
    font-weight: 500;
}

/* --- 8. EMI CALCULATOR --- */
.calculator-card {
    background: var(--pure-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.calc-title {
    font-size: 22px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-title i {
    color: var(--primary-color);
}

.input-group {
    margin-bottom: 28px;
}

.input-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.input-labels span:last-child {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
}

.slider-input {
    width: 100%;
    height: 6px;
    background: #E2E8F0;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 208, 156, 0.4);
    transition: var(--transition-smooth);
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-tabs {
    display: flex;
    background: var(--light-bg);
    padding: 4px;
    border-radius: var(--border-radius-md);
    margin-bottom: 24px;
}

.calc-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.calc-tab.active {
    background: var(--pure-white);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.calc-results {
    background: var(--light-bg);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.result-box {
    text-align: center;
}

.result-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 600;
}

.result-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-slate);
}

/* --- 9. PRODUCTS SECTION --- */
.section-header {
    max-width: 600px;
    margin: 0 auto 56px auto;
}

.section-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 38px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--pure-white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition-smooth);
    transform-origin: bottom;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card:hover::before {
    transform: scaleY(1);
}

.product-icon {
    width: 60px;
    height: 60px;
    background: #E6FDF4;
    color: var(--primary-color);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.product-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.product-rate {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- 10. STATISTICS / WHY CHOOSE US --- */
.stats {
    background: var(--dark-slate);
    color: var(--pure-white);
}

.stats h2 {
    color: var(--pure-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-family: var(--font-outfit);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #A0AEC0;
    font-weight: 500;
}

/* --- 11. PREMIUM CUSTOM TESTIMONIALS --- */
.testimonials {
    background: var(--pure-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--light-bg);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card i.quote {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 32px;
    color: rgba(0, 208, 156, 0.15);
}

.stars {
    color: #FFC107;
    margin-bottom: 16px;
}

.test-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.test-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.test-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.test-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--dark-slate);
}

.test-role {
    font-size: 12px;
    color: var(--text-secondary);
}

/* --- 12. FLOATING ACTION BUTTON --- */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #153677;
    color: #FFFFFF;
    height: 50px;
    padding: 0 24px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(21, 54, 119, 0.3);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.08);
    background: #1e428c;
    color: #FFFFFF;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px rgba(249, 115, 22, 0.6);
    }
    100% {
        box-shadow: 0 0 0 15px rgba(249, 115, 22, 0);
    }
}

/* --- 13. FOOTER STYLES --- */
footer {
    background: var(--dark-slate);
    color: #A0AEC0;
    padding: 80px 0 30px 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    color: var(--pure-white);
    font-size: 26px;
    font-weight: 800;
    font-family: var(--font-outfit);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-desc {
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-title {
    color: var(--pure-white);
    font-family: var(--font-outfit);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
}

.footer-disclaimer {
    border-top: 1px solid #1C2541;
    padding-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #718096;
}

/* --- 14. MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- Mobile Menu Drawer Activation at 992px --- */
    .nav-wrapper, .header-two-tier.scrolled .nav-wrapper {
        height: 64px;
    }
    
    .nav-menu {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        overflow-y: auto;
        background: var(--pure-white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link-item {
        font-size: 16px;
        width: 100%;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: none; /* Override desktop hover on touch devices */
    }

    .nav-dropdown.active .nav-dropdown-menu {
        display: block !important;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-dropdown-menu {
        display: none;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border-color);
        border-radius: 0;
        padding: 5px 0 5px 15px;
        margin-top: 10px;
        width: 100%;
        min-width: 100%;
    }

    .nav-dropdown-menu::before {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }

    .topbar-two-tier {
        display: none;
    }

    .mobile-only-link {
        display: block;
        width: 100%;
        margin-top: 8px;
        padding-top: 16px;
        border-top: 1px solid #E2E8F0;
    }

    .mobile-nav-icon {
        display: flex;
    }

    .header-right-actions {
        gap: 8px;
    }

    .btn-renew, .btn-buy {
        padding: 6px 14px;
        font-size: 13px;
        border-radius: 4px;
    }
}

@media (max-width: 768px) {
    /* Hide Check Status button in sticky header on mobile/tablet to prevent horizontal layout breaks */
    .btn-renew {
        display: none !important;
    }

    .hero-title {
        font-size: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Narrow viewports standard improvements */
    .container {
        padding: 0 16px !important;
    }

    .btn-buy {
        padding: 6px 12px !important;
        font-size: 11.5px !important;
    }
    
    .header-right-actions {
        gap: 6px;
    }
    
    .mobile-nav-icon {
        font-size: 20px !important;
    }

    /* Downscale logo to fit perfectly in 320px screens */
    #header_brand_logo span {
        font-size: 18px !important;
    }
    #header_brand_logo img {
        max-height: 28px !important;
    }
}

/* --- 9. PREMIUM LOAN FORM --- */
.premium-loan-form {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.premium-loan-form-title {
    font-size: 20px;
    color: #153677;
    text-align: center;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 6px;
}

.form-tab {
    font-size: 11px;
    font-weight: 700;
    color: #718096;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.form-tab.active {
    background-color: #153677;
    color: #FFFFFF;
}

@media (max-width: 480px) {
    .form-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 4px;
        margin-bottom: 20px;
        scrollbar-width: none; /* Hide Firefox scrollbar */
        -ms-overflow-style: none; /* Hide IE scrollbar */
    }
    
    .form-tabs::-webkit-scrollbar {
        display: none; /* Hide Chrome/Safari scrollbars */
    }
    
    .form-tab {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 10px;
        border-radius: 6px;
    }
}

.form-input-group {
    margin-bottom: 16px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    color: #1A202C;
}

.form-input:focus {
    border-color: #153677;
}

.form-input-mobile {
    display: flex;
    flex-wrap: nowrap !important;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    width: 100%;
}

.form-input-mobile .prefix {
    background: #FFFFFF;
    padding: 14px 16px;
    border-right: 1px solid #E2E8F0;
    color: #4A5568;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.form-input-mobile input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.form-btn {
    width: 100%;
    background: #F97316;
    color: #FFFFFF;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 8px;
}

.form-btn:hover {
    background: #EA580C;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    font-size: 10px;
    color: #A0AEC0;
    line-height: 1.5;
}

.form-consent input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #153677;
    border-radius: 4px;
    background-color: #FFFFFF;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 1px;
}

.form-consent input[type="checkbox"]:checked {
    background-color: #153677;
}

.form-consent input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.loader-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.loader-overlay.active {
    visibility: visible;
    opacity: 1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E2E8F0;
    border-top: 4px solid #F97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom premium error box for duplicate validation */
.duplicate-error-box {
    display: none;
    flex-direction: column;
    background: #FFF5F5;
    border: 1.5px solid #FEB2B2;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    align-items: stretch;
    gap: 12px;
    color: #C53030;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.05);
    animation: fadeInSlide 0.3s ease-out;
}

.btn-call-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #E53E3E;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
}

.btn-call-now:hover {
    background-color: #C53030;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.35);
    color: #FFFFFF;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-input.input-error {
    border-color: #E53E3E !important;
    background-color: #FFF5F5 !important;
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1) !important;
}

/* Mobile responsiveness adjustments for Premium Loan Form */
@media (max-width: 480px) {
    .premium-loan-form {
        padding: 24px 16px !important;
        border-radius: 16px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .premium-loan-form-title {
        font-size: 18px !important;
        margin-bottom: 14px !important;
    }
    
    .form-tabs {
        margin-bottom: 16px !important;
    }
    
    .form-consent {
        font-size: 9.5px !important;
        gap: 8px !important;
        margin-top: 16px !important;
    }

    .form-input-mobile .prefix {
        padding: 14px 10px !important;
    }

    .form-input-mobile input {
        padding: 14px 10px !important;
    }
}

/* Modal and error animation styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 19, 43, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.modal-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(11, 19, 43, 0.15);
    border: 1px solid #FCA5A5;
    text-align: center;
    transform: scale(1);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseError {
    0% {
        box-shadow: 0 0 0 0px rgba(239, 68, 68, 0.4);
    }
    100% {
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }
}
