/* ============================================
   GAMBLA AI - Premium Black Theme
   Colors: Black + Orange/Purple accents
   ============================================ */

/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    /* Primary Colors */
    --black-primary: #0a0a0a;
    --black-secondary: #111111;
    --black-tertiary: #1a1a1a;
    --black-card: #1e1e1e;
    
    /* Accent Colors */
    --orange-primary: #ff5d17;
    --orange-secondary: #ff8c42;
    --orange-light: #ffa356;
    --purple-primary: #ff02f9;
    --purple-secondary: #ff4df7;
    --purple-light: #ff7dfa;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--purple-primary) 0%, var(--orange-primary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--orange-primary) 0%, var(--purple-primary) 100%);
    --gradient-hover: linear-gradient(135deg, var(--purple-light) 0%, var(--orange-light) 100%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-orange: var(--orange-primary);
    --text-purple: var(--purple-primary);
    
    /* Borders */
    --border-color: #2a2a2a;
    --border-color-light: #3a3a3a;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-orange: 0 4px 12px rgba(255, 107, 53, 0.3);
    --shadow-purple: 0 4px 12px rgba(139, 92, 246, 0.3);
    
    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--black-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 400;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--orange-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--orange-light);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background-color: var(--black-secondary) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background-color: rgba(255, 107, 53, 0.1);
}

.nav-link.active {
    color: var(--orange-primary) !important;
    background-color: rgba(255, 107, 53, 0.15);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background-color: var(--black-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color-light) !important;
}

.card-header {
    background: var(--gradient-primary) !important;
    color: var(--text-primary) !important;
    border-bottom: none !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-secondary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    background: var(--gradient-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--black-tertiary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--black-card) !important;
    border-color: var(--orange-primary);
}

.btn-success {
    background-color: #10b981 !important;
    color: var(--text-primary) !important;
}

.btn-warning {
    background-color: var(--orange-primary) !important;
    color: var(--text-primary) !important;
}

.btn-info {
    background-color: var(--purple-primary) !important;
    color: var(--text-primary) !important;
}

.btn-danger {
    background-color: #ef4444 !important;
    color: var(--text-primary) !important;
}

/* ============================================
   TABLES
   ============================================ */
.table {
    color: var(--text-secondary);
}

.table-dark {
    background-color: var(--black-card) !important;
    border-color: var(--border-color) !important;
}

.table-dark thead th {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: var(--border-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
}

.table-dark tbody tr {
    border-color: var(--border-color) !important;
    transition: background-color 0.2s ease;
}

.table-dark tbody tr:hover {
    background-color: rgba(255, 107, 53, 0.05) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(26, 26, 26, 0.5) !important;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 600;
    font-size: 0.8125rem;
    border-radius: 6px;
}

.bg-success {
    background-color: #10b981 !important;
}

.bg-warning {
    background-color: var(--orange-primary) !important;
}

.bg-info {
    background-color: var(--purple-primary) !important;
}

.bg-danger {
    background-color: #ef4444 !important;
}

.bg-secondary {
    background-color: #6b7280 !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
    border-color: #10b981 !important;
    color: #34d399 !important;
}

.alert-warning {
    background-color: rgba(255, 107, 53, 0.1) !important;
    border-color: var(--orange-primary) !important;
    color: var(--orange-light) !important;
}

.alert-info {
    background-color: rgba(139, 92, 246, 0.1) !important;
    border-color: var(--purple-primary) !important;
    color: var(--purple-light) !important;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
}

.alert-primary {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--orange-primary);
    color: var(--text-primary);
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
    background-color: var(--black-tertiary) !important;
    border-radius: 8px;
    height: 1.5rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    background: var(--gradient-primary) !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: width 0.6s ease;
}

