/* =========================================================
   NIMCO TOOLS
   PREMIUM AI / LUXURY DARK UI
   MOBILE FIRST
========================================================= */

:root {

    /* =========================
       BACKGROUND
    ========================= */

    --graphite-950: #04070d;
    --graphite-900: #060b18;
    --graphite-800: #0b1220;

    /* =========================
       GLASS
    ========================= */

    --glass: rgba(255,255,255,0.075);
    --glass-strong: rgba(255,255,255,0.10);
    --glass-soft: rgba(255,255,255,0.045);

    --glass-border: rgba(255,255,255,0.12);
    --glass-border-soft: rgba(255,255,255,0.075);

    /* =========================
       NEON EMERALD
    ========================= */

    --emerald: #00e887;
    --emerald-light: #66f7a4;

    --emerald-soft: rgba(0,232,135,0.16);
    --emerald-medium: rgba(0,232,135,0.24);
    --emerald-glow: rgba(0,232,135,0.42);

    /* =========================
       TEXT
    ========================= */

    --text-primary: #f5f7fa;
    --text-white: #ffffff;

    --text-secondary: #a7b2bd;
    --text-muted: #718091;

    /* =========================
       STATUS
    ========================= */

    --danger: #ff5c7a;
    --warning: #ffc857;

    /* =========================
       RADIUS
    ========================= */

    --radius-xl: 26px;
    --radius-lg: 22px;
    --radius-md: 17px;
    --radius-sm: 12px;

    /* =========================
       EFFECTS
    ========================= */

    --blur: blur(20px);

    --shadow-card:
        0 18px 45px rgba(0,0,0,0.34),
        0 4px 16px rgba(0,0,0,0.20);

    --shadow-green:
        0 0 25px rgba(0,232,135,0.16);

}


/* =========================================================
   RESET
========================================================= */

* {

    box-sizing: border-box;

    margin: 0;
    padding: 0;

    -webkit-tap-highlight-color: transparent;

}


/* =========================================================
   HTML BACKGROUND
========================================================= */

html {

    width: 100%;
    min-height: 100%;

    overflow-x: hidden;

    background:
        var(--graphite-950);

}


/* =========================================================
   BODY — NIMCOL TOOLS PREMIUM BACKGROUND
========================================================= */

body {

    width: 100%;
    min-height: 100vh;

    margin: 0;

    overflow-x: hidden;
    overflow-y: auto;

    position: relative;

    background:

        radial-gradient(
            circle at 12% 10%,
            rgba(0,232,135,0.13),
            transparent 28%
        ),

        radial-gradient(
            circle at 88% 42%,
            rgba(0,232,135,0.09),
            transparent 30%
        ),

        radial-gradient(
            circle at 50% 100%,
            rgba(0,120,255,0.055),
            transparent 35%
        ),

        linear-gradient(
            145deg,
            #04070d 0%,
            #07101a 48%,
            #04070d 100%
        );

    color:
        var(--text-primary);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

}


/* =========================================================
   AMBIENT NEON LIGHT
========================================================= */

body::before {

    content: "";

    position: fixed;

    inset: -25%;

    z-index: 0;

    pointer-events: none;

    background:

        radial-gradient(
            circle at 18% 18%,
            rgba(0,232,135,0.18),
            transparent 25%
        ),

        radial-gradient(
            circle at 82% 58%,
            rgba(0,232,135,0.11),
            transparent 28%
        );

    filter:
        blur(65px);

}


/* =========================================================
   VISIBLE AI GRID
========================================================= */

body::after {

    content: "";

    position: fixed;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    background-image:

        linear-gradient(
            rgba(0,232,135,0.075) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(0,232,135,0.075) 1px,
            transparent 1px
        );

    background-size:
        38px 38px;

    opacity:
        0.42;

    mask-image:
        radial-gradient(
            circle at center,
            black 0%,
            black 45%,
            transparent 88%
        );

    -webkit-mask-image:
        radial-gradient(
            circle at center,
            black 0%,
            black 45%,
            transparent 88%
        );

}

/* =========================================================
   CONTENT / BACKGROUND LAYER
========================================================= */

body {
    isolation: isolate;
}


/* =========================================================
   NAVIGATION LAYER
========================================================= */

