:root {
    --page-bg: #F5F6F8;
    --navbar-bg: rgba(255, 255, 255, 0.94);
    --surface: #FFFFFF;
    --surface-soft: #ECEEF2;
    --main-text: #0F1923;
    --muted-text: #6B7585;
    --border: #E1E5EB;
    /* Emerald — Buy / positive only */
    --green: #10B981;
    --red: #DC2626;
    /* Slate-navy — primary brand */
    --blue: #1B3A4B;
    --blue-hover: #14303F;
    /* Legacy coral accent */
    --accent: #E05A5C;
    --accent-light: #FEF2F2;
    /* Muted gold — Invest only */
    --accent-gold: #B8922A;
    --status-bg: rgba(16, 185, 129, 0.10);
    --limited-bg: rgba(27, 58, 75, 0.10);
    --shadow: 0 1px 4px rgba(15, 25, 35, 0.06), 0 4px 16px rgba(15, 25, 35, 0.04);
}

html[data-theme="dark"] {
    --page-bg: #0B1117;
    --navbar-bg: rgba(11, 17, 23, 0.96);
    --surface: #111C26;
    --surface-soft: #192435;
    --main-text: #EEF0F5;
    --muted-text: #8A96A8;
    --border: #1E2D3D;
    /* Emerald dark variant — Buy / positive only */
    --green: #34D399;
    --red: #EF4444;
    /* Slate-navy dark variant */
    --blue: #6B9BB8;
    --blue-hover: #4A8099;
    --accent: #E05A5C;
    --accent-gold: #D4A843;
    --status-bg: rgba(52, 211, 153, 0.12);
    --limited-bg: rgba(107, 155, 184, 0.14);
    --shadow: 0 1px 6px rgba(0,0,0,0.30), 0 4px 20px rgba(0,0,0,0.20);
}

* {
    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;
}

.dashboard-navbar {
    width: 100%;
    min-height: 72px;
    padding: 0 3%;
    position: sticky;
    top: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 34px;
    color: var(--main-text);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.dashboard-logo {
    flex-shrink: 0;
}

.dashboard-logo a {
    color: var(--main-text);
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.2px;
    text-decoration: none;
}

.dashboard-logo a span {
    color: var(--accent);
}

.dashboard-nav-links {
    margin-left: 48px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.dashboard-nav-links > a {
    min-height: 72px;
    padding-top: 2px;
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--main-text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.dashboard-nav-links > a:hover,
.dashboard-nav-links > a.active {
    color: var(--accent);
}

.dashboard-nav-links > a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 2.5px;
    border-radius: 10px;
    background: var(--accent);
}

.resource-link {
    gap: 7px;
}

.screener-link {
    position: relative;
}

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

.dashboard-nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-box {
    width: 285px;
    height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 9999px;
    color: var(--main-text);
    background: var(--surface);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 90, 54, 0.1);
}

.search-icon {
    color: var(--muted-text);
    font-size: 18px;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--main-text);
    background: transparent;
    font-size: 14px;
}

.search-box input::placeholder {
    color: var(--muted-text);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--main-text);
    background: var(--surface);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    grid-area: 1 / 1;
}

html[data-theme="light"] .sun-icon {
    display: none;
}

html[data-theme="light"] .moon-icon {
    display: inline;
}

html[data-theme="dark"] .sun-icon {
    display: inline;
}

html[data-theme="dark"] .moon-icon {
    display: none;
}

.refer-btn {
    min-height: 40px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 90, 54, 0.4);
    border-radius: 9999px;
    color: var(--accent);
    background: rgba(255, 90, 54, 0.05);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.refer-btn:hover {
    background: rgba(255, 90, 54, 0.1);
}

.notification-btn,
.apps-btn {
    width: 40px;
    height: 40px;
    position: relative;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--main-text);
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.notification-btn:hover,
.apps-btn:hover {
    background: var(--surface-soft);
}

.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(30, 45, 61, .08);
    border-radius: 17px;
    background:
        radial-gradient(circle at 20% 15%, rgba(255,255,255,.6), transparent 30%),
        linear-gradient(165deg, #D8DEE8 0%, #E8ECF2 50%, #D4DDE8 100%);
    box-shadow: 0 18px 48px rgba(15, 25, 35, .08);
}

