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

:root {
    --navy: #0b123f;
    --dark: #111827;
    --text: #1c2940;
    --muted: #687386;
    --blue: #25a9ef;
    --green: #00a96e;
    --red: #ef4141;
    --border: #dfe5ed;
    --light: #f5f7fa;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: var(--text);
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.header {
    height: 78px;
    background: var(--navy);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo {
    width: 160px;
    display: flex;
    align-items: center;
    color: #fff;
}

.logo-mark {
    margin-right: 7px;
    color: #25a9ef;
    font-size: 26px;
}

.logo strong,
.logo span {
    display: block;
    line-height: 1;
}

.logo strong {
    font-size: 12px;
}

.logo span {
    margin-top: 3px;
    text-align: center;
    font-size: 9px;
    letter-spacing: 2px;
}

.nav {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav a {
    color: #fff;
    font-size: 11px;
}

.nav a:hover {
    color: #42b8f2;
}

.join-btn {
    min-width: 115px;
    padding: 12px 17px;
    background: #e3c36d;
    color: #1c2232;
    text-align: center;
    font-size: 11px;
}

.menu-btn {
    display: none;
    margin-left: 15px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.hero {
    min-height: 245px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .7), rgba(0, 0, 0, .15)),
        radial-gradient(circle at 20% 20%, #0051a5, transparent 32%),
        radial-gradient(circle at 85% 20%, #00a8ff, transparent 32%),
        #02040b;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 550px;
    height: 220px;
    border: 2px solid rgba(0, 190, 255, .45);
    border-radius: 50%;
    transform: rotate(16deg);
}

.hero::before {
    left: -150px;
    top: -70px;
}

.hero::after {
    right: -130px;
    top: -40px;
}

.hero-content {
    min-height: 245px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
    color: #fff;
}

.hero-column h1 {
    margin-bottom: 15px;
    font-size: 22px;
}

.hero-column p {
    font-size: 11px;
    line-height: 1.8;
    color: #e2e7ef;
}

.transparency {
    background: #fff;
    padding: 34px 0 55px;
}

.transparency-inner {
    max-width: 800px;
}

.transparency h2 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 21px;
}

.transparency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-box {
    padding-top: 7px;
    border-top: 2px solid #19a9ee;
}

.feature-box h3 {
    margin-bottom: 10px;
    font-size: 19px;
}

.feature-box p {
    color: #777f8b;
    font-size: 10px;
    line-height: 1.6;
}

.main-content {
    padding: 25px 0 65px;
    background: #fff;
}

.stock-card {
    padding: 25px;
    border: 1px solid #edf0f4;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(20, 31, 51, .04);
}

.stock-container {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 28px;
}

.stock-info-container h1 {
    margin-bottom: 5px;
    color: #14a341;
    font-size: 29px;
    line-height: 1;
}

.chart-label {
    margin-bottom: 15px;
    color: #0b9b61;
    font-size: 9px;
    font-weight: 700;
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
}

.stock-table td {
    padding: 7px 2px;
    border-bottom: 1px solid #e8ebef;
    color: #747e8c;
    font-size: 9px;
}

.stock-table td:last-child {
    color: #1b273b;
    text-align: right;
    font-weight: 700;
}

.stock-chart {
    min-width: 0;
}

.chart-nav {
    height: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#current-date {
    color: #7b8592;
    font-size: 9px;
}

.time-tabs {
    display: flex;
    align-items: center;
}

.tab {
    padding: 5px 9px;
    border-radius: 3px;
    color: #778397;
    font-size: 8px;
    cursor: pointer;
}

.tab.active {
    background: var(--navy);
    color: #fff;
}

.canvas-container {
    width: 100%;
    height: 230px;
    position: relative;
}

#myChart {
    width: 100% !important;
    height: 230px !important;
}

.lottery-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    table-layout: fixed;
}

.lottery-table th,
.lottery-table td {
    height: 32px;
    padding: 7px;
    border: 1px solid #e2e7ed;
    text-align: center;
    color: #596579;
    font-size: 9px;
}

.lottery-table th {
    background: #f8f9fb;
    font-weight: 600;
}

.dashboard-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
    gap: 22px;
    align-items: start;
}

.news-section {
    margin-bottom: 25px;
}

.news-item {
    padding: 0 0 17px;
    margin-bottom: 17px;
    border-bottom: 1px solid #dfe4ea;
}

