/* Top Utility / Trust Bar */
.top-trust-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.8125rem;
    line-height: 1.5;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1001;
}

.top-trust-container {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.top-trust-left,
.top-trust-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.top-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.top-trust-item:hover {
    color: #ffffff;
}

.top-trust-item svg,
.top-trust-item i {
    color: #38bdf8;
    font-size: 0.85rem;
}

.top-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
    letter-spacing: 0.02em;
}

.top-trust-b2b-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(250, 204, 21, 0.12);
    color: #facc15;
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.76rem;
    border: 1px solid rgba(250, 204, 21, 0.3);
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-trust-b2b-btn:hover {
    background: #facc15;
    color: #0f172a;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

.top-trust-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 900px) {
    .top-trust-bar {
        display: none;
    }
}

/* Header & Navbar Styling */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all var(--transition-smooth);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-cyan);
    letter-spacing: -0.03em;
}

.brand-logo svg {
    width: 28px;
    height: 28px;
    fill: url(#logo-gradient);
    transition: transform var(--transition-fast);
}

.brand-logo:hover svg {
    transform: rotate(15deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.nav-item a {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--slate-600);
    position: relative;
    padding: 6px 0;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.nav-item a:hover {
    color: var(--slate-900);
    transform: translateY(-2px);
}

.nav-item.active a {
    color: var(--slate-900);
    font-weight: 600;
}

.nav-item.active a:hover {
    transform: translateY(-2px);
}

.nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    pointer-events: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--slate-800);
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--slate-200);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 10000;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--slate-500);
    text-decoration: none;
    flex: 1;
    transition: all var(--transition-fast);
}

.bottom-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    border-radius: 16px;
    transition: all var(--transition-fast);
}

.bottom-bar-item:hover {
    color: var(--primary-cyan);
}

.bottom-bar-item.active {
    color: var(--primary-cyan);
}

.bottom-bar-item.active .bottom-bar-icon {
    color: var(--primary-cyan);
}

.bottom-bar-icon svg {
    width: 22px;
    height: 22px;
    transition: stroke-width var(--transition-fast);
}

.bottom-bar-item.active .bottom-bar-icon svg {
    stroke-width: 2.5;
}

.bottom-bar-label {
    font-size: 0.75rem;
    font-weight: 700;
}

@media (max-width: 991px) {
    .nav-menu { display: none; }
    .mobile-bottom-bar { display: flex; }
    .nav-actions { display: none !important; }
}

/* User Account Button */
.user-account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8fafc;
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid #e2e8f0;
}
.user-account-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.user-account-btn svg {
    width: 20px;
    height: 20px;
}
.mobile-welcome-text { display: none; }
@media (max-width: 991px) { 
    .desktop-account-btn { display: none !important; }
    .mobile-welcome-text { display: block !important; margin-right: 15px; }
}

.desktop-account-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 16px;
    padding: 6px 12px;
    border-radius: 50px;
    transition: background 0.2s;
}
.desktop-account-btn:hover {
    background: #f1f5f9;
}
.desktop-account-icon-wrapper {
    color: var(--slate-700);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.desktop-account-btn:hover .desktop-account-icon-wrapper {
    background: var(--primary-cyan);
    color: #fff;
    border-color: var(--primary-cyan);
}


.account-dropdown-wrapper {
    position: relative;
    display: inline-block;
}
.account-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 8px;
    overflow: hidden;
}
.account-dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}
.account-dropdown-menu a {
    color: var(--slate-700);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: background 0.2s;
}
.account-dropdown-menu a:hover {
    background-color: #f1f5f9;
    color: var(--primary-cyan);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Mobile Offcanvas Sidebar */
.mobile-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10050;
    visibility: hidden;
    transition: visibility 0.3s;
}
.mobile-offcanvas.show {
    visibility: visible;
}
.mobile-offcanvas-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-offcanvas.show .mobile-offcanvas-backdrop {
    opacity: 1;
}
.mobile-offcanvas-content {
    position: absolute;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.mobile-offcanvas.show .mobile-offcanvas-content {
    right: 0;
}
.mobile-offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.mobile-offcanvas-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--slate-800);
}
.mobile-offcanvas-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--slate-500);
    cursor: pointer;
}
.mobile-offcanvas-body {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Scoped styling for the included sidebars to look good on mobile */
.mobile-offcanvas-body .sidebar {
    width: 100% !important;
    position: relative !important;
    height: auto !important;
    border: none !important;
    padding: 0 !important;
}
.mobile-offcanvas-body .sidebar-logo {
    display: none !important; /* Hide logo since we have header */
}
.mobile-offcanvas-body .nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--slate-700);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: background 0.2s;
}
.mobile-offcanvas-body .nav-item:hover,
.mobile-offcanvas-body .nav-item.active {
    background-color: #f1f5f9;
    color: var(--primary-cyan);
}
.mobile-offcanvas-body .nav-item svg {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}
.mobile-offcanvas-body .nav-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-500);
    margin: 15px 0 5px 15px;
}


.mobile-offcanvas-body .sidebar-search {
    position: relative;
    padding: 0 15px;
    margin-bottom: 20px;
    margin-top: 10px;
}
.mobile-offcanvas-body .sidebar-search svg {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--slate-400);
}
.mobile-offcanvas-body .sidebar-search input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
}
/* Catch-all to prevent any other rogue SVGs from blowing up */
.mobile-offcanvas-body svg {
    max-width: 24px;
    max-height: 24px;
}

