/* Main CSS for VPS.TC */

/* We will use Tailwind CDN for this beta version, 
   but this file is for custom overrides and specific component styles. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-color: #3b82f6;
    /* Default Blue */
    --brand-dark: #1e40af;
}

body {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.dark .glass {
    background: rgba(31, 41, 55, 0.7);
    /* Gray-800 with opacity */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Toastr Customization if needed */
#toast-container>div {
    opacity: 1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Custom Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Enhanced Header Scroll States */
header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dark header.scrolled {
    background: rgba(17, 24, 39, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

header.scrolled .container-fluid>div {
    height: 4rem !important;
    transition: height 0.3s ease;
}

/* Premium Topbar */
.premium-topbar {
    background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 50%, #581c87 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 50;
    /* Higher than sticky header (z-40) */
}

/* Premium Header */
.premium-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .premium-header {
    background: rgba(17, 24, 39, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.premium-header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dark .premium-header.scrolled {
    background: rgba(17, 24, 39, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Shadow System */
:root {
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Premium CTA Buttons */
.cta-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-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;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.6) !important;
}

/* Icon Animations */
@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.icon-hover:hover i {
    animation: iconBounce 0.5s ease;
}

.cart-icon {
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1) rotate(12deg);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    width: 0%;
    transition: width 0.1s ease;
}

/* Back to Top Button moved to line 872 */

/* =========================================
   DROPDOWN & MEGA MENU SYSTEM - Main Menu
   ========================================= */

/* Standard Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 50;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.group:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Mega Menu Container */
.mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.5s;
    /* Increased delay when closing - 500ms to move mouse */
    z-index: 50;
    pointer-events: none;
}

/* Invisible hover bridge between button and mega menu */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    /* Extends up to button */
    left: 25%;
    /* Narrower horizontal width - allows switching between menus */
    right: 25%;
    /* Narrower horizontal width - allows switching between menus */
    height: 1.5rem;
    /* Height of the bridge */
    pointer-events: auto;
    /* This area keeps menu open */
}

/* Active menu item underline */
.group:hover>button::after,
.group:has(.mega-menu:hover)>button::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgb(59 130 246), rgb(147 51 234));
    border-radius: 2px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.group:hover .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
    /* No delay when opening - instant */
}

/* Keep mega menu open when hovering over it */
.mega-menu:hover {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Mega Menu Content Box - WIDE & PREMIUM */
.mega-menu-content {
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgb(229 231 235);
    padding: 1.5rem;
    min-width: 600px;
    /* WIDER for 2 columns */
    max-width: 650px;
    position: relative;
}

/* Invisible bridge to prevent mega menu closing when moving mouse */
.mega-menu-content::before {
    content: '';
    position: absolute;
    top: -0.25rem;
    /* Cover the gap between button and menu */
    left: 0;
    right: 0;
    height: 0.25rem;
    background: transparent;
}

.dark .mega-menu-content {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 2-Column Grid for Mega Menu Items */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Mega Menu Items - Card Style */
.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    color: rgb(55 65 81);
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgb(249 250 251);
    border: 1px solid transparent;
}

.dark .mega-menu-item {
    color: rgb(209 213 219);
    background: rgb(55 65 81);
}

/* Mega Menu Item Hover Effect - PREMIUM */
.mega-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.mega-menu-item:hover::before {
    left: 100%;
}

.mega-menu-item:hover {
    background: white;
    border-color: rgb(59 130 246);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.dark .mega-menu-item:hover {
    background: rgb(31 41 55);
    border-color: rgb(96 165 250);
    box-shadow: 0 4px 6px -1px rgba(96, 165, 250, 0.2);
}

/* Mega Menu Item Icon */
.mega-menu-item i,
.mega-menu-item img {
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    margin-top: 0.125rem;
}

.mega-menu-item:hover i,
.mega-menu-item:hover img {
    transform: scale(1.15) rotate(5deg);
}

/* Mega Menu Item Text Container */
.mega-menu-item-text {
    flex: 1;
}

/* Mega Menu Item Title */
.mega-menu-item .font-bold {
    font-size: 0.9375rem;
    font-weight: 700;
    color: rgb(17 24 39);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.dark .mega-menu-item .font-bold {
    color: white;
}

/* Mega Menu Item Description */
.mega-menu-item .text-gray-500 {
    font-size: 0.8125rem;
    color: rgb(107 114 128);
    line-height: 1.4;
}

.dark .mega-menu-item .text-gray-500 {
    color: rgb(156 163 175);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

/* Main Header - Sticky with High Z-Index */
header {
    position: sticky;
    top: 0;
    z-index: 9999;
    /* Very high to stay above map popups */
    background-color: white;
    transition: all 0.3s ease;
}

.dark header {
    background-color: rgb(17 24 39);
}

/* Add shadow on scroll */
header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* =========================================
   PREMIUM FOOTER 2026
   ========================================= */

/* Footer Container */
.premium-footer {
    position: relative;
    background: rgb(249 250 251);
    /* Light background for light mode */
    padding: 4rem 0 2rem;
    overflow: hidden;
}

.dark .premium-footer {
    background: rgb(17 24 39);
    /* Dark background for dark mode */
}

/* Footer Content */
.footer-content {
    position: relative;
    z-index: 1;
}

/* Footer Headings */
.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgb(17 24 39);
    /* Dark for light mode */
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.dark .footer-heading {
    color: white;
    /* White for dark mode */
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, rgb(59 130 246), rgb(147 51 234));
    border-radius: 2px;
}

/* Footer Lists */
.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Footer Links */
.footer-link {
    color: rgb(107 114 128);
    /* Gray for light mode */
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.dark .footer-link {
    color: rgb(156 163 175);
}

.footer-link::before {
    content: '→';
    font-size: 1.1rem;
    font-weight: 600;
    margin-right: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer-link:hover {
    color: rgb(59 130 246);
    padding-left: 1.25rem;
    transform: translateX(2px);
}

.dark .footer-link:hover {
    color: rgb(96 165 250);
}

.footer-link:hover::before {
    content: '→';
    opacity: 1;
    left: 0;
}

/* Social Media Icons - Enhanced */
.footer-social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(249 250 251);
    color: rgb(107 114 128);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dark .footer-social-icon {
    background: rgb(31 41 55);
    color: rgb(156 163 175);
}

.footer-social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(135deg, rgb(59 130 246), rgb(147 51 234));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.footer-social-icon:hover {
    background: linear-gradient(135deg, rgb(59 130 246), rgb(147 51 234));
    color: rgb(30 58 138);
    /* Dark blue for light mode - visible on gradient */
    transform: translateY(-4px) scale(1.15) rotate(5deg);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4),
        0 8px 10px -6px rgba(59, 130, 246, 0.3);
}

.dark .footer-social-icon:hover {
    color: white;
    /* White for dark mode */
    box-shadow: 0 10px 25px -5px rgba(96, 165, 250, 0.5),
        0 8px 10px -6px rgba(96, 165, 250, 0.4);
}

.footer-social-icon:hover::before {
    opacity: 1;
}

.social-icon i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover i {
    color: white;
    transform: scale(1.1);
}

.dark .social-icon {
    background: rgb(31 41 55);
}

.dark .social-icon:hover {
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

/* Social Media Icons - Simple & Clean Hover */
.social-media-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
}

.social-media-icon:hover {
    transform: scale(1.2);
}

/* Facebook - Blue */
.social-media-icon:hover .fa-facebook {
    color: rgb(24 119 242) !important;
    filter: drop-shadow(0 4px 8px rgba(24, 119, 242, 0.4));
}

/* X (Twitter) - Black/White */
.social-media-icon:hover .fa-x {
    color: rgb(0 0 0) !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.dark .social-media-icon:hover .fa-x {
    color: rgb(255 255 255) !important;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.4));
}

/* Instagram - Gradient Pink/Purple */
.social-media-icon:hover .fa-instagram {
    color: rgb(193 53 132) !important;
    filter: drop-shadow(0 4px 8px rgba(193, 53, 132, 0.4));
}

/* LinkedIn - Professional Blue */
.social-media-icon:hover .fa-linkedin {
    color: rgb(0 119 181) !important;
    filter: drop-shadow(0 4px 8px rgba(0, 119, 181, 0.4));
}

/* GitHub - Dark/White */
.social-media-icon:hover .fa-github {
    color: rgb(36 41 47) !important;
    filter: drop-shadow(0 4px 8px rgba(36, 41, 47, 0.4));
}

.dark .social-media-icon:hover .fa-github {
    color: rgb(240 246 252) !important;
    filter: drop-shadow(0 4px 8px rgba(240, 246, 252, 0.4));
}

/* Trust Badges */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: white;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(55 65 81);
    transition: all 0.2s ease;
}

.trust-badge i {
    font-size: 1rem;
}

.trust-badge:hover {
    border-color: rgb(59 130 246);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.dark .trust-badge {
    background: rgb(31 41 55);
    border-color: rgb(55 65 81);
    color: rgb(209 213 219);
}

.dark .trust-badge:hover {
    border-color: rgb(96 165 250);
}

/* Trust Badge Status */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgb(240 253 244);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(22 163 74);
}

.dark .status-badge {
    background: rgb(20 83 45);
    color: rgb(134 239 172);
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: rgb(34 197 94);
    border-radius: 9999px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Payment Icons - Enhanced Hover */
.payment-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.payment-icon:hover {
    transform: scale(1.15);
    color: rgb(59 130 246) !important;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}

.dark .payment-icon:hover {
    color: rgb(96 165 250) !important;
    filter: drop-shadow(0 4px 8px rgba(96, 165, 250, 0.4));
}

/* Bitcoin specific color */
.payment-icon.fa-bitcoin:hover {
    color: rgb(247 147 26) !important;
    filter: drop-shadow(0 4px 8px rgba(247, 147, 26, 0.4));
}

/* Stripe specific color */
.payment-icon.fa-stripe:hover {
    color: rgb(99 91 255) !important;
    filter: drop-shadow(0 4px 8px rgba(99, 91, 255, 0.4));
}

/* Google Pay specific color */
.payment-icon.fa-google-pay:hover {
    color: rgb(66 133 244) !important;
    filter: drop-shadow(0 4px 8px rgba(66, 133, 244, 0.4));
}

/* PayPal specific color */
.payment-icon.fa-cc-paypal:hover {
    color: rgb(0 48 135) !important;
    filter: drop-shadow(0 4px 8px rgba(0, 48, 135, 0.4));
}

/* Status text */
.status-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(16 185 129);
}

.dark .status-badge {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgb(229 231 235);
    /* Light border for light mode */
    background: transparent;
    /* Same as parent */
}

.dark .footer-bottom {
    border-top: 1px solid rgb(55 65 81);
    /* Dark border for dark mode - solid */
    background: transparent;
    /* Same as parent */
}

.footer-bottom p {
    color: rgb(107 114 128);
    /* Gray for light mode */
}

.dark .footer-bottom p {
    color: rgb(156 163 175);
}

/* Footer Bottom Links - Enhanced */
.footer-bottom-link {
    color: rgb(107 114 128);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.dark .footer-bottom-link {
    color: rgb(156 163 175);
}

.footer-bottom-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgb(59 130 246), rgb(147 51 234));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-bottom-link:hover {
    color: rgb(59 130 246);
}

.dark .footer-bottom-link:hover {
    color: rgb(96 165 250);
}

.footer-bottom-link:hover::after {
    width: 100%;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgb(59 130 246), rgb(147 51 234));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    z-index: 9000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.back-to-top i {
    font-size: 1.125rem;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(229, 231, 235, 0.5);
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, rgb(59 130 246), rgb(147 51 234));
    width: 0%;
    transition: width 0.1s ease;
}

/* Animations */
@keyframes ping {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* =========================================
   NETWORK MAP COMPONENT
   ========================================= */

/* Section */
.network-map-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, rgb(249 250 251) 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.dark .network-map-section {
    background: linear-gradient(180deg, rgb(17 24 39) 0%, rgb(31 41 55) 100%);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, rgb(17 24 39), rgb(55 65 81));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.dark .section-title {
    background: linear-gradient(to right, white, rgb(209 213 219));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.125rem;
    color: rgb(107 114 128);
    max-width: 600px;
    margin: 0 auto;
}

.dark .section-subtitle {
    color: rgb(156 163 175);
}

/* Map Container */
.network-map-container {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: rgb(17 24 39);
}

/* Map Wrapper */
.map-wrapper {
    height: 600px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Leaflet.js overrides for dark theme */
#network-map .leaflet-container {
    background: #1a1a2e;
    font-family: 'Inter', sans-serif;
}

#network-map .leaflet-popup-content-wrapper {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    padding: 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

#network-map .leaflet-popup-tip {
    background: rgba(31, 41, 55, 0.95);
    border-left: 1px solid rgba(59, 130, 246, 0.3);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
}

#network-map .leaflet-popup-close-button {
    color: white !important;
    font-size: 1.25rem;
    padding: 0.5rem;
}

/* Custom Markers */
.custom-marker {
    background: none;
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.datacenter-marker {
    width: 40px;
    height: 40px;
}

.datacenter-marker i {
    font-size: 1.25rem;
    color: white;
    background: linear-gradient(135deg, rgb(59 130 246), rgb(147 51 234));
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.datacenter-marker:hover i {
    transform: scale(1.1);
}

.pop-marker {
    width: 32px;
    height: 32px;
}

.pop-marker i {
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, rgb(16 185 129), rgb(5 150 105));
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.4);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.pop-marker:hover i {
    transform: scale(1.1);
}

/* Marker Pulse Animation */
.marker-pulse {
    background: rgba(59, 130, 246, 0.5);
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: rgb(34 197 94);
    border-radius: 9999px;
}

/* Payment Icons - Enhanced Hover - Fixed Specificity */
.payment-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Generic hover for all payment icons */
i.payment-icon:hover {
    transform: scale(1.15) !important;
    color: rgb(59 130 246) !important;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3)) !important;
}

.dark i.payment-icon:hover {
    color: rgb(96 165 250) !important;
    filter: drop-shadow(0 4px 8px rgba(96, 165, 250, 0.4)) !important;
}

/* Bitcoin specific color - Higher specificity */
i.payment-icon.fa-bitcoin:hover {
    color: rgb(247 147 26) !important;
    filter: drop-shadow(0 4px 8px rgba(247, 147, 26, 0.4)) !important;
}

/* Stripe specific color */
i.payment-icon.fa-stripe:hover {
    color: rgb(99 91 255) !important;
    filter: drop-shadow(0 4px 8px rgba(99, 91, 255, 0.4)) !important;
}

/* Google Pay specific color */
i.payment-icon.fa-google-pay:hover {
    color: rgb(66 133 244) !important;
    filter: drop-shadow(0 4px 8px rgba(66, 133, 244, 0.4)) !important;
}

/* PayPal specific color */
i.payment-icon.fa-cc-paypal:hover {
    color: rgb(0 48 135) !important;
    filter: drop-shadow(0 4px 8px rgba(0, 48, 135, 0.4)) !important;
}

.datacenter-marker .marker-pulse {
    background: rgba(59, 130, 246, 0.5);
}

.pop-marker .marker-pulse {
    background: rgba(16, 185, 129, 0.5);
}

@keyframes markerPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Network Connection Lines */
.network-connection {
    animation: dashFlow 20s linear infinite;
}

@keyframes dashFlow {
    to {
        stroke-dashoffset: -100;
    }
}

/* Map Popups */
.map-popup {
    color: white;
    min-width: 250px;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 1rem;
    font-weight: 700;
}

.popup-header i {
    font-size: 1.25rem;
    color: rgb(96 165 250);
}

.popup-content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popup-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgb(209 213 219);
}

