/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: relative;
    z-index: 999999;
}

/* Ensure all anchor tags in header are white by default */
.header a {
    color: white !important;
    text-decoration: none;
}

.header a:hover {
    color: #a5f3fc !important;
}

/* Support Bar */
.support-bar {
    background-color: #1e293b;
    position: relative;
}

.support-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.trust-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.fire-emoji {
    color: #fb923c;
    font-size: 18px;
}

.trust-text {
    font-size: 14px;
}

.get-vps-link {
    color: #67e8f9 !important;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 4px;
}

.get-vps-link:hover {
    color: #a5f3fc !important;
}

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

/* Support Dropdown */
.support-dropdown {
    position: relative;
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.support-btn:hover {
    color: #67e8f9;
}

.support-btn .chevron {
    transition: transform 0.2s;
}

.support-btn.active .chevron {
    transform: rotate(180deg);
}

.support-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    min-width: 280px;
    z-index: 2147483647;
    display: none;
}

.support-dropdown-menu.show {
    display: block;
}

.dropdown-content {
    padding: 16px;
}

.dropdown-content h3 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 16px;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.support-links a:hover {
    color: #2178EC !important;
}

.support-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-icon.red {
    background-color: #fee2e2;
    color: #ef4444;
}

.support-icon.blue {
    background-color: #dbeafe;
    color: #3b82f6;
}

.support-icon.orange {
    background-color: #fed7aa;
    color: #f97316;
}

/* Login Button */
.login-btn {
    background-color: #374151;
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background-color: #4b5563;
    color: white !important;
}

/* Login button specific override for all link states */
.login-btn,
.login-btn:link,
.login-btn:visited,
.login-btn:active {
    color: white !important;
    text-decoration: none !important;
}

.login-btn:hover {
    background-color: #4b5563;
    color: white !important;
}

/* Main Navigation */
.main-nav {
    background-color: #2178EC;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    color: white !important;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.logo:hover {
    color: #a5f3fc !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-btn .close {
    display: none;
}

.mobile-menu-btn.active .hamburger {
    display: none;
}

.mobile-menu-btn.active .close {
    display: block;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white !important;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #a5f3fc !important;
}

/* Ensure all nav links and their child elements are white */
.nav-link, .nav-link a {
    color: white !important;
    text-decoration: none;
}

.nav-link:hover, .nav-link a:hover {
    color: #a5f3fc !important;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #145bb6;
    display: none;
    flex-direction: column;
    min-width: 200px;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 2147483647;
}

