:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --neon-green: #00ff88;
  --electric-blue: #00aaff;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --accent-cyan: #00f5ff;
  --accent-teal: #00ffaa;
}

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

body {
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  text-align: center;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 255, 136, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

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

.section {
  padding: 60px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: "Poppins", "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-green), var(--electric-blue));
  color: #000;
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 136, 0.4);
  margin: 20px auto;
}

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--neon-green);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

.no-data {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Анимиран фон с лога */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.floating-logo {
  position: absolute;
  opacity: 0.15;
  animation: floatLogo 25s linear infinite;
  filter: brightness(1.1);
  pointer-events: none;
}

@keyframes floatLogo {
  0% {
    transform: translateY(110vh) translateX(-50px) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  5% {
    opacity: 0.15;
  }
  80% {
    opacity: 0.15;
  }
  100% {
    transform: translateY(-100px) translateX(50px) rotate(180deg) scale(1.2);
    opacity: 0;
  }
}

/* ОПТИМИЗИРАНИ МЕДИЯ ЗАЯВКИ ЗА МОБИЛЕН ИЗГЛЕД */
@media (max-width: 768px) {
  .navbar { 
    padding: 8px 0; 
    min-height: 50px; 
  }
  
  .nav-container { 
    flex-direction: row; 
    flex-wrap: nowrap; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 15px; 
    gap: 10px; 
  }
  
  .nav-logo { 
    font-size: 1.1rem; 
    flex-shrink: 0; 
    max-width: 120px;
    overflow: hidden;
  }
  
  .nav-links { 
    display: flex; 
    flex-direction: row; 
    gap: 8px; 
    flex-wrap: nowrap; 
    justify-content: flex-end; 
    flex: 1; 
    margin: 0; 
    min-width: 0; /* Важно за responsive */
  }
  
  .nav-link { 
    padding: 6px 8px; 
    font-size: 0.7rem; 
    white-space: nowrap; 
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Подобрен language switcher за мобилни */
  .language-switcher { 
    margin-left: 5px; 
    flex-shrink: 0; 
    position: relative;
    z-index: 1002;
  }
  
  .lang-btn { 
    padding: 5px 8px; 
    font-size: 0.7rem; 
    min-width: 50px; 
    max-width: 60px;
    overflow: hidden;
  }
  
  .lang-dropdown { 
    min-width: 140px; 
    right: 0;
    left: auto;
    transform: none;
  }
  
  .lang-option { 
    padding: 8px 12px; 
    font-size: 0.75rem; 
  }
  
  body { 
    padding-top: 50px; 
  }
  
  .hero { 
    padding: 70px 15px 40px; 
    min-height: calc(100vh - 50px); 
  }
  
  .hero-content { 
    padding-top: 0; 
  }
  
  .hero-badge { 
    font-size: 0.7rem; 
    padding: 5px 10px; 
    margin-bottom: 15px; 
  }
  
  .hero h1 { 
    font-size: 2rem; 
    margin-bottom: 15px; 
    line-height: 1.2;
    word-wrap: break-word;
  }
  
  .hero-subtitle { 
    font-size: 0.9rem; 
    margin-bottom: 25px; 
    line-height: 1.5;
    padding: 0 10px;
  }
  
  .hero-stats { 
    gap: 25px; 
    margin-bottom: 30px; 
    flex-wrap: wrap;
  }
  
  .stat-item {
    min-width: 80px;
  }
  
  .stat-number { 
    font-size: 1.6rem; 
  }
  
  .stat-label { 
    font-size: 0.75rem; 
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
    min-height: 44px; /* Минимална височина за лесно докосване */
  }
  
  .live-predictions { 
    padding: 20px 15px; 
    margin-top: 30px; 
    width: 95%;
  }
  
  .predictions-grid { 
    grid-template-columns: 1fr; 
    gap: 10px; 
  }
  
  .prediction-item { 
    padding: 12px; 
  }
  
  .prediction-badge { 
    font-size: 0.75rem; 
    padding: 6px 12px;
  }
  
  .section-title { 
    font-size: 2rem; 
    margin-bottom: 40px;
    padding: 0 15px;
    line-height: 1.2;
  }
  
  .features { 
    padding: 60px 15px; 
  }
  
  .features-grid { 
    grid-template-columns: 1fr; 
    gap: 20px; 
  }
  
  .feature-card { 
    padding: 25px 20px; 
    margin: 0 10px;
  }
  
  .feature-icon { 
    font-size: 2.5rem; 
  }
  
  .feature-title { 
    font-size: 1.2rem; 
  }
  
  .feature-description {
    font-size: 0.9rem;
  }
  
  .how-it-works { 
    padding: 60px 15px; 
  }
  
  .steps { 
    flex-direction: column; 
    gap: 30px; 
  }
  
  .step {
    min-width: auto;
    padding: 0 15px;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .step-title {
    font-size: 1.1rem;
  }
  
  .step-description {
    font-size: 0.9rem;
  }
  
  .featured-matches { 
    padding: 60px 15px; 
  }
  
  .section-header { 
    flex-direction: column; 
    text-align: center; 
    gap: 15px;
    padding: 0 10px;
  }
  
  .mission { 
    padding: 60px 15px; 
  }
  
  .mission-text {
    font-size: 1rem;
    padding: 0 10px;
  }
  
  .footer {
    padding: 40px 15px 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Floating logos adjustments for mobile */
  .floating-logo {
    width: 40px;
    height: 40px;
    opacity: 0.3;
  }
  
  .floating-logo:nth-child(n+8) {
    display: none; /* По-малко лога на мобилни */
  }
  
  /* Специфични корекции за навигацията */
  .nav-links {
    overflow: visible; /* Позволява на dropdown да се вижда */
  }
  
  /* Подобрения за league sections на мобилни */
  .league-header {
    padding: 15px;
  }
  
  .league-info {
    gap: 10px;
  }
  
  .league-logo {
    width: 35px;
    height: 35px;
  }
  
  .league-name {
    font-size: 1rem;
  }
  
  .match-count {
    font-size: 0.75rem;
    padding: 4px 8px;
    min-width: 60px;
  }
}

/* ДОПЪЛНИТЕЛНИ КОРЕКЦИИ ЗА МНОГО МАЛКИ ЕКРАНИ */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 10px;
  }
  
  .nav-logo { 
    font-size: 1rem; 
    max-width: 100px;
  }
  
  .nav-links {
    gap: 5px;
  }
  
  .nav-link { 
    font-size: 0.65rem; 
    padding: 4px 6px; 
    min-width: 0;
  }
  
  .lang-btn { 
    font-size: 0.65rem; 
    padding: 4px 6px; 
    min-width: 45px; 
    max-width: 50px;
  }
  
  .hero h1 { 
    font-size: 1.7rem; 
  }
  
  .hero-subtitle { 
    font-size: 0.85rem; 
  }
  
  .hero-stats { 
    gap: 20px; 
  }
  
  .stat-item {
    min-width: 70px;
  }
  
  .stat-number { 
    font-size: 1.4rem; 
  }
  
  .stat-label { 
    font-size: 0.7rem; 
  }
  
  .feature-card { 
    padding: 20px 15px; 
    margin: 0 5px;
  }
  
  .feature-icon { 
    font-size: 2rem; 
  }
  
  .feature-title { 
    font-size: 1.1rem; 
  }
  
  .section-title { 
    font-size: 1.7rem; 
  }
  
  .league-name { 
    font-size: 0.9rem; 
  }
  
  .match-count { 
    font-size: 0.7rem; 
    padding: 3px 6px; 
    min-width: 50px;
  }
  
  .team-logo {
    width: 60px;
    height: 60px;
  }
  
  .team-name {
    font-size: 0.85rem;
  }
  
  .floating-logo {
    width: 35px;
    height: 35px;
    opacity: 0.25;
  }
  
  .floating-logo:nth-child(n+6) {
    display: none; /* Още по-малко лога на много малки екрани */
  }
}

/* ДОПЪЛНИТЕЛНИ КОРЕКЦИИ ЗА МНОГО МАЛКИ ЕКРАНИ (под 360px) */
@media (max-width: 360px) {
  .nav-container {
    padding: 0 8px;
  }
  
  .nav-logo {
    font-size: 0.9rem;
    max-width: 90px;
  }
  
  .nav-links {
    gap: 3px;
  }
  
  .nav-link {
    font-size: 0.6rem;
    padding: 3px 4px;
  }
  
  .lang-btn {
    min-width: 40px;
    font-size: 0.6rem;
    padding: 3px 4px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.8rem;
  }
  
  .hero-stats {
    gap: 15px;
  }
  
  .stat-item {
    min-width: 60px;
  }
  
  .stat-number {
    font-size: 1.2rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
  
  /* Още по-компактна навигация */
  .nav-links {
    justify-content: flex-end;
  }
  
  .nav-link:nth-child(1),
  .nav-link:nth-child(2) {
    display: none; /* Скриваме първите 2 линка на много малки екрани */
  }
}
