:root {
    --primary-red: #e60000;
    --accent-blue: #0066ff;
    --accent-blue-hover: #0052cc;
    --dark-bg: #111111;
    --surface-dark: #1a1a1a;
    --light-grey: #f4f6f9;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #eeeeee;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Ticker Section */
.ticker-wrap {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 8%;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
    border-bottom: 1px solid #222;
}

.ticker {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.ticker-item {
    display: inline-block;
    margin-right: 40px;
    font-weight: 600;
}

.ticker-item span.up {
    color: #00ff66;
}

.ticker-item span.down {
    color: #ff3333;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    color: var(--text-main);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER & NAVIGATION --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 2000; /* Higher than overlay */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-red);
    border-radius: 50%;
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 10px;
    left: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-red);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 4px 0;
    transition: var(--transition-smooth);
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--primary-red);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-red);
}

.btn-account {
    background: var(--accent-blue);
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.2);
}

.btn-account:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 102, 255, 0.3);
}

.btn-account.active {
    background: var(--primary-red) !important;
    box-shadow: 0 4px 10px rgba(230, 0, 0, 0.2);
}

.btn-account::after {
    display: none !important;
}

/* --- GLOBAL BUTTONS --- */
.btn {
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-blue {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 14px rgba(0,102,255,0.3);
}

.btn-blue:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,102,255,0.4);
}

.btn-red {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 14px rgba(230,0,0,0.3);
}

.btn-red:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,0,0,0.4);
}

/* --- FLOATING MAIL BUTTON --- */
.floating-mail-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(230,0,0,0.3);
    cursor: pointer;
    z-index: 999;
    text-decoration: none;
}

.floating-mail-btn::before {
    content: '✉';
    color: white;
    font-size: 26px;
}

/* --- GLOBAL FOOTER --- */
footer {
    background: var(--dark-bg);
    color: #ffffff;
    padding: 60px 8% 30px 8%;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-red);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    color: #888;
    font-size: 14px;
}

/* --- RESPONSIVE BASICS & MOBILE NAV SYSTEM --- */
.hamburger-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 1500; /* Above content, but below header */
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 768px) {
    header {
        padding: 15px 5%;
    }
    
    .hamburger-toggle {
        display: flex;
        z-index: 1060; /* Topmost */
    }
    
    .hamburger-toggle.active {
        position: relative;
        top: 0;
        right: 0;
    }
    
    .hamburger-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        padding: 80px 30px 40px 30px;
        transition: var(--transition-smooth);
        z-index: 2001; /* Must be higher than header and overlay */
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        width: 100%;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        font-size: 18px;
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    
    nav ul li a.active::after {
        bottom: 0;
        height: 2px;
        width: 30px;
    }
    
    .btn-account {
        display: inline-block;
        text-align: center;
        margin-top: 10px;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
