.hidden {
    display: none !important;
}
.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: #000000; /* Светлосив текст */
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #000000; /* Малко по-светла рамка */
}

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

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

/* Стил за текущата страница - използваме зелено от уебсайта */
.lotto-pagination a.current {
    background-color: #ffc107; /* Тъмнозелено, подобно на "ID", "Numbers" */
    color: #000;
    border-color: #ffc107;
    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;
    }
}




.backButton1 {
    background: #FAD200;
    border: 1px solid #FAD200;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    float: right;   
    margin-bottom: 15px;
}
.backButton1:hover {
    text-decoration: none;
    background: #fff;
    color: #FAD200;
}
/* Основни стилове - Grid Layout */
#rwanda-lotto {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 16px;
  padding: 24px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Grid контейнер */
  display: grid;
  grid-template-columns:  1fr 2fr 2fr;
  grid-template-rows: auto auto;
  grid-template-areas: 
    "logo draw results"
    "logo draw results";
  column-gap: 25px;
  align-items: start;
}
#rwanda-lotto > * {
    height: 100%;
}
#rwanda-lotto .result-row div {
        display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	grid-gap: 10px;
}
#rwanda-lotto1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fad200 0%, #fad200 100%);
}
/* Колона 1: Лого/Име */
#rwanda-lotto .logo {
  grid-column: 1 / -1 !important;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: center;
	flex-direction: row-reverse;
}

#rwanda-lotto .logo span {
  color: #0a0a0a;
  background: #fad200;
  border: 1px solid #fad200;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 25px;
  margin-bottom: 15px;
}
#rwanda-lotto .logo h3 {
  font-size: 16px;
  font-weight: 800;
  background: #a4a4a4;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

#rwanda-lotto .logo a {
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
  width: 100%;
}

#rwanda-lotto .logo a:hover {
  transform: scale(1.03);
}

#rwanda-lotto .last-draw span {
  display: inline-block;
  background: rgba(0, 136, 204, 0.1);
  color: #0088cc;
    padding: 3px 16px;
    border-radius: 50px;
    font-weight: 400;
    font-size: 12px;
  border: 1px solid rgba(0, 136, 204, 0.2);
  text-align: center;
  align-self: center;
}
#rwanda-lotto .last-draw > span {
    margin-bottom: 15px;
}
#rwanda-lotto .last-draw .numbers {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
  justify-content: center;
    align-items: center;
}

#rwanda-lotto .last-draw .num {
   background: #8d8e93;
    padding: 5px 11px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
	font-weight: 900;
	    display: flex;
    align-items: center;
    justify-content: space-between;
}

#rwanda-lotto .last-draw .num:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Колона 3: Всички резултати */
#rwanda-lotto .results {
  grid-area: results;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#rwanda-lotto .result-row {
  background: white;
  border-radius: 12px;
  padding: 15px 15px 0 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  flex-grow: 1;
}

#rwanda-lotto .last-draw .result-row > div {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 16px;
	    padding-bottom: 15px;
}

#rwanda-lotto .result-row:nth-child(1) {
}

#rwanda-lotto .result-row:nth-child(2) {
  border-top: 5px solid #9c27b0;
}

#rwanda-lotto .result-row b {
    display: block;
    font-size: 18px;
    color: #444;
    margin-bottom: 20px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
}

#rwanda-lotto .extra_num {
	font-weight: 900;
    background: #f8f9fa;
    padding: 20px 15px;
    border-radius: 8px;
    font-size: 12px;
    color: #555;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    text-align: center;
    border-radius: 50%;
}

#rwanda-lotto .extra_num:hover {
  background: #e9ecef;
  color: #222;
  transform: translateY(-2px);
}

#rwanda-lotto .result-row:nth-child(1) .extra_num {
  border-left: 4px solid #00a85a;
}

#rwanda-lotto .result-row:nth-child(2) .extra_num {
  border-left: 4px solid #9c27b0;
}

/* Мобилна версия */
@media (max-width: 1024px) {
  #rwanda-lotto {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: 
      "logo logo"
      "draw draw"
      "results results";
    gap: 20px;
    padding: 20px;
  }
  
  #rwanda-lotto .logo {
    padding: 20px;
  }
  
  #rwanda-lotto .logo h3 {
    font-size: 14px;
  }
  
  #rwanda-lotto .last-draw .numbers {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  #rwanda-lotto .last-draw .num {
    flex: 1;
    margin-bottom: 0px;
  }
}

@media (max-width: 768px) {
  #rwanda-lotto {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: 
      "logo"
      "draw"
      "results";
    padding: 16px;
    gap: 16px;
  }
  
  #rwanda-lotto .logo {
    padding: 20px 15px;
  }
  
  #rwanda-lotto .logo h3 {
    font-size: 14px;
  }
  
  #rwanda-lotto .last-draw .numbers {
    flex-direction: column;
  }
  
  #rwanda-lotto .result-row {
    padding: 20px;
  }
  
  #rwanda-lotto .result-row b {
    font-size: 18px;
    text-align: center;
  }
    #rwanda-lotto .last-draw .num:nth-child(3) {
        margin-bottom: 0
    }
  #rwanda-lotto .extra_num {
    font-size: 16px;
    padding: 10px 14px;
    min-width: 70px;
  }
}