.popup-row i {
    width: 1.25rem;
    text-align: center;
    color: rgb(156 163 175);
}

.status-active {
    color: rgb(34 197 94);
    font-weight: 600;
}

.popup-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(to right, rgb(59 130 246), rgb(147 51 234));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0 0 0.875rem 0.875rem;
    transition: all 0.2s ease;
}

.popup-link:hover {
    background: linear-gradient(to right, rgb(37 99 235), rgb(126 34 206));
}

.popup-link i {
    transition: transform 0.2s ease;
}

.popup-link:hover i {
    transform: translateX(4px);
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    padding: 1.25rem;
    z-index: 50;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-marker {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-marker.datacenter {
    background: linear-gradient(135deg, rgb(59 130 246), rgb(147 51 234));
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

.legend-marker.pop {
    background: linear-gradient(135deg, rgb(16 185 129), rgb(5 150 105));
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.legend-line {
    width: 2.5rem;
    height: 2px;
    background: rgb(59 130 246);
    opacity: 0.6;
    position: relative;
}

.legend-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 2px;
    background: rgb(59 130 246);
    animation: dashFlow 2s linear infinite;
}

/* Map Stats Overlay */
.map-stats {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 50;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.875rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateX(-4px);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(59 130 246), rgb(147 51 234));
    border-radius: 0.625rem;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: rgb(156 163 175);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.125rem;
}

/* Responsive */
@media (max-width: 768px) {
    .map-wrapper {
        height: 400px;
    }

    .map-stats {
        position: static;
        margin: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }

    .map-legend {
        left: 1rem;
        bottom: 1rem;
        padding: 1rem;
    }
}

/* Promotion Area at Bottom - COMPACT VERSION */
.mega-menu-promo {
    margin-top: 0.75rem;
    /* Reduced from 1rem */
    padding: 0.875rem 1rem;
    /* Reduced from 1.25rem */
    background: linear-gradient(135deg, rgb(59 130 246) 0%, rgb(147 51 234) 100%);
    border-radius: 0.625rem;
    /* Reduced from 0.75rem */
    position: relative;
    overflow: hidden;
}

.mega-menu-promo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: promoShine 3s ease-in-out infinite;
}

@keyframes promoShine {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20%, -20%);
    }
}

