/* ============================================
   SapCod - Header V2 Ultra Premium Styles
   Complete Working Version with Centered Mega Menu
   ============================================ */

/* ===== CSS Variables for Header ===== */
:root {
    --header-height: 75px;
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-border: rgba(0, 102, 255, 0.08);
    --header-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --topbar-bg: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    --nav-link-color: #1a1a2e;
    --nav-link-hover: #0066ff;
    --nav-link-bg-hover: rgba(0, 102, 255, 0.06);
    --mega-bg: #ffffff;
    --mega-shadow: 0 30px 80px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 102, 255, 0.08);
    --mega-tab-active: rgba(0, 102, 255, 0.08);
    --card-bg: #f8f9ff;
    --card-hover: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --text-muted: #888;
    --icon-bg: rgba(0, 102, 255, 0.08);
    --icon-color: #0066ff;
    --badge-bg: linear-gradient(135deg, #ff4757, #ff6b81);
    --divider-color: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --header-bg: rgba(10, 10, 26, 0.95);
    --header-border: rgba(0, 102, 255, 0.15);
    --header-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --nav-link-color: #e0e0e0;
    --nav-link-hover: #4d94ff;
    --nav-link-bg-hover: rgba(0, 102, 255, 0.12);
    --mega-bg: #141428;
    --mega-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 102, 255, 0.15);
    --mega-tab-active: rgba(0, 102, 255, 0.15);
    --card-bg: #1a1a30;
    --card-hover: #1e1e38;
    --text-primary: #e8e8f0;
    --text-secondary: #b0b0c0;
    --text-muted: #777;
    --icon-bg: rgba(0, 102, 255, 0.12);
    --icon-color: #4d94ff;
    --divider-color: rgba(255, 255, 255, 0.06);
}

/* ===== Main Header Container ===== */
.sapcod-header-v2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Top Info Strip ===== */
.sapcod-top-strip {
    background: var(--topbar-bg);
    color: #fff;
    font-size: 0.78rem;
    padding: 0;
    position: relative;
    z-index: 10001;
    transition: all 0.35s ease;
    overflow: hidden;
}

.sapcod-top-strip::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 20%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.3) 80%, transparent 100%);
}

.top-strip-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 9px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.top-strip-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-strip-item { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 500; letter-spacing: 0.2px; }
.top-strip-item i { font-size: 0.75rem; opacity: 0.85; }
.top-strip-item a { color: #fff; text-decoration: none; transition: all 0.2s ease; }
.top-strip-item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.top-strip-right { display: flex; align-items: center; gap: 12px; }
.top-strip-social { display: flex; gap: 4px; }
.top-strip-social a {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; font-size: 0.8rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.top-strip-social a:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); }

.status-indicator { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 500; }
.status-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #00ff88;
    animation: statusPulse 2s infinite; box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
    50% { opacity: 0.5; box-shadow: 0 0 20px rgba(0, 255, 136, 0.8); }
}

/* ===== Main Navbar ===== */
.sapcod-navbar-v2 {
    background: var(--header-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid var(--header-border);
    transition: all 0.35s ease;
}

.sapcod-header-v2.scrolled .sapcod-navbar-v2 { box-shadow: var(--header-shadow); }
.sapcod-header-v2.scrolled .sapcod-top-strip { max-height: 0; padding: 0; opacity: 0; overflow: hidden; }

.navbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}

/* ===== Logo ===== */
.sapcod-logo-v2 {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}

/* ===== Navigation ===== */
.sapcod-nav-v2 { display: flex; list-style: none; gap: 3px; align-items: center; margin: 0; padding: 0; }

