:root {
    --page-bg: #f5f9ff;
    --navbar-bg: rgba(255, 255, 255, 0.97);
    --surface: #ffffff;
    --surface-soft: #f3f8ff;
    --main-text: #08244d;
    --muted-text: #72839f;
    --border: #dfe8f4;
    --green: #13b978;
    --blue: #1768e5;
    --status-bg: rgba(19, 185, 120, 0.13);
    --limited-bg: rgba(23, 104, 229, 0.13);
    --shadow: 0 14px 35px rgba(20, 60, 105, 0.08);
}

html[data-theme="dark"] {
    --page-bg: #0f1220;
    --navbar-bg: rgba(20, 22, 36, 0.98);
    --surface: #242635;
    --surface-soft: #1c2030;
    --main-text: #f5f7ff;
    --muted-text: #aeb8cc;
    --border: #363a4d;
    --green: #35c998;
    --blue: #6e72ff;
    --status-bg: rgba(53, 201, 152, 0.14);
    --limited-bg: rgba(110, 114, 255, 0.16);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--page-bg);
}

body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    color: var(--main-text);
    background: var(--page-bg);
    transition: color .3s ease, background-color .3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}


.resource-link {
    gap: 7px;
}

.screener-link {
    position: relative;
}

.dashboard-new-badge {
    position: absolute;
    top: 13px;
    left: 50%;
    padding: 2px 6px;
    transform: translateX(-50%);
    border-radius: 20px;
    color: #fff;
    background: var(--blue);
    font-size: 8px;
    font-weight: 800;
}


.notification-count {
    width: 18px;
    height: 18px;
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    border: 2px solid var(--surface);
    border-radius: 50%;
    color: #fff;
    background: #f04040;
    font-size: 9px;
    font-weight: 800;
}

.dashboard-hero {
    width: 100%;
    padding: 24px;
    background: var(--page-bg);
}

.hero-banner {
    width: 100%;
    min-height: 390px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(23, 104, 229, .08);
    border-radius: 17px;
    background:
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.95), transparent 24%),
        linear-gradient(180deg, #d9efff 0%, #e9f7ff 58%, #d8f7ee 100%);
    box-shadow: 0 18px 48px rgba(24, 73, 125, .09);
}

