/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background: #07080d;
    color: #ffffff;

    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================
   PAGE LAYOUT
========================================= */

.page {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        220px
        minmax(0, 1fr)
        245px;
}


/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    background: #0c0d13;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.06);

    padding: 24px 15px;

    display: flex;
    flex-direction: column;

    min-height: 100vh;

    position: sticky;
    top: 0;

    height: 100vh;
}


/* LOGO */

.logo,
.mobile-logo {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 17px;
    font-weight: 800;
}

.logo-icon,
.mobile-logo span {
    color: #a44cff;

    text-shadow:
        0 0 15px #9d3cff;
}


/* MENU TITLE */

.menu-title {
    color: #52545f;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;

    margin-top: 35px;
    margin-bottom: 10px;

    padding-left: 11px;
}

.second-title {
    margin-top: 30px;
}


/* NAVIGATION */

.navigation {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 10px 11px;

    border-radius: 7px;

    color: #777985;

    font-size: 12px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-link span:first-child {
    width: 17px;

    text-align: center;

    color: #666875;

    font-size: 14px;
}

.nav-link:hover {
    background: #171821;

    color: #ffffff;

    transform: translateX(2px);
}

.nav-link:hover span:first-child {
    color: #a550ff;
}


/* ACTIVE NAV */

.nav-link.active {
    background:
        linear-gradient(
            90deg,
            rgba(137, 62, 255, 0.22),
            rgba(137, 62, 255, 0.04)
        );

    color: #ffffff;

    border-left:
        2px solid
        #9848ff;
}

.nav-link.active span:first-child {
    color: #a14fff;
}


/* SIDEBAR PROFILE */

.sidebar-bottom {
    margin-top: auto;
}

.profile {
    border-top:
        1px solid
        rgba(255, 255, 255, 0.06);

    padding: 15px 5px 0;

    display: flex;
    align-items: center;

    gap: 9px;
}

.profile-avatar,
.mini-avatar,
.activity-avatar {
    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    font-weight: 700;

    color: #ffffff;
}

.profile-avatar {
    width: 34px;
    height: 34px;

    background:
        linear-gradient(
            135deg,
            #7139ff,
            #df38ff
        );

    box-shadow:
        0 0 15px
        rgba(143, 55, 255, 0.3);
}

.profile-info {
    display: flex;
    flex-direction: column;

    gap: 3px;

    flex: 1;
}

.profile-info strong {
    font-size: 11px;
}

.profile-info small {
    color: #5e606a;

    font-size: 9px;
}

.profile-arrow {
    color: #5c5e68;

    font-size: 20px;
}


/* =========================================
   MAIN
========================================= */

.main-content {
    min-width: 0;

    padding:
        20px 25px 40px;
}


/* =========================================
   TOPBAR
========================================= */

.topbar {
    min-height: 45px;

    display: flex;
    align-items: center;

    gap: 20px;

    margin-bottom: 20px;
}

.mobile-logo {
    display: none;
}


/* SEARCH */

.search-box {
    height: 35px;

    width: min(340px, 100%);

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 0 10px;

    background: #101117;

    border:
        1px solid
        #20212a;

    border-radius: 7px;
}

.search-icon {
    color: #6c6e79;

    font-size: 18px;
}

.search-box input {
    flex: 1;

    min-width: 0;

    background: transparent;

    border: none;
    outline: none;

    color: #ffffff;

    font-size: 11px;
}

.search-box input::placeholder {
    color: #555761;
}

.search-shortcut {
    color: #555761;

    font-size: 9px;

    padding: 3px 5px;

    border:
        1px solid
        #282a32;

    border-radius: 4px;
}


/* TOP ACTIONS */

.top-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 18px;
}

.top-link {
    color: #777985;

    font-size: 10px;

    transition: color 0.2s ease;
}

.top-link:hover {
    color: #ffffff;
}

.notification {
    position: relative;

    color: #858792;

    font-size: 16px;
}

.notification span {
    position: absolute;

    top: 0;
    right: -1px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #b14aff;

    box-shadow:
        0 0 8px
        #a841ff;
}


/* USER */

.user-mini {
    display: flex;
    align-items: center;

    gap: 8px;
}

.mini-avatar {
    width: 30px;
    height: 30px;

    font-size: 10px;

    background:
        linear-gradient(
            135deg,
            #2f92ff,
            #933eff
        );
}

.user-mini div:last-child {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.user-mini strong {
    font-size: 10px;
}

.user-mini small {
    color: #686a74;

    font-size: 8px;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 245px;

    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;

    border-radius: 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    background:
        linear-gradient(
            110deg,
            #15101e 0%,
            #15121e 45%,
            #11151b 100%
        );
}


/* PURPLE LIGHT */

.hero::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: 20%;
    top: -150px;

    border-radius: 50%;

    background: #942dff;

    filter: blur(100px);

    opacity: 0.13;
}


