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

:root {
    --black: #111214;
    --dark: #17191d;
    --dark2: #202329;

    --red: #8b1e22;
    --red2: #aa292e;
    --red-soft: #f8eeee;

    --gold: #e7ad19;

    --green: #20a75a;

    --text: #1d2635;
    --muted: #7e8794;

    --border: #e5e8ed;
    --bg: #f4f5f7;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.site-header {
    height: 72px;
    background: var(--black);
    border-top: 2px solid var(--red);
    position: relative;
    z-index: 100;
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    height: 100%;
    margin: auto;

    display: flex;
    align-items: center;

    gap: 35px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;

    text-decoration: none;

    color: white;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;

    white-space: nowrap;
}

.logo strong {
    color: var(--gold);
}

.logo-mark {
    width: 30px;
    height: 30px;

    display: block;

    background:
        linear-gradient(
            135deg,
            #ffcc35,
            #8b1e22
        );

    border-radius: 8px 8px 8px 2px;

    transform: rotate(-10deg);
}

.main-nav {
    display: flex;
    gap: 27px;

    margin-left: auto;
}

.main-nav a {
    position: relative;

    text-decoration: none;

    color: #9b9fa7;

    font-size: 12px;

    padding: 27px 0 25px;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
}

.main-nav a.active::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 16px;

    width: 100%;
    height: 2px;

    background: var(--red2);
}

.vip-btn {
    text-decoration: none;

    background: var(--gold);
    color: #171717;

    font-size: 10px;
    font-weight: 800;

    padding: 12px 18px;

    border-radius: 5px;
}

.market-dashboard {
    margin-top: 25px;
    background: #fff;
    border: 1px solid #e5e8ed;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 15px 45px rgba(18, 28, 45, .06);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: .9fr 1.08fr 1.08fr 1.08fr;
    gap: 0;
}

.dashboard-column {
    min-width: 0;
    padding: 0 24px;
    border-right: 1px solid #eceef1;
}

.dashboard-column:first-child {
    padding-left: 0;
}

.dashboard-column:last-child {
    padding-right: 0;
    border-right: 0;
}

.dashboard-heading {
    min-height: 49px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.dashboard-heading h2 {
    color: #172b4d;
    font-size: 18px;
    line-height: 1.2;
}

.dashboard-heading > a {
    font-size: 10px;
    color: #8b1e22;
    text-decoration: none;
    font-weight: 700;
}

.section-kicker {
    display: block;
    color: #9da4ae;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 4px;
}

.sub-heading {
    margin-top: 27px;
}

.market-list {
    width: 100%;
}

.market-list-row {
    min-height: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 55px;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #eff1f3;
    font-size: 11px;
}

.market-list-row > span {
    color: #454b54;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-list-row strong {
    color: #272c33;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.market-list-row em {
    text-align: right;
    font-size: 10px;
    font-style: normal;
    white-space: nowrap;
}

.up {
    color: #00a846 !important;
}

.down {
    color: #ef3434 !important;
}

.live-dot {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8e959e;
    font-size: 8px;
    font-weight: 800;
}

.live-dot i {
    display: block;
    width: 6px;
    height: 6px;
    background: #00aa4f;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 170, 79, .1);
}

.more-link {
    display: inline-block;
    margin-top: 12px;
    color: #1668d5;
    text-decoration: none;
    font-size: 10px;
}

.more-link:hover {
    text-decoration: underline;
}

.stock-country-tabs {
    display: flex;
    gap: 13px;
    margin: -2px 0 8px;
}

.country-tab {
    border: 0;
    padding: 0 0 4px;
    background: transparent;
    color: #3f444b;
    font-size: 11px;
    cursor: pointer;
}

.country-tab.active {
    color: #172b4d;
    font-weight: 800;
    border-bottom: 2px solid #172b4d;
}

.news-item {
    padding: 2px 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #dedfe2;
}

.news-item:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.news-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #a1a5aa;
    font-size: 9px;
}

.news-positive {
    color: #00a846;
    font-size: 12px;
    font-weight: 600;
}

.news-item h3 {
    margin-top: 8px;
    color: #222c3c;
    font-size: 13px;
    line-height: 1.4;
}

.news-item p {
    margin-top: 7px;
    color: #777d85;
    font-size: 11px;
    line-height: 1.55;
}

.community-post {
    padding: 0 0 23px;
    margin-bottom: 22px;
    border-bottom: 1px solid #eceef0;
}

.post-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.post-top h3 {
    color: #272c33;
    font-size: 15px;
}

.post-top > strong {
    font-size: 12px;
}

.post-user {
    display: block;
    margin-top: 5px;
    color: #8c9299;
    font-size: 10px;
}

.community-post p {
    margin-top: 15px;
    color: #4e535a;
    font-size: 11px;
    line-height: 1.55;
}

.ai-portfolio-card {
    margin-top: 27px;
    padding: 20px;
    background: #fff8e5;
    border: 1px solid #f2dfa6;
    border-radius: 9px;
}

.ai-label {
    color: #8f713e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
}