/* Много малки екрани */
@media (max-width: 480px) {
  #rwanda-lotto {
    padding: 12px;
  }
  
  #rwanda-lotto .logo h3 {
    font-size: 14px;
  }
  
  #rwanda-lotto .last-draw span {
    font-size: 15px;
    padding: 8px 16px;
  }
  
  #rwanda-lotto .extra_num {
    min-width: calc(50% - 15px);
    font-size: 12px;
    padding: 5px;
    box-sizing: border-box;
  }
  
  #rwanda-lotto .result-row {
    padding: 15px;
  }
}



/* Таблица - история */
    .lotto-history tbody tr {
        box-shadow: 0 0 2px 0 #808080ad;
        padding-bottom: 13px;
        border-radius: 12px;
        margin-bottom: 20px;
    display: grid;
    grid-template-columns: .5fr 3fr;
    }
    .lotto-history tbody tr td {
        border-radius: 12px;
        padding: 15px 10px;
    }
    .lotto-history tbody td:nth-child(2) .result-row {
/*         border-left: 1px solid #e7e7e7b3; */
        padding-left: 10px;
    }
.lotto-history tbody .extra-res {
	display: grid;
	grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 12px;
}
.lotto-history tbody .extra-res .result-row:first-child {
	grid-column: 1 / -1 !important;
}
    body .lotto-history b {
        display: inline-block;
        font-size: 12px;
        color: #a4a4a4;
        margin-bottom: 0px;
        padding-bottom: 0px;
        text-transform: uppercase;
        background: #fff;
        border-bottom: none;
        padding-right: 15px;
        z-index: 1;
        position: relative;
    }
    .lotto-history tbody .result-row {
        position: relative;
    }
    .lotto-history tbody .result-row:after {
        content: '';
        width: 100%;
        position: absolute;
        height: 1px;
        background: #e7e7e7b3;
        top: 10px;
    }
    .lotto-history div span {
        background: #fff;
        padding: 13px 11px;
        border-radius: 10px;
        text-align: center;
        font-size: 14px;
        font-weight: 600;
        color: #222;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }
    body .lotto-history span.date {
        font-size: 12px;
        font-weight: 600;
    }
    body .lotto-history a {
        font-size: 14px;
    }
    body .lotto-history a span {
        font-size: 20px;
    }
    .lotto-history td:not(.extra-res) .result-row div {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 3px;
        margin-top: 5px;
    }
    .lotto-history td.extra-res .result-row div {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        gap: 3px;
        margin-top: 5px;
    }
    .lotto-history td:nth-child(2) .result-row div span {
        font-weight: 900;
		background: #f0f0f0;
		border: none;
		border-radius: 4px;
    }
.lotto-history .result-row:first-child div span {
	    display: flex;
    align-items: center; 
	justify-content: space-between;
}
    .lotto-history .result-row div span {
        padding: 1px 10px;
        border: 1px solid #80808052;
    }
    .lotto-history .result-row div i {
        font-weight: 600;
        font-size: 14px;
        font-style: normal;
    }


.lotto-history tbody td {
    padding: 0 10px;
    background: #fff !important;
}
.lotto-history a {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(90deg, #FF9800, #fad203);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    display: block;
        margin-top: 10px;
}
.lotto-history span.date {
color: #0a0a0a;
    background: #fad200;
    border: 1px solid #fad200;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 900;
    padding: 3px 5px;
    margin-bottom: 15px;
}
.lotto-history b {
    display: block;
    font-size: 18px;
    color: #444;
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
}

/* Мобилна версия (под 768px) */
@media (max-width: 767px) {
	.lotto-history td.extra-res .result-row:first-child div {
		grid-template-columns: 1fr 1fr 1fr;
	}
	.lotto-history tbody .result-row {
		padding: 10px 0;
	}
	.lotto-history tbody tr,
	.lotto-history tbody .extra-res {
		display: block;
	}
  .lotto-history {
    width: 100%;
    border: none;
    background: transparent;
      min-width: 100% !important;
  }
  
  .lotto-history thead {
    display: none;
  }
  
  .lotto-history tbody,
  .lotto-history tr,
  .lotto-history td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  
  .lotto-history tr {
    margin-bottom: 20px;
    padding: 15px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
    body .lotto-history span.date {
    font-size: 14px;
    font-weight: 600;
    display: block;
    text-align: center;
}
    .lotto-history tbody td:nth-child(2) .result-row {
        border-left: none;
        padding-left: 0px;
    }
  body .lotto-history a {
    font-size: 20px;
    text-align: center;
}
  .lotto-history td {
    padding: 15px 0;
  }
  
  .lotto-history td:last-child {
    border-bottom: none;
    padding-bottom: 0;
	  padding-top: 0;
  }
  
  .lotto-history td:first-child {
    padding-top: 0;
	  padding-bottom: 0;
  }
    .lotto-history .result-row {
    }
}

@media(max-width: 480px) {
    .lotto-history .result-row div span {
            padding: 1px 4px;
    }
}
