/* ============================================
   ZULUTRADE UNIFIED CSS - LANDING PAGES
   Includes: Dark/Light Theme, Mobile Menu, Responsive Design
   ============================================ */

/* ========== RESET & VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --or: #f7931a;
    --orh: #e0830a;
    --ors: rgba(247, 147, 26, 0.1);
    --gn: #10b981;
    --gns: rgba(16, 185, 129, 0.12);
    --rd: #ef4444;
    --rds: rgba(239, 68, 68, 0.12);
    --bl: #3b82f6;
    --bls: rgba(59, 130, 246, 0.1);

    /* Light Theme (Default) */
    --bg: #f8fafc;
    --sf: #ffffff;
    --sf2: #f1f5f9;
    --bd: #e2e8f0;
    --tx: #0f172a;
    --tx2: #475569;
    --tx3: #94a3b8;

    /* Effects */
    --r: 16px;
    --rs: 10px;
    --sh: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shm: 0 8px 28px rgba(0, 0, 0, 0.1);
    --shl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --fn: 'DM Sans', sans-serif;
    --mo: 'DM Mono', monospace;

    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

[data-theme="dark"] {
    --bg: #0a0c12;
    --sf: #11161f;
    --sf2: #1a202c;
    --bd: #2a2f3a;
    --tx: #eef2ff;
    --tx2: #8b94b0;
    --tx3: #5f6a85;
}

body {
    font-family: var(--fn);
    background: var(--bg);
    color: var(--tx);
    transition: var(--transition);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: var(--fn);
    border: none;
    background: none;
}

/* ========== HEADER & NAVIGATION ========== */
.hdr-bar {
    position: sticky;
    top: 0;
    z-index: 300;
    background: var(--sf);
    border-bottom: 1px solid var(--bd);
    height: 70px;
    display: flex;
    align-items: center;
}

.hdr {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    text-decoration: none;
}

.lz {
    color: var(--or);
}

.lt {
    color: var(--tx);
}

/* Desktop Navigation */
.mnav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.mnav a {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tx2);
    transition: var(--transition);
    white-space: nowrap;
}

.mnav a:hover {
    background: var(--sf2);
    color: var(--tx);
}

.mnav a.act {
    background: var(--ors);
    color: var(--or);
    font-weight: 700;
}

/* Mobile Menu Button (Hamburger) */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--sf2);
    border: 1px solid var(--bd);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--tx2);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--ors);
    color: var(--or);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: var(--sf);
    box-shadow: var(--shl);
    z-index: 401;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--bd);
}

.mobile-menu-header .logo {
    font-size: 1.2rem;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    background: var(--sf2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--tx2);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-menu-nav a {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tx2);
    transition: var(--transition);
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.act {
    background: var(--ors);
    color: var(--or);
}

.mobile-menu-footer {
    margin-top: auto;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--bd);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-footer .btn-sm {
    text-align: center;
}

/* Header Right Actions */
.hdr-r {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.hbtn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tx2);
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
}

.hbtn:hover {
    background: var(--sf2);
    color: var(--tx);
}

/* Buttons */
.btn-sm {
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline {
    border: 1px solid var(--bd);
    color: var(--tx2);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--or);
    color: var(--or);
}

.btn-primary {
    background: var(--or);
    color: white;
}

.btn-primary:hover {
    background: var(--orh);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.3);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
}

/* ========== USER DROPDOWN ========== */
.umenu {
    position: relative;
}

.utrig {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.55rem 0.22rem 0.28rem;
    border-radius: 40px;
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
}

.utrig:hover {
    background: var(--sf2);
}

.av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--or);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
}

.av.lg {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
}

.uchev {
    color: var(--tx3);
    transition: transform 0.2s;
}

.umenu.open .uchev {
    transform: rotate(180deg);
}

.dd {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    box-shadow: var(--shl);
    display: none;
    overflow: hidden;
    z-index: 600;
}

.umenu.open .dd {
    display: block;
}

.ddhd {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--bd);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ddhd .nm {
    font-weight: 700;
    font-size: 0.9rem;
}

.ddhd .ml {
    font-size: 0.72rem;
    color: var(--tx3);
}

.ddbal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.1rem;
    background: var(--sf2);
    border-bottom: 1px solid var(--bd);
}

.ddbal .lb {
    font-size: 0.72rem;
    color: var(--tx2);
}

.ddbal .vl {
    font-weight: 700;
    color: var(--or);
    font-size: 0.9rem;
}

.ddlist {
    padding: 0.4rem 0;
    max-height: 320px;
    overflow-y: auto;
}

.ddlist a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
    color: var(--tx2);
    text-decoration: none;
    transition: background 0.12s;
}

.ddlist a:hover {
    background: var(--sf2);
    color: var(--tx);
}

.ddlist a.act {
    color: var(--or);
    background: var(--ors);
}

.ddlist a svg {
    color: var(--tx3);
    flex-shrink: 0;
}

.ddlist a.out {
    color: var(--rd);
}

.ddlist a.out:hover {
    background: var(--rds);
}

.ddsep {
    height: 1px;
    background: var(--bd);
    margin: 0.3rem 0;
}

/* ========== FLOATING WIDGETS ========== */
.feedback-btn, .chat-widget {
    position: fixed;
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: 60px;
    padding: 0.7rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--tx2);
    cursor: pointer;
    transition: var(--transition);
    z-index: 99;
    backdrop-filter: blur(8px);
}

.feedback-btn {
    right: 1.5rem;
    bottom: 5.5rem;
}

.feedback-btn:hover {
    border-color: var(--or);
    color: var(--or);
    transform: translateX(-4px);
}

.chat-widget {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    justify-content: center;
    background: linear-gradient(135deg, var(--or), var(--orh));
    border: none;
    color: white;
}

.chat-widget:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(247, 147, 26, 0.6);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--sf);
    border-top: 1px solid var(--bd);
    margin-top: 3rem;
}

.footer-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--tx2);
    text-decoration: none;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.4rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--or);
}

.footer-bottom {
    border-top: 1px solid var(--bd);
    padding: 1rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--tx3);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: var(--tx2);
    transition: var(--transition);
    font-size: 1rem;
}

.social-links a:hover {
    color: var(--or);
}

/* ========== CARDS & GRIDS ========== */
.card {
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: var(--r);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--or);
    box-shadow: var(--shm);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .mobile-menu-btn {
        display: flex;
    }

    .hdr {
        justify-content: space-between;
    }

    .hdr-r {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hdr {
        padding: 0 1rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feedback-btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
        right: 1rem;
        bottom: 5rem;
    }

    .chat-widget {
        width: 44px;
        height: 44px;
        right: 1rem;
        bottom: 1rem;
    }

    .chat-widget svg {
        width: 20px;
        height: 20px;
    }

    .btn-sm {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .hbtn {
        width: 34px;
        height: 34px;
    }

    .dd {
        right: -20px;
        width: 260px;
    }
}

/* ========== UTILITY CLASSES ========== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--tx2);
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.text-orange {
    color: var(--or);
}

.text-green {
    color: var(--gn);
}

.text-red {
    color: var(--rd);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* ========== TOAST NOTIFICATION ========== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sf);
    border: 1px solid var(--bd);
    border-radius: 40px;
    padding: 0.6rem 1.2rem;
    z-index: 2000;
    font-size: 0.8rem;
    animation: fadeInOut 2.5s ease;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    15% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    85% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--sf2);
}

::-webkit-scrollbar-thumb {
    background: var(--bd);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--or);
}