:root {
    --bg: #09090d;
    --panel: #101017;
    --panel-2: #15151e;
    --border: rgba(255,255,255,.08);
    --text: #f5f5f7;
    --muted: #858591;
    --accent: #7c5cff;
    --accent-light: #a18cff;
    --danger: #ff5570;
    --success: #55e88a;
    --sidebar: 245px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background:
        radial-gradient(
            circle at 70% 0%,
            rgba(124,92,255,.09),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        "Inter",
        Arial,
        sans-serif;

    overflow-x: hidden;
}


/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: var(--sidebar);

    display: flex;
    flex-direction: column;

    background: rgba(10,10,15,.96);

    border-right: 1px solid var(--border);

    backdrop-filter: blur(20px);

    z-index: 100;

    transition:
        width .25s ease,
        transform .25s ease;
}

.sidebar-top {
    padding: 25px 18px 20px;
}

.brand {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 4px;
}

.brand-mark {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #5941d9
        );

    box-shadow:
        0 8px 25px
        rgba(124,92,255,.25);

    color: white;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 11px;
    font-weight: 900;
}

.brand-name {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 19px;
    font-weight: 800;

    letter-spacing: -.6px;

    white-space: nowrap;

    overflow: hidden;

    transition:
        opacity .2s ease,
        width .2s ease;
}

.brand-name span {
    color: var(--accent-light);
}

.sidebar-nav {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 8px 12px;

    overflow-y: auto;
}

.nav-item,
.sidebar-toggle {
    width: 100%;
    height: 45px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 0 13px;

    border: 0;
    border-radius: 12px;

    background: transparent;

    color: var(--muted);

    cursor: pointer;

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    text-align: left;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.nav-item:hover,
.sidebar-toggle:hover {
    background:
        rgba(255,255,255,.045);

    color: white;
}

.nav-item:active,
.sidebar-toggle:active {
    transform: scale(.98);
}

.nav-item.active {
    background:
        rgba(124,92,255,.13);

    color: white;

    box-shadow:
        inset 2px 0 0
        var(--accent);
}

.nav-icon {
    width: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 15px;
    font-weight: 900;
}

.nav-text {
    white-space: nowrap;

    overflow: hidden;

    transition:
        opacity .15s ease,
        width .15s ease;
}

.sidebar-bottom {
    padding: 12px;
}

.sidebar-toggle {
    color: #686875;
}

.toggle-icon {
    width: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 18px;

    transition:
        transform .25s ease;
}

.sidebar-open {
    position: fixed;

    left: 12px;
    top: 15px;

    width: 40px;
    height: 40px;

    display: none;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 11px;

    background:
        rgba(18,18,25,.95);

    color: white;

    cursor: pointer;

    z-index: 99;

    font-size: 19px;
}


/* =========================================
   COLLAPSED SIDEBAR
========================================= */

body.sidebar-collapsed .sidebar {
    width: 72px;
}

body.sidebar-collapsed .brand-name,
body.sidebar-collapsed .nav-text {
    opacity: 0;

    width: 0;
}

body.sidebar-collapsed .brand {
    justify-content: center;
}

body.sidebar-collapsed .sidebar-top {
    padding-left: 12px;
    padding-right: 12px;
}

body.sidebar-collapsed .nav-item,
body.sidebar-collapsed .sidebar-toggle {
    justify-content: center;

    padding-left: 0;
    padding-right: 0;
}

body.sidebar-collapsed .toggle-icon {
    transform: rotate(180deg);
}

body.sidebar-collapsed .main-content {
    margin-left: 72px;
}


/* =========================================
   MAIN CONTENT
========================================= */

.main-content {
    min-height: 100vh;

    margin-left: var(--sidebar);

    padding: 50px;

    transition:
        margin-left .25s ease;
}

.game {
    width: 100%;
    max-width: 1150px;

    margin: 0 auto;
}


/* =========================================
   PAGE HEADER
========================================= */

.page-header {
    margin-bottom: 30px;
}

.page-eyebrow {
    color: var(--accent-light);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2.5px;

    margin-bottom: 8px;
}

.page-header h1 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: clamp(27px, 4vw, 42px);

    font-weight: 700;

    letter-spacing: -1.5px;
}

.page-header h1 span {
    color: var(--accent-light);
}

.page-header p {
    color: var(--muted);

    font-size: 12px;

    margin-top: 8px;
}


/* =========================================
   STATS
========================================= */

.stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-bottom: 15px;
}

.stat {
    padding: 20px;

    border: 1px solid var(--border);

    border-radius: 17px;

    background:
        rgba(17,17,24,.8);
}