/*
   Navigation must always sit above page content.
   Do NOT apply z-index to every direct child of body.
   That creates stacking-context conflicts with fixed
   navigation and overlays.
*/

.top-nav,
.menu-popup,
.bottom-nav,
#adminNavigation {
    position: relative;
    z-index: 10000;
}


/* Popup / overlays use fixed positioning */
.menu-popup {
    position: fixed;
}


/* Admin navigation owns its entire stacking layer */
#adminNavigation {
    position: relative;
    z-index: 10000;
}


/* =========================================================
   GLOBAL ELEMENTS
========================================================= */

a {

    color: inherit;

    text-decoration: none;

}


button,
input,
textarea,
select {

    font: inherit;

}


button {

    border: 0;

}


img {

    max-width: 100%;

    display: block;

}


/* =========================================================
   PAGE
========================================================= */

.page {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding:
        0 16px 120px;

}


.dashboard-page {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding:
        28px 16px 120px;

    animation:
        pageEnter .35s ease both;

}


/* =========================================================
   PAGE ENTER
========================================================= */

@keyframes pageEnter {

    from {

        opacity: 0;

        transform:
            translateY(8px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3 {

    color:
        var(--text-white);

}


p {

    color:
        var(--text-secondary);

}


/* =========================================================
   WELCOME SECTION
========================================================= */

.welcome-section {

    margin-bottom:
        24px;

}


.welcome-section h1 {

    font-size:
        clamp(25px, 7vw, 34px);

    line-height:
        1.15;

    font-weight:
        750;

    letter-spacing:
        -0.7px;

    text-shadow:
        0 0 18px rgba(255,255,255,0.04);

}


.welcome-section p {

    margin-top:
        7px;

    font-size:
        14px;

    line-height:
        1.5;

    color:
        var(--text-secondary);

}


/* =========================================================
   NIMCO TOOLS — COMPACT LUXURY WALLET
========================================================= */

.coins-card {
    position: relative;
    overflow: hidden;

    width: 100%;
    padding: 18px 18px 0;

    border: 1px solid rgba(0,232,135,0.14);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(0,232,135,0.075),
            rgba(255,255,255,0.035) 48%,
            rgba(255,255,255,0.018)
        ),
        rgba(8,14,12,0.88);

    box-shadow:
        0 18px 55px rgba(0,0,0,0.30),
        inset 0 1px 0 rgba(255,255,255,0.045);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* soft luxury glow */

.coins-card::before {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -120px;
    top: -150px;

    border-radius: 50%;

    background: rgba(0,232,135,0.14);

    filter: blur(60px);

    pointer-events: none;
}


/* =========================================================
   BALANCE HEADER
========================================================= */

.coins-header {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 58px;
}


.coins-label {
    color: rgba(245,247,250,0.58);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}


.coins-number {
    margin-top: 5px;

    display: flex;
    align-items: baseline;

    gap: 6px;

    color: #f5f7fa;

    font-size: 25px;
    line-height: 1;

    font-weight: 600;

    letter-spacing: -1.2px;
}


.points-label {
    color: rgba(245,247,250,0.48);

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 0;
}


/* =========================================================
   BALANCE EYE
========================================================= */

.balance-eye {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;

    color: rgba(245,247,250,0.62);

    background: rgba(255,255,255,0.035);

    cursor: pointer;

    transition:
        border-color .2s ease,
        color .2s ease,
        background .2s ease;
}


.balance-eye svg {
    width: 17px;
    height: 17px;
}


.balance-eye:active {
    color: var(--green);

    border-color: rgba(0,232,135,0.24);

    background: rgba(0,232,135,0.06);
}


/* =========================================================
   COMPACT ACTION RAIL
========================================================= */

.coins-actions {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    margin-top: 15px;

    padding: 0;

    border-top: 1px solid rgba(255,255,255,0.065);
}


.coin-action {
    width: 100%;
    min-width: 0;

    height: 48px;

    display: flex;
    flex-direction: row;

    align-items: center;
    justify-content: center;

    gap: 7px;

    color: rgba(245,247,250,0.60);

    font-size: 9px;
    font-weight: 500;

    text-align: center;

    transition:
        color .2s ease,
        background .2s ease;
}


.coin-action + .coin-action {
    border-left: 1px solid rgba(255,255,255,0.055);
}


.coin-action-icon {
    width: 23px;
    height: 23px;

    display: grid;
    place-items: center;

    color: rgba(0,232,135,0.82);
}


.coin-action-icon svg {
    width: 15px;
    height: 15px;
}


.coin-action:active {
    color: var(--green);

    background: rgba(0,232,135,0.045);
}


/* =========================================================
   MOBILE — EVEN MORE COMPACT
========================================================= */

@media (max-width: 480px) {

    .coins-card {
        padding: 16px 15px 0;

        border-radius: 18px;
    }

    .coins-header {
        min-height: 52px;
    }

    .coins-number {
        font-size: 25px;
    }

    .points-label {
        font-size: 11px;
    }

    .balance-eye {
        width: 32px;
        height: 32px;
    }

    .coins-actions {
        margin-top: 13px;
    }

    .coin-action {
        height: 44px;

        gap: 6px;

        font-size: 8.5px;
    }

    .coin-action-icon {
        width: 21px;
        height: 21px;
    }

    .coin-action-icon svg {
        width: 14px;
        height: 14px;
    }

}


/* =========================================================
   QUICK ACCESS
========================================================= */

.quick-section {

    width:
        100%;

}


.section-heading {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        16px;

    margin-bottom:
        17px;

}


.section-title-wrap {

    display:
        flex;

    align-items:
        center;

    gap:
        11px;

}


.section-line {

    width:
        3px;

    height:
        35px;

    flex-shrink:
        0;

    border-radius:
        999px;

    background:
        var(--emerald);

    box-shadow:

        0 0 8px
        rgba(0,232,135,0.65),

        0 0 18px
        rgba(0,232,135,0.25);

}


.eyebrow {

    color:
        var(--emerald-light);

    font-size:
        9px;

    font-weight:
        750;

    letter-spacing:
        0.15em;

    margin-bottom:
        2px;

}


.section-heading h2 {

    color:
        #ffffff;

    font-size:
        20px;

    font-weight:
        700;

    letter-spacing:
        -.35px;

}


.view-all {

    color:
        var(--emerald-light);

    font-size:
        12px;

    font-weight:
        650;

    padding:
        7px 11px;

    border-radius:
        999px;

    background:
        rgba(0,232,135,0.08);

    border:
        1px solid
        rgba(0,232,135,0.18);

    transition:
        .25s ease;

}


.view-all:hover {

    background:
        rgba(0,232,135,0.14);

    border-color:
        rgba(0,232,135,0.36);

    box-shadow:
        0 0 15px
        rgba(0,232,135,0.10);

}


/* =========================================================
   TOOL GRID — LIGHTWEIGHT LUXURY
========================================================= */

.tools-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        11px;

}


.tool-item {

    min-width:
        0;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    gap:
        7px;

    padding:
        9px 5px 8px;

    border-radius:
        14px;

    background:
        linear-gradient(
            145deg,
            rgba(17, 35, 34, 0.98),
            rgba(10, 25, 27, 0.98)
        );

    border:
        1px solid
        rgba(0,232,135,0.10);

    box-shadow:
        0 8px 22px
        rgba(0,0,0,0.28),
        inset 0 1px 0
        rgba(255,255,255,0.045),
        inset 0 0 18px
        rgba(0,232,135,0.025);

    transition:
        background .22s ease,
        border-color .22s ease,
        transform .22s ease;

}

.tool-item:hover {

    background:
        rgba(0,232,135,0.045);

    border-color:
        rgba(0,232,135,0.18);

    transform:
        translateY(-1px);

}


.tool-item:active {

    transform:
        scale(.98);

}


/* =========================================================
   TOOL LOGO
========================================================= */

.tool-logo {

    width:
        36px;

    height:
        36px;

    border-radius:
        13px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    overflow:
        hidden;

    background:
        rgba(255,255,255,0.045);

    border:
        1px solid
        rgba(255,255,255,0.075);

    box-shadow:
        0 5px 14px
        rgba(0,0,0,0.16);

}


.tool-logo img {

    width:
        100%;

    height:
        100%;

    object-fit:
        contain;

}


/* =========================================================
   TOOL NAME
========================================================= */

.tool-item > span {

    width:
        100%;

    overflow:
        hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

    text-align:
        center;

    color:
        rgba(245,247,250,0.82);

    font-size:
        10px;

    font-weight:
        500;

    letter-spacing:
        .1px;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    .tools-grid {

        gap:
            9px;

    }

    .tool-item {

        padding:
            8px 4px 7px;

        border-radius:
            13px;

    }

    .tool-logo {

        width:
            36px;

        height:
            36px;

        border-radius:
            12px;

    }

    .tool-item > span {

        font-size:
            9.5px;

        font-weight:
            500;

    }

}

/* =========================================================
   GENERIC GLASS CARD
========================================================= */

.glass-card {

    position:
        relative;

    overflow:
        hidden;

    background:
        rgba(255,255,255,0.055);

    border:
        1px solid
        var(--glass-border);

    border-radius:
        var(--radius-lg);

    box-shadow:
        var(--shadow-card);

    backdrop-filter:
        var(--blur);

    -webkit-backdrop-filter:
        var(--blur);

}


/* =========================================================
   INPUTS
========================================================= */

input,
textarea,
select {

    width:
        100%;

    min-height:
        46px;

    font-size:
        16px;

    padding:
        11px 14px;

    border-radius:
        14px;

    border:
        1px solid
        rgba(255,255,255,0.12);

    background:
        rgba(255,255,255,0.065);

    color:
        #ffffff;

    outline:
        none;

    transition:
        .25s ease;

}


input::placeholder,
textarea::placeholder {

    color:
        #7f8c9a;

}


input:focus,
textarea:focus,
select:focus {

    border-color:
        rgba(0,232,135,0.48);

    background:
        rgba(255,255,255,0.075);

    box-shadow:
        0 0 20px
        rgba(0,232,135,0.12);

}


select {

    appearance:
        auto;

}


label {

    display:
        block;

    margin-bottom:
        7px;

    color:
        #dce3e8;

    font-size:
        12px;

    font-weight:
        650;

}


/* =========================================================
   GENERIC BUTTON
========================================================= */

.primary-button {

    min-height:
        46px;

    padding:
        11px 18px;

    border-radius:
        14px;

    background:

        linear-gradient(
            135deg,
            #00e887,
            #00bd70
        );

    color:
        #02130b;

    font-weight:
        750;

    cursor:
        pointer;

    box-shadow:
        0 0 22px
        rgba(0,232,135,0.24);

    transition:
        .25s ease;

}


.primary-button:hover {

    box-shadow:
        0 0 34px
        rgba(0,232,135,0.42);

    transform:
        translateY(-1px);

}


.primary-button:active {

    transform:
        scale(.97);

}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.secondary-button {

    min-height:
        46px;

    padding:
        11px 18px;

    border-radius:
        14px;

    border:
        1px solid
        rgba(255,255,255,0.12);

    background:
        rgba(255,255,255,0.065);

    color:
        #f2f5f7;

    font-weight:
        650;

    cursor:
        pointer;

    transition:
        .25s ease;

}


.secondary-button:hover {

    border-color:
        rgba(0,232,135,0.35);

    color:
        var(--emerald-light);

    background:
        rgba(0,232,135,0.07);

}


/* =========================================================
   HIDDEN
========================================================= */

.hidden {

    display:
        none !important;

}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 768px) {

    .dashboard-page {

        padding:
            42px 28px 130px;

    }


    .welcome-section {

        margin-bottom:
            30px;

    }


    .coins-card {

        padding:
            26px;

    }


    .coins-actions {

        max-width:
            620px;

    }


    .tools-grid {

        grid-template-columns:
            repeat(6, 1fr);

        gap:
            16px;

    }


    .tool-logo {

        width:
            36px;

        height:
            36px;

    }

}


@media (min-width: 1100px) {

    .dashboard-page {

        padding-left:
            38px;

        padding-right:
            38px;

    }


    .tools-grid {

        grid-template-columns:
            repeat(8, 1fr);

    }

}


/* =========================================================
   SAFE AREA
========================================================= */

body {

    padding-bottom:
        env(safe-area-inset-bottom);

}


/* =========================================================
   SCROLLBAR
========================================================= */

*::-webkit-scrollbar {

    width:
        5px;

}


*::-webkit-scrollbar-track {

    background:
        transparent;

}


*::-webkit-scrollbar-thumb {

    background:
        rgba(0,232,135,0.28);

    border-radius:
        999px;

}


*::-webkit-scrollbar-thumb:hover {

    background:
        rgba(0,232,135,0.45);

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;

    }

}


