/* CSS Variables - Dual Theme Engine */
:root {
    --bg-main: #f8fafc;
    --bg-section: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: rgba(14, 165, 233, 0.05);
    --bg-ticker: #e0f2fe;
    --primary: #0ea5e9;
    --secondary: #10b981;
    --accent: #f43f5e;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: rgba(148, 163, 184, 0.15);
    --border-card: rgba(148, 163, 184, 0.2);
    --nav-bg: rgba(248, 250, 252, 0.95);
    --modal-bg: rgba(255, 255, 255, 0.95);
    --shadow-glow: rgba(14, 165, 233, 0.12);
    --drawer-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-main: #1e2b46;
    --bg-section: #2d3d5f;
    --bg-card: #2d3d5f;
    --bg-card-hover: rgba(56, 189, 248, 0.12);
    --bg-ticker: #1e2b46;
    --primary: #38bdf8;
    --secondary: #34d399;
    --accent: #fb7185;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.12);
    --border-card: rgba(255, 255, 255, 0.15);
    --nav-bg: rgba(30, 43, 70, 0.95);
    --modal-bg: rgba(30, 43, 70, 0.95);
    --shadow-glow: rgba(56, 189, 248, 0.15);
    --drawer-bg: #1e2b46;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s, color 0.4s;
    padding-top: 100px;
}

.w-full { width: 100%; }
.text-lg-bold { font-size: 1.2rem; font-weight: 700; }
.text-left { text-align: left; }
.m-0 { margin: 0; }
.mr-2 { margin-right: 8px; }
.color-primary { color: var(--primary); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fixed-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--bg-ticker);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    transition: background-color 0.4s;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 25s linear infinite;
    will-change: transform;
}

.ticker-move:hover {
    animation-play-state: paused;
}

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

.ticker-item {
    display: inline-block;
    padding: 10px 40px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

.navbar {
    position: relative;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.8;
    box-shadow: 0 0 10px var(--shadow-glow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    display: block;
    line-height: 1.1;
    color: var(--text-main);
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.desktop-nav a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.desktop-nav a:not(.btn):hover {
    color: var(--primary);
}

.theme-toggle, .hamburger-menu {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    padding: 5px;
}

.theme-toggle { color: var(--text-muted); }
.theme-toggle:hover { color: var(--primary); }
.hamburger-menu { display: none; color: var(--text-main); font-size: 1.5rem; }
.hamburger-menu:hover { color: var(--primary); }

.hero {
    padding: 60px 0 80px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text-main);
}

.hero p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

[data-theme="dark"] .btn-primary {
    color: #ffffff;
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

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

.fab-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px var(--shadow-glow);
    z-index: 990;
    transition: transform 0.3s, filter 0.3s;
    text-decoration: none;
}

[data-theme="dark"] .fab-contact {
    color: #ffffff;
}

.fab-contact:hover {
    transform: scale(1.1) translateY(-5px);
    filter: brightness(1.1);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.section-pad {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-section);
    transition: background-color 0.4s;
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-card);
    transition: transform 0.4s, border-color 0.3s, background-color 0.4s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card.popular {
    border: 2px solid var(--primary);
}

[data-theme="dark"] .card.popular {
    background: linear-gradient(145deg, #0f172a, #16213e);
}

[data-theme="light"] .card.popular {
    background: linear-gradient(145deg, #ffffff, #f0fdf4);
}

.icon-box {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.infra-list {
    list-style: none;
    margin-top: 20px;
}

.infra-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.infra-list li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
}

.giga-text {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.2;
    margin: 15px 0;
}

.price-tag {
    margin: 25px 0;
}

.old-price {
    text-decoration: line-through;
    color: var(--accent);
    font-size: 1.1rem;
    opacity: 0.9;
    font-family: 'JetBrains Mono', monospace;
    display: block;
    margin-bottom: 5px;
}

.new-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}

.new-price small {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.badge-pop {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    padding: 5px 20px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="dark"] .badge-pop {
    color: #ffffff;
}

.bonus-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
}

.features {
    list-style: none;
    margin: 30px 0;
    flex-grow: 1;
}

.features li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.features i {
    color: var(--primary);
    margin-top: 4px;
    font-size: 1rem;
}

.reseller-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.reseller-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reseller-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-card);
    align-items: center;
    transition: 0.3s;
}

.reseller-item:hover {
    border-color: var(--secondary);
    background: var(--bg-card-hover);
}

.reseller-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    background: rgba(59, 130, 246, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.reseller-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.reseller-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.join-network {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    transition: background-color 0.4s;
}

.join-network h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.join-network p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.footer-legal {
    background: var(--bg-ticker);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.4s;
}

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

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-col i {
    color: var(--primary);
    margin-top: 4px;
}

.legal-notice {
    border-left: 3px solid var(--secondary);
    padding-left: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Adjustments */
.mobile-drawer {
    display: none;
}

@media (max-width: 900px) {
    .reseller-layout { grid-template-columns: 1fr; }
    .desktop-nav { display: none; }
    .hamburger-menu { display: block; position: relative; z-index: 1002; }
    .mobile-drawer {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 70vw;
        max-width: 300px;
        height: 100vh;
        background: var(--drawer-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        border-left: 1px solid var(--border-color);
        transition: transform 0.4s, box-shadow 0.4s;
        z-index: 1001;
    }
    .mobile-drawer.active {
        transform: translateX(0);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    }
    .mobile-drawer a.nav-text, .mobile-drawer button {
        text-align: left;
        background: none;
        border: none;
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 600;
        font-size: 1.2rem;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
        transition: color 0.3s;
        cursor: pointer;
    }
    .mobile-drawer a.nav-text:hover, .mobile-drawer button:hover {
        color: var(--primary);
    }
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 995;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s, transform 0.8s;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Modals (Auth & Speedtest) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: none;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-overlay .auth-box,
.modal-overlay .speedtest-box,
.modal-overlay .panel-card,
.modal-overlay .modal-content {
    pointer-events: auto;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1);
}

.speedtest-box {
    background: var(--bg-card);
    width: 90%;
    max-width: 700px;
    border-radius: 16px;
    border: 1px solid var(--primary);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 0 40px var(--shadow-glow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .speedtest-box {
    transform: scale(1);
}

.st-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-section);
}

.st-header h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin: 0;
}

.close-modal {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.5rem;
    background: none;
    border: none;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--accent);
}

/* Speedtest embed container */
.st-embed-container {
    width: 100%;
    height: 500px;
    border: none;
    background: #000;
}

/* Auth Elements */
.auth-box {
    max-width: 420px;
    padding: 0;
}

.auth-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-section);
    border-radius: 16px 16px 0 0;
}

.auth-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.auth-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 700;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid var(--border-card);
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--shadow-glow);
}

/* Maintenance mode layout */
.maintenance-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #05070a;
    color: #f8fafc;
    text-align: center;
    padding: 40px 20px;
}

.maintenance-card {
    max-width: 600px;
    width: 100%;
    background: #0f172a;
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 50px 30px;
    box-shadow: 0 0 30px var(--shadow-glow);
}

.maintenance-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.maintenance-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--secondary);
    background: rgba(59, 130, 246, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Live Statistics Banner Styling */
.stats-section {
    padding: 40px 0;
    background-color: var(--bg-section);
    transition: background-color 0.4s;
    border-bottom: 1px solid var(--border-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    text-align: center;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px var(--shadow-glow), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -1px;
}
.stat-label {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stat-card {
        padding: 20px;
    }
    .stat-number {
        font-size: 2.2rem;
    }
}