.mega-menu-promo-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    /* Reduced from 1rem */
}

.mega-menu-promo-icon {
    font-size: 1.5rem;
    /* Reduced from 2rem */
    color: rgb(254 240 138);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.mega-menu-promo-text {
    flex: 1;
    min-width: 0;
    /* Allows text to shrink if needed */
}

.mega-menu-promo-title {
    font-size: 0.8125rem;
    /* Reduced from 0.9375rem */
    font-weight: 700;
    color: white;
    margin-bottom: 0.125rem;
    /* Reduced from 0.25rem */
    line-height: 1.2;
}

.mega-menu-promo-desc {
    font-size: 0.6875rem;
    /* Reduced from 0.75rem */
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.mega-menu-promo-btn {
    padding: 0.375rem 1rem;
    /* Reduced from 0.5rem 1.25rem */
    background: white;
    color: rgb(59 130 246);
    border-radius: 0.375rem;
    /* Reduced from 0.5rem */
    font-weight: 700;
    font-size: 0.75rem;
    /* Reduced from 0.875rem */
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.mega-menu-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hover Underline Fix - Make sure it appears at the bottom of the text */
nav a.group {
    position: relative;
    display: inline-block;
}

nav a.group .absolute {
    bottom: -4px;
}

/* =========================================
   TOPBAR DROPDOWN SYSTEM - Completely Redesigned
   ========================================= */

/* Topbar Dropdown Wrapper - Container for each dropdown */
.topbar-dropdown-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1000;
    /* Higher than sticky header */
}

/* Topbar Dropdown Trigger - The button/link that triggers dropdown */
.topbar-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgb(209 213 219);
    /* text-gray-300 */
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.25rem 0.5rem;
    outline: none;
}

.topbar-dropdown-trigger:hover {
    color: white;
}

.topbar-dropdown-trigger:focus {
    outline: none;
}

/* Rotate chevron on hover */
.topbar-dropdown-wrapper:hover .topbar-dropdown-trigger .fa-chevron-down {
    transform: rotate(180deg);
}

/* Topbar Dropdown Menu - The actual dropdown content */
.topbar-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    /* Reduced gap from 0.5rem to 0.25rem */
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgb(229 231 235);
    /* border-gray-200 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    /* MAXIMUM - Above everything including sticky header */
    pointer-events: none;
}

