/* Excerpt from Views/Page/Landing.cshtml - top utility bar + marketing navbar. */
:root {
    --loki-topbar-h: 40px;
}

        /* Top utility bar — full-width strip above main navbar (Equity-style) */
        .loki-topbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1040;
            min-height: var(--loki-topbar-h);
            background: #ffffff;
            border-bottom: 1px solid rgba(226, 232, 240, 0.95);
            font-family: 'Proxima Nova', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
        }
        
        .loki-topbar-inner {
            min-height: calc(var(--loki-topbar-h) - 4px);
            font-size: 0.8125rem;
        }
        
        .loki-topbar-social-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.75rem;
            height: 1.75rem;
            border-radius: 999px;
            color: #15803d;
            text-decoration: none;
            transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
        }
        
        .loki-topbar-social-link:hover {
            color: #ffffff;
            background: #22c55e;
            transform: translateY(-1px);
        }
        
        .loki-topbar-social-link:focus-visible {
            outline: 2px solid rgba(34, 197, 94, 0.45);
            outline-offset: 2px;
        }
        
        .loki-topbar-divider {
            width: 1px;
            height: 1.1rem;
            background: rgba(203, 213, 225, 0.95);
            flex-shrink: 0;
        }
        
        .loki-topbar-hotline-label {
            font-weight: 600;
            color: #64748b;
            letter-spacing: 0.02em;
        }
        
        .loki-topbar-phone {
            font-weight: 700;
            color: #15803d;
            text-decoration: none;
            white-space: nowrap;
            transition: color 0.2s ease;
        }
        
        .loki-topbar-phone:hover {
            color: #16a34a;
        }
        
        .navbar-modern.fixed-top.loki-navbar-below-topbar {
            top: var(--loki-topbar-h);
        }
        
        @media (max-width: 576px) {
            :root {
                --loki-topbar-h: 44px;
            }
            
            .loki-topbar-inner {
                justify-content: center !important;
                flex-direction: column;
                gap: 0.35rem !important;
                padding-top: 0.35rem;
                padding-bottom: 0.35rem;
            }
            
            .loki-topbar-divider {
                display: none !important;
            }
        }
        /* Modern Navbar Styling - Neat and Clean */
        .navbar-modern {
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            background: rgba(255, 255, 255, 0.95) !important;
            border-bottom: 1px solid rgba(11, 218, 81, 0.1);
            box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0.75rem 0;
            z-index: 1030;
            transform: translateY(0);
            min-height: 64px;
        }
        
        .navbar-modern.scrolled {
            background: rgba(255, 255, 255, 0.98) !important;
            box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
            padding: 0.625rem 0;
            border-bottom-color: rgba(11, 218, 81, 0.15);
            min-height: 60px;
        }
        
        /* Brand Styling */
        .navbar-brand-wrapper {
            flex-shrink: 0;
            z-index: 1;
        }
        
        .navbar-brand {
            text-decoration: none;
            font-family: 'Proxima Nova', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-weight: 700;
            color: #1a1a1a !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            display: flex;
            align-items: center;
            padding: 0.375rem 0;
        }
        
        .navbar-brand:hover {
            color: #22c55e !important;
            transform: translateY(-1px);
        }
        
        /* Wordmark container — horizontal logo, no green tile */
        .brand-logo-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            width: auto;
            height: 36px;
            max-width: min(168px, 42vw);
            border-radius: 0;
            background: transparent;
            transition: opacity 0.25s ease;
            box-shadow: none;
            flex-shrink: 0;
        }
        
        .navbar-brand:hover .brand-logo-wrapper {
            background: transparent;
            transform: none;
            box-shadow: none;
        }
        
        .brand-logo {
            display: block;
            height: 32px;
            width: auto;
            max-width: 100%;
            transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            object-fit: contain;
            object-position: left center;
        }
        
        .brand-logo-fallback {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: #22c55e;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 1.1rem;
            display: flex;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
        }
        
        .navbar-brand:hover .brand-logo-fallback {
            color: #ffffff;
            transform: scale(1.05);
        }
        
        .navbar-brand:hover .brand-logo {
            opacity: 0.92;
            transform: scale(1.02);
        }
        
        .brand-text {
            font-family: 'Proxima Nova', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: #1a1a1a;
            letter-spacing: -0.02em;
            background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            transition: all 0.3s ease;
        }
        
        .navbar-brand:hover .brand-text {
            background: linear-gradient(135deg, #22c55e, #16a34a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .navbar-modern.scrolled .brand-logo-wrapper {
            height: 32px;
            max-width: min(156px, 40vw);
        }
        
        .navbar-modern.scrolled .brand-logo {
            height: 28px;
        }
        
        .navbar-modern.scrolled .brand-logo-fallback {
            width: 32px;
            height: 32px;
            font-size: 1rem;
        }
        
        .navbar-modern.scrolled .brand-text {
            font-size: 1.35rem;
        }
        
        /* Navigation Links - Proxima Nova Font */
        .navbar-nav {
            gap: 0.125rem;
            align-items: center;
        }
        
        .modern-nav-link {
            color: #4b5563 !important;
            font-family: 'Proxima Nova', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-weight: 500;
            font-size: 0.9375rem;
            padding: 0.625rem 1rem !important;
            margin: 0 0.125rem;
            border-radius: 8px;
            transition: color 0.12s ease, font-weight 0.12s ease;
            position: relative;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 75px;
            letter-spacing: -0.01em;
            background: transparent !important;
            overflow: visible;
        }
        
        /* Sharp solid underline (Equity-style tab line), not a background fade */
        .navbar-modern .modern-nav-link::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            width: auto;
            height: 2px;
            margin: 0;
            background: #22c55e;
            opacity: 0;
            transform: scaleX(0);
            transform-origin: center bottom;
            transition: opacity 0.12s ease, transform 0.12s ease;
            border-radius: 0;
            pointer-events: none;
        }
        
        .navbar-modern .modern-nav-link:hover,
        .navbar-modern .modern-nav-link:focus-visible {
            color: #22c55e !important;
        }
        
        .navbar-modern .modern-nav-link:hover::after,
        .navbar-modern .modern-nav-link:focus-visible::after,
        .navbar-modern .modern-nav-link.active::after,
        .navbar-modern .dropdown-toggle[aria-expanded="true"]::after {
            opacity: 1;
            transform: scaleX(1);
        }
        
        .modern-nav-link.active {
            color: #22c55e !important;
            font-weight: 600;
        }
        
        /* Secondary Nav Link (Login) */
        .modern-nav-link-secondary {
            color: #6b7280 !important;
            font-family: 'Proxima Nova', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-weight: 500;
        }
        
        .modern-nav-link-secondary:hover,
        .modern-nav-link-secondary:focus-visible {
            color: #22c55e !important;
        }
        
        .nav-link-text {
            position: relative;
            z-index: 2;
            transition: color 0.12s ease;
        }
        
        /* Legacy span — underline is handled by .modern-nav-link::after */
        .nav-link-indicator {
            display: none !important;
        }
        
        /* Dropdown Toggle Arrow */
        .dropdown-arrow {
            font-size: 0.7rem;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0.7;
        }
        
        .dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
            transform: rotate(180deg);
            opacity: 1;
        }
        
        .modern-nav-link:hover .dropdown-arrow {
            opacity: 1;
        }
        
        /* Modern Dropdown Menu - Proxima Nova Font */
        .modern-dropdown {
            background: #ffffff !important;
            border: none !important;
            border-radius: 12px !important;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
            padding: 0.75rem 0 !important;
            margin-top: 0.75rem !important;
            min-width: 280px;
            animation: dropdownFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            overflow: hidden;
            position: absolute !important;
            will-change: opacity, transform;
            font-family: 'Proxima Nova', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        
        @keyframes dropdownFadeIn {
            from {
                opacity: 0;
                transform: translateY(-8px) scale(0.98);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        /* Dropdown Item - Proxima Nova Font (hover: sharp bottom bar, matches navbar) */
        .modern-dropdown-item {
            padding: 0 !important;
            margin: 0 !important;
            border: none !important;
            transition: color 0.12s ease;
            background: transparent !important;
            font-family: 'Proxima Nova', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        
        .modern-dropdown-item:hover,
        .modern-dropdown-item:focus,
        .modern-dropdown-item:focus-visible {
            background: transparent !important;
        }
        
        /* Beat Bootstrap .dropdown-item hover/active background */
        .modern-dropdown .dropdown-item.modern-dropdown-item:hover,
        .modern-dropdown .dropdown-item.modern-dropdown-item:focus,
        .modern-dropdown .dropdown-item.modern-dropdown-item:focus-visible,
        .modern-dropdown .dropdown-item.modern-dropdown-item:active {
            background-color: transparent !important;
        }
        
        .dropdown-item-content {
            display: flex;
            align-items: center;
            padding: 0.875rem 1.25rem;
            gap: 1rem;
            transition: color 0.12s ease;
            position: relative;
            cursor: pointer;
            font-family: 'Proxima Nova', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: transparent !important;
        }
        
        .dropdown-item-content::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 2px;
            margin: 0;
            background: #22c55e;
            opacity: 0;
            transform: scaleX(0);
            transform-origin: center bottom;
            transition: opacity 0.12s ease, transform 0.12s ease;
            border-radius: 0;
            pointer-events: none;
        }
        
        .modern-dropdown-item:hover .dropdown-item-content::after,
        .modern-dropdown-item:focus .dropdown-item-content::after,
        .modern-dropdown-item:focus-visible .dropdown-item-content::after {
            opacity: 1;
            transform: scaleX(1);
        }
        
        /* Dropdown Item Icon */
        .dropdown-item-icon {
            font-size: 1.1rem;
            color: #0BDA51;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(11, 218, 81, 0.1);
            border-radius: 10px;
            transition: background 0.12s ease, color 0.12s ease;
            flex-shrink: 0;
        }
        
        .modern-dropdown-item:hover .dropdown-item-icon,
        .modern-dropdown-item:focus .dropdown-item-icon,
        .modern-dropdown-item:focus-visible .dropdown-item-icon {
            background: rgba(34, 197, 94, 0.14);
            color: #15803d;
        }
        
        /* Dropdown Item Text - Proxima Nova Font */
        .dropdown-item-text {
            flex: 1;
            min-width: 0;
            font-family: 'Proxima Nova', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        
        .dropdown-item-title {
            font-family: 'Proxima Nova', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-weight: 600;
            font-size: 0.95rem;
            color: #1f2937;
            margin-bottom: 0.25rem;
            transition: color 0.12s ease;
            line-height: 1.3;
        }
        
        .dropdown-item-desc {
            font-family: 'Proxima Nova', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-weight: 400;
            font-size: 0.8rem;
            color: #6b7280;
            line-height: 1.4;
            transition: color 0.12s ease;
        }
        
        .modern-dropdown-item:hover .dropdown-item-title,
        .modern-dropdown-item:focus .dropdown-item-title,
        .modern-dropdown-item:focus-visible .dropdown-item-title {
            color: #22c55e;
        }
        
        .modern-dropdown-item:hover .dropdown-item-desc,
        .modern-dropdown-item:focus .dropdown-item-desc,
        .modern-dropdown-item:focus-visible .dropdown-item-desc {
            color: #4b5563;
        }
        
        /* Dropdown Divider */
        .modern-dropdown .dropdown-divider {
            margin: 0.5rem 0;
            border-color: rgba(0, 0, 0, 0.06);
        }
        
        /* Dropdown Positioning */
        .nav-item.dropdown {
            position: static;
        }
        
        @media (min-width: 992px) {
            .nav-item.dropdown {
                position: relative;
            }
            
            .modern-dropdown {
                position: absolute !important;
                top: 100% !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                margin-top: 0.75rem !important;
                right: auto !important;
            }
            
            /* Override Bootstrap's popper positioning to prevent shifts */
            .modern-dropdown[data-bs-popper] {
                position: absolute !important;
                top: 100% !important;
                left: 50% !important;
                transform: translateX(-50%) !important;
                margin-top: 0.75rem !important;
                right: auto !important;
            }
        }
        
        /* Mobile Dropdown Styling */
        @media (max-width: 991.98px) {
            .modern-dropdown {
                position: static !important;
                transform: none !important;
                box-shadow: none !important;
                background: rgba(34, 197, 94, 0.03) !important;
                border-radius: 8px !important;
                margin-top: 0.5rem !important;
                margin-left: 1rem !important;
                margin-right: 1rem !important;
                padding: 0.5rem 0 !important;
                min-width: auto;
            }
            
            .dropdown-item-content {
                padding: 0.75rem 1rem;
            }
            
            .dropdown-item-icon {
                width: 36px;
                height: 36px;
                font-size: 1rem;
            }
            
            .dropdown-item-title {
                font-size: 0.9rem;
            }
            
            .dropdown-item-desc {
                font-size: 0.75rem;
            }
        }
        
        /* Active Dropdown State — line via .dropdown-toggle[aria-expanded="true"]::after */
        .nav-item.dropdown.show .modern-nav-link {
            color: #22c55e !important;
            background: transparent !important;
        }
        
        /* Modern Button - Proxima Nova Font */
        .modern-btn-primary {
            background: linear-gradient(135deg, #0BDA51, #0A9D45) !important;
            border: none !important;
            color: white !important;
            font-family: 'Proxima Nova', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-weight: 600;
            font-size: 0.9375rem;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
            min-width: 140px;
            justify-content: center;
            letter-spacing: -0.01em;
            position: relative;
            overflow: hidden;
        }
        
        .modern-btn-primary::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;
        }
        
        .modern-btn-primary:hover::before {
            left: 100%;
        }
        
        .modern-btn-primary:hover {
            background: linear-gradient(135deg, #0A9D45, #097A38) !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(11, 218, 81, 0.35), 0 4px 8px rgba(11, 218, 81, 0.2);
            color: white !important;
        }
        
        .modern-btn-primary:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(11, 218, 81, 0.25);
        }
        
        .btn-text {
            font-size: 0.95rem;
            letter-spacing: 0.02em;
        }
        
        .btn-icon {
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }
        
        .modern-btn-primary:hover .btn-icon {
            transform: translateX(3px);
        }
        
        /* Ensure navbar Get Started button uses malachite green */
        .navbar-actions .modern-btn-primary {
            background: #0BDA51 !important;
            border: 2px solid #0BDA51 !important;
            color: white !important;
        }
        
        .navbar-actions .modern-btn-primary:hover {
            background: #0A9D45 !important;
            border-color: #0A9D45 !important;
            color: white !important;
        }
        
        /* Modern Toggler - Clean Design */
        .modern-toggler {
            border: none;
            padding: 0.5rem;
            border-radius: 8px;
            background: transparent;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            width: 40px;
            height: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 4px;
        }
        
        .modern-toggler:hover {
            background: rgba(11, 218, 81, 0.08);
        }
        
        .modern-toggler:focus {
            box-shadow: 0 0 0 3px rgba(11, 218, 81, 0.1);
            outline: none;
        }
        
        .toggler-line {
            display: block;
            width: 22px;
            height: 2px;
            background: #4b5563;
            border-radius: 2px;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
        }
        
        .modern-toggler:hover .toggler-line {
            background: #0BDA51;
        }
        
        .modern-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
            background: #0BDA51;
        }
        
        .modern-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
            opacity: 0;
            transform: translateX(-10px);
        }
        
        .modern-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
            background: #0BDA51;
        }
        
        /* Navbar Actions */
        .navbar-actions {
            gap: 0.75rem;
            align-items: center;
        }
        
        .navbar-actions .modern-nav-link-secondary {
            padding: 0.625rem 1rem !important;
            font-size: 0.9375rem;
        }
        
        /* Responsive Design */
        @media (max-width: 991.98px) {
            .navbar-modern {
                padding: 0.625rem 0;
                min-height: 60px;
            }
            
            .navbar-modern.scrolled {
                padding: 0.5rem 0;
                min-height: 56px;
            }
            
            .navbar-brand {
                padding: 0.25rem 0;
            }
            
            .brand-logo-wrapper {
                height: 30px;
                max-width: min(148px, 52vw);
            }
            
            .brand-logo-fallback {
                width: 30px;
                height: 30px;
                font-size: 0.95rem;
            }
            
            .brand-logo {
                height: 26px;
            }
            
            .brand-text {
                font-size: 1.25rem;
            }
            
            .navbar-nav {
                margin: 1rem 0;
                gap: 0.25rem;
                padding: 0.5rem 0;
            }
            
            .modern-nav-link {
                padding: 0.875rem 1.25rem !important;
                margin: 0.25rem 0;
                min-width: auto;
                justify-content: flex-start;
                font-size: 0.9375rem;
            }
            
            .navbar-actions {
                margin-top: 0.75rem;
                padding-top: 0.75rem;
                border-top: 1px solid rgba(0, 0, 0, 0.06);
                justify-content: stretch;
                width: 100%;
                flex-direction: column;
                gap: 0.75rem;
            }
            
            .navbar-actions .modern-nav-link-secondary {
                width: 100%;
                justify-content: center;
                padding: 0.75rem 1.25rem !important;
            }
            
            .modern-btn-primary {
                width: 100%;
                justify-content: center;
                padding: 0.875rem 1.75rem;
            }
        }
        
        /* Responsive Get Started Button - Prevent Text Wrapping */
        @media (max-width: 576px) {
            .navbar-actions .modern-btn-primary {
                padding: 0.75rem 1rem;
                font-size: 0.875rem;
                min-width: 120px;
            }
            
            .navbar-actions .btn-text {
                font-size: 0.875rem;
                white-space: nowrap;
            }
            
            .navbar-actions .btn-icon {
                font-size: 0.8rem;
            }
        }
        
        @media (max-width: 480px) {
            .navbar-actions .modern-btn-primary {
                padding: 0.7rem 0.8rem;
                font-size: 0.8rem;
                min-width: 110px;
                gap: 0.5rem;
            }
            
            .navbar-actions .btn-text {
                font-size: 0.8rem;
                white-space: nowrap;
            }
            
            .navbar-actions .btn-icon {
                font-size: 0.75rem;
            }
        }
        
        @media (max-width: 360px) {
            .navbar-actions .modern-btn-primary {
                padding: 0.65rem 0.7rem;
                font-size: 0.75rem;
                min-width: 100px;
                gap: 0.4rem;
            }
            
            .navbar-actions .btn-text {
                font-size: 0.75rem;
                white-space: nowrap;
            }
            
            .navbar-actions .btn-icon {
                font-size: 0.7rem;
            }
        }
