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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #172033;
    background: #080d17;
}

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

.top-header {
    width: 100%;
    height: 70px;
    background: #000;
    position: relative;
    z-index: 20;
}

.header-inner {
    width: min(1540px, calc(100% - 50px));
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    background: #f1f4f8;
    color: #0d1728;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .4px;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 42px;
    margin-left: auto;
    margin-right: 70px;
}

.main-menu a {
    color: #8794a9;
    font-size: 13px;
    font-weight: 700;
}

.main-menu a.active,
.main-menu a:hover {
    color: #fff;
}

.signup-btn {
    padding: 11px 27px;
    background: #df2727;
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

.page-background {
    min-height: 1000px;
    background:
        linear-gradient(rgba(9, 11, 18, .25), rgba(9, 11, 18, .12)),
        url("b.avif") center center / cover no-repeat;
    background-attachment: fixed;
}

.main-wrapper {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 85px;
}

.market-board {
    width: 100%;
    min-height: 205px;
    padding: 25px;
    margin-bottom: 22px;
    background: rgba(8, 18, 33, .96);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 14px;
    display: grid;
    grid-template-columns: 1.05fr 1.05fr 1.05fr 1fr;
    gap: 20px;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.market-column {
    padding-right: 18px;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.market-column h3 {
    font-size: 13px;
    margin-bottom: 13px;
}

.market-column h3 span {
    color: #25df9e;
    font-size: 10px;
}

.market-row {
    display: grid;
    grid-template-columns: 1fr auto 52px;
    gap: 9px;
    align-items: center;
    margin-bottom: 9px;
    font-size: 11px;
}

.market-row strong {
    font-size: 11px;
    text-align: right;
}

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

.up {
    color: #00d99a;
}

.down {
    color: #ff3d4c;
}

.mini-tabs {
    display: flex;
    gap: 9px;
    margin: -5px 0 10px;
    color: #58687d;
    font-size: 9px;
}

.mini-tabs .selected {
    color: #00dca0;
}

.ai-title {
    margin-top: 18px;
}

.market-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portfolio-box {
    padding: 12px;
    border: 1px solid rgba(65, 129, 213, .22);
    border-radius: 8px;
    background: linear-gradient(135deg, #10243a, #0b1729);
}

.portfolio-box h3 {
    margin-bottom: 6px;
    color: #43a7e8;
    font-size: 13px;
}

.portfolio-box p {
    color: #8ea0b7;
    font-size: 9px;
    line-height: 1.4;
}

.portfolio-box button {
    margin-top: 10px;
    padding: 7px 13px;
    border: 0;
    border-radius: 4px;
    background: #ffc400;
    color: #111;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.news-box span {
    display: block;
    margin-bottom: 4px;
    color: #41d286;
    font-size: 8px;
    font-weight: 800;
}

.news-box strong {
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
}

.news-box p {
    color: #68788d;
    font-size: 9px;
    line-height: 1.4;
}

.white-card {
    width: 100%;
    padding: 26px 24px 22px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}

.stock-container {
    width: 100%;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

.stock-info-container {
    width: 100%;
    min-width: 0;
}

.stock-info-container h1 {
    margin: 0 0 7px;
    padding: 0;
    color: #142036;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.8px;
}

.chart-label {
    margin: 0 0 22px;
    color: #0ca36c;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

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

.stock-table td {
    height: 29px;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    color: #65738a;
    font-size: 11px;
    line-height: 1.3;
    vertical-align: middle;
}

.stock-table td:first-child {
    width: 58%;
    text-align: left;
}

.stock-table td:last-child {
    width: 42%;
    text-align: right;
    color: #172238;
    font-weight: 700;
}

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

.chart-nav {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

#current-date {
    display: block;
    padding-top: 3px;
    color: #6f7d91;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

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

.time-tabs .tab {
    height: 23px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #6f7e94;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
}

.time-tabs .tab.active {
    background: #121c2f;
    color: #fff;
    font-weight: 700;
}

.canvas-container {
    position: relative;
    width: 100%;
    height: 220px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.canvas-container #myChart {
    display: block;
    width: 100% !important;
    height: 220px !important;
    max-width: 100%;
}

.lottery-table {
    width: 100%;
    margin: 18px 0 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

.lottery-table th,
.lottery-table td {
    height: 32px;
    padding: 7px 8px;
    border: 1px solid #e1e6ed;
    background: #fff;
    color: #536176;
    text-align: center;
    vertical-align: middle;
    font-size: 10px;
    line-height: 1.2;
}

.lottery-table thead th {
    background: #f6f8fa;
    color: #526076;
    font-weight: 700;
}

.lottery-table thead tr:first-child th:first-child {
    width: 38%;
}

.lottery-table thead tr:first-child th:nth-child(2) {
    width: 62%;
}

.history-card {
    margin-top: 22px;
    padding: 26px 24px 24px;
}

.card-header-title {
    margin-bottom: 16px;
    color: #121d30;
    font-size: 17px;
}

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

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

#dataTable th,
#dataTable td {
    padding: 8px 10px;
    border: 1px solid #dce2e9;
    color: #4b596e;
    text-align: center;
    font-size: 11px;
}

#dataTable th {
    background: #f4f6f8;
    color: #354258;
    font-weight: 700;
}

.footer {
    width: 100%;
    padding: 55px 20px 45px;
    background: #070c16;
}

.footer-inner {
    width: min(1000px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 75px;
}

.footer-about h2 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 17px;
}

.footer-about p,
.footer-column p {
    color: #8a96aa;
    font-size: 10px;
    line-height: 1.8;
}

.footer-column h3 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 12px;
}

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

.footer-socials {
    display: flex;
    gap: 9px;
    margin-top: 17px;
}

.footer-socials a {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #182337;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

@media (max-width: 900px) {
    .main-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        margin: 0;
        padding: 20px;
        background: #000;
        flex-direction: column;
        gap: 20px;
    }

    .main-menu.open {
        display: flex;
    }

    .signup-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

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

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

@media (max-width: 600px) {
    .header-inner {
        width: calc(100% - 30px);
    }

    .brand-name {
        font-size: 16px;
    }

    .main-wrapper {
        width: calc(100% - 20px);
        padding-top: 15px;
    }

    .market-board {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .market-column {
        padding: 0 0 15px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .white-card {
        padding: 18px 12px;
        border-radius: 9px;
    }

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

    .chart-nav {
        height: auto;
        min-height: 35px;
        gap: 10px;
    }

    .time-tabs .tab {
        padding: 0 7px;
        font-size: 8px;
    }

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

    .lottery-table th,
    .lottery-table td,
    #dataTable th,
    #dataTable td {
        padding: 8px 5px;
        font-size: 9px;
    }

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