html[data-theme="dark"] .hero-banner {
    border-color: var(--border);
    background:
        radial-gradient(circle at 80% 15%, rgba(76,131,224,.22), transparent 25%),
        linear-gradient(180deg, #162740 0%, #19364c 58%, #13413f 100%);
    box-shadow: var(--shadow);
}

/* =========================================
   USER PROFILE AVATAR
========================================= */


/* =====================================
   SUMMARY SECTION
===================================== */

.investment-summary {
    border-bottom: 1px solid var(--border-color, #29344d);
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(22, 140, 255, 0.09),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(34, 199, 122, 0.08),
            transparent 28%
        ),
        var(--section-bg, #121a2c);
}

.summary-inner {
    width: min(1400px, 88%);
    min-height: 190px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    align-items: center;
    gap: 70px;
}

.section-label {
    margin-bottom: 10px;
    color: #22c77a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.summary-heading h1 {
    margin: 0;
    color: var(--text-primary, #ffffff);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
}

.summary-description {
    margin-top: 12px;
    color: var(--text-secondary, #aeb8cc);
    font-size: 16px;
}

.summary-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.summary-item {
    min-height: 104px;
    padding: 20px 22px;
    position: relative;
    border: 1px solid transparent;
    border-radius: 17px;
    transition: 0.25s ease;
}

.summary-item::before {
    content: "";
    width: 1px;
    height: 60%;
    position: absolute;
    left: 0;
    top: 20%;
    background: var(--border-color, #29344d);
}

.summary-item:first-child::before {
    display: none;
}

.summary-item:hover {
    border-color: var(--border-color, #29344d);
    background: var(--card-hover-bg, rgba(255, 255, 255, 0.025));
    transform: translateY(-3px);
}

.summary-item p {
    margin: 0;
    color: var(--text-secondary, #aeb8cc);
    font-size: 14px;
}

.summary-item h2 {
    margin: 15px 0 0;
    color: var(--text-primary, #ffffff);
    font-size: 28px;
    font-weight: 650;
}

.currency-symbol {
    margin-right: 2px;
    color: var(--text-secondary, #aeb8cc);
    font-size: 18px;
}

.profit-percentage {
    margin-left: 5px;
    font-weight: 700;
}

.positive {
    color: #22c77a !important;
}

.negative {
    color: #f15c5c !important;
}

.neutral {
    color: var(--text-primary, #ffffff);
}


/* =====================================
   HOLDINGS TABLE
===================================== */

.holdings-section {
    min-height: calc(100vh - 266px);
    padding: 54px 0 120px;
    background: var(--page-bg, #0d1424);
}

.holdings-container {
    width: min(1400px, 88%);
    min-height: 460px;
    margin: 0 auto;
    position: relative;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.holdings-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    color: var(--text-primary, #ffffff);
}

.holdings-table thead {
    border-bottom: 1px solid var(--border-color, #35405a);
}

.holdings-table th {
    padding: 20px 18px;
    text-align: left;
    color: var(--text-secondary, #b6bfd0);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.holdings-table th:first-child {
    padding-left: 0;
}

.holdings-table td {
    padding: 20px 18px;
    border-bottom: 1px solid var(--border-light, #202b41);
    font-size: 14px;
}

.holdings-table tbody tr {
    transition: 0.2s ease;
}

.holdings-table tbody tr:hover {
    background: var(--table-hover-bg, rgba(255, 255, 255, 0.025));
}


/* =====================================
   EMPTY STATE
===================================== */

.empty-holdings {
    width: 100%;
    min-height: 350px;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.empty-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(22, 140, 255, 0.2);
    border-radius: 22px;
    color: #168cff;
    background: rgba(22, 140, 255, 0.08);
    font-size: 27px;
}

.empty-holdings h2 {
    margin: 0;
    color: var(--text-primary, #ffffff);
    font-size: 20px;
    font-weight: 650;
}

.empty-holdings p {
    max-width: 420px;
    margin: 12px 0 26px;
    color: var(--text-secondary, #9da9bd);
    font-size: 14px;
    line-height: 1.7;
}

.invest-now-button {
    min-width: 155px;
    height: 54px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 750;
    background: linear-gradient(
        135deg,
        #168cff,
        #22c77a
    );
    box-shadow: 0 14px 35px rgba(22, 140, 255, 0.2);
    transition: 0.25s ease;
}

.invest-now-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(34, 199, 122, 0.22);
}

.invest-now-button i {
    transition: 0.25s ease;
}

.invest-now-button:hover i {
    transform: translateX(4px);
}


/* =====================================
   FLOATING REWARD BUTTON
===================================== */

.reward-floating-button {
    min-width: 155px;
    height: 55px;
    padding: 0 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 900;
    border: 2px solid #356ef6;
    border-radius: 18px;
    cursor: pointer;
    color: #182239;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
    font-size: 16px;
    transition: 0.25s ease;
}

.reward-floating-button:hover {
    transform: translateY(-4px);
}

.reward-floating-button strong {
    font-size: 18px;
}

.reward-star {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #ffca38,
        #ff9f1a
    );
    font-size: 11px;
}


/* =====================================
   LIGHT THEME
===================================== */

html[data-theme="light"] {
    --page-bg: #f5f8fd;
    --section-bg: #ffffff;
    --navbar-bg: #ffffff;
    --card-hover-bg: rgba(22, 140, 255, 0.04);
    --table-hover-bg: rgba(22, 140, 255, 0.035);
    --text-primary: #10203b;
    --text-secondary: #647189;
    --text-muted: #8692a5;
    --border-color: #dfe6f0;
    --border-light: #e8edf4;
    --input-bg: #f2f5fa;
    --button-soft-bg: #f0f4fa;
    --button-soft-hover: #e5ebf5;
}


/* =====================================
   DARK THEME
===================================== */

html[data-theme="dark"] {
    --page-bg: #0d1424;
    --section-bg: #121a2c;
    --navbar-bg: #10182a;
    --card-hover-bg: rgba(255, 255, 255, 0.025);
    --table-hover-bg: rgba(255, 255, 255, 0.025);
    --text-primary: #f7f9ff;
    --text-secondary: #aeb8cc;
    --text-muted: #7d899f;
    --border-color: #29344d;
    --border-light: #202b41;
    --input-bg: #192338;
    --button-soft-bg: #192338;
    --button-soft-hover: #23304a;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1180px) {

    .main-navbar {
        padding-inline: 4%;
        gap: 22px;
    }

    .navbar-links {
        gap: 20px;
    }

    .nav-search {
        width: 210px;
    }

    .summary-inner {
        width: 92%;
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 45px 0;
    }

    .summary-values {
        width: 100%;
    }

    .summary-item:first-child::before {
        display: block;
    }

    .holdings-container {
        width: 92%;
    }
}


@media (max-width: 960px) {

    .mobile-menu-button {
        display: grid;
    }

    .navbar-links {
        width: calc(100% - 40px);
        padding: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        position: absolute;
        top: 84px;
        left: 20px;
        border: 1px solid var(--border-color);
        border-radius: 16px;
        background: var(--navbar-bg);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    }

    .navbar-links.show {
        display: flex;
    }

    .nav-link {
        min-height: 47px;
        padding: 0 15px;
        border-radius: 10px;
    }

    .nav-link.active {
        color: #ffffff;
        background: linear-gradient(
            135deg,
            #168cff,
            #22c77a
        );
    }

    .nav-link.active::after {
        display: none;
    }

    .new-badge {
        top: 4px;
        right: auto;
        left: 84px;
    }

    .nav-search,
    .refer-button {
        display: none;
    }
}


@media (max-width: 700px) {

    .main-navbar {
        min-height: 68px;
        padding: 0 18px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .brand-text {
        font-size: 21px;
    }

    

    .summary-inner {
        width: calc(100% - 36px);
        padding: 38px 0;
    }

    .summary-values {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .summary-item {
        min-height: 90px;
        padding: 17px 18px;
        border: 1px solid var(--border-color);
    }

    .summary-item::before {
        display: none !important;
    }

    .summary-item h2 {
        margin-top: 10px;
        font-size: 25px;
    }

    .holdings-section {
        padding-top: 30px;
    }

    .holdings-container {
        width: calc(100% - 36px);
    }

    .empty-holdings {
        min-height: 320px;
        padding-inline: 10px;
    }

    .empty-holdings h2 {
        font-size: 18px;
    }

    .reward-floating-button {
        min-width: auto;
        height: 49px;
        right: 16px;
        bottom: 16px;
        padding: 0 15px;
        font-size: 14px;
    }

    .reward-floating-button strong {
        font-size: 16px;
    }
}


@media (max-width: 480px) {

    .brand-text,
    .notification-button {
        display: none;
    }

    .navbar-actions {
        gap: 8px;
    }

    .summary-heading h1 {
        font-size: 29px;
    }

    .summary-description {
        font-size: 14px;
    }

    .empty-icon {
        width: 61px;
        height: 61px;
        border-radius: 18px;
        font-size: 23px;
    }
}

/* =====================================
   NAVBAR ACTIVE TAB FIX
===================================== */


/* =========================================================
   WPV INVESTMENTS — HIIVE-INSPIRED THEME
   Structure and functionality unchanged
========================================================= */

:root {
    --page-bg: #f4f1e8;
    --section-bg: #fffdf8;
    --surface: #fffdf8;
    --surface-soft: #ece8df;

    --navbar-bg: #174f5c;

    --main-text: #26383d;
    --text-primary: #26383d;
    --text-secondary: #707977;
    --text-muted: #8a9391;

    --border: #d8ddd6;
    --border-color: #d8ddd6;
    --border-light: #e6e9e3;

    --accent: #f45f63;
    --accent-hover: #df4e53;

    --green: #5b9d70;
    --blue: #2f7d8e;

    --card-hover-bg: rgba(244, 95, 99, 0.035);
    --table-hover-bg: rgba(23, 79, 92, 0.035);

    --shadow: 0 16px 38px rgba(24, 65, 72, 0.10);
}

html[data-theme="dark"] {
    --page-bg: #101c20;
    --section-bg: #18323a;
    --surface: #18323a;
    --surface-soft: #214049;

    --navbar-bg: #103842;

    --main-text: #f7f5ee;
    --text-primary: #f7f5ee;
    --text-secondary: #b6c1bf;
    --text-muted: #8fa09d;

    --border: rgba(255, 255, 255, 0.12);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-light: rgba(255, 255, 255, 0.08);

    --accent: #ff7478;
    --accent-hover: #ff6267;

    --green: #87c99a;
    --blue: #6eb6c6;

    --card-hover-bg: rgba(255, 255, 255, 0.028);
    --table-hover-bg: rgba(255, 255, 255, 0.025);

    --shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

/* =========================
   PAGE BACKGROUND
========================= */

body,
.investments-page,
.holdings-section {
    background: var(--page-bg);
}

/* =========================
   NAVBAR THEME
========================= */


.dashboard-new-badge {
    color: var(--navbar-bg);
    background: #ffffff;
}


/* =========================
   SUMMARY SECTION
========================= */

.investment-summary {
    position: relative;
    overflow: hidden;

    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(244, 95, 99, 0.08),
            transparent 32%
        ),
        radial-gradient(
            circle at 88% 18%,
            rgba(23, 79, 92, 0.08),
            transparent 30%
        ),
        var(--section-bg);
}

.summary-inner {
    min-height: 230px;
    padding: 34px 0;
}

.section-label {
    color: var(--accent);
}

.summary-heading h1 {
    color: var(--text-primary);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -1.4px;
}

.summary-description {
    color: var(--text-secondary);
}

.summary-values {
    gap: 18px;
}

.summary-item {
    min-height: 118px;
    padding: 24px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);

    box-shadow: none;
}

.summary-item::before {
    display: none;
}

.summary-item:hover {
    transform: translateY(-4px);

    border-color: rgba(244, 95, 99, 0.42);
    background: var(--surface);

    box-shadow: 0 14px 32px rgba(24, 65, 72, 0.08);
}

.summary-item p {
    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 650;
}

.summary-item h2 {
    color: var(--text-primary);

    font-size: 30px;
    font-weight: 650;
}

.currency-symbol {
    color: var(--text-secondary);
}

.positive {
    color: var(--green) !important;
}

.negative {
    color: var(--accent) !important;
}

.neutral {
    color: var(--text-primary) !important;
}

/* =========================
   HOLDINGS TABLE
========================= */

.holdings-section {
    min-height: calc(100vh - 300px);
    padding: 52px 0 120px;
}

.holdings-container {
    min-height: 470px;
    padding: 26px 30px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);

    box-shadow: none;
}

.holdings-table {
    color: var(--text-primary);
}

.holdings-table thead {
    border-bottom: 1px solid var(--border);
}

.holdings-table th {
    color: var(--text-secondary);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.holdings-table td {
    color: var(--text-primary);

    border-bottom: 1px solid var(--border-light);
}

.holdings-table tbody tr:hover {
    background: var(--table-hover-bg);
}

/* =========================
   EMPTY STATE
========================= */

.empty-holdings {
    min-height: 370px;
}

.empty-icon {
    width: 74px;
    height: 74px;

    border: 1px solid rgba(244, 95, 99, 0.22);
    border-radius: 50%;

    color: var(--accent);
    background: rgba(244, 95, 99, 0.09);

    font-size: 27px;
}

.empty-holdings h2 {
    color: var(--text-primary);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 500;
}

.empty-holdings p {
    color: var(--text-secondary);
}

.invest-now-button {
    min-width: 165px;
    height: 56px;

    border-radius: 999px;

    color: #ffffff;
    background: var(--accent);

    box-shadow: none;
}

.invest-now-button:hover {
    background: var(--accent-hover);

    box-shadow: 0 14px 30px rgba(244, 95, 99, 0.22);
}

/* =========================
   REWARDS BUTTON
========================= */

.rewards-badge,
.reward-floating-button {
    color: #ffffff;
    background: var(--accent);

    border-color: var(--accent);
    border-radius: 999px;

    box-shadow: 0 14px 32px rgba(244, 95, 99, 0.20);
}

.rewards-badge:hover,
.reward-floating-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* =========================
   DARK MODE DETAILS
========================= */

html[data-theme="dark"] .investment-summary {
    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(255, 116, 120, 0.08),
            transparent 32%
        ),
        radial-gradient(
            circle at 88% 18%,
            rgba(110, 182, 198, 0.08),
            transparent 30%
        ),
        var(--section-bg);
}

html[data-theme="dark"] .summary-item,
html[data-theme="dark"] .holdings-container {
    background: var(--surface);
}

html[data-theme="dark"] .empty-icon {
    border-color: rgba(255, 116, 120, 0.25);
    background: rgba(255, 116, 120, 0.10);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1180px) {
    

    .summary-inner,
    .holdings-container {
        width: 92%;
    }
}


@media (max-width: 700px) {
    

    .summary-item {
        min-height: 100px;
    }

    .holdings-container {
        padding: 18px;
    }

    .summary-heading h1 {
        font-size: 38px;
    }
}

@media (max-width: 480px) {
    .summary-heading h1 {
        font-size: 32px;
    }

    .empty-holdings h2 {
        font-size: 23px;
    }
}

/* =========================================================
   LIGHT THEME SPECIFICITY FIX
   Keeps the Hiive-inspired navbar and palette in light mode
========================================================= */

html[data-theme="light"] {
    --page-bg: #f4f1e8 !important;
    --section-bg: #fffdf8 !important;
    --surface: #fffdf8 !important;
    --surface-soft: #ece8df !important;

    --navbar-bg: #174f5c !important;

    --main-text: #26383d !important;
    --text-primary: #26383d !important;
    --text-secondary: #707977 !important;
    --text-muted: #8a9391 !important;

    --border: #d8ddd6 !important;
    --border-color: #d8ddd6 !important;
    --border-light: #e6e9e3 !important;

    --accent: #f45f63 !important;
    --accent-hover: #df4e53 !important;

    --green: #5b9d70 !important;
    --blue: #2f7d8e !important;

    --card-hover-bg: rgba(244, 95, 99, 0.035) !important;
    --table-hover-bg: rgba(23, 79, 92, 0.035) !important;
}

/* Force navbar appearance in both themes */


/* Keep search readable */


/* Investments page spacing cleanup */

.investments-page {
    min-height: calc(100vh - 94px);
}

.summary-inner {
    width: min(1400px, 86%);
}

.holdings-container {
    width: min(1400px, 86%);
}

@media (max-width: 1180px) {
    .summary-inner,
    .holdings-container {
        width: 92%;
    }
}

/* =========================================================
   FINAL NAVBAR FIX
   Makes Investments navbar match the Discover page exactly
========================================================= */


/* Medium desktop: keep the profile inside the navbar */
