/* ============================================
   SapCod - Header V2 Ultra Premium Styles
   Author: SapCod Team
   Version: 2.0
   Description: Complete header redesign with 
   mega menu, theme switcher, and premium effects
   Compatible with: styles.css
   ============================================ */

/* ===== 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);
}

/* Live Status Indicator */
.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;

    position: relative;
}

.logo-icon-v2 {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0066ff 0%, #339966 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.logo-icon-v2::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 15px;
    background: linear-gradient(135deg, #0066ff, #339966);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sapcod-logo-v2:hover .logo-icon-v2::after {
    opacity: 0.3;
}

.sapcod-logo-v2:hover .logo-icon-v2 {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text-v2 {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-name span {
    background: linear-gradient(135deg, #0066ff 0%, #339966 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== Navigation ===== */
.sapcod-nav-v2 {
    display: flex;
    list-style: none;
    gap: 3px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.sapcod-nav-item-v2 {
    position: relative;
}

.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;
    position: relative;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.sapcod-nav-link-v2 i:first-child {
    font-size: 0.9rem;
    opacity: 0.7;
}

.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;
}

/* Mega menu trigger active state */
.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);
}

/* New badge pulse */
.nav-new-badge {
    position: absolute;
    top: -3px;
    right: 5px;
    font-size: 0.55rem;
    background: var(--badge-bg);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ===== Nav Actions ===== */
.sapcod-nav-actions-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Theme Switcher */
.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;
}

.theme-switch-icons .fa-sun {
    color: #ffa500;
    opacity: 0.8;
}

.theme-switch-icons .fa-moon {
    color: #888;
    opacity: 0.5;
}

[data-theme="dark"] .theme-switch-icons .fa-sun {
    opacity: 0.3;
}

[data-theme="dark"] .theme-switch-icons .fa-moon {
    color: #ffd700;
    opacity: 0.9;
}

/* Search Button */
.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);
}

/* CTA Button */
.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 V2 ===== */
/* ============================================ */

.sapcod-mega-v2 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 1050px;
    max-width: 95vw;
    background: var(--mega-bg);
    border-radius: 20px;
    box-shadow: var(--mega-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.sapcod-mega-v2.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
    pointer-events: all;
}

/* Arrow */
.sapcod-mega-v2::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--mega-bg);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 3px;
    box-shadow: -2px -2px 5px rgba(0,0,0,0.04);
}

/* Mega Inner */
.mega-inner-v2 {
    display: flex;
    min-height: 440px;
}

/* Sidebar */
.mega-sidebar-v2 {
    width: 250px;
    min-width: 250px;
    background: rgba(0, 102, 255, 0.02);
    border-right: 1px solid var(--divider-color);
    padding: 25px 0;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .mega-sidebar-v2 {
    background: rgba(0, 102, 255, 0.04);
}

.mega-sidebar-label {
    padding: 0 22px 15px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.mega-tabs-v2 {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mega-tab-v2 {
    padding: 13px 22px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 550;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
    position: relative;
}

.mega-tab-v2 i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.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: var(--mega-tab-active);
    color: #0066ff;
    border-left-color: #0066ff;
    font-weight: 600;
}

.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 22px;
    border-top: 1px solid var(--divider-color);
}

.mega-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: linear-gradient(135deg, #0066ff, #0044cc);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.82rem;
    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: 30px;
    overflow-y: auto;
}

.mega-panel-v2 {
    display: none;
    animation: panelFadeIn 0.35s ease;
}

.mega-panel-v2.active {
    display: block;
}

@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: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--divider-color);
}

.panel-icon-v2 {
    width: 52px;
    height: 52px;
    min-width: 52px;
    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.5rem;
}