.stat-label {
    color: var(--muted);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.stat-value {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 27px;
    font-weight: 700;

    margin-top: 7px;
}

.stat-description {
    color: #62626e;

    font-size: 10px;

    margin-top: 4px;
}


/* =========================================
   CLICKER
========================================= */

.click-section {
    min-height: 390px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 30px;

    border: 1px solid var(--border);

    border-radius: 22px;

    background:
        radial-gradient(
            circle at center,
            rgba(124,92,255,.07),
            transparent 50%
        ),
        rgba(15,15,21,.8);
}

.click-label {
    color: var(--muted);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 3px;

    margin-bottom: 25px;
}

.click-button {
    width: 190px;
    height: 190px;

    border: 1px solid
        rgba(161,140,255,.35);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #8c70ff,
            #5f45e8
        );

    color: white;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 25px;
    font-weight: 900;

    letter-spacing: 1px;

    cursor: pointer;

    box-shadow:
        0 0 0 10px
        rgba(124,92,255,.035),
        0 25px 70px
        rgba(91,65,230,.25);

    transition:
        transform .1s ease,
        box-shadow .15s ease;
}

.click-button:hover {
    transform: scale(1.04);

    box-shadow:
        0 0 0 14px
        rgba(124,92,255,.04),
        0 30px 85px
        rgba(91,65,230,.32);
}

.click-button:active {
    transform: scale(.94);
}


/* =========================================
   BUTTONS
========================================= */

.primary-button,
.secondary-button,
.danger-button {
    border-radius: 12px;

    padding: 13px 18px;

    font-family: inherit;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform .15s ease,
        filter .15s ease;
}

.primary-button {
    border: 0;

    background: white;

    color: #0b0b10;
}

.secondary-button {
    background:
        rgba(255,255,255,.07);

    color: white;

    border:
        1px solid
        rgba(255,255,255,.1);
}

.danger-button {
    background:
        rgba(255,77,103,.1);

    color: #ff7185;

    border:
        1px solid
        rgba(255,77,103,.18);
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.08);
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
    opacity: .4;

    cursor: not-allowed;

    transform: none;
}


/* =========================================
   EARN / PANELS
========================================= */

.earn-panel,
.upgrade-panel,
.withdraw-panel,
.settings-panel {
    background:
        rgba(18,18,25,.8);

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 25px;
}

.earn-panel {
    text-align: center;
}

.earn-balance,
.withdraw-balance {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 40px;
    font-weight: 700;

    margin-bottom: 20px;
}


/* =========================================
   UPGRADES
========================================= */

.upgrade-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(260px, .8fr);

    gap: 15px;
}

.upgrade-card,
.upgrade-side-card {
    background:
        linear-gradient(
            145deg,
            rgba(24,24,33,.95),
            rgba(14,14,20,.9)
        );

    border: 1px solid var(--border);

    border-radius: 20px;
}

.upgrade-card {
    padding: 25px;
}

.upgrade-card-top {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.upgrade-category {
    color: var(--accent-light);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2px;

    margin-bottom: 7px;
}

.upgrade-name {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 23px;
    font-weight: 700;
}

.upgrade-description {
    max-width: 500px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.6;

    margin-top: 7px;
}

.upgrade-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 15px;

    background:
        rgba(124,92,255,.12);

    color: var(--accent-light);

    font-size: 24px;
    font-weight: 800;
}

.upgrade-stats {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 25px;
}

.upgrade-stat {
    flex: 1;

    padding: 15px;

    border-radius: 13px;

    background:
        rgba(255,255,255,.035);

    border:
        1px solid
        rgba(255,255,255,.055);
}

.upgrade-stat span {
    display: block;

    color: var(--muted);

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 6px;
}

.upgrade-stat strong {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 21px;
}

.upgrade-arrow {
    color: var(--accent-light);

    font-size: 18px;
}

.upgrade-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 18px;

    padding-top: 18px;

    border-top:
        1px solid var(--border);
}

.upgrade-cost span {
    display: block;

    color: var(--muted);

    font-size: 10px;

    margin-bottom: 5px;
}

.upgrade-cost strong {
    font-size: 14px;
}

.upgrade-button {
    min-width: 130px;
}

.upgrade-message {
    min-height: 18px;

    margin-top: 13px;

    font-size: 11px;
    font-weight: 700;
}

.upgrade-message.error,
.panel-message.error {
    color: var(--danger);
}

.upgrade-message.success,
.panel-message.success {
    color: var(--success);
}

.upgrade-side-card {
    height: fit-content;

    padding: 23px;
}