/* Invisible bridge to prevent dropdown closing when moving mouse */
.topbar-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.25rem;
    /* Cover the gap */
    left: 0;
    right: 0;
    height: 0.25rem;
    background: transparent;
}

/* Dark mode dropdown */
.dark .topbar-dropdown-menu {
    background: rgb(31 41 55);
    /* bg-gray-800 */
    border-color: rgb(55 65 81);
    /* border-gray-700 */
}

/* Show dropdown on hover - with delay on close */
.topbar-dropdown-wrapper:hover .topbar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
    /* Instant open */
}

/* Keep dropdown open when hovering over it */
.topbar-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Add delay when closing (mouse leaves) */
.topbar-dropdown-wrapper .topbar-dropdown-menu {
    transition-delay: 0.15s;
    /* 150ms delay before closing */
}

.topbar-dropdown-wrapper:hover .topbar-dropdown-menu {
    transition-delay: 0s;
    /* No delay when opening */
}

/* Topbar Dropdown Item - Individual items in dropdown */
.topbar-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: rgb(55 65 81);
    /* text-gray-700 */
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.15s ease;
    border-radius: 0.375rem;
    margin: 0.125rem 0.25rem;
}

.dark .topbar-dropdown-item {
    color: rgb(209 213 219);
    /* text-gray-300 */
}