/* =====================================================
   NIMCO TOOLS — PREMIUM SLIDE-OUT NAVIGATION DRAWER
===================================================== */

:root {
    --drawer-bg: #090e14;
    --drawer-border: rgba(67, 255, 176, 0.13);
    --drawer-text: #f4f7fb;
    --drawer-muted: #858d9d;
    --drawer-accent: #20e99a;
    --drawer-hover: rgba(32, 233, 154, 0.08);
}

/* Prevent background scrolling while drawer is open */
body.drawer-open {
    overflow: hidden;
    touch-action: none;
}

/* Dark overlay */
.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10001;

    background: rgba(2, 5, 10, 0.68);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 260ms ease,
        visibility 260ms ease;
}

.menu-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Drawer panel */
.menu-popup {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;

    width: 75vw !important;
    max-width: 390px;
    min-width: 0;

    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;

    z-index: 10002;

    display: flex;
    flex-direction: column;
    gap: 0;

    margin: 0 !important;
    padding:
        max(22px, env(safe-area-inset-top))
        17px
        max(22px, env(safe-area-inset-bottom));

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    color: var(--drawer-text);
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(32, 233, 154, 0.075),
            transparent 32%
        ),
        linear-gradient(180deg, #0d141d 0%, #080d13 100%);

    border-left: 1px solid var(--drawer-border);
    border-radius: 0;
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.32);

    opacity: 1;
    visibility: hidden;
    pointer-events: none;

    transform: translate3d(100%, 0, 0);

    transition:
        transform 320ms cubic-bezier(.22, 1, .36, 1),
        visibility 320ms ease;

    scrollbar-width: thin;
    scrollbar-color: #26343b transparent;
}