/* GREEN LIGHT */

.hero::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    left: 15%;
    bottom: -200px;

    border-radius: 50%;

    background: #48ff75;

    filter: blur(100px);

    opacity: 0.06;
}


/* HERO CONTENT */

.hero-content {
    position: relative;
    z-index: 2;

    padding: 35px;

    max-width: 570px;
}

.eyebrow,
.section-label {
    display: block;

    color: #9c52ff;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.eyebrow {
    margin-bottom: 9px;
}

.hero h1 {
    font-size: clamp(26px, 3vw, 39px);

    line-height: 1.1;

    margin-bottom: 12px;
}

.hero p {
    color: #797b86;

    font-size: 11px;

    line-height: 1.7;

    max-width: 370px;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 20px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 32px;

    padding: 0 14px;

    border-radius: 6px;

    font-size: 9px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-btn {
    background:
        linear-gradient(
            100deg,
            #713cff,
            #a83cff
        );

    box-shadow:
        0 7px 25px
        rgba(123, 54, 255, 0.22);
}

.primary-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 30px
        rgba(123, 54, 255, 0.35);
}

.secondary-btn {
    border:
        1px solid
        #33343e;

    color: #9a9ca5;
}

.secondary-btn:hover {
    color: #ffffff;

    border-color: #555762;
}


/* HERO CHARACTER */

.hero-character {
    position: absolute;

    right: 8%;
    bottom: -25px;

    width: 250px;
    height: 250px;

    z-index: 1;
}

.character-glow {
    position: absolute;

    width: 190px;
    height: 190px;

    top: 30px;
    left: 30px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(221, 45, 255, 0.85),
            rgba(103, 34, 255, 0.35),
            transparent 70%
        );

    filter: blur(10px);
}


/*
    Simple CSS-only character.
    You can replace this later with
    a real PNG/WebP image.
*/

.character {
    position: absolute;

    width: 140px;
    height: 190px;

    left: 55px;
    top: 30px;

    filter:
        drop-shadow(
            0 0 20px
            rgba(175, 44, 255, 0.7)
        );
}

.helmet {
    width: 75px;
    height: 75px;

    margin: auto;

    border-radius: 45% 45% 35% 35%;

    background:
        linear-gradient(
            135deg,
            #20233a,
            #05060a
        );

    border:
        2px solid
        #9c35e8;

    position: relative;
}

.helmet::after {
    content: "";

    position: absolute;

    width: 45px;
    height: 7px;

    left: 13px;
    bottom: 18px;

    background: #b53eff;

    box-shadow:
        0 0 15px
        #b53eff;
}

.body {
    width: 105px;
    height: 115px;

    margin: -5px auto 0;

    background:
        linear-gradient(
            130deg,
            #202333,
            #090a0f
        );

    clip-path:
        polygon(
            25% 0,
            75% 0,
            100% 100%,
            0 100%
        );

    border-top:
        2px solid
        #7932b9;
}

.weapon {
    position: absolute;

    width: 110px;
    height: 10px;

    right: -25px;
    top: 90px;

    transform: rotate(-20deg);

    background:
        linear-gradient(
            90deg,
            #1b1d2c,
            #b735f0
        );

    box-shadow:
        0 0 12px
        #a72cff;
}


/* =========================================
   CONTENT SECTIONS
========================================= */

.content-section {
    margin-top: 28px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 14px;
}

.section-label {
    margin-bottom: 4px;

    color: #60626d;
}

.section-heading h2 {
    font-size: 15px;
}

.view-all {
    color: #777985;

    font-size: 9px;

    transition: color 0.2s ease;
}

.view-all:hover {
    color: #a854ff;
}


/* =========================================
   GAME CARDS
========================================= */

.cards-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 11px;
}

.game-card {
    min-width: 0;

    background: #101117;

    border:
        1px solid
        #1d1e27;

    border-radius: 8px;

    padding: 7px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.game-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(157, 69, 255, 0.45);

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.3);
}


/* GAME IMAGE */