.topbar-dropdown-item:hover {
    background: rgb(239 246 255);
    /* bg-blue-50 */
    color: rgb(37 99 235);
    /* text-blue-600 */
}

.dark .topbar-dropdown-item:hover {
    background: rgb(55 65 81);
    /* bg-gray-700 */
    color: rgb(96 165 250);
    /* text-blue-400 */
}

/* Custom Dropdown Item (for complex content like location status) */
.topbar-dropdown-item-custom {
    padding: 0.75rem 1rem;
    transition: background 0.15s ease;
}

.topbar-dropdown-item-custom:hover {
    background: rgb(249 250 251);
    /* bg-gray-50 */
}

.dark .topbar-dropdown-item-custom:hover {
    background: rgba(55, 65, 81, 0.5);
    /* bg-gray-700/50 */
}

/* Cart Icon Animation */
.cart-icon {
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.05);
}

/* =========================================
   CURRENCY TOGGLE - Active State
   ========================================= */

.currency-toggle {
    transition: all 0.2s ease;
}

.currency-toggle.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
}

.currency-toggle:not(.active) {
    opacity: 0.7;
}

.currency-toggle:not(.active):hover {
    opacity: 1;
}

/* FAQ Static - Always Open */
.faq-question-static {
    width: 100%;
    text-align: left;
    padding: 1.5rem 1.5rem 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: none;
    cursor: default;
}

