:root {
    --gold: #FFD700;
    --gold-dark: #B8860B;
    --deep-blue: #0a0e27;
    --midnight: #060914;
    --cyan: #00f5ff;
    --magenta: #ff00aa;
    --purple: #8b5cf6;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--midnight);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.3;
    pointer-events: none;
}

.orb-1 {
    top: -200px;
    right: -200px;
    background: var(--gold);
}

.orb-2 {
    bottom: -200px;
    left: -200px;
    background: var(--magenta);
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.subtitle {
    font-family: 'Space Mono', monospace;
    color: var(--cyan);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 10px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

.panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--magenta), var(--cyan));
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--gold);
}

.panel-title svg {
    width: 24px;
    height: 24px;
}

/* Past Results Section */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.results-list::-webkit-scrollbar {
    width: 6px;
}

.results-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.results-list::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.result-row {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.result-row:hover {
    border-color: var(--gold);
    transform: translateX(5px);
}

.result-date {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.result-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ball {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(145deg, #fff, #e0e0e0);
    color: var(--deep-blue);
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.2),
        inset 2px 2px 4px rgba(255, 255, 255, 0.8),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

.ball.bonus {
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    color: #000;
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 215, 0, 0.5);
}

.jackpot-badge {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    background: rgba(0, 245, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* Generator Section */
.generator-panel {
    grid-column: 1 / -1;
}

.generator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 700px) {
    .generator-content {
        grid-template-columns: 1fr;
    }
}

.generate-btn {
    width: 100%;
    padding: 20px 40px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
}

.generate-btn:hover::after {
    animation: shimmer 0.6s ease;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.generated-numbers {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.generated-set {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.generated-set .ball {
    width: 50px;
    height: 50px;
    font-size: 18px;
    animation: popIn 0.3s ease backwards;
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.set-label {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Hot/Cold Numbers */
.frequency-section {
    margin-top: 20px;
}

.frequency-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.frequency-title.hot::before {
    content: '🔥';
}

.frequency-title.cold::before {
    content: '❄️';
}

.frequency-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.freq-ball {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.freq-ball.hot {
    background: linear-gradient(145deg, #ff6b6b, #ee5a5a);
    color: #fff;
}

.freq-ball.cold {
    background: linear-gradient(145deg, #4ecdc4, #44b3ab);
    color: #fff;
}

/* Entropy indicator */
.entropy-section {
    margin-top: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.entropy-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.entropy-icon {
    width: 20px;
    height: 20px;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.entropy-label {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.entropy-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.entropy-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--magenta), var(--cyan));
    background-size: 200% 100%;
    animation: entropyFlow 2s ease infinite;
    width: 100%;
}

@keyframes entropyFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.entropy-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
    line-height: 1.4;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Loading state */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Prediction Panel Styles */
.prediction-panel {
    grid-column: 1 / -1;
}

.prediction-panel::before {
    background: linear-gradient(90deg, var(--magenta), var(--purple), var(--cyan));
}

.prediction-title {
    color: var(--magenta);
}

.predict-btn {
    background: linear-gradient(135deg, var(--magenta), var(--purple));
}

.predict-btn:hover {
    box-shadow: 0 10px 40px rgba(255, 0, 170, 0.4);
}

.btn-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    text-align: center;
}

.predicted-numbers {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.prediction-set {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.confidence-badge {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), rgba(0, 245, 255, 0.3));
    color: var(--cyan);
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.prediction-stats {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
    text-align: center;
}

.ball.predicted {
    position: relative;
}

.ball.hot-pick {
    background: linear-gradient(145deg, #ff6b6b, #ee5a5a);
    color: #fff;
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(255, 107, 107, 0.5);
}

.ball.due-pick {
    background: linear-gradient(145deg, #4ecdc4, #44b3ab);
    color: #fff;
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(78, 205, 196, 0.5);
}

.ball.hot-pick.due-pick {
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    color: #000;
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 215, 0, 0.6);
}

.analysis-summary {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.analysis-placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-align: center;
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.analysis-item:last-child {
    border-bottom: none;
}

.analysis-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.analysis-value {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: #fff;
}

.analysis-value.hot-text {
    color: #ff6b6b;
}

.analysis-value.due-text {
    color: #4ecdc4;
}

/* Legend */
.legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.hot {
    background: linear-gradient(145deg, #ff6b6b, #ee5a5a);
}

.legend-dot.cold {
    background: linear-gradient(145deg, #4ecdc4, #44b3ab);
}

.legend-dot.normal {
    background: linear-gradient(145deg, #fff, #e0e0e0);
}
