/* ========================================
   DOJAVA.BET - KOMPLETNI STYLE.CSS
   ======================================== */

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

html, body {
  width: 100%;
  overflow-x: hidden;
}

body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #f5f7fa;
  color: #2d3748;
  line-height: 1.6;
}

/* ==================== HEADER ==================== */
.header {
  background: #ffffff;
  padding: 15px 0;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav { display: flex; gap: 20px; }
.nav a { color: #4a5568; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover { color: #667eea; }

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #2d3748;
}

/* ==================== BETA BANNER ==================== */
.beta-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.beta-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: auto;
}

.beta-close:hover { background: rgba(255,255,255,0.3); }

/* ==================== SPORT TABS ==================== */
.sport-tabs {
  background: #ffffff;
  padding: 10px 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  border-bottom: 1px solid #e2e8f0;
}

.sport-tab {
  padding: 8px 20px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.sport-tab:hover { background: #edf2f7; }

.sport-tab.active {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

/* ==================== MAIN LAYOUT ==================== */
.main-container {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 20px;
  align-items: start;
}

.feed-column {
  min-width: 0;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  width: 280px;
  min-width: 280px;
}

.sidebar-header {
  padding: 15px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-content {
  overflow-y: auto;
  flex: 1;
}

.sidebar-content::-webkit-scrollbar { width: 6px; }
.sidebar-content::-webkit-scrollbar-track { background: #f1f5f9; }
.sidebar-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Pinned section */
.pinned-section { border-bottom: 2px solid #e2e8f0; }

.pinned-header {
  padding: 12px 15px;
  background: #fef3c7;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
}

.pinned-league {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f1f5f9;
}

.pinned-league:hover { background: #fef3c7; }

.league-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.league-name { flex: 1; font-size: 13px; font-weight: 500; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pin-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  opacity: 0.5;
  transition: all 0.2s;
  flex-shrink: 0;
}

.pin-btn:hover { opacity: 1; }
.pin-btn.pinned { opacity: 1; color: #f59e0b; }

/* Country sections */
.sidebar-country { border-bottom: 1px solid #f1f5f9; }

.country-header {
  padding: 12px 15px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.country-header:hover { background: #f8fafc; }
.country-header.active { background: #f1f5f9; }

.country-name { font-size: 13px; font-weight: 600; color: #334155; }
.country-arrow { font-size: 10px; color: #94a3b8; transition: transform 0.2s; }
.country-header.active .country-arrow { transform: rotate(180deg); }

.country-leagues { display: none; background: #fafbfc; }
.country-leagues.open { display: block; }

.country-league {
  padding: 10px 15px 10px 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f1f5f9;
}

.country-league:hover { background: #f1f5f9; }

/* Sidebar overlay */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.active { display: block; opacity: 1; }

/* ==================== DATE NAVIGATOR ==================== */
.date-navigator-wrapper {
  display: flex;
  align-items: center;
  background: white;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-arrow {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #64748b;
  padding: 0 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-arrow:hover { color: #2d3748; }

.date-scroll-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  scrollbar-width: none;
}

.date-scroll-track::-webkit-scrollbar { display: none; }

/* Date Card */
.date-card {
  min-width: 55px;
  height: 50px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.date-card:hover { background: #f1f5f9; }

.day-name { font-size: 10px; font-weight: 700; color: #64748b; text-transform: uppercase; }
.day-date { font-size: 13px; font-weight: 800; color: #1e293b; }

/* LIVE Button */
#btn-live {
  flex-direction: row;
  gap: 6px;
  min-width: 70px;
  background: #fef2f2;
  border-color: #fecaca;
}

#btn-live .day-name { color: #e53e3e; }
#btn-live.active { background: #e53e3e; border-color: #e53e3e; }
#btn-live.active .day-name, #btn-live.active .live-dot { color: white; }

.live-dot { color: #e53e3e; animation: pulse 1.5s infinite; font-size: 12px; }

/* DATE CARD COLORS */
.date-card.past-day { background: #e2e8f0 !important; border-color: #cbd5e1 !important; }
.date-card.past-day .day-name, .date-card.past-day .day-date { color: #94a3b8 !important; }
.date-card.past-day.active { background: #64748b !important; border-color: #64748b !important; }
.date-card.past-day.active .day-name, .date-card.past-day.active .day-date { color: white !important; }

.date-card.today { background: #fef2f2 !important; border-color: #fca5a5 !important; }
.date-card.today .day-name, .date-card.today .day-date { color: #dc2626 !important; }
.date-card.today.active { background: #dc2626 !important; border-color: #dc2626 !important; }
.date-card.today.active .day-name, .date-card.today.active .day-date { color: white !important; }

.date-card.future-day { background: #f8fafc !important; border-color: #e2e8f0 !important; }
.date-card.future-day .day-name, .date-card.future-day .day-date { color: #64748b !important; }
.date-card.future-day.active { background: #667eea !important; border-color: #667eea !important; }
.date-card.future-day.active .day-name, .date-card.future-day.active .day-date { color: white !important; }

/* ==================== CONTENT ==================== */
.league-section {
  background: white;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.league-header {
  padding: 10px 15px;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #2d3748;
  gap: 8px;
}

.pinned-league-section { border-left: 3px solid #f59e0b; }
.pinned-league-section .league-header { background: #fffbeb; }

.match-card {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #edf2f7;
  transition: background 0.2s;
}

.match-card:hover { background: #fafbfc; }
.match-card:last-child { border-bottom: none; }

.match-status { width: 45px; font-size: 11px; font-weight: 700; text-align: center; color: #718096; }
.status-live { color: #e53e3e; animation: pulse 1.5s infinite; }

.teams-wrapper { flex: 1; margin-left: 15px; }
.team { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.team-name { font-weight: 500; }
.score { font-weight: 700; min-width: 20px; text-align: right; }

/* Team logo */
.team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 8px;
    flex-shrink: 0;
}

.no-matches { text-align: center; padding: 60px 20px; color: #64748b; }

/* ==================== ADS ==================== */
.ad-space {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  position: sticky;
  top: 80px;
}

.ad-placeholder {
  border: 2px dashed #e2e8f0;
  padding: 40px 10px;
  color: #a0aec0;
  margin-bottom: 20px;
  font-size: 12px;
  border-radius: 8px;
}

/* ==================== UTILITIES ==================== */
.loading-state { text-align: center; padding: 40px; color: #a0aec0; }

.spinner {
  border: 3px solid #e2e8f0;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  width: 30px; height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

.error-message { text-align: center; padding: 40px 20px; color: #ef4444; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
  .main-container { grid-template-columns: 280px 1fr; }
  .ad-space { display: none; }
}

@media (max-width: 768px) {
  .main-container { grid-template-columns: 1fr; padding: 0 10px; }
  .mobile-menu-btn { display: block; }
  .nav { display: none; }

  .sidebar {
    position: fixed;
    top: 0; left: -300px;
    width: 280px; height: 100vh;
    z-index: 1002;
    transition: left 0.3s;
    max-height: 100vh;
    border-radius: 0;
  }

  .sidebar.active { left: 0; }

  /* Mobile auth buttons */
  .auth-buttons {
    gap: 5px !important;
  }
  .btn-login, .btn-register {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  .user-info {
    gap: 8px !important;
  }
  .user-name {
    font-size: 12px !important;
  }
}

/* ==================== AUTH BUTTONS ==================== */
.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-login {
  background: transparent;
  border: 2px solid #667eea;
  color: #667eea;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-login:hover {
  background: #667eea;
  color: white;
}

.btn-register {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* User Info (when logged in) */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-weight: 600;
  color: #2d3748;
  font-size: 14px;
}

.badge-premium {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 5px;
}

.badge-admin {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 5px;
}

.btn-logout {
  background: #e2e8f0;
  border: none;
  color: #4a5568;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #cbd5e0;
}

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #334155;
}

.modal h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 24px;
  text-align: center;
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 15px;
  display: none;
  border-left: 4px solid #dc2626;
}

.form-success {
  background: #f0fdf4;
  color: #16a34a;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 15px;
  display: none;
  border-left: 4px solid #16a34a;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.modal-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

.modal-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.modal-footer a:hover {
  text-decoration: underline;
}

.modal-footer p {
  margin-top: 10px;
}

/* Mobile modal */
@media (max-width: 480px) {
  .modal {
    margin: 10px;
    padding: 20px;
    max-width: calc(100% - 20px);
  }
  
  .modal h2 {
    font-size: 20px;
  }
}

/* ==================== MATCH DETAILS MODAL ==================== */
.match-details-modal {
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
}

.match-details-modal h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

.match-venue {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 15px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 15px;
}

.details-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.tab-btn {
  flex: 1;
  padding: 10px 15px;
  border: none;
  background: #f1f5f9;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.tab-btn:hover:not(.active) {
  background: #e2e8f0;
}

.tab-content {
  min-height: 200px;
}

/* Events */
.events-section {
  margin-bottom: 20px;
}

.events-section h4 {
  font-size: 14px;
  color: #374151;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e5e7eb;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 5px;
  border-radius: 6px;
  font-size: 13px;
}

.event-home {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
}

.event-away {
  background: #fef2f2;
  border-right: 3px solid #ef4444;
  flex-direction: row-reverse;
  text-align: right;
}

.event-minute {
  font-weight: 700;
  color: #667eea;
  min-width: 35px;
}

.event-player {
  font-weight: 600;
  color: #1f2937;
}

.event-assist {
  color: #6b7280;
  font-size: 12px;
}

.event-icon {
  font-size: 14px;
}

/* Stats */
.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #f8fafc;
  border-radius: 6px;
}

.stat-home, .stat-away {
  font-weight: 700;
  font-size: 14px;
  color: #1f2937;
  min-width: 50px;
}

.stat-home {
  text-align: left;
}

.stat-away {
  text-align: right;
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
}

/* Lineups */
.lineups-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.lineup-team h4 {
  font-size: 14px;
  color: #374151;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #667eea;
}

.lineup-team h5 {
  font-size: 12px;
  color: #6b7280;
  margin: 15px 0 8px;
}

.lineup-list {
  list-style: none;
  font-size: 13px;
}

.lineup-list li {
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
}

.lineup-list.subs li {
  color: #6b7280;
}

.player-number {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: #667eea;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}

.lineup-list.subs .player-number {
  background: #9ca3af;
}

.no-data {
  text-align: center;
  color: #9ca3af;
  padding: 30px;
  font-style: italic;
}

/* Free preview notice */
.free-preview-notice {
  margin-top: 20px;
  padding: 12px 15px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  color: #92400e;
}

.free-preview-notice a {
  color: #b45309;
  font-weight: 700;
}

/* Register prompt */
.register-prompt {
  text-align: center;
  padding: 20px;
}

.prompt-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.register-prompt h3 {
  font-size: 20px;
  color: #1f2937;
  margin-bottom: 10px;
}

.register-prompt p {
  color: #6b7280;
  margin-bottom: 20px;
}

.benefits-list {
  list-style: none;
  text-align: left;
  max-width: 280px;
  margin: 0 auto 25px;
}

.benefits-list li {
  padding: 8px 0;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
}

.prompt-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-register-prompt {
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-register-prompt:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-login-prompt {
  padding: 12px 24px;
  background: transparent;
  border: 2px solid #667eea;
  color: #667eea;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-login-prompt:hover {
  background: #667eea;
  color: white;
}

/* Match card hover */
.match-card {
  cursor: pointer;
  transition: all 0.2s;
}

.match-card:hover {
  background: #f8fafc;
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .lineups-container {
    grid-template-columns: 1fr;
  }
  
  .match-venue {
    flex-direction: column;
    text-align: center;
  }
}

/* ==================== MATCH DETAILS MODAL ==================== */
.match-details-modal {
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
}

.match-details-header {
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 15px;
}

.match-score-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.team-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

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

.team-name-big {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-big {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
}

.score-halftime {
  font-size: 12px;
  color: #64748b;
}

.match-info-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  color: #64748b;
}

/* Tabs */
.match-details-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.tab-btn:hover:not(.active) {
  background: #e2e8f0;
}

.tab-content {
  min-height: 200px;
}

/* Events */
.events-section {
  margin-bottom: 20px;
}

.events-section h4 {
  font-size: 14px;
  color: #374151;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e5e7eb;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 13px;
}

.event-item.home {
  border-left: 3px solid #3b82f6;
}

.event-item.away {
  border-left: 3px solid #ef4444;
}

.event-minute {
  font-weight: 700;
  color: #1e293b;
  min-width: 30px;
}

.event-icon {
  font-size: 16px;
}

.event-player {
  color: #374151;
}

.no-events {
  text-align: center;
  padding: 40px;
  color: #64748b;
}

/* Stats */
.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.stat-value {
  font-weight: 700;
  font-size: 14px;
  min-width: 50px;
  text-align: center;
}

.stat-value.home {
  color: #3b82f6;
}

.stat-value.away {
  color: #ef4444;
}

.stat-bar-container {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  height: 24px;
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
}

.stat-bar {
  height: 100%;
  transition: width 0.3s;
}

.stat-bar.home {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 12px 0 0 12px;
}

.stat-bar.away {
  background: linear-gradient(90deg, #f87171, #ef4444);
  border-radius: 0 12px 12px 0;
  position: absolute;
  right: 0;
}

.stat-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  z-index: 1;
}

/* Lineups */
.lineups-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.lineup-side h4 {
  font-size: 14px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid;
}

.lineup-side.home h4 {
  border-color: #3b82f6;
  color: #3b82f6;
}

.lineup-side.away h4 {
  border-color: #ef4444;
  color: #ef4444;
}

.lineup-side h5 {
  font-size: 12px;
  color: #64748b;
  margin: 15px 0 8px;
}

.lineup-players {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lineup-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 4px;
  font-size: 12px;
}

.lineup-player.sub {
  background: #f1f5f9;
  opacity: 0.8;
}

.player-number {
  font-weight: 700;
  color: #64748b;
  min-width: 20px;
}

.player-name {
  color: #374151;
}

/* Register Prompt Modal */
.register-prompt-modal {
  text-align: center;
}

.prompt-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.register-prompt-modal h2 {
  color: #1e293b;
}

.register-prompt-modal p {
  color: #64748b;
  margin-bottom: 20px;
}

.prompt-benefits {
  text-align: left;
  background: #f0fdf4;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.benefit-item {
  padding: 6px 0;
  color: #15803d;
  font-size: 14px;
}

/* Free Preview Banner */
.free-preview-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 12px 15px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
}

.free-preview-banner p {
  margin: 0;
  font-size: 13px;
  color: #92400e;
}

.free-preview-banner a {
  color: #d97706;
  font-weight: 700;
}

/* ==================== MATCH DETAILS V2 ==================== */

/* Events Timeline */
.events-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-desc {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
}

.assist-badge {
  display: inline-block;
  background: #22c55e;
  color: white;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
}

/* xG Display */
.xg-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.xg-value {
  font-size: 28px;
  font-weight: 800;
}

.xg-value.home { color: #3b82f6; }
.xg-value.away { color: #ef4444; }

.xg-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

/* Stats Period Tabs */
.stats-period-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.period-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.period-btn.active {
  background: #1e293b;
  color: white;
  border-color: #1e293b;
}

.period-btn:hover:not(.active) {
  background: #f8fafc;
}

/* Lineups v2 */
.formation {
  font-weight: 400;
  color: #64748b;
  font-size: 13px;
}

.player-country {
  font-size: 10px;
  color: #94a3b8;
  margin-left: auto;
}

/* Missing Players */
.missing-players {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
}

.missing-players h4 {
  font-size: 14px;
  color: #dc2626;
  margin-bottom: 12px;
}

.missing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.missing-player {
  font-size: 12px;
  color: #374151;
  padding: 6px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.injury-reason {
  color: #dc2626;
  font-size: 10px;
  display: block;
}

/* ==================== ODDS TAB ==================== */
.odds-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.odds-section h4 {
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #667eea;
}

.odds-section.main h4 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.odds-table {
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
}

.odds-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 12px 15px;
  background: #1e293b;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.odds-header span:not(:first-child) {
  text-align: center;
}

.odds-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 10px 15px;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
}

.odds-row:last-child {
  border-bottom: none;
}

.bm-name {
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}

.odd-value {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 6px;
  margin: 0 3px;
}

/* Over/Under odds */
.odds-table.ou {
  display: flex;
  flex-direction: column;
}

.bm-ou {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e7eb;
}

.bm-ou:last-child {
  border-bottom: none;
}

.ou-odds {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.ou-line {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 6px;
}

.ou-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* BTTS odds */
.odds-table.btts .odds-header {
  grid-template-columns: 2fr 1fr 1fr;
}

.odds-table.btts .odds-row {
  grid-template-columns: 2fr 1fr 1fr;
}

/* ==================== H2H TAB ==================== */
.h2h-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.h2h-section h4 {
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 12px;
}

.h2h-matches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h2h-match {
  display: grid;
  grid-template-columns: 80px 1fr 60px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 12px;
}

.h2h-date {
  color: #64748b;
  font-size: 11px;
}

.h2h-teams {
  font-weight: 500;
  color: #374151;
}

.h2h-score {
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  background: #e2e8f0;
  padding: 4px 10px;
  border-radius: 4px;
}

.h2h-comp {
  font-size: 10px;
  color: #94a3b8;
  text-align: right;
}

/* H2H Form */
.h2h-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.form-match {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
  border-radius: 8px;
  min-width: 80px;
}

.form-match.win {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
}

.form-match.loss {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #fca5a5;
}

.form-match.draw {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 1px solid #d1d5db;
}

.form-result {
  font-size: 18px;
  font-weight: 800;
}

.form-match.win .form-result { color: #16a34a; }
.form-match.loss .form-result { color: #dc2626; }
.form-match.draw .form-result { color: #6b7280; }

.form-score {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.form-opponent {
  font-size: 10px;
  color: #64748b;
  margin-top: 4px;
}

/* Mobile adjustments */
@media (max-width: 500px) {
  .match-details-modal {
    margin: 10px;
    padding: 15px;
  }
  
  .match-score-big {
    gap: 10px;
  }
  
  .team-logo-big {
    width: 40px;
    height: 40px;
  }
  
  .score-big {
    font-size: 24px;
  }
  
  .lineups-container {
    grid-template-columns: 1fr;
  }
  
  .h2h-match {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .h2h-comp {
    text-align: center;
  }
  
  .odds-header,
  .odds-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    font-size: 11px;
  }
  
  .odd-value {
    padding: 4px 6px;
    font-size: 12px;
  }
  
  .xg-display {
    gap: 15px;
    padding: 15px;
  }
  
  .xg-value {
    font-size: 22px;
  }
  
  .missing-grid {
    grid-template-columns: 1fr;
  }
}