.progress-bar.bg-success {
    background: linear-gradient(135deg, #10b981, #34d399) !important;
}

.progress-bar.bg-warning {
    background: linear-gradient(135deg, #ff6b35, #ff8c42) !important;
}

.progress-bar.bg-info {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
}

.progress-bar.bg-danger {
    background: linear-gradient(135deg, #ef4444, #f87171) !important;
}

/* ============================================
   FORMS
   ============================================ */
.form-control {
    background-color: var(--black-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-weight: 500;
}

.form-control:focus {
    background-color: var(--black-card) !important;
    border-color: var(--orange-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25) !important;
    color: var(--text-primary) !important;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ============================================
   TABS - ENHANCED DESIGN
   ============================================ */
.tab-container {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(30, 30, 30, 0.95) 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tab-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

.nav-tabs {
    border-bottom: 3px solid rgba(255, 107, 53, 0.3) !important;
    margin-bottom: 2rem;
    position: relative;
}

.nav-tabs::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 53, 0.5) 50%, transparent 100%);
}

.nav-tabs .nav-link {
    color: var(--text-secondary) !important;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(30, 30, 30, 0.8) 100%) !important;
    border: 1px solid rgba(255, 107, 53, 0.2) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.5rem !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0.75rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-tabs .nav-link:hover::before {
    left: 100%;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary) !important;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    border-color: rgba(255, 107, 53, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(255, 107, 53, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.nav-tabs .nav-link.active {
    color: var(--text-primary) !important;
    background: var(--gradient-primary) !important;
    border-color: rgba(255, 107, 53, 0.6) !important;
    font-weight: 700;
    transform: translateY(-3px);
    box-shadow: 
        0 12px 24px rgba(255, 107, 53, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.4);
    position: relative;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.nav-tabs .nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.tab-content {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.15);
    backdrop-filter: blur(8px);
}

.tab-pane {
    padding: 1.5rem 0;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Content Enhancements */
.tab-pane .card {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 16px;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.tab-pane .card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
}

.tab-pane .card-header {
    background: var(--gradient-primary);
    border-radius: 16px 16px 0 0;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-pane .card-body {
    padding: 1.5rem;
}

/* Prediction Cards Enhancement */
.prediction-card {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(26, 26, 26, 0.98) 100%);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.prediction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

.prediction-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
}

.prediction-title {
    color: var(--orange-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prediction-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* 🎯 CONFIDENZA DINAMICA CON COLORI INTELLIGENTI */
.confidence-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* 🟢 Verde: Confidenza >= 65% */
.confidence-high {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* 🟡 Giallo: Confidenza 36-64% */
.confidence-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* 🔴 Rosso: Confidenza <= 35% */
.confidence-low {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* 🎯 PREDIZIONI CON COLORI DINAMICI */
.prediction-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.prediction-badge.home-win {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.prediction-badge.draw {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.prediction-badge.away-win {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.prediction-badge.over {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.prediction-badge.btts {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
}

.stat-label {
    color: var(--purple-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Recommendation Cards */
.recommendation-card {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(26, 26, 26, 0.98) 100%);
    border: 2px solid rgba(67, 233, 123, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(67, 233, 123, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border-radius: 20px 20px 0 0;
}

.recommendation-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(67, 233, 123, 0.2);
    border-color: rgba(67, 233, 123, 0.5);
}

.recommendation-title {
    color: #43e97b;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.recommendation-description {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.recommendation-confidence {
    color: #38f9d7;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* H2H Matches Enhanced Design */
.h2h-matches-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.h2h-match-card {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(26, 26, 26, 0.98) 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.h2h-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange-primary), var(--purple-primary));
    border-radius: 16px 16px 0 0;
}

.h2h-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.3);
}

.h2h-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.h2h-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.h2h-date i {
    color: var(--orange-primary);
    font-size: 0.8rem;
}

.h2h-competition {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.h2h-competition i {
    color: var(--purple-primary);
    font-size: 0.8rem;
}

.h2h-match-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h2h-teams {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.h2h-team {
    display: flex;
    align-items: center;
    min-width: 0;
}

.h2h-team.home-team {
    justify-content: flex-end;
    text-align: right;
}

.h2h-team.away-team {
    justify-content: flex-start;
    text-align: left;
}

.team-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.h2h-score {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.score {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--orange-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--orange-primary), var(--purple-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.h2h-result {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.result-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.result-badge.result-win {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.result-badge.result-win:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.result-badge.result-loss {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.result-badge.result-loss:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.result-badge.result-draw {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.result-badge.result-draw:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.result-badge i {
    font-size: 0.8rem;
}

/* Responsive Design per H2H */
@media (max-width: 768px) {
    .h2h-match-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .h2h-teams {
        justify-content: center;
    }
    
    .h2h-result {
        justify-content: center;
    }
    
    .team-name {
        max-width: 100px;
        font-size: 0.9rem;
    }
    
    .score {
        font-size: 1.2rem;
    }
    
    .h2h-match-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ============================================
   LEAGUE CARDS
   ============================================ */
.league-card {
    background: var(--black-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.league-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-orange);
    border-color: var(--orange-primary);
}

.league-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 1rem;
}

.league-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.league-stats {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   MATCH CARDS
   ============================================ */
.match-card {
    background: var(--black-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.match-card:hover {
    border-color: var(--orange-primary);
    box-shadow: var(--shadow-orange);
}

.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.team-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-left: 0.75rem;
}

.match-score {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   STATS DISPLAY
   ============================================ */
.stat-card {
    background: var(--black-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--purple-primary);
    box-shadow: var(--shadow-purple);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner-border {
    border-color: var(--orange-primary);
    border-right-color: transparent;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-orange {
    color: var(--orange-primary) !important;
}

.text-purple {
    color: var(--purple-primary) !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-primary) !important;
}

.border-orange {
    border-color: var(--orange-primary) !important;
}

.border-purple {
    border-color: var(--purple-primary) !important;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--black-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-hover);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

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

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--black-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    color: var(--text-muted);
    text-align: center;
}

.footer a {
    color: var(--orange-primary);
}

.footer a:hover {
    color: var(--orange-light);
}

/* ============================================
   H2H TAB STYLES
   ============================================ */
.h2h-matches-container {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.h2h-match-card {
    background: var(--black-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.h2h-match-card:hover {
    border-color: var(--orange-primary);
    box-shadow: var(--shadow-orange);
    transform: translateY(-2px);
}

.h2h-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.h2h-date, .h2h-competition {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.h2h-date i, .h2h-competition i {
    color: var(--orange-primary);
}

.h2h-match-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h2h-teams {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.h2h-team {
    flex: 1;
    text-align: center;
}

.h2h-team.home-team {
    text-align: left;
}

.h2h-team.away-team {
    text-align: right;
}

.h2h-team .team-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.h2h-score {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 60px;
    text-align: center;
}

.h2h-result {
    margin-left: 1rem;
}

.result-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.result-badge.result-win {
    background: rgba(34, 197, 94, 0.3);
    color: #ffffff;
    border: 1px solid rgba(34, 197, 94, 0.5);
    font-weight: 600;
}

.result-badge.result-loss {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.5);
    font-weight: 600;
}

.result-badge.result-draw {
    background: rgba(156, 163, 175, 0.3);
    color: #ffffff;
    border: 1px solid rgba(156, 163, 175, 0.5);
    font-weight: 600;
}

/* H2H Stats Cards */
.h2h-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.h2h-stat-card {
    background: var(--black-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.h2h-stat-card:hover {
    border-color: var(--purple-primary);
    box-shadow: var(--shadow-purple);
}

.h2h-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--orange-primary);
    margin-bottom: 0.5rem;
}

.h2h-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.h2h-stat-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--purple-primary);
    margin-top: 0.5rem;
}

/* ============================================
   INJURY DASHBOARD
   ============================================ */
.injury-block {
    background: linear-gradient(135deg, rgba(16, 16, 16, 0.98), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 20px;
    padding: 28px 26px;
    box-shadow: 0 14px 32px rgba(239, 68, 68, 0.22);
    position: relative;
    overflow: hidden;
}

.injury-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 0, 76, 0.15), transparent 60%),
                linear-gradient(315deg, rgba(239, 68, 68, 0.12), transparent 55%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 0;
}

.injury-block > * {
    position: relative;
    z-index: 1;
}

.injury-block-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.injury-block-header h5 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.injury-block-header .injury-update {
    font-size: 0.8rem;
    color: rgba(255, 210, 210, 0.85);
    letter-spacing: 0.05em;
}
.injury-badge-warning {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    padding: 8px 13px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: rgba(255, 214, 214, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
}

.injury-team-card {
    background: rgba(12, 12, 12, 0.96);
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 18px;
    padding: 22px 22px 24px;
    box-shadow: 0 8px 26px rgba(239, 68, 68, 0.18);
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.injury-team-card:hover {
    border-color: rgba(255, 99, 99, 0.5);
    box-shadow: 0 14px 34px rgba(255, 99, 99, 0.28);
    transform: translateY(-2px);
}

.injury-team-card.no-injuries {
    background: rgba(19, 41, 29, 0.95);
    border-color: rgba(34, 197, 94, 0.35);
}

.injury-team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.injury-team-header h6 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
}

.injury-team-subtitle {
    display: block;
    font-size: 0.8rem;
    color: rgba(200, 200, 200, 0.72);
    margin-top: 4px;
    letter-spacing: 0.05em;
}

.injury-count-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.85), rgba(190, 18, 60, 0.85));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.35);
}

.injury-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.injury-summary-item {
    background: rgba(16, 16, 16, 0.96);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 86px;
}

.injury-summary-item .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 214, 214, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.injury-summary-item .value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffe0e0;
    letter-spacing: 0.03em;
}

.injury-summary-item.key {
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.12);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.18);
}

.injury-summary-item.goalkeeper {
    border-color: rgba(104, 205, 255, 0.35);
    background: rgba(104, 205, 255, 0.08);
}

.injury-summary-item.defender {
    border-color: rgba(255, 140, 92, 0.35);
    background: rgba(255, 140, 92, 0.08);
}

.injury-summary-item.midfielder {
    border-color: rgba(255, 106, 190, 0.35);
    background: rgba(255, 106, 190, 0.08);
}

.injury-summary-item.forward {
    border-color: rgba(255, 76, 76, 0.45);
    background: rgba(255, 76, 76, 0.14);
}

.injury-summary-item.suspensions {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
}

.injury-status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.injury-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 214, 214, 0.85);
}

.injury-chip .count {
    background: rgba(239, 68, 68, 0.28);
    color: #ffd8d8;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.injury-factors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.injury-factor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.32);
    color: rgba(255, 214, 214, 0.85);
}

.injury-factor.upgrade {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.injury-factor.downgrade {
    background: rgba(255, 86, 0, 0.18);
    border-color: rgba(255, 86, 0, 0.45);
    color: #ffb797;
}

.injury-factor.risk {
    background: rgba(255, 0, 128, 0.18);
    border-color: rgba(255, 0, 128, 0.4);
    color: #ff81cb;
}

.injury-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.injury-item {
    background: rgba(14, 14, 14, 0.96);
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.2);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.injury-item:hover {
    border-color: rgba(255, 99, 99, 0.5);
    transform: translateY(-1px);
}

.injury-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.injury-player-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 230, 230, 0.95);
}

.injury-key-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gradient-secondary);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-orange);
}

.injury-status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.injury-status-badge.danger {
    background: rgba(255, 107, 107, 0.22);
    border-color: rgba(255, 107, 107, 0.45);
    color: #ffc7c7;
}

.injury-status-badge.warning {
    background: rgba(255, 200, 0, 0.16);
    border-color: rgba(255, 200, 0, 0.35);
    color: #ffd95d;
}

.injury-status-badge.alert {
    background: rgba(255, 0, 128, 0.16);
    border-color: rgba(255, 0, 128, 0.4);
    color: var(--purple-secondary);
}

.injury-status-badge.success {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.injury-status-badge.neutral {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-secondary);
}

.injury-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.injury-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: rgba(255, 214, 214, 0.8);
    font-size: 0.74rem;
    letter-spacing: 0.05em;
}

.injury-desc {
    margin-top: 10px;
    font-size: 0.82rem;
    color: rgba(210, 210, 210, 0.8);
    line-height: 1.6;
}

.injury-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px dashed rgba(148, 163, 184, 0.4);
    color: rgba(200, 200, 200, 0.85);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

@media (max-width: 991px) {
    .injury-block {
        padding: 22px 20px;
    }

    .injury-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 575px) {
    .injury-team-card {
        padding: 18px;
    }

    .injury-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* ============================================
   🎨 SFUMATURE DECORATIVE GAMBLA AI
   ============================================ */

/* 🎨 SFUMATURE PER TAB CONTENT */
.tab-content {
    position: relative;
}

.tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--purple-primary) 20%, var(--orange-primary) 50%, var(--purple-primary) 80%, transparent 100%);
    z-index: 1;
}

.tab-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--orange-primary) 20%, var(--purple-primary) 50%, var(--orange-primary) 80%, transparent 100%);
    z-index: 1;
}

/* 🎨 RIFINITURE PER TAB NAVIGATION */
.nav-tabs .nav-link {
    position: relative;
    overflow: hidden;
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 2, 249, 0.3) 50%, transparent 100%);
    transition: left 0.5s ease;
    z-index: 1;
}

.nav-tabs .nav-link:hover::before {
    left: 100%;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, rgba(255, 2, 249, 0.1) 0%, rgba(255, 93, 23, 0.1) 100%);
    border-color: var(--purple-primary);
}

/* 🎨 RIFINITURE PER CARD PREDIZIONI */
.prediction-card {
    position: relative;
    overflow: hidden;
}

.prediction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--purple-primary) 0%, var(--orange-primary) 50%, var(--purple-primary) 100%);
    z-index: 1;
}

.prediction-card:hover::before {
    width: 6px;
    box-shadow: 0 0 20px rgba(255, 2, 249, 0.5);
}

/* 🎨 RIFINITURE PER STATISTICHE */
.stats-item {
    position: relative;
}

.stats-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-primary) 0%, var(--orange-primary) 100%);
    transition: width 0.3s ease;
}

