.hidden {
    display: none !important;
}
.error404 .entry-header {
	margin: 1.5rem 0; 
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.error404 .entry-header {
	position: relative;
}

.backButton1 {
    background: #fff;
    border: 1px solid #000;
    color: #000;
    padding: 5px 10px;
    border-radius: 4px;
}
.backButton1:hover {
    text-decoration: none;
    background: #000;
    color: #fff;
}

/* Основен контейнер */
.lotto-list-holder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

/* Всяка отделна лотарийна игра - цветни кутийки */
.active-draw {
    background: white;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 200px;
    backdrop-filter: blur(0px);
}

/* Различни фонови цветове за кутийките на всяка игра */


.active-draw:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

/* Лого секция */
.active-draw .logo {
    margin-bottom: 15px;
}

.active-draw .logo img {
    max-width: 100px;
    height: auto;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
}

.active-draw .logo h2 {
	line-height: 10px;
}

.active-draw .logo h3 {
    margin: 25px 0 5px 0;
    font-size: 14px;
    color: #444444;
    font-weight: normal;
}

.active-draw .logo span {
	font-size: 14px;
    color: #000000;
    display: block;
    margin-top: 5px;
	display: none;
}

.active-draw .logo a {
    text-decoration: none;
    color: inherit;
    font-size: 20px;
    line-height: 20px;
}

/* Резултати - последно теглене */
.active-draw .last-draw {
	display: flex;
    align-items: center;
    justify-content: center;
	gap: 15px;
}

.active-draw .last-draw h3 {
    font-size: 13px;
    color: #aaa;
    font-weight: normal;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Всеки result-row ред */
.active-draw .last-draw .result-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.active-draw .last-draw .result-row:last-child {
    margin-bottom: 0;
}

.active-draw .last-draw .result-row div {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Топчета с числа */
.active-draw .last-draw .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 8px;
    background: radial-gradient(circle at 30% 30%, #ff4d4d, #b30000);
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease;
}

/* Специален стил за MULTI-X текста (не е число) */
.active-draw#multi-x .last-draw .num:contains("MULTI-X"),
.active-draw .last-draw .num[class*="MULTI"] {
    background: linear-gradient(135deg, #9b59b6, #6c3483);
    border-radius: 30px;
    min-width: 90px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Алтернативен начин - ако текста е точно "MULTI-X" */
.active-draw#multi-x .last-draw .result-row:last-child .num {
    background: linear-gradient(135deg, #e21f26, #812127);
    border-radius: 30px;
    min-width: 90px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Различни цветове за топчетата според играта */
.active-draw#premia2 .last-draw .num {
    background: radial-gradient(circle at 30% 30%, #7f4185, #b837c4);
}

.active-draw#loto-super-premio .last-draw .num {
    background: radial-gradient(circle at 30% 30%, #e21f26, #812127);
}

.active-draw#pega3 .last-draw .num {
    background: radial-gradient(circle at 30% 30%, #328dc9, #2774a6);
}

.active-draw#juga-tres .last-draw .num {
    background: radial-gradient(circle at 30% 30%, #3498db, #1f618d);
}

.active-draw#multi-x .last-draw .num {
    background: radial-gradient(circle at 30% 30%, #e21f26, #812127);
}

.active-draw#diaria .last-draw .num {
    background: radial-gradient(circle at 30% 30%, #4da647, #057209);
}

/* Специален стил за MULTI-X текста (презаписване) */

/* За числа с две цифри - нормален шрифт */
.active-draw .last-draw .num {
    font-size: 18px;
}

/* Responsive дизайн */
@media (max-width: 768px) {
    .lotto-list-holder {
        gap: 12px;
        padding: 15px;
    }
    
    .active-draw {
        padding: 15px 18px;
        min-width: 160px;
    }
    
    .active-draw .last-draw .num {
        min-width: 38px;
        height: 38px;
        font-size: 16px;
        padding: 0 6px;
    }
    
    .active-draw .logo img {
        max-width: 80px;
    }
    
    .active-draw#multi-x .last-draw .result-row:last-child .num {
        min-width: 75px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .active-draw .last-draw .num {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
        padding: 0 4px;
    }
    
    .active-draw {
        padding: 12px 15px;
        min-width: 140px;
    }
    
    .active-draw#multi-x .last-draw .result-row:last-child .num {
        min-width: 65px;
        font-size: 11px;
    }
}









.lotto-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.lotto-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background-color: #ffffff; /* Тъмносиньо-сив фон, подобен на заглавната част */
    color: #2f4553; 
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #2f4553; /* Малко по-светла рамка */
}

/* Стил за бутоните "First" и "Last" - малко по-широки */
.lotto-pagination a[data-page="First"],
.lotto-pagination a[data-page="Last"] {
    padding: 0 16px;
    color: #2f4553;
}

/* Hover ефект - светване */
.lotto-pagination a:hover:not(.current) {
    background-color: #2f4553;
    color: #fff !important;
    border-color: #2f4553;
}

/* Стил за текущата страница - използваме зелено от уебсайта */
.lotto-pagination a.current {
    background-color: #2f4553; /* Тъмнозелено, подобно на "ID", "Numbers" */
    color: white;
    border-color: #2f4553;
    font-weight: 600;
    cursor: default;
    pointer-events: none; /* Превенция при клик */
}

/* Адаптивност за мобилни устройства */
@media (max-width: 480px) {
    .lotto-pagination {
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .lotto-pagination a {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .lotto-pagination a[data-page="First"],
    .lotto-pagination a[data-page="Last"] {
        padding: 0 12px;
    }
}








.draw-history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: #fff;
  padding: 20px 30px;
  border-radius: 16px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
}

.draw-history img {
  height: 60px;
  width: auto;
  display: block;
}

.draw-history h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.draw-history h3 a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.draw-history h3 a:hover {
  color: #c0392b;
  text-decoration: underline;
}

.draw-history .date {
  margin: 0;
}

.draw-history .date a {
  font-size: 0.95rem;
  color: #2c3e50;
  background: #e9ecef;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.draw-history .date a:hover {
  background: #dee2e6;
  color: #1a252f;
}

.draw-history .last-draw {
  display: flex;
  align-items: center;
}
.draw-history .last-draw .result-row:last-child {
	margin-left: 20px;
}
.draw-history .last-draw .result-row div {
  display: flex;
  gap: 12px;
}

.draw-history .last-draw .result-row div a {
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.draw-history .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  color: #00bde4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.draw-history .num:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Когато няма лого */
.draw-history:not(:has(img)) img {
  display: none;
}

/* ========== МОБИЛНА ВЕРСИЯ ========== */
@media (max-width: 768px) {
  .draw-history {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 16px;
    gap: 12px;
  }
  
  .draw-history img {
    align-self: center;
    height: 50px;
  }
  
  .draw-history h3 {
    font-size: 1.1rem;
  }
  
  .draw-history .date a {
    font-size: 0.85rem;
    padding: 5px 12px;
  }
  
  .draw-history .last-draw {
    justify-content: center;
  }
  
  .draw-history .last-draw .result-row div,
  .draw-history .last-draw .result-row div a {
    justify-content: center;
	  gap: 8px;
  }
	.draw-history .last-draw .result-row:last-child {
		margin-left: 0;
	}
  
  .draw-history .num {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

/* Много малки екрани (≤480px) */
@media (max-width: 480px) {
  .draw-history {
    padding: 12px;
    gap: 10px;
  }
  
  .draw-history img {
    height: 40px;
  }
  
  .draw-history h3 {
    font-size: 1rem;
  }
  
  .draw-history .date a {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  
  .draw-history .num {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}




.lotto-games {
	margin: 20px 0;
}

.lotto-games .lotto-game-blocks {
  background: white;
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.lotto-games .lotto-game-blocks h4 {
  margin: 0 0 30px 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.lotto-games .lotto-game-blocks h4 a {
  color: #1e3a5f;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.lotto-games .lotto-game-blocks h4 a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.lotto-games .lotto-game-blocks h4 a:hover {
  color: #667eea;
}

.lotto-games .lotto-game-blocks h4 a:hover::after {
  width: 100%;
}

.lotto-games .lotto-game-block {
	display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 25px;
}

.lotto-games .lotto-game-block a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 15px;
  background: #f8f9fa;
  border-radius: 16px;
  transition: all 0.3s ease;
  min-width: 120px;
  border: 1px solid #e9ecef;
}

.lotto-games .lotto-game-block a:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  background: white;
  border-color: #dee2e6;
}

.lotto-games .lotto-game-block img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}

.lotto-games .lotto-game-block h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.lotto-games .lotto-game-block a:hover h5 {
  color: #667eea;
}

/* Когато няма лого на дадена игра */
.lotto-games .lotto-game-block a:not(:has(img)) img {
  display: none;
}

/* ========== МОБИЛНА ВЕРСИЯ ========== */
@media (max-width: 768px) {
	.error404 .entry-header {
		gap: 10px;
	}
  .lotto-games {
    padding: 0px;
  }
  
  .lotto-games .lotto-game-blocks {
    padding: 20px;
  }
  
  .lotto-games .lotto-game-blocks h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
  }
  
  .lotto-games .lotto-game-block {
    gap: 15px;
        display: grid;
        grid-template-columns: 1fr;
  }
  
  .lotto-games .lotto-game-block a {
    min-width: 100px;
    padding: 5px 12px;
	  justify-content: left;
  }
  
  .lotto-games .lotto-game-block img {
    width: 60px;
    height: 50px;
  }
  
  .lotto-games .lotto-game-block h5 {
    font-size: 1rem;
  }
}

@media (max-width: 650px) {
  .lotto-games .lotto-game-block {
    gap: 12px;
  }
  
}

@media (max-width: 480px) {
  
  .lotto-games .lotto-game-blocks {
    padding: 15px;
  }
  
  .lotto-games .lotto-game-blocks h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  
  .lotto-games .lotto-game-block {
    gap: 10px;
  }
  
}

@media (max-width: 380px) {
  .lotto-games .lotto-game-block {
    flex-direction: column;
    align-items: center;
  }
  
  .lotto-games .lotto-game-block a {
    min-width: 100%;
    flex-direction: row;
    gap: 15px;
  }
}