:root {
    --card-dark: #0f1724;
    --card-dark-border: rgba(255, 255, 255, 0.08);
    --card-light: #ffffff;
    --accent-blue: #467FF7;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #dbe3eb;
    background-image: linear-gradient(rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.4)), 
                      url('https://images.unsplash.com/photo-1466611653911-95081537e5b7?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background-color: #000000;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    width: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
}

.logo-text {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.btn-signup {
    background-color: #dc2626;
    color: #fff;
    border: none;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

/* Layout */
.main-container {
    max-width: 1080px;
    margin: 20px auto 40px;
    padding: 0 15px;
    width: 100%;
}

/* Top Dark Dashboard */
.dark-dashboard {
    background: rgba(13, 20, 32, 0.95);
    border-radius: 12px;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
}

.dash-card {
    border-right: 1px solid var(--card-dark-border);
    padding-right: 12px;
}

.dash-card:last-child {
    border-right: none;
    padding-right: 0;
}

.dash-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #f1f5f9;
}

.live-dot {
    font-size: 9px;
    color: var(--accent-green);
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.mini-table tr td {
    padding: 3px 0;
}

.mini-table td:nth-child(2) {
    text-align: right;
    font-weight: 600;
}

.mini-table td:nth-child(3) {
    text-align: right;
    font-size: 10px;
    font-weight: 600;
    padding-left: 6px;
}

.val-red { color: var(--accent-red); }
.val-green { color: var(--accent-green); }

.tag-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 10px;
}

.tag-tabs span {
    color: #64748b;
    cursor: pointer;
}

.tag-tabs span.active {
    color: #38bdf8;
    font-weight: 600;
}

.promo-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
}

.promo-banner h5 {
    font-size: 11px;
    color: #38bdf8;
    margin-bottom: 3px;
}

.promo-banner p {
    font-size: 9px;
    color: #94a3b8;
    line-height: 1.3;
    margin-bottom: 6px;
}

.btn-gold {
    background: #eab308;
    color: #000;
    border: none;
    padding: 4px 8px;
    font-size: 9.5px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

.news-tag {
    font-size: 8px;
    color: var(--accent-green);
    font-weight: bold;
}

.news-item h6 {
    font-size: 10px;
    color: #fff;
    margin-top: 3px;
}

.news-item p {
    font-size: 9px;
    color: #64748b;
    line-height: 1.2;
}

/* White Content Cards */
.white-card {
    background: var(--card-light);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
}

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

.stock-info-container h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.chart-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

.stock-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.stock-table td {
    padding: 6px 0;
}

.stock-table td:first-child {
    color: var(--text-muted);
}

.stock-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #0f172a;
}

/* Responsive Chart Section */
.stock-chart {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.chart-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

#current-date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.time-tabs {
    display: flex;
    gap: 3px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 6px;
}

.time-tabs .tab {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.time-tabs .tab.active {
    background: #0f172a;
    color: #fff;
}

.canvas-container {
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: 16px;
}

/* Tables */
.lottery-table, #dataTable {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 11.5px;
}

.lottery-table th, #dataTable th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
}

.lottery-table td, #dataTable td {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-weight: 500;
}

#dataTable tbody tr:hover {
    background: #f8fafc;
}

.card-header-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}

/* Footer */
.footer {
    background: #090d14;
    color: #94a3b8;
    padding: 35px 20px 25px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 25px;
    font-size: 11px;
}

.footer-col h4 {
    color: #fff;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 5px;
    cursor: pointer;
}

.footer-col ul li:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.social-icons span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #1e293b;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 900px) {
    .dark-dashboard {
        grid-template-columns: 1fr 1fr;
    }
    .dash-card:nth-child(2) {
        border-right: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 16px;
    }
    .nav-links {
        display: none;
    }
    .dark-dashboard {
        grid-template-columns: 1fr;
    }
    .dash-card {
        border-right: none;
        border-bottom: 1px solid var(--card-dark-border);
        padding-bottom: 12px;
    }
    .dash-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .stock-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .canvas-container {
        height: 175px;
    }
    .chart-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .time-tabs {
        width: 100%;
        justify-content: space-between;
    }
    .time-tabs .tab {
        flex: 1;
        text-align: center;
        padding: 4px 2px;
        font-size: 9px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}