html[data-theme="dark"] .hero-banner {
    border-color: var(--border);
    background:
        radial-gradient(circle at 80% 15%, rgba(42, 78, 99, 0.30), transparent 28%),
        linear-gradient(165deg, #0D1A24 0%, #111C26 55%, #0B1421 100%);
    box-shadow: var(--shadow);
}

/* ==========================================
   Opportunity Board 
========================================== */

.opportunity-board {
    width: 315px;
    min-height: 175px;

    position: absolute;
    left: 65px;
    top: 82px;
    z-index: 15;

    padding: 35px 34px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border: 7px solid var(--blue);
    border-radius: 16px;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #16bf7e 0%,
        #159db5 48%,
        #1768e5 100%
    );

    box-shadow:
        0 22px 42px rgba(23, 104, 229, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}


.opportunity-board::before,
.opportunity-board::after {
    content: "";

    width: 6px;
    height: 61px;

    position: absolute;
    top: -65px;

    border-radius: 5px;

    background: #315b8b;
}

.opportunity-board::before {
    left: 62px;
}

.opportunity-board::after {
    right: 62px;
}

.opportunity-board p {
    margin: 0;

    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
}

.opportunity-board h2 {
    margin: 2px 0 0;

    color: #ffffff;

    font-size: 39px;
    line-height: 1.07;
    font-weight: 800;
}



/* SVG arrow inside opportunity board */
.board-arrow {
    position: absolute;
    right: 18px;
    bottom: 27px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    text-decoration: none;

    transition: transform 0.3s ease;
}

.board-arrow svg {
    -webkit-user-select: none;
    user-select: none;

    width: 58px;
    height: 58px;
    display: block;
}

.board-arrow:hover {
    transform: translateX(6px);
}

.board-light {
    width: 65px;
    height: 75px;

    position: absolute;
    top: -61px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 248, 151, 0.8),
            rgba(255, 248, 151, 0)
        );

    clip-path:
        polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}

.board-light-left {
    left: 32px;
}

.board-light-right {
    right: 32px;
}

/*@keyframes boardFloat{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(-8px);

    }

    100%{

        transform:translateY(0);

    }

}*/

.board-light {
    width: 65px;
    height: 75px;
    position: absolute;
    top: -61px;
    background: linear-gradient(180deg, rgba(255,248,151,.8), rgba(255,248,151,0));
    clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}

.board-light-left {
    left: 32px;
}

.board-light-right {
    right: 32px;
}

.hero-center-card {
    width: 520px;
    min-height: 170px;
    position: absolute;
    left: 50%;
    top: 72px;
    z-index: 14;
    transform: translateX(-50%);
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 14px;
    text-align: center;
    background: rgba(255,255,255,.91);
    box-shadow: 0 18px 42px rgba(29,75,125,.09);
}

html[data-theme="dark"] .hero-center-card {
    background: rgba(31,35,52,.94);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.hero-center-card p {
    margin-bottom: 10px;
    color: var(--green);
    font-size: 18px;
    font-weight: 700;
}

.hero-center-card h1 {
    color: #082451;
    font-size: 41px;
    line-height: 1.13;
}

html[data-theme="dark"] .hero-center-card h1 {
    color: var(--main-text);
}

.hero-center-card h1 span {
    display: block;
    color: var(--green);
}

.hero-plane-area {
    width: 390px;
    height: 210px;
    position: absolute;
    right: 34px;
    top: 62px;
    z-index: 13;
}

.hero-plane {
    width: 325px;
    max-height: 180px;
    position: absolute;
    right: 0;
    top: 18px;
    z-index: 3;
    object-fit: contain;
    filter: drop-shadow(0 18px 13px rgba(21,75,132,.18));
    animation: premiumPlaneMove 6s ease-in-out infinite;
}

@keyframes premiumPlaneMove {
    0%, 100% {
        transform: translateX(30px) translateY(18px) rotate(-5deg);
    }
    50% {
        transform: translateX(-30px) translateY(-10px) rotate(-2deg);
    }
}

.plane-trail {
    height: 4px;
    position: absolute;
    right: 245px;
    z-index: 1;
    border-radius: 50px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.85));
    transform: rotate(-12deg);
}