.upgrade-side-title {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 16px;
    font-weight: 700;

    margin-bottom: 18px;
}

.upgrade-rule {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 13px 0;

    border-bottom:
        1px solid var(--border);
}

.upgrade-rule:last-child {
    border-bottom: 0;
}

.upgrade-rule span {
    color: var(--muted);

    font-size: 11px;
}

.upgrade-rule strong {
    font-size: 12px;
}


/* =========================================
   WITHDRAW
========================================= */

.withdraw-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(260px, .75fr);

    gap: 15px;
}

.withdraw-card,
.withdraw-info-card {
    background:
        linear-gradient(
            145deg,
            rgba(24,24,33,.95),
            rgba(14,14,20,.9)
        );

    border: 1px solid var(--border);

    border-radius: 20px;
}

.withdraw-card {
    padding: 25px;
}

.withdraw-balance-box {
    padding: 22px;

    border-radius: 16px;

    background:
        rgba(124,92,255,.07);

    border:
        1px solid
        rgba(124,92,255,.12);

    margin-bottom: 25px;
}

.withdraw-balance-label {
    color: var(--accent-light);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2px;
}

.withdraw-balance-value {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 38px;
    font-weight: 700;

    margin-top: 6px;
}

.withdraw-balance-sub {
    color: var(--muted);

    font-size: 11px;

    margin-top: 3px;
}

.withdraw-form {
    display: flex;
    flex-direction: column;
}

.withdraw-form label {
    color: #b8b8c2;

    font-size: 11px;
    font-weight: 700;

    margin-bottom: 8px;
}

.withdraw-form label:not(:first-child) {
    margin-top: 18px;
}

.withdraw-input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    outline: none;

    border-radius: 12px;

    background:
        rgba(255,255,255,.035);

    border:
        1px solid
        rgba(255,255,255,.08);

    color: white;

    font-family: inherit;

    font-size: 12px;
}

.withdraw-input::placeholder {
    color: #595965;
}

.withdraw-input:focus {
    border-color:
        rgba(124,92,255,.55);

    background:
        rgba(124,92,255,.04);
}

.conversion-box {
    margin-top: 20px;

    padding: 15px;

    border-radius: 14px;

    background:
        rgba(255,255,255,.025);

    border:
        1px solid
        rgba(255,255,255,.06);
}

.conversion-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 10px 0;

    border-bottom:
        1px solid
        rgba(255,255,255,.05);
}

.conversion-row:last-child {
    border-bottom: 0;
}

.conversion-row span {
    color: var(--muted);

    font-size: 11px;
}

.conversion-row strong {
    color: white;

    font-size: 11px;
}

.withdraw-button {
    width: 100%;

    margin-top: 18px;
}

.panel-message {
    min-height: 18px;

    margin-top: 14px;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================
   SETTINGS
========================================= */

.settings-panel {
    padding: 0;

    overflow: hidden;
}

.setting-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 22px;

    border-bottom:
        1px solid var(--border);
}

.setting-row:last-child {
    border-bottom: 0;
}

.setting-title {
    font-size: 14px;
    font-weight: 700;
}

.setting-description {
    color: var(--muted);

    font-size: 11px;

    margin-top: 5px;
}


/* =========================================
   SIDE QUESTS
========================================= */

.sidequests-page {
    width: 100%;
}

.quest-tabs {
    display: flex;

    gap: 7px;

    margin-bottom: 18px;
}

.quest-tab {
    border:
        1px solid
        rgba(255,255,255,.07);

    background:
        rgba(255,255,255,.035);

    color: #777783;

    padding: 10px 16px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    transition: .15s ease;
}

.quest-tab:hover {
    color: white;

    background:
        rgba(255,255,255,.06);
}

.quest-tab.active {
    color: white;

    background:
        rgba(124,92,255,.14);

    border-color:
        rgba(124,92,255,.25);
}

.quest-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.quest-card {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(24,24,33,.95),
            rgba(14,14,20,.9)
        );

    border:
        1px solid var(--border);

    border-radius: 18px;

    transition:
        transform .15s ease,
        border-color .15s ease;
}

.quest-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(124,92,255,.22);
}

.quest-card.hidden {
    display: none;
}

.quest-card-icon {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 15px;

    background:
        rgba(124,92,255,.1);

    color: var(--accent-light);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 10px;
    font-weight: 900;
}

.quest-card-content {
    flex: 1;

    min-width: 0;
}

.quest-card-type {
    color: var(--accent-light);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.8px;

    margin-bottom: 5px;
}

.quest-card h2 {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 17px;
    font-weight: 700;
}

