:root {
    --bg: #05070d;
    --bg-soft: #0b1020;
    --card: #0f162e;
    --card-2: #121a35;
    --line: #243154;
    --text: #eef3ff;
    --muted: #9aa6c8;
    --primary: #5f7cff;
    --primary-2: #3dd9ff;
    --ok: #24b47e;
    --warn: #f4b400;
    --bad: #e5484d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background:
        radial-gradient(circle at 15% -10%, rgba(61, 217, 255, 0.13), transparent 30%),
        radial-gradient(circle at 90% 0%, rgba(95, 124, 255, 0.2), transparent 30%),
        linear-gradient(180deg, #04060b 0%, #080d18 45%, #05070d 100%);
    color: var(--text);
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-header {
    background: rgba(5, 7, 13, 0.78);
    border-bottom: 1px solid #1c2743;
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    z-index: 10;
}

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

.brand {
    font-size: 1.26rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--text);
    text-decoration: none;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 14px;
    font-weight: 600;
}

.balance-chip {
    display: inline-block;
    margin-left: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #31457d;
    background: rgba(95, 124, 255, 0.16);
    color: #dbe4ff;
    font-size: 0.82rem;
    font-weight: 700;
}

nav a:hover {
    color: #fff;
}

.content {
    padding: 30px 0 42px;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.hero-box,
.card {
    background: linear-gradient(180deg, rgba(95, 124, 255, 0.08), rgba(15, 22, 46, 0.92));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 14px 36px rgba(0, 0, 0, 0.34);
}

.premium-glow {
    position: relative;
    overflow: hidden;
}

.premium-glow::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -100px;
    top: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 217, 255, 0.2), transparent 62%);
    pointer-events: none;
}

.chip {
    display: inline-block;
    padding: 6px 10px;
    font-size: 0.76rem;
    border-radius: 999px;
    border: 1px solid #31457d;
    background: rgba(95, 124, 255, 0.14);
    color: #cdd8ff;
    margin-bottom: 10px;
}

.hero h1 {
    margin: 0 0 12px;
    line-height: 1.14;
    font-size: clamp(1.75rem, 4vw, 2.7rem);
}

.hero p {
    color: var(--muted);
    margin: 0 0 16px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.kpi {
    border: 1px solid #25335a;
    border-radius: 11px;
    padding: 10px;
    background: rgba(11, 16, 32, 0.8);
}

.kpi-label {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    margin-bottom: 4px;
}

.kpi strong {
    font-size: 1.1rem;
}

.analytics-card h3 {
    margin-bottom: 4px;
}

.chart-mock {
    height: 170px;
    border: 1px solid #2a3962;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(9, 14, 29, 0.95), rgba(11, 17, 32, 0.8)),
        repeating-linear-gradient(
            to right,
            transparent,
            transparent 64px,
            rgba(73, 90, 140, 0.16) 64px,
            rgba(73, 90, 140, 0.16) 65px
        );
    position: relative;
    margin: 10px 0 14px;
    overflow: hidden;
}

.chart-mock::before {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, rgba(95, 124, 255, 0), rgba(95, 124, 255, 0.8), rgba(61, 217, 255, 0.85), rgba(95, 124, 255, 0));
    transform: rotate(-4deg);
    box-shadow: 0 0 20px rgba(61, 217, 255, 0.5);
}

.compact-grid {
    gap: 8px;
}

.mini-stat {
    border: 1px solid #26385f;
    border-radius: 10px;
    padding: 10px;
    background: rgba(11, 16, 32, 0.72);
}

.mini-stat span {
    color: var(--muted);
    display: block;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.mini-stat strong {
    font-size: 1rem;
}

.grid-3 {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.grid-2 {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.package-card {
    border-color: #2b3b69;
}

.card h3,
.card h2 {
    margin-top: 0;
}

.muted {
    color: var(--muted);
}

.btn {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 11px 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4d66ff);
    color: #fff;
}

.btn-secondary {
    background: #1b2649;
    color: #e7ecff;
    border: 1px solid #344a82;
}

input,
select,
textarea {
    width: 100%;
    background: #0b1228;
    color: #e7ecff;
    border: 1px solid #273863;
    border-radius: 10px;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 10px;
}

label {
    font-size: 0.9rem;
    color: #d7dfff;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

th,
td {
    border-bottom: 1px solid #25365f;
    padding: 10px 8px;
    text-align: left;
}

.status {
    padding: 5px 8px;
    border-radius: 6px;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
}

.status.pending {
    background: rgba(244, 180, 0, 0.18);
    color: #ffd971;
}

.status.approved,
.status.done,
.status.processing,
.status.active,
.status.completed {
    background: rgba(36, 180, 126, 0.2);
    color: #74ffcb;
}

.status.rejected,
.status.failed,
.status.suspended,
.status.stopped {
    background: rgba(229, 72, 77, 0.2);
    color: #ff9fa2;
}

.alert {
    border-radius: 9px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-weight: 600;
}

.alert.success {
    background: rgba(36, 180, 126, 0.2);
    border: 1px solid #2ea87e;
}

.alert.error {
    background: rgba(229, 72, 77, 0.2);
    border: 1px solid #b74449;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #111a32;
    color: #b8c4e6;
    border: 1px solid #2a3a63;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(95, 124, 255, 0.32), rgba(61, 217, 255, 0.22));
    color: #fff;
    border-color: #4f71c7;
}

.hidden {
    display: none;
}

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

.timeline-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    opacity: 0.65;
}

.timeline-item.active {
    opacity: 1;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    background: #44588f;
    box-shadow: 0 0 0 3px rgba(68, 88, 143, 0.25);
}

.timeline-item.active .timeline-dot {
    background: #3dd9ff;
    box-shadow: 0 0 0 3px rgba(61, 217, 255, 0.2);
}

.timeline-content p {
    margin: 4px 0 0;
    font-size: 0.85rem;
}

#trafficChart {
    width: 100% !important;
    min-height: 260px;
}

ul {
    padding-left: 18px;
}

.site-footer {
    display: flex;
    gap: 14px;
    padding: 6px 0 28px;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.app-main {
    padding: 14px;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 14px;
    min-height: calc(100vh - 28px);
}

.app-sidebar {
    background: linear-gradient(180deg, #0a0f1c, #0d1324);
    border: 1px solid #222f4d;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
}

.side-brand {
    font-size: 1.2rem;
    font-weight: 800;
}

.side-sub {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.side-menu {
    display: grid;
    gap: 8px;
    margin-bottom: auto;
}

.side-menu .tab-btn {
    width: 100%;
    text-align: left;
}

.app-content {
    background: linear-gradient(180deg, #0a0f1d, #0c1324);
    border: 1px solid #22304e;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.app-topbar h2 {
    margin: 0;
}

.topbar-actions {
    display: flex;
    gap: 8px;
}

.dashboard-banner {
    margin-bottom: 12px;
}

.banner-item {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #2a3d69;
    background: rgba(95, 124, 255, 0.08);
    margin-bottom: 8px;
}

.app-panel {
    margin-top: 10px;
}

@media (max-width: 980px) {
    .hero,
    .grid-3,
    .grid-2,
    .kpi-row {
        grid-template-columns: 1fr;
    }

    nav a {
        margin-left: 8px;
        font-size: 0.9rem;
    }

    .site-footer {
        flex-wrap: wrap;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        order: 2;
    }

    .app-content {
        order: 1;
    }

    .app-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
