:root {
    --bg-main: #0b0e14;
    --bg-card: #151924;
    --bg-card-hover: #1c2233;
    --border-color: #262c3d;
    --purple: #8b5cf6;
    --purple-hover: #7c3aed;
    --purple-glow: rgba(139, 92, 246, 0.25);
    --cyan: #38bdf8;
    --gold: #f59e0b;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --danger: #f87171;
    --danger-bg: rgba(239, 68, 68, 0.15);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

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

/* NAVBAR */
.navbar {
    background-color: rgba(18, 24, 38, 0.94);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hub-back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}
.hub-back-link:hover { color: #fff; }

.brand-divider { color: var(--border-color); }

.brand {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.brand span { color: var(--purple); }

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.user-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--purple);
    color: #fff;
}
.btn-primary:hover {
    background: var(--purple-hover);
    box-shadow: 0 0 15px var(--purple-glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--purple);
    color: #fff;
    background: rgba(139, 92, 246, 0.08);
}

.btn-danger {
    background: transparent;
    border-color: var(--border-color);
    color: var(--danger);
}
.btn-danger:hover {
    background: var(--danger-bg);
}

.btn-large {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 8px;
}

/* HERO SECTION */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero-title span {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    max-width: 720px;
    margin: 0 auto 32px;
    font-size: 17px;
    color: var(--text-muted);
}

.hero-badges-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.metric-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.metric-pill strong { color: #fff; }

/* DOWNLOAD CARDS */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}
.download-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.4);
}

.download-card.featured {
    border-color: var(--purple);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.15);
}

.card-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--purple);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 16px;
}

/* WEB CLIENT SECTION */
.web-client-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 60px;
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.client-title h2 {
    font-size: 22px;
    font-weight: 800;
}
.client-title p {
    color: var(--text-muted);
    font-size: 13px;
}

.client-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.input-box {
    background: #0b0e14;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.input-box:focus { border-color: var(--purple); }

.stream-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-viewport video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.viewport-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}
.viewport-placeholder .icon { font-size: 48px; opacity: 0.6; }

/* IN-GAME HUD */
.stream-hud {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(11, 14, 20, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 8px 14px;
    display: none;
    gap: 14px;
    font-size: 12px;
    backdrop-filter: blur(6px);
    z-index: 10;
}
.hud-item { display: flex; flex-direction: column; }
.hud-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; }
.hud-val { font-weight: 700; color: #fff; }

/* AD MODAL */
.ad-modal {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 40;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.ad-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

/* CABINET STYLES */
.cabinet-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin: 40px 0;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.user-profile-head {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 12px;
}

.balance-card {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
}
.balance-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--purple);
}

.hosts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.hosts-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}
.hosts-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 14px;
}

/* FOOTER */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 768px) {
    .cabinet-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 32px; }
    .navbar-actions .btn { padding: 6px 12px; font-size: 12px; }
}