.news-meta {
    margin-bottom: 5px;
    color: #687386;
    font-size: 9px;
}

.green {
    color: #00a16a;
    font-weight: 700;
}

.news-item h3 {
    margin-bottom: 9px;
    font-size: 14px;
}

.news-item p {
    color: #606b7b;
    font-size: 9px;
    line-height: 1.6;
}

.section-block > h3,
.market-group > h3 {
    margin-bottom: 10px;
    color: #16244d;
    font-size: 11px;
}

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

#dataTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#dataTable th,
#dataTable td {
    padding: 9px 7px;
    border: 1px solid #dfe5ec;
    text-align: center;
    font-size: 9px;
}

#dataTable th {
    background: #eef3f8;
    color: #38475e;
}

#dataTable td {
    background: #fff;
    color: #536074;
}

.market-panel {
    min-width: 0;
}

.market-group {
    margin-bottom: 22px;
}

.market-row {
    min-height: 28px;
    display: grid;
    grid-template-columns: 1fr auto 52px;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid #e6e9ee;
    color: #344157;
    font-size: 9px;
}

.market-row strong {
    font-size: 9px;
    font-weight: 500;
}

.market-row em {
    text-align: right;
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
}

.market-row .up,
.up {
    color: #00a874;
}

.market-row .down,
.down,
.red {
    color: #e84141;
}

.mini-tabs {
    margin: -3px 0 7px;
    display: flex;
    gap: 11px;
    color: #5f6c80;
    font-size: 8px;
}

.mini-tabs .active {
    color: #176ff2;
    text-decoration: underline;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.feed-card {
    min-height: 100px;
    padding: 15px;
    border: 1px solid #dce3eb;
    border-radius: 6px;
    background: #fff;
}

.feed-card h3 {
    margin-bottom: 3px;
    font-size: 11px;
}

.feed-user {
    display: block;
    margin-bottom: 18px;
    color: #40516a;
    font-size: 8px;
}

.feed-card p {
    color: #3e4a5c;
    font-size: 9px;
    line-height: 1.6;
}

.portfolio-card {
    padding: 17px;
    border-radius: 7px;
    background: linear-gradient(135deg, #1c2c60, #122451);
    color: #fff;
}

.portfolio-card > span {
    color: #a9b4ce;
    font-size: 8px;
}

.portfolio-card h2 {
    margin: 5px 0 10px;
    font-size: 17px;
}

.portfolio-card p {
    margin-bottom: 20px;
    color: #e4e8f2;
    font-size: 9px;
    line-height: 1.5;
}

.risk {
    margin-bottom: 5px;
    font-size: 8px;
}

.portfolio-card button {
    width: 100%;
    padding: 7px;
    border: 0;
    border-radius: 3px;
    background: #ffa500;
    color: #111;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.footer {
    padding: 45px 0;
    background: var(--navy);
    color: #fff;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 70px;
}

.footer-logo {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 800;
}

.footer-logo span {
    color: #3ebcf5;
}

.footer p {
    max-width: 330px;
    color: #9faac1;
    font-size: 10px;
    line-height: 1.7;
}

.footer h3 {
    margin-bottom: 12px;
    font-size: 12px;
}

.footer a {
    display: block;
    margin-bottom: 8px;
    color: #aeb8cc;
    font-size: 10px;
}

@media (max-width: 1000px) {
    .nav {
        gap: 18px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {
    .nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        z-index: 20;
        padding: 20px;
        background: var(--navy);
        flex-direction: column;
    }

    .nav.open {
        display: flex;
    }

    .join-btn {
        margin-left: auto;
    }

    .menu-btn {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 35px 0;
    }

    .transparency-grid {
        grid-template-columns: 1fr;
    }

    .stock-container {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 500px) {
    .container {
        width: calc(100% - 24px);
    }

    .header {
        height: 65px;
    }

    .join-btn {
        display: none;
    }

    .hero-column h1 {
        font-size: 19px;
    }

    .stock-card {
        padding: 15px 10px;
    }

    .stock-info-container h1 {
        font-size: 27px;
    }

    .chart-nav {
        height: auto;
        margin-bottom: 8px;
        flex-direction: column;
        gap: 8px;
    }

    .time-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .tab {
        white-space: nowrap;
    }

    .canvas-container,
    #myChart {
        height: 200px !important;
    }
}