.sapcod-nav-link-v2 {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 15px; border-radius: 10px;
    text-decoration: none; color: var(--nav-link-color);
    font-weight: 550; font-size: 0.9rem;
    transition: all 0.25s ease; white-space: nowrap;
}
.sapcod-nav-link-v2 .fa-chevron-down { font-size: 0.6rem; transition: transform 0.3s ease; opacity: 0.5; }
.sapcod-nav-link-v2:hover { color: var(--nav-link-hover); background: var(--nav-link-bg-hover); }
.sapcod-nav-link-v2.active { color: #0066ff; background: rgba(0, 102, 255, 0.08); font-weight: 600; }
.sapcod-mega-trigger-v2.active .sapcod-nav-link-v2 { color: #0066ff; background: rgba(0, 102, 255, 0.08); }
.sapcod-mega-trigger-v2.active .fa-chevron-down { transform: rotate(180deg); }

/* ===== Nav Actions ===== */
.sapcod-nav-actions-v2 { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.theme-switch-v2 {
    position: relative; width: 50px; height: 28px;
    background: #e8e8f0; border-radius: 28px;
    cursor: pointer; transition: all 0.4s ease;
    border: 2px solid transparent; flex-shrink: 0;
}
[data-theme="dark"] .theme-switch-v2 { background: #2a2a45; }
.theme-switch-v2:hover { border-color: #0066ff; }
.theme-switch-track {
    position: absolute; top: 2px; left: 2px;
    width: 22px; height: 22px; background: #fff;
    border-radius: 50%; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; color: #ffa500; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
[data-theme="dark"] .theme-switch-track { left: calc(100% - 24px); color: #ffd700; background: #1a1a30; }
.theme-switch-icons {
    position: absolute; inset: 0; display: flex;
    align-items: center; justify-content: space-between;
    padding: 0 7px; font-size: 0.7rem; pointer-events: none;
}

.nav-search-btn-v2 {
    width: 40px; height: 40px; border-radius: 10px;
    border: 1.5px solid var(--divider-color); background: transparent;
    color: var(--nav-link-color); cursor: pointer; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; flex-shrink: 0;
}
.nav-search-btn-v2:hover { border-color: #0066ff; color: #0066ff; background: rgba(0, 102, 255, 0.05); }

.nav-cta-btn-v2 {
    padding: 11px 24px;
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    color: #fff; border-radius: 12px; text-decoration: none;
    font-weight: 600; font-size: 0.88rem; letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.25);
    position: relative; overflow: hidden; white-space: nowrap; flex-shrink: 0;
}
.nav-cta-btn-v2::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.nav-cta-btn-v2:hover::before { left: 100%; }
.nav-cta-btn-v2:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4); }
.nav-cta-btn-v2 i { transition: transform 0.3s ease; }
.nav-cta-btn-v2:hover i { transform: translateX(4px); }

/* Hamburger */
.nav-hamburger-v2 {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px; background: none; border: none; z-index: 10001;
}
.nav-hamburger-v2 span {
    width: 26px; height: 2.5px; background: var(--nav-link-color);
    border-radius: 3px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-hamburger-v2.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger-v2.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger-v2.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================ */
/* ===== MEGA MENU - PERFECTLY CENTERED ===== */
/* ============================================ */

/* Mega menu - FIXED position, centered on screen */
.sapcod-mega-v2 {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 1000px;
    max-width: 94vw;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 102, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

[data-theme="dark"] .sapcod-mega-v2 {
    background: #141428;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 102, 255, 0.15);
}

.sapcod-mega-v2.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

/* Arrow */
.sapcod-mega-v2::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: -2px -2px 5px rgba(0,0,0,0.04);
}

[data-theme="dark"] .sapcod-mega-v2::before {
    background: #141428;
}

/* Mega Inner */
.mega-inner-v2 {
    display: flex;
    min-height: 380px;
}

/* Sidebar */
.mega-sidebar-v2 {
    width: 230px;
    min-width: 230px;
    background: rgba(0, 102, 255, 0.02);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .mega-sidebar-v2 {
    background: rgba(0, 102, 255, 0.04);
    border-right-color: rgba(255, 255, 255, 0.06);
}

.mega-sidebar-label {
    padding: 0 20px 12px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #888;
    font-weight: 700;
}

[data-theme="dark"] .mega-sidebar-label { color: #777; }

.mega-tabs-v2 { list-style: none; padding: 0; margin: 0; flex: 1; }

.mega-tab-v2 {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 550;
    color: #555;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
}

[data-theme="dark"] .mega-tab-v2 { color: #b0b0c0; }

.mega-tab-v2 i { width: 20px; text-align: center; font-size: 0.9rem; }

.mega-tab-v2:hover {
    background: rgba(0, 102, 255, 0.04);
    color: #0066ff;
    border-left-color: rgba(0, 102, 255, 0.3);
}

.mega-tab-v2.active {
    background: rgba(0, 102, 255, 0.08);
    color: #0066ff;
    border-left-color: #0066ff;
    font-weight: 600;
}

[data-theme="dark"] .mega-tab-v2.active {
    background: rgba(0, 102, 255, 0.15);
}

.tab-badge-v2 {
    margin-left: auto;
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tab-badge-v2.hot { background: linear-gradient(135deg, #ff4757, #ff6b81); color: #fff; }
.tab-badge-v2.new { background: linear-gradient(135deg, #0066ff, #339966); color: #fff; }
.tab-badge-v2.ai { background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff; }

/* Sidebar Footer */
.mega-sidebar-footer-v2 {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .mega-sidebar-footer-v2 { border-top-color: rgba(255, 255, 255, 0.06); }

.mega-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, #0066ff, #0044cc);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mega-footer-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.35);
}

/* Content Area */
.mega-content-v2 {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.mega-panel-v2 { display: none; }
.mega-panel-v2.active { display: block; animation: panelFadeIn 0.3s ease; }

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Panel Header */
.panel-header-v2 {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .panel-header-v2 { border-bottom-color: rgba(255, 255, 255, 0.06); }

.panel-icon-v2 {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(51,153,102,0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.panel-title-v2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

[data-theme="dark"] .panel-title-v2 { color: #e8e8f0; }

.panel-desc-v2 {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
}

[data-theme="dark"] .panel-desc-v2 { color: #777; }

/* Services Grid */
.services-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.service-card-v2 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    background: #f8f9ff;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

[data-theme="dark"] .service-card-v2 { background: #1a1a30; }

.service-card-v2:hover {
    background: #ffffff;
    border-color: rgba(0, 102, 255, 0.2);
    transform: translateX(3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .service-card-v2:hover {
    background: #1e1e38;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.service-icon-v2 {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(0, 102, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066ff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.service-card-v2:hover .service-icon-v2 {
    background: linear-gradient(135deg, #0066ff, #0052cc);
    color: #fff;
}

.service-info-v2 h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
}

[data-theme="dark"] .service-info-v2 h4 { color: #e8e8f0; }

.service-info-v2 p {
    font-size: 0.72rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

[data-theme="dark"] .service-info-v2 p { color: #777; }

/* Featured Card */
.featured-card-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(0,102,255,0.04), rgba(51,153,102,0.04));
    border-radius: 14px;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.featured-icon-v2 {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #0066ff, #339966);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.25);
}

.featured-info-v2 h4 { font-size: 0.85rem; font-weight: 600; color: #1a1a2e; margin-bottom: 3px; }
[data-theme="dark"] .featured-info-v2 h4 { color: #e8e8f0; }
.featured-info-v2 p { font-size: 0.75rem; color: #888; margin-bottom: 4px; }
[data-theme="dark"] .featured-info-v2 p { color: #777; }

.featured-link-v2 {
    font-size: 0.78rem;
    color: #0066ff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.featured-link-v2:hover { gap: 10px; }

/* ===== Mega Overlay ===== */
.mega-overlay-v2 {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

[data-theme="dark"] .mega-overlay-v2 { background: rgba(0, 0, 0, 0.7); }

.mega-overlay-v2.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay-v2 {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay-v2.active { opacity: 1; visibility: visible; }

/* Search Overlay */
.search-overlay-v2 {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.search-overlay-v2.active { opacity: 1; visibility: visible; }

.search-close-v2 {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close-v2:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.search-form-v2 { width: 90%; max-width: 600px; position: relative; }

.search-input-v2 {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input-v2:focus {
    border-color: #0066ff;
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
}

.search-input-v2::placeholder { color: rgba(255,255,255,0.4); }

.search-submit-v2 {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0066ff, #0044cc);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit-v2:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4); }

/* ============================================ */
/* ===== MOBILE RESPONSIVE ===== */
/* ============================================ */

@media (max-width: 968px) {
    .nav-hamburger-v2 { display: flex; }
    
    .sapcod-nav-v2 {
        position: fixed;
        top: 50px;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 0 30px;
        gap: 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        overflow-y: auto;
    }
    
    [data-theme="dark"] .sapcod-nav-v2 { background: #1a1a30; }
    .sapcod-nav-v2.active { right: 0; }
    
    .sapcod-nav-link-v2 { padding: 15px 22px !important; width: 100%; justify-content: space-between; font-size: 0.95rem !important; border-radius: 0 !important; }
    
    /* Mobile mega menu */
    .sapcod-mega-v2 {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
        display: none;
        background: #f8fafc !important;
        border-top: 1px solid #e2e8f0;
        border-bottom: 2px solid #e2e8f0;
        margin: 0 !important;
    }
    
    [data-theme="dark"] .sapcod-mega-v2 { background: #0f0f23 !important; border-color: #2a2a4a; }
    .sapcod-mega-v2.active { display: block !important; }
    .sapcod-mega-v2::before { display: none !important; }
    
    .mega-inner-v2 { flex-direction: column; min-height: auto; }
    .mega-sidebar-v2 { width: 100% !important; min-width: 100% !important; border-right: none !important; padding: 8px 0 !important; }
    .mega-content-v2 { padding: 14px 18px !important; }
    .services-grid-v2 { grid-template-columns: 1fr 1fr; gap: 6px; }
    .mega-overlay-v2 { display: none !important; }
}

@media (max-width: 600px) {
    .sapcod-nav-v2 { width: 100%; max-width: 100%; }
    .services-grid-v2 { grid-template-columns: 1fr; }
    .navbar-inner { padding: 0 15px; gap: 10px; }
}
/* ===== Client Login Button ===== */
.nav-client-btn {
    padding: 9px 16px;
    background: transparent;
    color: var(--nav-link-color);
    border: 2px solid var(--border, #e2e8f0);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-client-btn:hover {
    background: rgba(0, 102, 255, 0.06);
    border-color: #0066ff;
    color: #0066ff;
    transform: translateY(-1px);
}

[data-theme="dark"] .nav-client-btn {
    border-color: #2a2a4a;
    color: #94a3b8;
}

[data-theme="dark"] .nav-client-btn:hover {
    border-color: #0066ff;
    color: #60a5fa;
    background: rgba(0, 102, 255, 0.1);
}

/* Mobile: Hide client button and show in menu instead */
@media (max-width: 568px) {
    .nav-client-btn {
        display: none;
    }
    .nav-cta-btn-v2 {
        display: none;
    }
}

