:root {
    --bg: #050509;
    --bg-soft: #0b0b12;
    --card: rgba(13, 13, 24, 0.94);
    --card-soft: rgba(13, 13, 24, 0.86);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --accent: #ff45c8;
    --accent-soft: rgba(255, 69, 200, 0.25);
    --text-main: #f5f5f8;
    --text-sub: #a0a1b7;
    --radius: 18px;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #18182d 0, #050509 45%, #020207 100%);
    color: var(--text-main);
}

/* INTRO LANDING */

#intro {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 69, 200, 0.25), #050509 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#intro.intro-hide {
    opacity: 0;
    transform: scale(1.035);
    pointer-events: none;
}

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

.intro-rizz-wrapper {
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.intro-rizz-title {
    font-size: clamp(44px, 8vw, 64px);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent), #5a2dff);
    -webkit-background-clip: text;
    color: transparent;
    transform: translateX(-90px);
    opacity: 0;
    animation: rizz-slide 0.5s ease-out forwards;
}

/* slide in from left */
@keyframes rizz-slide {
    from {
        transform: translateX(-90px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.intro-sub {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-sub);
}

/* MAIN PANEL ROOT */

#main {
    opacity: 0;
    transition: opacity 0.6s ease 0.1s;
}

#main.main-show {
    opacity: 1;
}

/* Topbar */

.topbar {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #ffffff, #ff45c8 40%, #5a2dff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #050509;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 0 18px rgba(255, 69, 200, 0.8);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.logo-main {
    font-weight: 600;
    font-size: 14px;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-sub);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-sub);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--accent-soft);
    background: rgba(8, 8, 16, 0.9);
    font-size: 11px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #35d480;
    box-shadow: 0 0 10px rgba(53, 212, 128, 0.8);
}

.topbar-user strong {
    color: #ffffff;
}

/* Layout */

.layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 18px 30px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
}

/* Sidebar */

.sidebar {
    background: rgba(7, 7, 14, 0.94);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    padding: 14px 12px 14px;
    box-shadow: var(--shadow);
    font-size: 13px;
    position: sticky;
    top: 64px;
    align-self: flex-start;
}

.sidebar-section + .sidebar-section {
    margin-top: 18px;
}

.sidebar-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-sub);
    margin-bottom: 8px;
}

.sidebar-link {
    width: 100%;
    text-align: left;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 7px 10px;
    font-size: 13px;
    background: transparent;
    color: var(--text-sub);
    cursor: pointer;
    margin-bottom: 6px;
}

.sidebar-link.active {
    background: rgba(255, 69, 200, 0.12);
    border-color: var(--accent-soft);
    color: var(--text-main);
}

.sidebar-link:hover:not(.active)) {
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-box {
    background: rgba(3, 3, 10, 0.96);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    padding: 9px 10px;
    font-size: 12px;
    color: var(--text-sub);
}

.sidebar-box p + p {
    margin-top: 4px;
}

.sidebar-box span {
    color: var(--text-main);
}

/* Content */

.content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Modern hero card */

.hero-card {
    background: radial-gradient(circle at top left, rgba(255, 69, 200, 0.28), rgba(6, 6, 14, 0.98));
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 18px 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(5, 5, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    color: #ffffff;
}

.hero-text h1 {
    font-size: 20px;
    margin-bottom: 4px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text p {
    font-size: 13px;
    color: var(--text-sub);
    max-width: 420px;
}

.hero-tags {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
}

.hero-tags span {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(6, 6, 14, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-btn {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid transparent;
    cursor: pointer;
}

.hero-btn.primary {
    background: linear-gradient(135deg, var(--accent), #5a2dff);
    color: #050509;
}

.hero-btn.ghost {
    background: rgba(12, 12, 24, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

/* Cards */

.cards-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    padding: 14px 14px 16px;
    box-shadow: var(--shadow);
    font-size: 13px;
}

.stat-card {
    background: var(--card-soft);
}

.card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-sub);
    margin-bottom: 4px;
}

.card-main {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-sub {
    font-size: 12px;
    color: var(--text-sub);
}

/* Grid 2 sections */

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

.bottom-row {
    margin-top: 4px;
}

/* Card header */

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.pill-mini {
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 6, 14, 0.9);
    color: var(--text-sub);
}

/* Console */

.console-box {
    background: #050509;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    padding: 10px 10px;
    font-size: 11px;
    color: #e8e8f2;
    overflow-x: auto;
}

.console-box pre {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

/* Activity */

.activity {
    list-style: none;
    font-size: 12px;
    color: var(--text-sub);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity li {
    display: flex;
    gap: 8px;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #4adcff;
    margin-top: 4px;
}

.activity-main {
    color: var(--text-main);
}

.activity-sub {
    font-size: 11px;
    color: var(--text-sub);
}

/* Guilds */

.guilds-card .card-header {
    margin-bottom: 8px;
}

.guilds-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.guild-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(6, 6, 12, 0.95);
    border: 1px solid var(--border-subtle);
    font-size: 12px;
}

.dot-small {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #4adcff;
}

.guilds-note {
    font-size: 11px;
    color: var(--text-sub);
}

/* Command list */

.cmd-list {
    list-style: none;
    font-size: 12px;
    color: var(--text-sub);
}

.cmd-list li + li {
    margin-top: 4px;
}

.cmd-list code {
    color: #ffffff;
}

/* Footer */

.footer {
    max-width: 1080px;
    margin: 0 auto 18px;
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-sub);
    gap: 8px;
}

.footer-sub {
    text-align: right;
}

/* Responsive */

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: -1;
    }

    .cards-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text p {
        max-width: none;
    }

    .cards-row {
        grid-template-columns: 1fr;
    }

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