.stats-item:hover::after {
    width: 80%;
}

/* 🎨 ANIMAZIONI DECORATIVE */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer-effect {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 2, 249, 0.2) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* 🎨 GRADIENTI PERSONALIZZATI */
.gradient-primary {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--orange-primary) 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--purple-primary) 100%);
}

.gradient-accent {
    background: linear-gradient(45deg, var(--purple-primary) 0%, var(--orange-primary) 50%, var(--purple-primary) 100%);
}

/* 🎨 OMBRE PERSONALIZZATE */
.shadow-gambla {
    box-shadow: 0 10px 25px -5px rgba(255, 2, 249, 0.3), 0 10px 10px -5px rgba(255, 93, 23, 0.2);
}

.shadow-gambla-hover:hover {
    box-shadow: 0 20px 40px -5px rgba(255, 2, 249, 0.4), 0 20px 20px -5px rgba(255, 93, 23, 0.3);
}

/* 🎨 RIFINITURE PER H2H SCORE */
.h2h-score .score {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--orange-primary) 50%, var(--purple-primary) 100%) !important;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 2, 249, 0.5) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 4px 8px rgba(255, 255, 255, 0.3), 0 0 50px rgba(255, 2, 249, 0.3) !important;
}

/* 🎨 RIFINITURE PER CARD H2H */
.h2h-match-card {
    border: 2px solid rgba(255, 2, 249, 0.4) !important;
}

