:root {
    --bg-color: #0b0f19;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.5);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --ball-bg: linear-gradient(135deg, #1e293b, #0f172a);
    --ball-euro-bg: linear-gradient(135deg, #0369a1, #0c4a6e);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: pulse 15s infinite alternate;
}

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

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

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.glow-text {
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--accent-glow);
}

.glow-accent {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
    font-weight: 800;
}

/* Header */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
}

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

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.balls-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--ball-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1), 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ball:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.2), 0 10px 20px rgba(0, 0, 0, 0.6);
}

.ball.euro {
    background: var(--ball-euro-bg);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.2), 0 0 15px var(--accent-glow);
}

.jackpot-info {
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

/* Stats */
.stats-section {
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
}

.stat-item .ball {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    animation: none;
}

.stat-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* History Table */
.history-section {
    padding: 40px 0 80px 0;
}

.table-container {
    overflow-x: auto;
    margin-top: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.mini-ball {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    background: var(--ball-bg);
    border-radius: 50%;
    margin-right: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-ball.euro {
    background: var(--ball-euro-bg);
    border-color: var(--accent-color);
}

/* Charts */
.charts-section {
    padding: 40px 0;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    display: flex;
    flex-direction: column;
}

.chart-card h3 {
    margin-bottom: 20px;
}

.doughnut-container {
    position: relative;
    height: 300px;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* History Accordion */
tr.history-row {
    cursor: pointer;
    transition: background 0.2s;
}

tr.history-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

tr.details-row {
    display: none;
    background: rgba(0, 0, 0, 0.2);
}

tr.details-row.open {
    display: table-row;
}

.details-content {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.details-investment {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.details-quotes {
    flex: 2;
    min-width: 300px;
}

.quotes-table {
    width: 100%;
    font-size: 0.85rem;
}

.quotes-table th, .quotes-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quotes-table th {
    color: var(--accent-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px var(--accent-glow);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
}

/* Even-Odd Full Width Card */
.even-odd-full-card {
    margin-top: 30px;
    margin-bottom: 30px;
}

.even-odd-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.even-odd-chart-box {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.even-odd-info {
    flex: 2;
    min-width: 300px;
}

.even-odd-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.even-odd-info p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.even-odd-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.even-odd-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.even-odd-badge span:first-child {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.even-odd-badge span:last-child {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Section Descriptions */
.section-description {
    margin-top: 20px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-main);
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Lucky Number Checker */
.checker-section {
    padding: 40px 0;
}

.checker-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.number-picker {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.grid-50 {
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
}

.grid-12 {
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
}

.pick-btn {
    height: 45px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pick-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.pick-btn.active {
    background: var(--ball-bg);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.pick-btn.active.euro {
    background: var(--ball-euro-bg);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.checker-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #ff0055);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mt-4 {
    margin-top: 25px;
}

.hidden {
    display: none !important;
}

.result-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.matrix-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.matrix-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.matrix-val {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.matrix-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.matrix-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.matrix-summary h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.matrix-summary p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Disclaimer Banner */
.disclaimer-banner {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 20px 0 30px 0;
    padding: 20px;
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
}
.disclaimer-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.disclaimer-banner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Footer layout */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--accent-color);
}
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
