/* 
    BizNinja - Definitive User-Side Master CSS
    Version: 4.0 (Hyper-Stable & Ultra-Responsive)
    Designer: Senior Architect (8+ Years Exp)
    Palette: #10b2cb, #f26923, #01a49f, #0189c5
*/

:root {
    --primary: #0189c5;
    --primary-light: rgba(1, 137, 197, 0.1);
    --secondary: #10b2cb;
    --accent: #f26923;
    --accent-light: rgba(242, 105, 35, 0.1);
    --teal: #01a49f;
    --teal-light: rgba(1, 164, 159, 0.1);
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius-xl: 32px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   1. GLOBAL RESET & BASE
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-body); 
    background-color: var(--white); 
    line-height: 1.7; 
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; }
section { padding: 100px 0; width: 100%; overflow: hidden; position: relative; }
.bg-soft { background-color: var(--bg-light); }

/* ==========================================================================
   2. PRELOADER & LOGO SPINNER
   ========================================================================== */
#preloader { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: #fff; display: flex; justify-content: center; align-items: center; 
    z-index: 9999; transition: opacity 0.4s ease, visibility 0.4s ease; 
}
#preloader.fade-out { opacity: 0; visibility: hidden; }
.logo-spinner { 
    width: 80px; height: 80px; 
    animation: ninja-pulse 1.2s ease-in-out infinite; 
    will-change: transform;
}
@keyframes ninja-pulse { 
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
header { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(15px); 
    height: 90px; 
    display: flex; 
    align-items: center; 
    border-bottom: 1px solid var(--border); 
    position: sticky; top: 0; z-index: 1000; width: 100%;
}
nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 45px; width: auto; }
.brand-name { font-size: 1.8rem; font-family: 'Outfit'; color: var(--primary); font-weight: 800; letter-spacing: -1px; }

.nav-links { display: flex; gap: 35px; align-items: center; }
.desktop-menu { display: flex; }
.nav-links a { font-weight: 600; color: var(--text-dark); font-size: 0.95rem; position: relative; padding: 10px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after { 
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; 
    background: var(--primary); border-radius: 50px; 
}

.mobile-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: #fff;
    z-index: 1001;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 30px 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.mobile-menu.open { left: 0; }
.mobile-menu-content { display: flex; flex-direction: column; gap: 15px; }
.mobile-menu-content a { font-weight: 700; font-size: 1.15rem; color: var(--text-dark); padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-dropdown-header, .mobile-submenu-header {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}
.mobile-dropdown-body, .mobile-submenu-body {
    display: none;
    padding-left: 15px;
    background: #f8fafc;
    border-radius: 8px;
}
.mobile-dropdown-body a, .mobile-submenu-body a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-submenu-header { font-size: 1.05rem; color: var(--text-body); border-bottom: 1px solid rgba(0,0,0,0.05); }

@media (max-width: 1024px) {
    .desktop-menu { display: none; }
    .mobile-toggle { display: block; }
}

/* Dropdown Menu */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}
.dropdown-content a:hover { background-color: var(--bg-light); color: var(--primary); }
.dropdown-content a.active::after { display: none; }

/* Submenu */
.dropdown-submenu { position: relative; }
.submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #fff;
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
}
.dropdown-submenu:hover .submenu-content { display: block; }

@media (max-width: 1024px) {
    .nav-links { 
        display: none; 
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 90px;
        left: 0;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .mobile-toggle { display: block; }
    .dropdown-content, .submenu-content { 
        position: static; 
        display: none; 
        box-shadow: none; 
        padding-left: 20px; 
    }
    .dropdown:hover .dropdown-content, .dropdown-submenu:hover .submenu-content { display: block; }
    .nav-links a { width: 100%; }
}

/* ==========================================================================
   4. LAYOUT GRID SYSTEM (Fixes Disruptions)
   ========================================================================== */
.grid-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; width: 100%; }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; width: 100%; }
.grid-sidebar { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: start; width: 100%; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; width: 100%; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; width: 100%; }

/* ==========================================================================
   5. BANNERS & BREADCRUMBS
   ========================================================================== */
.hero-banner { padding: 140px 0 100px; background: radial-gradient(circle at top right, #f1f9ff 0%, #ffffff 100%); width: 100%; }
.hero-badge {
    background: rgba(242, 105, 35, 0.1); color: var(--accent); padding: 8px 24px; 
    border-radius: 50px; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; 
    letter-spacing: 2px; display: inline-block; margin-bottom: 25px;
}
.hero-title { font-size: 4rem; letter-spacing: -2px; margin-bottom: 30px; line-height: 1.1; }
.hero-subtitle { font-size: 1.3rem; margin-bottom: 50px; max-width: 600px; color: var(--text-muted); }

.breadcrumb-banner { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); 
    padding: 100px 0 80px; 
    color: white; 
    text-align: center;
    width: 100%;
}
.breadcrumb-banner h1 { color: white; font-size: 3.5rem; letter-spacing: -1.5px; margin-bottom: 20px; }
.breadcrumb-trail { display: inline-flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.15); padding: 10px 32px; border-radius: 50px; font-size: 0.85rem; }
.breadcrumb-trail a { color: rgba(255,255,255,0.85); }
.breadcrumb-trail span { color: white; font-weight: 700; }