.h2h-match-card::before {
    background: linear-gradient(90deg, var(--purple-primary) 0%, var(--orange-primary) 50%, var(--purple-primary) 100%) !important;
}

.h2h-match-card:hover {
    border-color: var(--purple-primary) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 2, 249, 0.3) !important;
}

/* ==========================================================================
   🛠️ GAMBLA THEME v2 - BLACK CARD & NEON MINIMALISM
   Applied to Dashboard, League Pages, and Global Components
   ========================================================================== */

/* 1. Global Card Styling - Black & Elegant */
.card, 
.hero-section, 
.stat-card, 
.league-card, 
.upcoming-card,
.upcoming-item,
.summary-card,
.navigation-hub-card {
    background: #050505 !important; /* Deepest Black */
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7) !important;
    border-radius: 16px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

/* 2. Minimal Neon Finish (Top Gradient Line) */
.card::after, 
.hero-section::after, 
.stat-card::after, 
.league-card::after,
.upcoming-item::after,
.summary-card::after,
.navigation-hub-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff5d17, #ff0af1, transparent);
    opacity: 0.7;
    box-shadow: 0 0 15px rgba(255, 93, 23, 0.2);
    z-index: 10;
}

/* Remove old invasive backgrounds/gradients */
.hero-section::before, 
.stat-card::before, 
.league-card::before,
.navigation-hub-card::before {
    display: none !important;
}