.trail-one {
    width: 180px;
    top: 117px;
}

.trail-two {
    width: 150px;
    top: 132px;
}

.hero-cloud {
    position: absolute;
    z-index: 4;
    border-radius: 50px;
    background: rgba(255,255,255,.94);
}

.hero-cloud::before,
.hero-cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: inherit;
}

.hero-cloud-one {
    width: 115px;
    height: 25px;
    left: 370px;
    top: 76px;
}

.hero-cloud-one::before {
    width: 48px;
    height: 48px;
    left: 18px;
    bottom: 3px;
}

.hero-cloud-one::after {
    width: 58px;
    height: 58px;
    right: 13px;
    bottom: 2px;
}

.hero-cloud-two {
    width: 120px;
    height: 26px;
    right: 290px;
    top: 45px;
}

.hero-cloud-two::before {
    width: 52px;
    height: 52px;
    left: 21px;
    bottom: 3px;
}

.hero-cloud-two::after {
    width: 61px;
    height: 61px;
    right: 12px;
    bottom: 2px;
}

.hero-cloud-three {
    width: 75px;
    height: 19px;
    right: 38px;
    top: 135px;
}

.dashboard-city {
    height: 175px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    opacity: .52;
}

.city-building {
    width: 62px;
    display: block;
    border-radius: 6px 6px 0 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 11px, rgba(255,255,255,.45) 11px 15px),
        linear-gradient(180deg, #75bedd, #3da3c9);
}

.building-small { height: 76px; }
.building-short { height: 94px; }
.building-medium { height: 122px; }
.building-large { height: 148px; }
.building-tall { height: 170px; }

.dashboard-trees {
    position: absolute;
    left: -20px;
    right: -20px;
    bottom: -7px;
    z-index: 5;
    display: flex;
    justify-content: space-around;
}

.dashboard-trees span {
    width: 105px;
    height: 70px;
    border-radius: 55% 55% 38% 38%;
    background:
        radial-gradient(circle at 30% 30%, #55c987, transparent 38%),
        linear-gradient(135deg, #29b575, #0d9a83);
}

html[data-theme="dark"] .city-building,
html[data-theme="dark"] .dashboard-trees span {
    filter: brightness(.72) saturate(1.2);
}



.company-section {
    width: 100%;
    padding: 22px 24px 40px;
    background: var(--page-bg);
}

.company-tabs {
    margin-bottom: 24px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 38px;
    overflow-x: auto;
    color: var(--main-text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.company-tab {
    position: relative;
    flex-shrink: 0;
    padding: 12px 0;
    color: var(--main-text);
    font-size: 18px;
    font-weight: 600;
}

.company-tab:hover,
.company-tab.active {
    color: var(--green);
}

.company-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 100%;
    height: 3px;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.view-buttons {
    margin-left: auto;
    padding: 4px;
    display: flex;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
}

.view-btn {
    width: 44px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--main-text);
    background: transparent;
    font-size: 20px;
}

.view-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--blue));
}

.dashboard-company-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.dashboard-company-card {
    min-height: 440px;
    padding: 26px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--main-text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transition: transform .35s ease, box-shadow .35s ease;
}

.dashboard-company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 50px rgba(20,70,140,.16);
}