/* ==========================================================================
   6. CARDS & BUTTONS
   ========================================================================== */
.card { 
    background: white; 
    padding: 48px; 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--border); 
    box-shadow: var(--shadow-sm); 
    transition: 0.4s ease; 
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.card-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 24px; flex-shrink: 0; }

.btn { 
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; 
    padding: 18px 44px; border-radius: 50px; font-weight: 800; font-family: 'Outfit'; 
    border: 2px solid transparent; cursor: pointer; transition: 0.4s; text-decoration: none; font-size: 1.05rem;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 10px 25px rgba(1, 137, 197, 0.3); }
.btn-primary:hover { background: #0178b0; transform: translateY(-3px); box-shadow: 0 15px 35px rgba(1, 137, 197, 0.4); color: #fff; }
.btn-outline { background: white; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-3px); }

/* ==========================================================================
   7. PREMIUM PRICING UI (Redesigned)
   ========================================================================== */
.pricing-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.grid-4 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 24px; 
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 32px;
    border: 1px solid #e2e8f0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-16px);
    box-shadow: 0 40px 80px -12px rgba(15, 23, 42, 0.1);
    border-color: var(--primary-light);
}

.pricing-header {
    margin-bottom: 32px;
    text-align: left;
    min-height: 200px;
    display: block;
}

.plan-name {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -2px;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.actual-price {
    font-size: 0.95rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
    min-height: 20px;
}

.save-badge {
    display: inline-flex;
    padding: 4px 12px;
    background: var(--teal-light);
    color: var(--teal);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.pricing-features { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 40px 0; 
    text-align: left; 
    flex-grow: 1; 
}

.pricing-features li {
    padding: 12px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-body);
    border-bottom: 1px solid #f1f5f9;
    min-height: 54px;
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li i {
    font-size: 0.85rem;
    width: 20px;
}

.pricing-features li .fa-check { color: var(--teal); }
.pricing-features li .fa-times { color: #cbd5e1; }

.pricing-features li.disabled {
    color: #94a3b8;
    opacity: 0.6;
}

.pricing-card .btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Featured / Popular Plan */
.pricing-card.featured {
    border: 2px solid var(--primary);
    background: #ffffff;
    z-index: 10;
}

/* .pricing-card.featured::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 8px;
    background: var(--primary);
    border-radius: 32px 32px 0 0;
} */

.pricing-card.featured .badge {
    position: absolute;
    top: -16px;
    left: 40px;
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(1, 137, 197, 0.2);
}

.pricing-card.featured .btn-primary {
    background: var(--primary);
    border: none;
}

.status-progress { display: flex; justify-content: space-between; position: relative; margin: 60px 0; width: 100%; }
.status-progress::before { content: ''; position: absolute; top: 25px; left: 0; width: 100%; height: 6px; background: var(--border); z-index: 1; border-radius: 10px; }
.progress-fill { position: absolute; top: 25px; left: 0; height: 6px; background: var(--primary); z-index: 2; transition: width 1s ease; border-radius: 10px; }
.status-step { position: relative; z-index: 3; text-align: center; width: 100px; background: transparent; }

/* ==========================================================================
   8. FORMS
   ========================================================================== */
.form-card { background: white; padding: 60px; border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow-lg); width: 100%; }
.form-group { margin-bottom: 32px; width: 100%; }
label { display: block; margin-bottom: 12px; font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
input, select, textarea { width: 100%; padding: 16px 20px; border: 2px solid var(--border); border-radius: 12px; font-size: 1.05rem; transition: 0.3s; background: #fcfdfe; }
input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 5px rgba(1, 137, 197, 0.1); }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; background: var(--bg-light); padding: 25px; border-radius: var(--radius-md); border: 1px solid var(--border); width: 100%; }
.checkbox-item { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; font-size: 0.95rem; }
.checkbox-item input { width: 20px; height: 20px; cursor: pointer; }

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.main-footer { background: #0f172a; color: #fff; padding: 100px 0 40px; border-top: 5px solid var(--primary); width: 100%; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 64px; width: 100%; }
.footer-heading { color: #fff; font-size: 1.1rem; margin-bottom: 32px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-links a { color: #94a3b8; font-size: 0.95rem; }
.footer-links a:hover { color: var(--secondary); padding-left: 8px; }
.footer-bottom { margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; color: #64748b; font-size: 0.9rem; width: 100%; }

/* ==========================================================================
   10. RESPONSIVE DESIGN (Hyper-Stable)
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .grid-hero, .grid-split, .grid-sidebar { grid-template-columns: 1fr; gap: 50px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    section { padding: 80px 0; }
    .hero-banner { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .hero-title { font-size: 2.8rem; }
    .breadcrumb-banner h1 { font-size: 2.5rem; }
    .form-card { padding: 40px 24px; }
    .status-progress { flex-direction: column; gap: 40px; align-items: center; }
    .status-progress::before, .progress-fill { display: none; }
}

/* Utilities */
#gotoTop { position: fixed; bottom: 40px; right: 40px; width: 60px; height: 60px; background: var(--primary); color: white; border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 1000; box-shadow: var(--shadow-md); border: none; font-size: 1.2rem; }