.faq-question-static span {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
}

.faq-answer-static {
    padding: 0 1.5rem 1.5rem 4.25rem;
    /* Aligns with text (1.5rem pad + 2rem icon + 0.75rem gap) */
    color: rgb(75 85 99);
    font-size: 1rem;
    line-height: 1.6;
}

.dark .faq-answer-static {
    color: rgb(156 163 175);
}

.faq-question-static .fa-chevron-down {
    display: none;
}

/* =========================================
   RTL (Right-to-Left) Support - Persian
   ========================================= */

/* RTL Topbar Dropdown Alignment */
[dir="rtl"] .topbar-dropdown-menu {
    right: auto;
    left: 0;
}

/* RTL Topbar Items Spacing */
[dir="rtl"] .premium-topbar .flex.items-center.space-x-6 {
    flex-direction: row-reverse;
}

[dir="rtl"] .premium-topbar .flex.items-center.space-x-2,
[dir="rtl"] .premium-topbar .flex.items-center.space-x-3 {
    flex-direction: row-reverse;
}

/* RTL Dropdown Item Icons */
[dir="rtl"] .topbar-dropdown-item img {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* RTL Location Dropdown Custom Items */
[dir="rtl"] .topbar-dropdown-item-custom img {
    margin-right: 0;
    margin-left: 0.75rem;
}

[dir="rtl"] .topbar-dropdown-item-custom .flex.items-center.justify-between {
    flex-direction: row-reverse;
}

/* RTL Footer Adjustments */
[dir="rtl"] .footer-heading::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-link:hover {
    padding-left: 0;
    padding-right: 1.25rem;
    transform: translateX(-2px);
}

[dir="rtl"] .footer-link::before {
    content: '←';
    transform: translateX(10px);
}

/* RTL Header Home Menu Spacing */
[dir="rtl"] .premium-header nav>a:first-child {
    margin-left: 1.5rem;
}

/* =========================================
   RTL OVERRIDES (Persian/Arabic)
   ========================================= */
html[dir="rtl"] .footer-heading::after {
    left: auto !important;
    right: 0 !important;
    background: linear-gradient(to left, rgb(59 130 246), rgb(147 51 234)) !important;
}

html[dir="rtl"] .topbar-dropdown-menu {
    right: auto !important;
    left: 0 !important;
}

html[dir="rtl"] .footer-link {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

html[dir="rtl"] .footer-link:hover {
    padding-left: 0 !important;
    padding-right: 1.25rem !important;
    transform: translateX(-2px) !important;
}

html[dir="rtl"] .footer-link::before {
    content: '←' !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: translateX(10px) !important;
    right: auto !important;
    left: auto !important;
}

html[dir="rtl"] .footer-link:hover::before {
    right: 0 !important;
    left: auto !important;
}

html[dir="rtl"] .mega-menu-item::before {
    left: auto !important;
    right: -100% !important;
    background: linear-gradient(270deg, transparent, rgba(59, 130, 246, 0.1), transparent) !important;
}

html[dir="rtl"] .mega-menu-item:hover::before {
    left: auto !important;
    right: 100% !important;
}

html[dir="rtl"] .cta-primary::before {
    left: auto !important;
    right: -100% !important;
    background: linear-gradient(270deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
}

html[dir="rtl"] .cta-primary:hover::before {
    left: auto !important;
    right: 100% !important;
}

html[dir="rtl"] .text-left {
    text-align: right !important;
}

html[dir="rtl"] .text-right {
    text-align: left !important;
}