.game-image {
    height: 115px;

    position: relative;

    overflow: hidden;

    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image::before {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    filter: blur(35px);

    opacity: 0.4;
}

.weapon-purple {
    background:
        linear-gradient(
            145deg,
            #21172e,
            #0c0d14
        );
}

.weapon-purple::before {
    background: #963cff;
}

.weapon-blue {
    background:
        linear-gradient(
            145deg,
            #111f30,
            #0c0d14
        );
}

.weapon-blue::before {
    background: #168dff;
}

.weapon-pink {
    background:
        linear-gradient(
            145deg,
            #291329,
            #0c0d14
        );
}

.weapon-pink::before {
    background: #ff36c8;
}

.weapon-orange {
    background:
        linear-gradient(
            145deg,
            #302015,
            #0c0d14
        );
}

.weapon-orange::before {
    background: #ff851e;
}


/* RARITY */

.rarity {
    position: absolute;

    left: 7px;
    top: 7px;

    z-index: 2;

    padding: 3px 5px;

    border-radius: 3px;

    font-size: 6px;
    font-weight: 800;
}

.legendary {
    background:
        rgba(190, 62, 255, 0.18);

    color: #c36aff;
}

.epic {
    background:
        rgba(72, 109, 255, 0.18);

    color: #6690ff;
}

.rare {
    background:
        rgba(40, 190, 255, 0.18);

    color: #4dd7ff;
}


/* CSS GUN */

.weapon-shape {
    position: relative;

    z-index: 2;

    font-size: 22px;
    font-weight: 900;

    transform: rotate(-10deg);

    letter-spacing: -3px;
}

.gun-one {
    color: #d248ff;

    text-shadow:
        0 0 15px
        #8b25ff;
}

.gun-two {
    color: #43aaff;

    text-shadow:
        0 0 15px
        #167cff;
}

.gun-three {
    color: #ff5ce1;

    text-shadow:
        0 0 15px
        #ff1ec8;
}

.gun-four {
    color: #ff9a3d;

    text-shadow:
        0 0 15px
        #ff6717;
}


/* CARD INFO */

.card-info {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 9px 3px 3px;

    gap: 5px;
}

.card-info h3 {
    font-size: 9px;

    margin-bottom: 3px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.card-info p {
    color: #555762;

    font-size: 8px;
}

.price {
    color: #a75aff;

    font-size: 8px;

    white-space: nowrap;
}


/* =========================================
   LOWER GRID
========================================= */

.lower-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(180px, 0.8fr);

    gap: 18px;
}


/* =========================================
   REWARD CARDS
========================================= */

.reward-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;
}

.reward-card {
    background: #101117;

    border:
        1px solid
        #1d1e27;

    border-radius: 8px;

    padding: 10px;

    display: flex;
    align-items: center;

    gap: 9px;
}

.reward-icon {
    flex-shrink: 0;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 15px;
}

.purple-icon {
    color: #c16aff;

    background:
        rgba(156, 67, 255, 0.13);

    box-shadow:
        inset 0 0 20px
        rgba(150, 57, 255, 0.1);
}

.yellow-icon {
    color: #ffc23d;

    background:
        rgba(255, 188, 45, 0.12);
}

.blue-icon {
    color: #42aaff;

    background:
        rgba(46, 143, 255, 0.12);
}

.reward-card h3 {
    font-size: 8px;

    margin-bottom: 3px;
}

.reward-card p {
    color: #5d5f69;

    font-size: 7px;
}

.claim {
    margin-left: auto;

    color: #8e49e8;

    font-size: 7px;
}


/* =========================================
   CASE SECTION
========================================= */

.case-section {
    min-height: 135px;

    margin-top: 28px;

    position: relative;

    overflow: hidden;

    border-radius: 8px;

    border:
        1px solid
        rgba(255, 255, 255, 0.06);

    background:
        linear-gradient(
            120deg,
            #17111f,
            #101116
        );

    padding: 18px;
}

.case-glow {
    position: absolute;

    width: 130px;
    height: 130px;

    right: 15px;
    top: 0;

    border-radius: 50%;

    background: #a534ff;

    filter: blur(50px);

    opacity: 0.2;
}

.case-content {
    position: relative;

    z-index: 2;
}

.case-content h2 {
    font-size: 17px;

    margin: 3px 0 5px;
}

.case-content p {
    max-width: 130px;

    color: #656772;

    font-size: 8px;

    line-height: 1.5;
}

.case-content .primary-btn {
    margin-top: 12px;
}


/* CASE BOX */

.case-box {
    position: absolute;

    width: 70px;
    height: 55px;

    right: 30px;
    top: 40px;

    transform:
        rotate(-8deg)
        perspective(200px)
        rotateY(-8deg);

    filter:
        drop-shadow(
            0 0 15px
            rgba(160, 53, 255, 0.5)
        );
}

.case-top {
    height: 15px;

    background:
        linear-gradient(
            90deg,
            #7e31ca,
            #d13cff
        );

    border-radius: 5px 5px 2px 2px;
}

.case-body {
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #24122e,
            #0d0d13
        );

    border:
        1px solid
        #8e31d2;

    color: #ba52ff;

    font-size: 9px;
    font-weight: 900;
}


/* =========================================
   ACTIVITY SIDEBAR
========================================= */

.activity-sidebar {
    min-height: 100vh;

    position: sticky;
    top: 0;

    height: 100vh;

    background: #0b0c11;

    border-left:
        1px solid
        rgba(255, 255, 255, 0.06);

    padding: 25px 15px;

    display: flex;
    flex-direction: column;
}