/* Open state */
.menu-popup.show {
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

/* Drawer header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    margin: 0 0 28px;
    padding: 0 0 21px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.drawer-eyebrow {
    display: block;
    margin-bottom: 7px;

    color: var(--drawer-accent);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 3px;
    white-space: nowrap;
}

.drawer-header h2 {
    margin: 0;

    color: #fff;
    font-size: clamp(22px, 5vw, 29px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Close button */
.drawer-close {
    display: grid;
    place-items: center;
    flex: 0 0 38px;

    width: 38px;
    height: 38px;
    padding: 0;

    color: #e8edf4;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;

    cursor: pointer;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.drawer-close svg {
    width: 19px;
    height: 19px;
}

.drawer-close:active {
    transform: scale(0.94);
    background: rgba(32, 233, 154, 0.12);
    border-color: rgba(32, 233, 154, 0.3);
}

/* Section headings */
.drawer-section-label {
    margin: 0 0 9px;
    padding: 0 3px;

    color: #778394;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 2px;
    line-height: 1.4;
}

/* All navigation items */
.menu-popup-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 11px;

    width: 100%;
    min-width: 0;
    min-height: 48px;

    margin: 0 0 4px;
    padding: 11px 9px;

    color: #e8edf4;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 13px;

    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;

    box-sizing: border-box;
    cursor: pointer;

    transition:
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

/* Standard navigation icons */
.menu-popup-item > svg {
    display: block;
    flex: 0 0 20px;

    width: 20px;
    height: 20px;

    color: #929cac;
}

/* Standard navigation hover */
.menu-popup-item:hover {
    color: #fff;
    background: var(--drawer-hover);
    border-color: rgba(32, 233, 154, 0.09);
}

.menu-popup-item:hover > svg,
.menu-popup-item:hover .drawer-chevron {
    color: var(--drawer-accent);
}

/* Navigation labels */
.menu-popup-item > span:not(.drawer-icon):not(.drawer-chevron):not(.drawer-soon) {
    flex: 1;
    min-width: 0;
}

/* Right arrow */
.drawer-chevron {
    flex: 0 0 auto;
    margin-left: auto;

    color: #687586;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
}

/* Section spacing */
.drawer-section-label:not(:first-child) {
    margin-top: 21px;
}

/* Items with icon tiles */
.drawer-icon {
    display: grid;
    place-items: center;
    flex: 0 0 39px;

    width: 39px;
    height: 39px;

    border-radius: 12px;
}

.drawer-icon svg {
    width: 19px;
    height: 19px;
}

/* Social Boost */
.menu-popup-item.social-boost-item {
    min-height: 72px;
    gap: 10px;

    padding: 10px;

    background: linear-gradient(
        110deg,
        rgba(32, 233, 154, 0.11),
        rgba(32, 233, 154, 0.035)
    );

    border: 1px solid rgba(32, 233, 154, 0.19);
}

.social-boost-icon {
    color: var(--drawer-accent);
    background: rgba(32, 233, 154, 0.12);
}

.drawer-item-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
}

.drawer-item-copy strong {
    display: block;

    color: #f5f8fb;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;

    overflow-wrap: break-word;
    word-break: normal;
}

.drawer-item-copy small {
    display: block;

    color: #8793a2;
    font-size: 10px;
    font-weight: 450;
    line-height: 1.45;

    overflow-wrap: break-word;
    word-break: normal;
}

/* Verification Numbers */
.menu-popup-item.drawer-coming-soon {
    min-height: 72px;
    gap: 10px;

    color: #e8edf4;
    cursor: default;
}

.verification-icon {
    color: #a99aff;
    background: rgba(137, 116, 255, 0.12);
}

.drawer-soon {
    flex: 0 0 auto;

    padding: 5px 6px;

    color: #b7aaff;
    background: rgba(137, 116, 255, 0.1);
    border: 1px solid rgba(137, 116, 255, 0.2);
    border-radius: 7px;

    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* Account section */
.drawer-footer {
    margin-top: auto;
    padding-top: 18px;
}

.drawer-footer .logout-item {
    margin: 0;
    color: #ff858c;
    background: rgba(255, 90, 103, 0.055);
    border-color: rgba(255, 90, 103, 0.09);
}

.drawer-footer .logout-item > svg {
    color: #ff858c;
}

.drawer-footer .logout-item:hover {
    background: rgba(255, 90, 103, 0.11);
    border-color: rgba(255, 90, 103, 0.2);
}

/* Prevent drawer content from being covered by fixed UI */
.menu-popup::after {
    content: "";
    display: block;
    flex: 0 0 5px;
    min-height: 5px;
}

/* Compact screens */
@media (max-width: 380px) {
    .menu-popup {
        width: 78vw !important;
        padding-right: 12px;
        padding-left: 12px;
    }

    .drawer-header {
        gap: 8px;
    }

    .drawer-close {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .menu-popup-item {
        gap: 8px;
        padding-right: 7px;
        padding-left: 7px;
        font-size: 12px;
    }

    .drawer-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .drawer-item-copy strong {
        font-size: 11px;
    }

    .drawer-item-copy small {
        font-size: 9px;
    }

    .drawer-soon {
        padding: 4px;
        font-size: 7px;
    }
}

/* Desktop */
@media (min-width: 700px) {
    .menu-popup {
        width: min(360px, 75vw) !important;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .menu-popup,
    .menu-backdrop,
    .drawer-close,
    .menu-popup-item {
        transition: none !important;
    }
}


/* ACTIVE SIDE DRAWER ITEM */
.menu-popup-item.active {
    color: var(--drawer-accent);
    background: var(--drawer-hover);
    border-color: var(--drawer-border);
}

.menu-popup-item.active > svg,
.menu-popup-item.active .drawer-chevron {
    color: var(--drawer-accent);
}

.menu-popup-item.social-boost-item.active {
    background: linear-gradient(
        110deg,
        rgba(32, 233, 154, 0.18),
        rgba(32, 233, 154, 0.06)
    );
    border-color: rgba(32, 233, 154, 0.35);
}

.menu-popup-item.social-boost-item {
    background: transparent;
    border-color: transparent;
}

.menu-popup-item.social-boost-item.active {
    background: linear-gradient(
        110deg,
        rgba(32, 233, 154, 0.18),
        rgba(32, 233, 154, 0.06)
    );
    border-color: rgba(32, 233, 154, 0.35);
}