.company-status {
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.available-status {
    color: var(--green);
    background: var(--status-bg);
}

.limited-status {
    color: var(--blue);
    background: var(--limited-bg);
}

.dashboard-company-logo {
    width: 100%;
    height: 170px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-company-logo img {
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 135px;
    display: block;
    object-fit: contain;
}

.dashboard-company-card h2 {
    margin: 12px 0;
    color: var(--main-text);
    font-size: 24px;
    line-height: 1.35;
}

.company-category {
    width: fit-content;
    margin-top: 12px;
    padding: 8px 18px;
    border-radius: 50px;
    color: var(--green);
    background: var(--status-bg);
    font-size: 14px;
    font-weight: 600;
}

.investment-info {
    margin: 28px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.investment-info div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.investment-info small,
.company-sector-label {
    color: var(--muted-text);
}

.investment-info strong,
.company-sector-name {
    color: var(--main-text);
}

.investment-info .return-value {
    color: var(--green);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.company-sector-label {
    margin-top: auto;
    padding-top: 24px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
}

.company-sector-name {
    margin-top: 7px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.4;
}

.view-details-btn {
    min-height: 52px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 2px solid var(--green);
    border-radius: 14px;
    color: var(--green);
    background: transparent;
    font-weight: 700;
}

.view-details-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--blue));
}

.rewards-badge {
    position: fixed;
    right: 28px;
    bottom: 32px;
    z-index: 999;
    padding: 14px 24px;
    border: 2px solid var(--blue);
    border-radius: 50px;
    color: var(--main-text);
    background: var(--surface);
    font-size: 16px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

@media (max-width: 1250px) {
    .dashboard-nav-links {
        margin-left: 20px;
        gap: 24px;
    }

    .search-box {
        width: 220px;
    }

    .opportunity-board {
        width: 260px;
        left: 30px;
    }

    .hero-center-card {
        width: 430px;
    }

    .hero-plane-area {
        width: 290px;
        right: 18px;
    }

    .hero-plane {
        width: 255px;
    }
}

@media (max-width: 1000px) {
    .dashboard-nav-links {
        display: none;
    }

    .dashboard-company-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-navbar {
        min-height: 76px;
        padding: 0 18px;
    }

    .dashboard-logo a {
        font-size: 32px;
    }

    .search-box {
        display: none;
    }

    .dashboard-hero {
        padding: 16px;
    }

    .hero-banner {
        min-height: 675px;
    }

    .opportunity-board {
        width: calc(100% - 32px);
        min-height: 145px;
        left: 16px;
        top: 30px;
        text-align: center;
    }

    .hero-center-card {
        width: calc(100% - 32px);
        top: 230px;
    }

    .hero-plane-area {
        width: 100%;
        right: 0;
        top: 420px;
    }

    .hero-plane {
        width: 245px;
        right: 18%;
    }

    .company-section {
        padding: 0 16px 55px;
    }

    .view-buttons {
        display: none;
    }
}

@media (max-width: 600px) {
    .dashboard-company-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .apps-btn {
        display: none;
    }

    .dashboard-nav-actions {
        gap: 6px;
    }

    .refer-btn {
        padding: 0 12px;
        font-size: 12px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .hero-banner {
        min-height: 590px;
    }

    .opportunity-board {
        min-height: 125px;
        padding: 20px;
    }

    .opportunity-board p {
        font-size: 21px;
    }

    .opportunity-board h2 {
        font-size: 29px;
    }

    .hero-center-card {
        top: 195px;
        padding: 25px 18px;
    }

    .hero-center-card h1 {
        font-size: 28px;
    }

    .hero-plane-area {
        top: 355px;
    }

    .hero-plane {
        width: 195px;
        right: 13%;
    }

    .dashboard-company-logo {
        height: 145px;
    }

    .dashboard-company-logo img {
        max-width: 82%;
        max-height: 115px;
    }

    .rewards-badge {
        right: 16px;
        bottom: 20px;
        padding: 11px 18px;
        font-size: 13px;
    }
}

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

.profile-button {
    width: 46px;
    height: 46px;
    padding: 0;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    color: var(--main-text);
    background: var(--surface);

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.3s ease;
}

.profile-button:hover {
    transform: translateY(-2px);

    border-color: var(--green);

    box-shadow:
        0 8px 22px rgba(19, 185, 120, 0.18);
}

.profile-avatar {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--green),
            var(--blue)
        );

    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* Notification without count */

.notification-btn {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    color: var(--main-text);
    background: transparent;

    font-size: 21px;
    cursor: pointer;

    transition:
        color 0.3s ease,
        background-color 0.25s ease;
}

.notification-btn:hover {
    background: var(--surface-soft);
}