/* 3. Text Typography - Clean White & Grey */
.hero-title, 
.stat-value, 
.league-name,
h1, h2, h3 {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1) !important;
}

.stat-value {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
    color: #ffffff !important;
}

/* Grey Subtitles */
.stat-label, 
.hero-subtitle,
.text-muted,
p {
    color: #888888 !important;
}

/* 4. Upcoming Matches List (League Page) */
.upcoming-item {
    display: flex !important;
    align-items: center !important; /* Vertical Center */
    margin-bottom: 1rem !important;
    padding: 1.2rem !important;
    background: #080808 !important;
}

.upcoming-item:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: #0f0f0f !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8) !important;
}

.upcoming-teams .team-name {
    color: #ffffff !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

.upcoming-meta .meta-date,
.upcoming-meta .meta-time {
    color: #666666 !important;
}

/* 5. Hero Section Specifics */
.hero-section {
    text-align: center !important;
    padding: 3rem 1.5rem !important;
}

/* AN PLAIN - Card Totale (nero con testo bianco) nel monitoring */
#an-plain-total-events {
    background: #050505 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

#an-plain-total-events .h3,
#an-plain-total-events .h3.mb-0 {
    color: #ffffff !important;
}

#an-plain-total-events small {
    color: #ffffff !important;
    opacity: 0.9;
}