.ai-portfolio-card h3 {
    margin-top: 8px;
    color: #343434;
    font-size: 15px;
}

.ai-portfolio-card p {
    margin-top: 9px;
    color: #777;
    font-size: 10px;
    line-height: 1.55;
}

.risk-line {
    margin-top: 15px;
    color: #555;
    font-size: 10px;
}

.risk-line strong {
    color: #1ca455;
}

.ai-portfolio-card button {
    width: 100%;
    margin-top: 16px;
    padding: 11px;
    border: 0;
    border-radius: 5px;
    background: #ffc400;
    color: #171717;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.ai-portfolio-card button:hover {
    background: #eeb700;
}

@media (max-width: 1050px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-column {
        padding: 25px;
        border-right: 0;
        border-bottom: 1px solid #eceef1;
    }

    .dashboard-column:nth-child(odd) {
        border-right: 1px solid #eceef1;
    }

    .dashboard-column:first-child {
        padding: 25px;
    }

    .dashboard-column:last-child {
        padding: 25px;
    }
}

@media (max-width: 650px) {
    .market-dashboard {
        padding: 0;
        overflow: hidden;
    }

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

    .dashboard-column,
    .dashboard-column:first-child,
    .dashboard-column:last-child {
        padding: 22px 18px;
        border-right: 0;
        border-bottom: 1px solid #eceef1;
    }

    .dashboard-column:last-child {
        border-bottom: 0;
    }

    .dashboard-heading h2 {
        font-size: 17px;
    }

    .market-list-row {
        grid-template-columns: minmax(0, 1fr) auto 55px;
    }
}

.hero {
    min-height: 290px;

    position: relative;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(139, 30, 34, .24),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #14161a,
            #20242b
        );

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    right: -120px;
    top: -220px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.05);
}

.hero::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: 140px;
    bottom: -220px;

    border-radius: 50%;

    background: rgba(139,30,34,.08);
}

.hero-inner {
    position: relative;
    z-index: 2;

    width: min(1100px, calc(100% - 40px));
    min-height: 290px;

    margin: auto;

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

    gap: 60px;
}

.hero-content {
    color: white;

    max-width: 580px;
}

.hero-label {
    color: #d79d9f;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;
}

.hero h1 {
    margin-top: 7px;

    font-size: 43px;
    line-height: 1.1;

    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    color: #9da3ad;

    font-size: 13px;

    margin-top: 14px;

    max-width: 530px;
}

.market-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 22px;

    padding: 7px 12px;

    border: 1px solid rgba(255,255,255,.1);

    border-radius: 30px;

    color: #c3c7ce;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.market-live span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #28c76f;

    box-shadow: 0 0 10px #28c76f;
}


.hero-panel {
    width: 280px;

    background: rgba(255,255,255,.05);

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 10px;

    overflow: hidden;
}

.hero-panel-title {
    color: #b7bbc3;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;

    padding: 13px 16px;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.hero-stat {
    display: flex;
    justify-content: space-between;

    padding: 11px 16px;

    border-bottom: 1px solid rgba(255,255,255,.06);

    font-size: 11px;
}

.hero-stat:last-child {
    border-bottom: 0;
}

.hero-stat span {
    color: #777f8a;
}

.hero-stat strong {
    color: #e5e7eb;
}

.hero-stat .online {
    color: #27c76f;
}


.page-container {
    width: min(1100px, calc(100% - 40px));

    margin: -42px auto 70px;

    position: relative;
    z-index: 10;
}


.market-card,
.history-card {
    background: white;

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

    border-radius: 12px;

    box-shadow:
        0 15px 45px
        rgba(18, 28, 45, .08);
}


.market-card {
    padding: 30px;
}


.market-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    padding-bottom: 22px;

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

.small-label {
    display: block;

    color: var(--red);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 5px;
}

.market-card-header h2,
.history-header h2 {
    font-size: 25px;
}

.market-card-header p,
.history-header p {
    color: var(--muted);

    font-size: 12px;

    margin-top: 4px;
}

.realtime-badge {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #178b4a;

    background: #effaf4;

    border: 1px solid #d7f1e2;

    border-radius: 50px;

    padding: 7px 11px;

    font-size: 9px;
    font-weight: 800;
}

.realtime-badge span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #20a75a;
}


.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 35px;

    padding: 28px 0;
}

