:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
.header {
    margin-bottom: 30px;
}

.header-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.logo-icon {
    font-size: 48px;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.tagline {
    color: var(--text-light);
    font-size: 16px;
}

.gift-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.4);
}

.heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

/* Action Section */
.action-section {
    text-align: center;
    margin-bottom: 40px;
}

.run-btn {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: none;
    padding: 20px 48px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    transition: all 0.3s;
}

.run-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

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

.run-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

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

.last-run {
    margin-top: 16px;
    color: var(--text-light);
    font-size: 14px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: none;
}

.loading.active {
    display: block;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Results Section */
.results {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
}

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

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Signals Grid */
.signals-grid {
    display: grid;
    gap: 20px;
}

.signal-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.signal-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.signal-card.high-confidence {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.signal-card.medium-confidence {
    border-left: 4px solid var(--warning);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.teams {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.vs {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.market-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.market-badge.over {
    background: #dbeafe;
    color: #1e40af;
}

.market-badge.under {
    background: #fce7f3;
    color: #9d174d;
}

.signal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.stat {
    text-align: center;
}

.stat-value-small {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.stat-label-small {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.edge-positive {
    color: var(--success);
}

.edge-highlight {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.signal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.stake {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
}

.confidence-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.confidence-badge.high {
    background: var(--success);
    color: white;
}

.confidence-badge.medium {
    background: var(--warning);
    color: white;
}

/* No Signals */
.no-signals {
    text-align: center;
    padding: 60px 20px;
}

.no-signals-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-signals h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.no-signals p {
    color: var(--text-light);
}

/* Model Info */
.model-info {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.model-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.info-card {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
}

.info-step {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Safety Notice */
.safety-notice {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: start;
    margin-bottom: 30px;
}

.safety-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.safety-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #92400e;
}

.safety-content ul {
    list-style: none;
    padding: 0;
}

.safety-content li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: #78350f;
}

.safety-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: white;
}

.footer p {
    font-size: 16px;
    margin-bottom: 8px;
}

.footer-date {
    opacity: 0.8;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .signal-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .signal-footer {
        flex-direction: column;
        gap: 12px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signal-card {
    animation: fadeIn 0.3s ease-out;
}
