/* =========================================================
   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;

    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;

    }

}