.dropdown-menu.dropdown-right {
    right: 0;
    left: auto;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    color: white !important;
    text-decoration: none !important;
    padding: 10px 16px;
    white-space: nowrap;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu a:hover {
    background-color: #114a99;
    color: white !important;
}

/* Dropdown menu links specific override */
.dropdown-menu a,
.dropdown-menu a:link,
.dropdown-menu a:visited,
.dropdown-menu a:active {
    color: white !important;
    text-decoration: none !important;
}

.dropdown-menu a:hover {
    background-color: #114a99;
    color: white !important;
}

.dropdown-icon {
    color: #67e8f9;
    flex-shrink: 0;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #2178EC;
    z-index: 999999;
}

.mobile-nav.show {
    display: block;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white !important;
    text-decoration: none;
    padding: 12px 20px;
    transition: background-color 0.2s;
}

.mobile-nav-link:hover {
    background-color: #145bb6;
    color: white !important;
}

.mobile-dropdown {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-dropdown-btn:hover {
    background-color: #145bb6;
}

.mobile-dropdown-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-dropdown-content {
    background-color: #145bb6;
    display: none;
}

.mobile-dropdown-content.show {
    display: block;
}

.mobile-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white !important;
    text-decoration: none !important;
    padding: 10px 32px;
    transition: background-color 0.2s;
}

.mobile-dropdown-content a:hover {
    background-color: #114a99;
    color: white !important;
}

/* Mobile dropdown links specific override */
.mobile-dropdown-content a,
.mobile-dropdown-content a:link,
.mobile-dropdown-content a:visited,
.mobile-dropdown-content a:active {
    color: white !important;
    text-decoration: none !important;
}

.mobile-dropdown-content a:hover {
    background-color: #114a99;
    color: white !important;
}

.mobile-chevron {
    transition: transform 0.2s;
}

.mobile-dropdown-btn.active .mobile-chevron {
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    .support-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 8px 0;
    }

    .trust-message {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .trust-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .fire-emoji {
        font-size: 16px;
    }

    .support-actions {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .support-dropdown-menu {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 320px;
    }

    .support-btn {
        font-size: 12px;
        padding: 4px 8px;
    }

    .login-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .support-content {
        gap: 8px;
        padding: 6px 0;
    }

    .trust-text {
        font-size: 11px;
        text-align: center;
    }

    .fire-emoji {
        font-size: 14px;
    }

    .support-actions {
        gap: 8px;
        align-items: center;
    }

    .support-btn {
        font-size: 11px;
        padding: 3px 6px;
        gap: 4px;
    }

    .support-btn svg {
        width: 12px;
        height: 12px;
    }

    .login-btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    .get-vps-link {
        display: inline-block;
        margin-top: 2px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

    .trust-text {
        font-size: 10px;
        line-height: 1.3;
    }

    .fire-emoji {
        font-size: 12px;
    }

    .support-btn span {
        display: none;
    }

    .support-btn {
        padding: 4px;
        min-width: 32px;
        justify-content: center;
    }

    .login-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    .get-vps-link {
        font-size: 10px;
    }
}

/* Strong override for all link colors in navigation */
.main-nav a,
.main-nav a:link,
.main-nav a:visited,
.main-nav a:active,
.desktop-nav a,
.desktop-nav a:link,
.desktop-nav a:visited,
.desktop-nav a:active,
.mobile-nav a,
.mobile-nav a:link,
.mobile-nav a:visited,
.mobile-nav a:active {
    color: white !important;
    text-decoration: none !important;
}

.main-nav a:hover,
.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #a5f3fc !important;
}

/* Logo specific override */
.logo,
.logo:link,
.logo:visited,
.logo:active {
    color: white !important;
    text-decoration: none !important;
}

.logo:hover {
    color: #a5f3fc !important;
}

/* Nav links specific override */
.nav-link,
.nav-link:link,
.nav-link:visited,
.nav-link:active,
.mobile-nav-link,
.mobile-nav-link:link,
.mobile-nav-link:visited,
.mobile-nav-link:active {
    color: white !important;
    text-decoration: none !important;
}

.nav-link:hover,
.mobile-nav-link:hover {
    color: #a5f3fc !important;
}

/* Override for main navigation links only */
.main-nav *[href],
.main-nav *[href]:link,
.main-nav *[href]:visited,
.main-nav *[href]:active,
.desktop-nav *[href],
.desktop-nav *[href]:link,
.desktop-nav *[href]:visited,
.desktop-nav *[href]:active,
.mobile-nav *[href],
.mobile-nav *[href]:link,
.mobile-nav *[href]:visited,
.mobile-nav *[href]:active {
    color: white !important;
    text-decoration: none !important;
}

.main-nav *[href]:hover,
.desktop-nav *[href]:hover,
.mobile-nav *[href]:hover {
    color: #a5f3fc !important;
}

/* Support dropdown should remain dark gray/blue for visibility */
.support-dropdown-menu a,
.support-dropdown-menu a:link,
.support-dropdown-menu a:visited,
.support-dropdown-menu a:active {
    color: #475569 !important;
    text-decoration: none !important;
}

.support-dropdown-menu a:hover {
    color: #2178EC !important;
}

/* Support dropdown content area should be specific */
.support-links a,
.support-links a:link,
.support-links a:visited,
.support-links a:active {
    color: #475569 !important;
    text-decoration: none !important;
}

.support-links a:hover {
    color: #2178EC !important;
}