.panel-title-v2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.panel-desc-v2 {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Services Grid */
.services-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.service-card-v2 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    background: var(--card-bg);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card-v2:hover {
    background: var(--card-hover);
    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 {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.service-icon-v2 {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--icon-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-color);
    font-size: 1rem;
    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.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.service-info-v2 p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Featured Card */
.featured-card-v2 {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(0,102,255,0.04), rgba(51,153,102,0.04));
    border-radius: 16px;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.featured-icon-v2 {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #0066ff, #339966);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.25);
}

.featured-info-v2 h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.featured-info-v2 p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.featured-link-v2 {
    font-size: 0.8rem;
    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;
}

/* ===== 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 Menu ===== */
.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;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .sapcod-mega-v2 {
        width: 900px;
    }
    
    .mega-sidebar-v2 {
        width: 220px;
        min-width: 220px;
    }
    
    .services-grid-v2 {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 1024px) {
    .sapcod-nav-link-v2 {
        padding: 8px 12px;
        font-size: 0.83rem;
    }
    
    .nav-cta-btn-v2 {
        padding: 10px 18px;
        font-size: 0.82rem;
    }
    
    .top-strip-item {
        font-size: 0.72rem;
    }
}

@media (max-width: 968px) {
    .nav-hamburger-v2 {
        display: flex;
    }
    
    .sapcod-nav-v2 {
        position: fixed;
        top: 0;
        right: -100%;
        width: 340px;
        height: 100vh;
        background: var(--mega-bg);
        flex-direction: column;
        align-items: stretch;
        padding: 90px 20px 30px;
        gap: 4px;
        transition: right 0.4s 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;
    }
    
    .sapcod-nav-v2.active {
        right: 0;
    }
    
    .sapcod-nav-link-v2 {
        padding: 14px 18px;
        font-size: 1rem;
        width: 100%;
    }
    
    .sapcod-mega-v2 {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        pointer-events: all;
        background: transparent;
        margin: 0;
        padding: 0;
    }
    
    .sapcod-mega-v2.active {
        display: block;
        transform: none;
    }
    
    .sapcod-mega-v2::before {
        display: none;
    }
    
    .mega-inner-v2 {
        flex-direction: column;
        min-height: auto;
    }
    
    .mega-sidebar-v2 {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--divider-color);
        padding: 10px 0;
    }
    
    .mega-content-v2 {
        padding: 20px;
    }
    
    .nav-cta-btn-v2 {
        display: none;
    }
    
    .nav-search-btn-v2 {
        display: none;
    }
    
    .sapcod-nav-actions-v2 {
        gap: 10px;
    }
    
    .top-strip-left {
        gap: 10px;
    }
    
    .top-strip-item {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .top-strip-inner {
        flex-direction: column;
        gap: 5px;
        padding: 8px 15px;
    }
    
    .top-strip-left {
        justify-content: center;
        gap: 8px;
    }
    
    .top-strip-right {
        display: none;
    }
    
    .navbar-inner {
        padding: 0 15px;
        gap: 10px;
    }
    
    .sapcod-nav-v2 {
        width: 100%;
    }
    
    .logo-icon-v2 {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .logo-name {
        font-size: 1.3rem;
    }
    
    .logo-tagline {
        font-size: 0.55rem;
    }
    
    .services-grid-v2 {
        grid-template-columns: 1fr;
    }
    
    .panel-header-v2 {
        flex-direction: column;
        gap: 10px;
    }
    
    .featured-card-v2 {
        flex-direction: column;
        text-align: center;
    }
    
    .search-input-v2 {
        padding: 15px 50px 15px 18px;
        font-size: 1rem;
    }
}
/* ============================================ */
/* HEADER LOGO - GUARANTEED VISIBLE */
/* ============================================ */

/* Logo container */
.sapcod-logo-v2 {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 100 !important;
    min-width: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Logo icon box */
.logo-icon-v2 {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    background: linear-gradient(135deg, #0066ff, #339966) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    box-shadow: 0 4px 12px rgba(0,102,255,0.25) !important;
    overflow: hidden !important;
}

/* Logo text container */
.logo-text-v2 {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
}

/* Logo name */
.logo-name {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
    letter-spacing: -0.5px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.logo-name span {
    background: linear-gradient(135deg, #0066ff, #339966) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Tagline */
.logo-tagline {
    font-size: 0.6rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #888 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

/* Dark mode */
[data-theme="dark"] .logo-name {
    color: #e8e8f0 !important;
}

[data-theme="dark"] .logo-tagline {
    color: #999 !important;
}

/* Hover effect */
.sapcod-logo-v2:hover .logo-icon-v2 {
    transform: rotate(-5deg) scale(1.08) !important;
    transition: transform 0.3s ease !important;
}

/* ============================================ */
/* MOBILE RESPONSIVE */
/* ============================================ */

@media screen and (max-width: 1024px) {
    .logo-icon-v2 {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        font-size: 1.2rem !important;
        border-radius: 8px !important;
    }
    
    .logo-name {
        font-size: 1.2rem !important;
    }
}

@media screen and (max-width: 768px) {
    .sapcod-logo-v2 {
        gap: 8px !important;
    }
    
    .logo-icon-v2 {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
    }
    
    .logo-name {
        font-size: 1.1rem !important;
    }
    
    .logo-tagline {
        font-size: 0.55rem !important;
        letter-spacing: 1.5px !important;
    }
}

@media screen and (max-width: 480px) {
    .sapcod-logo-v2 {
        gap: 6px !important;
    }
    
    .logo-icon-v2 {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        font-size: 1rem !important;
        border-radius: 7px !important;
    }
    
    .logo-name {
        font-size: 1rem !important;
    }
    
    .logo-tagline {
        display: none !important;
    }
}

@media screen and (max-width: 360px) {
    .logo-icon-v2 {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        font-size: 0.9rem !important;
        border-radius: 6px !important;
    }
    
    .logo-name {
        font-size: 0.9rem !important;
    }
}