: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;
}

/* Lottery Tabs */
.lottery-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.lottery-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.lottery-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.lottery-tab.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.tab-icon {
    font-size: 24px;
}

.tab-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.tab-info {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.lottery-tab.active .tab-name {
    color: var(--gold);
}

.lottery-tab.active .tab-info {
    color: var(--cyan);
}

@media (max-width: 600px) {
    .lottery-tabs {
        gap: 8px;
    }
    
    .lottery-tab {
        padding: 12px 15px;
        min-width: 80px;
    }
    
    .tab-icon {
        font-size: 20px;
    }
    
    .tab-name {
        font-size: 12px;
    }
}

.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;
}

/* Panel Header Row with Fetch Button */
.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-header-row .panel-title {
    margin-bottom: 0;
}

.fetch-buttons {
    display: flex;
    gap: 6px;
}

.fetch-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 8px;
    color: var(--cyan);
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fetch-btn:hover {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.3), rgba(139, 92, 246, 0.3));
    border-color: var(--cyan);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.2);
}

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

.fetch-btn.fetching .fetch-icon {
    animation: spin 1s linear infinite;
}

.fetch-btn.manual-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(255, 0, 170, 0.2));
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--purple);
}

.fetch-btn.manual-btn:hover {
    border-color: var(--purple);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.fetch-icon {
    width: 14px;
    height: 14px;
}

.fetch-status {
    min-height: 24px;
    margin-bottom: 10px;
    font-size: 12px;
}

.fetch-loading {
    color: var(--cyan);
}

.fetch-success {
    color: #4ecdc4;
}

.fetch-error {
    color: #ff6b6b;
}

.fetch-info {
    color: var(--purple);
}

.fetch-hint {
    color: rgba(255, 255, 255, 0.6);
}

.fetch-hint a {
    color: var(--cyan);
    text-decoration: none;
}

.fetch-hint a:hover {
    text-decoration: underline;
}

/* ==============================
   MANUAL ENTRY FORM
   ============================== */

.manual-entry {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.manual-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--purple);
}

.manual-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.manual-close:hover {
    color: #fff;
}

.manual-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manual-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.manual-row label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Space Mono', monospace;
    min-width: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manual-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.manual-input:focus {
    border-color: var(--cyan);
}

.manual-input.manual-small {
    max-width: 80px;
}

.manual-submit {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--purple), var(--magenta));
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.manual-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

/* 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;
    align-items: start;
}

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

.generate-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--deep-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.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);
}


/* ============================================
   AI LEARNING DASHBOARD
   ============================================ */

.learning-dashboard {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(0, 245, 255, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    position: relative;
}

.learning-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--cyan), var(--magenta));
    border-radius: 16px 16px 0 0;
}

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

.learning-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--purple);
}

.learning-badge {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-init {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-learning {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: pulse 2s ease infinite;
}

.badge-active {
    background: rgba(78, 205, 196, 0.15);
    color: #4ecdc4;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Learning Stats Row */
.learning-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .learning-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.learn-stat {
    text-align: center;
    padding: 12px 8px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.learn-stat-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Adaptive Weights Section */
.learning-weights {
    margin-bottom: 20px;
}

.weights-title {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.weights-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weight-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weight-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    min-width: 110px;
    text-transform: uppercase;
}

.weight-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.weight-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.weight-value {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    min-width: 80px;
    text-align: right;
}

.weight-value small {
    font-size: 9px;
}

.weight-value.weight-up {
    color: #4ecdc4;
}

.weight-value.weight-down {
    color: #ff6b6b;
}

/* Learning History */
.learning-history {
    margin-bottom: 15px;
}

.history-title {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.history-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.history-date {
    font-family: 'Space Mono', monospace;
    color: rgba(255, 255, 255, 0.5);
    min-width: 85px;
}

.history-vs {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

.history-result {
    font-family: 'Space Mono', monospace;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-left: auto;
}

.history-result.good-match {
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.history-avg {
    font-family: 'Space Mono', monospace;
    color: rgba(255, 255, 255, 0.35);
    font-size: 10px;
}

.history-empty {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    padding: 15px;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

/* Learning Action Buttons */
.learning-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.learn-action-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.learn-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
