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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #243044;
    font-size: 14px;
}

a {
    text-decoration: none;
}

.site-header {
    width: 100%;
    height: 105px;
    background: #030a17;
}

.header-inner {
    max-width: 1100px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo,
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d7a82b;
    border: 3px solid #d7a82b;
    transform: rotate(45deg);
    font-size: 24px;
    font-weight: 700;
}

.logo-mark::first-letter {
    transform: rotate(-45deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    color: #fff;
    font-size: 22px;
    line-height: 22px;
}

.logo-text span {
    color: #d7a82b;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 42px;
}

.main-nav a {
    color: #8d98aa;
    font-size: 12px;
    transition: 0.2s;
}

.main-nav a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 7px;
}

.social {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.x {
    background: #000;
}

.telegram {
    background: #27a7e7;
}

.youtube {
    background: #df2626;
}

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

.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 35px 20px 70px;
}

.stock-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 20px;
}

.stock-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
}

.stock-info-container h1 {
    color: #18a84a;
    font-size: 29px;
    margin-bottom: 6px;
}

.chart-label {
    color: #18a84a;
    font-size: 11px;
    margin-bottom: 30px;
}

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

.stock-table td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    color: #777;
    font-size: 12px;
}

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

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

#current-date {
    color: #999;
    font-size: 10px;
}

.time-tabs {
    display: flex;
}

.tab {
    padding: 6px 12px;
    border: 1px solid #eee;
    color: #aaa;
    font-size: 9px;
}

.tab.active {
    color: #333;
    font-weight: 700;
    background: #fafafa;
}

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

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

.lottery-table th,
.lottery-table td {
    border: 1px solid #e1e4e8;
    text-align: center;
    padding: 10px;
    font-size: 10px;
}

.lottery-table th {
    color: #777;
    background: #f7f8f9;
    text-transform: uppercase;
}

.lottery-table td {
    color: #555;
}

.section {
    margin-top: 30px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.title-line {
    width: 70px;
    height: 3px;
    background: #d62d2d;
    margin-bottom: 45px;
}

.sectors-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    align-items: center;
    gap: 40px;
}

.donut-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-chart {
    width: 155px;
    height: 155px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(
        #387f7a 0 10.4%,
        #68a5a0 10.4% 20.1%,
        #dc9041 20.1% 24.7%,
        #3477cb 24.7% 27.8%,
        #dd8d3e 27.8% 39.1%,
        #bd4747 39.1% 47.4%,
        #681d29 47.4% 55.7%,
        #ad1e78 55.7% 94.3%,
        #d29a42 94.3% 96.1%,
        #b3aa47 96.1% 97.9%,
        #9b8c39 97.9% 100%
    );
}

.donut-chart::after {
    content: "";
    position: absolute;
    inset: 25px;
    border-radius: 50%;
    background: #fff;
}

.donut-center {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.donut-center strong {
    color: #111;
    font-size: 22px;
}

.donut-center span {
    margin-top: 8px;
    font-size: 10px;
    color: #777;
}

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

.sectors-table,
#historyTable {
    width: 100%;
    border-collapse: collapse;
}

.sectors-table th,
.sectors-table td,
#historyTable th,
#historyTable td {
    border: 1px solid #d9dde2;
    padding: 11px;
    font-size: 12px;
}

.sectors-table th {
    text-align: left;
    background: #f6f7f8;
    color: #263348;
    border-bottom: 1px solid #333;
}

.sectors-table td:not(:first-child) {
    text-align: center;
}

.selected-row td {
    font-weight: 700;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
}

.dot1 { background: #387f7a; }
.dot2 { background: #68a5a0; }
.dot3 { background: #dc9041; }
.dot4 { background: #3477cb; }
.dot5 { background: #dd8d3e; }
.dot6 { background: #bd4747; }
.dot7 { background: #681d29; }
.dot8 { background: #ad1e78; }
.dot9 { background: #d29a42; }
.dot10 { background: #b3aa47; }
.dot11 { background: #9b8c39; }

.history-section {
    margin-top: 42px;
}

.history-title {
    margin-bottom: 14px;
}

#historyTable {
    table-layout: fixed;
}

#historyTable th {
    background: #f4f4f4;
    color: #303b4c;
    font-weight: 700;
    text-align: center;
}

#historyTable td {
    text-align: center;
    padding: 7px 10px;
    color: #566173;
}

.distribution-section {
    margin-top: 55px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.distribution-info h2 {
    font-size: 27px;
    margin-bottom: 10px;
}

.distribution-info h3 {
    font-size: 15px;
    margin-bottom: 20px;
}

.as-date {
    color: #888;
    font-size: 11px;
    font-style: italic;
    margin-bottom: 28px;
}

.distribution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px 60px;
}

.distribution-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.distribution-item span {
    color: #777;
    font-size: 10px;
}

.distribution-item strong {
    font-size: 16px;
}

.distribution-item .orange {
    color: #c86b22;
}

.distribution-item .green {
    color: #208c40;
}

.tax-card {
    background: #d52828;
    color: #fff;
    border-radius: 6px;
    padding: 28px 30px;
    margin-top: 5px;
}

.tax-card h3 {
    font-size: 18px;
    margin-bottom: 18px;
}

.tax-card p {
    font-size: 11px;
    line-height: 1.7;
    margin-bottom: 17px;
}

.tax-card a {
    color: #fff;
    text-decoration: underline;
    font-size: 11px;
    font-weight: 700;
}

.footer {
    background: #030a17;
    min-height: 330px;
    padding: 70px 20px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 55px;
}

.footer-brand p {
    color: #536078;
    margin-top: 30px;
    font-size: 11px;
    line-height: 1.8;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    color: #192640;
    font-size: 17px;
    margin-bottom: 20px;
}

.footer-column a {
    color: #8490a5;
    font-size: 11px;
    margin-bottom: 13px;
}

.footer-column a:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .main-nav,
    .social-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

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

    .sectors-layout {
        grid-template-columns: 1fr;
    }

    .distribution-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }

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

@media (max-width: 600px) {
    .site-header {
        height: 80px;
    }

    .header-inner {
        padding: 0 15px;
    }

    .logo-mark {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .logo-text strong {
        font-size: 17px;
    }

    .logo-text span {
        font-size: 14px;
    }

    .main-content {
        padding: 20px 12px 50px;
    }

    .stock-card {
        padding: 12px;
    }

    .canvas-container {
        height: 220px;
    }

    .time-tabs .tab {
        padding: 5px 6px;
        font-size: 8px;
    }

    .distribution-grid {
        gap: 25px 15px;
    }

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