/* ACTIVITY HEADER */

.activity-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;
}

.activity-header h2 {
    font-size: 14px;
}

.online-dot {
    width: 6px;
    height: 6px;

    display: inline-block;

    border-radius: 50%;

    background: #48e88b;

    box-shadow:
        0 0 10px
        #48e88b;
}


/* ACTIVITY LIST */

.activity-list {
    display: flex;

    flex-direction: column;
}

.activity-item {
    display: flex;

    gap: 9px;

    padding: 11px 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.045);
}


/* AVATARS */

.activity-avatar {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

    font-size: 9px;
}

.avatar-one {
    background:
        linear-gradient(
            135deg,
            #fc4c9b,
            #712dff
        );
}

.avatar-two {
    background:
        linear-gradient(
            135deg,
            #26d9ff,
            #3f53ff
        );
}

.avatar-three {
    background:
        linear-gradient(
            135deg,
            #ff7a35,
            #ff3f92
        );
}

.avatar-four {
    background:
        linear-gradient(
            135deg,
            #6cff70,
            #29a8ff
        );
}

.avatar-five {
    background:
        linear-gradient(
            135deg,
            #ffcf4a,
            #ff6739
        );
}


/* ACTIVITY TEXT */

.activity-text {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;
}

.activity-text p {
    color: #777984;

    font-size: 8px;
}

.activity-text strong {
    color: #d4d5da;
}

.activity-text span {
    color: #9c50ff;

    font-size: 7px;
}

.activity-text small {
    color: #44464f;

    font-size: 7px;
}


/* ONLINE USERS */

.online-users {
    margin-top: auto;

    padding-top: 15px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.05);

    display: flex;

    align-items: center;

    gap: 5px;

    color: #555761;

    font-size: 8px;
}

.online-users strong {
    color: #7b7d86;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1200px) {

    .page {
        grid-template-columns:
            190px
            minmax(0, 1fr);
    }

    .activity-sidebar {
        display: none;
    }

    .cards-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}


/* =========================================
   SMALL TABLET
========================================= */

@media (max-width: 900px) {

    .page {
        grid-template-columns:
            75px
            minmax(0, 1fr);
    }

    .sidebar {
        padding: 20px 10px;
    }

    .logo {
        justify-content: center;

        font-size: 0;
    }

    .logo-icon {
        font-size: 17px;
    }

    .menu-title {
        display: none;
    }

    .navigation {
        margin-top: 30px;
    }

    .nav-link {
        justify-content: center;

        padding: 12px 5px;
    }

    .nav-link span:last-child {
        display: none;
    }

    .profile {
        justify-content: center;
    }

    .profile-info,
    .profile-arrow {
        display: none;
    }

    .cards-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hero-character {
        right: 0;
        opacity: 0.55;
    }

    .lower-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    body {
        background: #07080d;
    }

    .page {
        display: block;
    }


    /* MOBILE SIDEBAR */

    .sidebar {
        min-height: auto;

        height: 55px;

        position: sticky;

        top: 0;

        z-index: 100;

        padding: 0 16px;

        border-right: none;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.06);

        display: flex;

        flex-direction: row;

        align-items: center;

        justify-content: space-between;
    }

    .logo {
        display: flex;

        font-size: 15px;

        justify-content: flex-start;

        margin: 0;
    }

    .logo-icon {
        font-size: 15px;
    }

    .navigation,
    .menu-title,
    .sidebar-bottom {
        display: none;
    }


    /* MAIN */

    .main-content {
        padding:
            15px
            15px
            35px;
    }


    /* TOPBAR */

    .topbar {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 12px;

        margin-bottom: 15px;
    }

    .mobile-logo {
        display: none;
    }

    .search-box {
        width: 100%;

        height: 38px;
    }

    .top-actions {
        display: none;
    }


    /* HERO */

    .hero {
        min-height: 330px;

        border-radius: 10px;
    }

    .hero-content {
        padding: 25px 20px;

        align-self: flex-start;
    }

    .hero h1 {
        max-width: 250px;

        font-size: 28px;
    }

    .hero p {
        max-width: 270px;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    .hero-character {
        right: -25px;

        bottom: -30px;

        opacity: 0.45;

        transform: scale(0.85);
    }


    /* CARDS */

    .cards-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .game-image {
        height: 120px;
    }

    .section-heading {
        margin-bottom: 10px;
    }


    /* REWARDS */

    .reward-grid {
        grid-template-columns: 1fr;
    }

    .reward-card {
        min-height: 55px;
    }


    /* CASE */

    .case-section {
        margin-top: 20px;
    }
}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .main-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .game-image {
        height: 155px;
    }

    .hero {
        min-height: 350px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-character {
        transform:
            scale(0.75)
            translateX(30px);
    }

    .case-box {
        right: 15px;
    }
}