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

:root {
    --primary: #2a0000;
    --primary-dark: #1a0000;
    --secondary: #4a0000;
    --accent: #d4af37;
    --accent-dark: #b8922e;
    --red: #8b0000;
    --red-hover: #6b0000;
    --text: #f5e6d3;
    --text-muted: #c4a882;
    --border: #6b3030;
    --success: #10b981;
    --white: #ffffff;
    --gold-gradient: linear-gradient(135deg, #d4af37, #f5d76e, #d4af37);
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background: var(--primary-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.header {
    padding: 20px 0;
    background: linear-gradient(180deg, #3a0000 0%, var(--primary-dark) 100%);
}

.header-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link {
    display: inline-block;
    z-index: 2;
}

.logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Main Content */
.main-content {
    padding-bottom: 30px;
}

.content-wrapper {
    background: var(--primary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

/* Navbar */
.navbar {
    margin-bottom: 16px;
    background: var(--secondary);
    border-radius: 8px;
    padding: 0 12px;
    border: 1px solid var(--border);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item a, .nav-item span {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item:hover a, .nav-item:hover span {
    color: var(--accent);
    background: rgba(212, 175, 55, 0.1);
}

.nav-item.active a {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.lang-switcher {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-switcher span {
    font-size: 13px;
}

/* Marquee */
.marquee {
    background: var(--red);
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 16px;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    color: var(--accent);
    font-weight: 500;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

/* Result Cards */
.results-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-card {
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.result-card:hover {
    transform: translateY(-2px);
}

.result-card-header {
    background: linear-gradient(135deg, var(--red), #5a0000);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-card-info h3 {
    font-size: 15px;
    color: var(--accent);
}

.result-card-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.result-card-label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

.result-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    flex-wrap: wrap;
}

.number-ball {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #1a0000;
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.3);
}

.number-ball.question {
    background: linear-gradient(135deg, #666, #999, #666);
    color: #fff;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.result-card-footer {
    padding: 12px 16px;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.check-btn {
    background: var(--accent);
    color: #1a0000;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: background 0.2s;
}

.check-btn:hover {
    background: var(--accent-dark);
}

/* Prize Display */
.prize-section {
    padding: 16px;
}

.prize-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(107, 48, 48, 0.5);
}

.prize-row:last-child {
    border-bottom: none;
}

.prize-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    min-width: 80px;
}

.prize-value {
    display: flex;
    gap: 6px;
    margin-left: 16px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    padding: 12px;
    background: var(--secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.lottery-card {
    background: var(--secondary);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lottery-name {
    font-weight: 600;
    font-size: 14px;
}

.lottery-prize {
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
}

.play-btn {
    background: var(--accent);
    color: #1a0000;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.ad-box {
    background: var(--secondary);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    text-align: center;
}

.ad-box h4 {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.ad-box img {
    width: 100%;
    border-radius: 6px;
}

/* Countdown Section */
.countdown-section {
    background: linear-gradient(135deg, var(--red), #5a0000);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    border: 2px solid var(--accent);
}

.countdown-title {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 700;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    background: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 10px;
    min-width: 80px;
    display: inline-block;
}

.countdown-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
}

/* Live Draw Page */
.livedraw-container {
    text-align: center;
    padding: 20px 0;
}

.draw-status {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 12px 20px;
    margin: 16px 0;
    display: none;
}

.draw-status span {
    color: var(--accent);
    font-weight: 600;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.prize-display {
    margin: 30px 0;
}

.prize-display-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
    padding: 16px;
    background: var(--secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.prize-display-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    min-width: 100px;
    text-align: left;
}

.prize-display-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 8px;
    min-width: 200px;
}

.prize-display-value.revealing {
    animation: slot 0.1s linear infinite;
    color: var(--accent);
}

.prize-display-value.revealed {
    color: var(--white);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@keyframes slot {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.waiting-message {
    font-size: 18px;
    color: var(--text-muted);
    padding: 40px 0;
}

/* Results Table */
.results-table-wrapper {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.results-table th {
    background: var(--red);
    color: var(--accent);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.results-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.results-table tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}

.prize-cell {
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

/* Footer */
.footer {
    background: var(--primary);
    padding: 30px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    text-align: center;
}

.footer-content h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 18px;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 13px;
    max-width: 700px;
    margin: 0 auto 12px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.wla-logo {
    height: 50px;
}

.payment-section h4 {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.bank-logos {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bank-logos img {
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.bank-logos img:hover {
    opacity: 1;
}

.copyright {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}

/* About Page */
.about-content {
    padding: 20px 0;
}

.about-content h2 {
    color: var(--accent);
    margin-bottom: 16px;
}

.about-content p {
    margin-bottom: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .nav-item a, .nav-item span {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .countdown-value {
        font-size: 32px;
        padding: 8px 14px;
        min-width: 60px;
    }
    
    .prize-display-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .prize-display-label {
        text-align: center;
    }
    
    .prize-display-value {
        font-size: 28px;
    }
    
    .number-ball {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .result-card-header {
        flex-direction: column;
        gap: 4px;
    }
    
    .result-card-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .logo {
        max-width: 300px;
    }
}