.price-label {
    color: var(--muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.3px;
}

.main-price h3 {
    font-size: 46px;

    line-height: 1;

    margin-top: 6px;

    letter-spacing: -1.5px;
}

.price-change {
    display: flex;
    gap: 6px;

    margin-top: 9px;

    color: var(--green);

    font-size: 12px;
    font-weight: 700;
}


.price-mini-grid {
    min-width: 500px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

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

    border-radius: 8px;

    overflow: hidden;
}

.mini-stat {
    padding: 14px 15px;

    border-right: 1px solid var(--border);
}

.mini-stat:last-child {
    border-right: 0;
}

.mini-stat span {
    display: block;

    color: var(--muted);

    font-size: 9px;

    margin-bottom: 5px;
}

.mini-stat strong {
    color: #2a3545;

    font-size: 12px;
}


.market-grid {
    display: grid;

    grid-template-columns:
        250px minmax(0, 1fr);

    gap: 28px;
}


.stock-details {
    border: 1px solid var(--border);

    border-radius: 8px;

    overflow: hidden;
}

.details-title {
    padding: 13px 15px;

    background: var(--dark);

    color: white;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}

.detail-row {
    min-height: 43px;

    padding: 10px 14px;

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

    gap: 10px;

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

    font-size: 11px;
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row span {
    color: #8b939d;
}

.detail-row strong {
    color: #334155;
}


.chart-panel {
    min-width: 0;

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

    border-radius: 8px;

    padding: 17px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 12px;
}

.chart-header strong {
    font-size: 12px;
}


.time-tabs {
    display: flex;

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

    border-radius: 5px;

    overflow: hidden;
}

.tab {
    border: 0;

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

    background: white;

    color: #858d98;

    font-size: 9px;

    padding: 8px 11px;

    cursor: pointer;
}

.tab:last-child {
    border-right: 0;
}

.tab.active {
    color: white;

    background: var(--red);
}


.canvas-container {
    position: relative;

    width: 100%;
    height: 350px;
}


.result-section {
    margin-top: 28px;

    padding-top: 24px;

    border-top: 1px solid var(--border);
}

.result-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 14px;
}

.result-title h3 {
    font-size: 20px;
}

.result-title p {
    color: var(--muted);

    font-size: 11px;

    margin-top: 3px;
}

.result-time {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #777f8b;

    font-size: 10px;
}

.result-time span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--red);
}


.table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.lottery-table,
.history-table {
    width: 100%;

    border-collapse: collapse;
}


.lottery-table th,
.history-table th {
    padding: 13px;

    border: 1px solid #e2e5e9;

    background: #f4f5f7;

    color: #626c79;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .4px;
}

.lottery-table td,
.history-table td {
    padding: 14px;

    border: 1px solid #e5e8ec;

    text-align: center;

    font-size: 13px;
}


.lottery-table tbody td:nth-child(2),
.lottery-table tbody td:nth-child(3) {
    color: var(--red);

    font-size: 20px;

    font-weight: 800;
}


.history-card {
    margin-top: 25px;

    overflow: hidden;
}

.history-header {
    padding: 25px 28px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-badge {
    background: var(--red-soft);

    color: var(--red);

    padding: 7px 11px;

    border-radius: 5px;

    font-size: 9px;
    font-weight: 800;
}


.history-table th {
    background: var(--dark);

    color: white;

    border-color: #2a2d33;
}

.history-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.history-table tbody tr:hover {
    background: #fcf3f3;
}

.history-table td:nth-child(2),
.history-table td:nth-child(3) {
    font-weight: 700;
}


.site-footer {
    background: var(--black);

    color: white;
}

.footer-inner {
    width: min(1100px, calc(100% - 40px));

    margin: auto;

    padding: 38px 0;

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

    gap: 30px;
}

.footer-logo {
    font-weight: 800;

    letter-spacing: 1px;
}

.footer-logo span {
    color: var(--gold);
}

.footer-brand p {
    color: #747a84;

    font-size: 11px;

    margin-top: 7px;
}

.footer-links {
    display: flex;

    gap: 25px;
}

.footer-links a {
    color: #858b95;

    text-decoration: none;

    font-size: 11px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #24262a;

    padding: 16px;

    text-align: center;

    color: #646a73;

    font-size: 10px;
}


@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .hero-panel {
        display: none;
    }

    .price-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-mini-grid {
        width: 100%;
        min-width: 0;
    }

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

    .stock-details {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .details-title {
        grid-column: 1 / -1;
    }

    .detail-row {
        border-right: 1px solid var(--border);
    }
}


@media (max-width: 650px) {

    .site-header {
        height: 64px;
    }

    .header-inner {
        width: calc(100% - 24px);
    }

    .logo {
        font-size: 11px;
    }

    .logo-mark {
        width: 25px;
        height: 25px;
    }

    .vip-btn {
        padding: 9px 11px;

        font-size: 8px;
    }

    .hero {
        min-height: 235px;
    }

    .hero-inner {
        width: calc(100% - 30px);
        min-height: 235px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .page-container {
        width: calc(100% - 20px);

        margin-top: -28px;
    }

    .market-card {
        padding: 18px;
    }

    .market-card-header h2 {
        font-size: 20px;
    }

    .realtime-badge {
        font-size: 7px;
    }

    .main-price h3 {
        font-size: 37px;
    }

    .price-mini-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .mini-stat:nth-child(2) {
        border-right: 0;
    }

    .mini-stat {
        border-bottom:
            1px solid var(--border);
    }

    .stock-details {
        display: block;
    }

    .chart-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .time-tabs {
        width: 100%;
    }

    .tab {
        flex: 1;

        padding: 8px 4px;
    }

    .canvas-container {
        height: 280px;
    }

    .result-title {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }

    .lottery-table,
    .history-table {
        min-width: 520px;
    }

    .history-header {
        padding: 20px;
    }

    .footer-inner {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}