.quest-card p {
    color: var(--muted);

    font-size: 11px;

    margin-top: 5px;
}

.quest-reward {
    display: inline-block;

    margin-top: 10px;

    padding: 5px 9px;

    border-radius: 7px;

    background:
        rgba(85,232,138,.07);

    color: var(--success);

    font-size: 9px;
    font-weight: 800;
}

.quest-card-actions {
    display: flex;

    gap: 7px;

    flex-shrink: 0;
}

.quest-card-actions a {
    text-decoration: none;
}

.quest-card-actions a,
.quest-card-actions button {
    white-space: nowrap;
}

.quest-claim:disabled {
    opacity: .4;

    cursor: not-allowed;

    transform: none;
}

.quest-progress {
    height: 5px;

    margin-top: 12px;

    overflow: hidden;

    border-radius: 20px;

    background:
        rgba(255,255,255,.06);
}

.quest-progress-bar {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        var(--accent);

    transition:
        width .2s ease;
}

.quest-progress-text {
    color: #666673;

    font-size: 9px;

    margin-top: 5px;
}


/* =========================================
   WARNING / BAN
========================================= */

.overlay,
.ban-screen {
    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(0,0,0,.75);

    backdrop-filter: blur(10px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .2s,
        visibility .2s;

    z-index: 500;
}

.overlay.show,
.ban-screen.show {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

.warning,
.ban-box {
    width:
        min(
            430px,
            calc(100% - 30px)
        );

    padding: 30px;

    border-radius: 22px;

    background:
        #111119;

    border:
        1px solid
        rgba(255,255,255,.09);

    text-align: center;

    box-shadow:
        0 30px 100px
        rgba(0,0,0,.5);
}

.warning-icon,
.ban-icon {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 17px;

    background:
        rgba(255,85,112,.1);

    border:
        1px solid
        rgba(255,85,112,.2);

    color:
        var(--danger);

    font-size: 24px;
    font-weight: 900;
}

.warning h2,
.ban-title {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 24px;
    font-weight: 700;
}

.warning p,
.ban-text {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;

    margin-top: 12px;
}

.warning-count {
    margin-top: 18px;

    color: var(--danger);

    font-size: 11px;
    font-weight: 800;
}

.warning-button {
    width: 100%;

    margin-top: 20px;

    padding: 13px;

    border: 0;

    border-radius: 12px;

    background: white;

    color: #09090d;

    font-family: inherit;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}

.ban-reason {
    margin-top: 18px;

    padding: 12px;

    border-radius: 11px;

    background:
        rgba(255,255,255,.035);

    color: #d5d5dc;

    font-size: 11px;
}

.ban-timer {
    margin-top: 20px;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 32px;
    font-weight: 700;
}

.ban-permanent {
    display: none;

    margin-top: 20px;

    color: var(--danger);

    font-size: 12px;
    font-weight: 800;
}

.ban-note {
    color: #696975;

    font-size: 10px;

    line-height: 1.6;

    margin-top: 16px;
}

.ban-support {
    display: inline-flex;

    margin-top: 22px;

    padding: 12px 18px;

    border-radius: 11px;

    background:
        rgba(255,255,255,.06);

    border:
        1px solid
        rgba(255,255,255,.08);

    color: white;

    text-decoration: none;

    font-size: 11px;
    font-weight: 800;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .main-content {
        padding: 35px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .upgrade-grid,
    .withdraw-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 800px) {

    .sidebar {
        transform:
            translateX(-100%);
    }

    body.sidebar-mobile-open .sidebar {
        transform:
            translateX(0);
    }

    .main-content {
        margin-left: 0 !important;

        padding:
            75px
            20px
            30px;
    }

    .sidebar-open {
        display: flex;
    }

}

@media (max-width: 650px) {

    .quest-card {
        align-items: flex-start;

        flex-wrap: wrap;
    }

    .quest-card-content {
        width:
            calc(
                100% - 70px
            );
    }

    .quest-card-actions {
        width: 100%;

        margin-left: 70px;
    }

    .quest-card-actions button,
    .quest-card-actions a {
        flex: 1;

        text-align: center;
    }

}

@media (max-width: 550px) {

    .click-section {
        min-height: 330px;
    }

    .click-button {
        width: 155px;
        height: 155px;

        font-size: 20px;
    }

    .upgrade-stats {
        gap: 7px;
    }

    .upgrade-bottom {
        align-items: stretch;

        flex-direction: column;
    }

    .upgrade-button {
        width: 100%;
    }

    .setting-row {
        align-items: flex-start;

        flex-direction: column;
    }

}