/* ============================================
   UAE Lottery Module – Web Styles
   ============================================ */

/* ---------- Result Shell & Cards ---------- */
.uae-result-shell {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  /* padding: 16px; */
}
.gr-lottery .uae-result-shell.uae-result-card {
  margin-top: 20px !important;
}
.gr-lottery .uae-search-module + .uae-result-shell.uae-result-card {
  margin-top: 20px !important;
}
.gr-lottery picture + .uae-result-shell.uae-result-card {
  margin-top: 20px !important;
}
.uae-result-shell.uae-result-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  /* padding: 18px; */
}
.uae-result-shell.uae-result-card.uae-pick-3 {
  background: #ffffff;
}
.uae-result-shell.uae-result-card.uae-pick-4 {
  background: #ffffff;
}

/* ---------- Header & Title ---------- */
.uae-header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.uae-draw-date-badge {
  font-size: 14px;
  color: #364351;
}
.uae-result-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.uae-result-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  color: #364351;
}
.uae-result-title small {
  color: #364351;
  font-size: 13px;
}
.uae-result-headline {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin: 0 0 12px;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 24px;
  color: #fff;
  font-weight: 700;
  background: #364351;
  border-radius: 5px 5px 0 0;
}

/* ---------- Balls ---------- */
.uae-balls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 18px 0;
}
.uae-ball-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.uae-ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 25px;
  color: #364351;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ecfdf5 100%);
}
.uae-lucky-day .uae-ball {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ecfdf5 100%);
  color: #364351;
}
.uae-pick-3 .uae-ball {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ecfdf5 100%);
  color: #364351;
}
.uae-pick-4 .uae-ball {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ecfdf5 100%);
  color: #364351;
}
.uae-ball.uae-ball-special {
  background: #364351;
  color: #fff;
}
.uae-ball-label {
  font-size: 12px;
  color: #364351;
  line-height: 1;
}

/* ---------- Payout Table ---------- */
.uae-payout {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin-top: 8px;
}
.uae-payout th {
  background: #364351;
  color: #fff;
  padding: 11px 9px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}
.uae-payout td {
  background: #ffffff;
  padding: 11px 9px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #364351;
}

/* ---------- Lucky Chance & Total ---------- */
.uae-lucky-chance {
  margin-top: 14px;
}
.uae-total-row {
  margin-top: 14px;
  text-align: right;
}
.uae-total {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* background: #364351; */
  color: #364351;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

/* ---------- Recent Results Table ---------- */
.uae-recent-wrap {
  margin-top: 16px;
}
.uae-recent-wrap .sub_heading {
  margin-bottom: 10px;
}
.uae-recent-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.uae-recent-table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  background: #364351;
  padding: 10px 8px;
  text-align: center;
}
.uae-recent-table td {
  font-size: 14px;
  color: #364351;
  padding: 10px 8px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

/* ---------- Mini Balls (Recent Table) ---------- */
.uae-mini-balls {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}
.uae-mini-ball-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.uae-mini-ball {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #364351;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ecfdf5 100%);
}
.uae-recent-lucky-day .uae-mini-ball {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ecfdf5 100%);
  color: #364351;
}
.uae-recent-pick-3 .uae-mini-ball {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ecfdf5 100%);
  color: #364351;
}
.uae-recent-pick-4 .uae-mini-ball {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ecfdf5 100%);
  color: #364351;
}
.uae-mini-ball-special {
  background: #364351;
  color: #fff;
}
.uae-mini-ball-month {
  background: #364351;
  color: #fff;
  border: 2px solid #364351;
  box-sizing: border-box;
}
.uae-recent-lucky-day .uae-mini-ball.uae-mini-ball-month {
  background: #364351;
  color: #fff;
}
.uae-mini-label {
  font-size: 9px;
  line-height: 1;
  color: #364351;
}

/* ---------- Home Page Cards ---------- */
.uae-home-results {
  display: grid;
  gap: 20px;
  margin-bottom: 10px;
}
.uae-home-results .lottery-draw-wrapper {
  margin-bottom: 0;
  padding: 0;
}
.uae-home-results .lottery-draw__result {
  min-height: auto;
  padding: 15px;
}
.uae-card-lucky-day .lottery-draw__result {
  width: 400px;
}
.uae-card-pick-3 .lottery-draw__result {
  width: 250px;
}
.uae-card-pick-4 .lottery-draw__result {
  width: 280px;
}
.uae-home-results .uae-balls {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  justify-content: center;
}
.uae-home-results .uae-ball-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.uae-home-results .uae-ball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #364351;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ecfdf5 100%);
}
.uae-home-results .uae-ball.uae-ball-special {
  background: #364351;
  color: #fff;
}
.uae-home-results .uae-ball-label {
  font-size: 10px;
  color: #364351;
  line-height: 1;
}
.uae-home-results .lottery-draw__company-price-amount span.uae-winners-badge {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .uae-result-title h2 {
    font-size: 20px;
    line-height: 26px;
  }
  .uae-result-headline {
    font-size: 18px;
    line-height: 24px;
  }
  .uae-search-columns {
    grid-template-columns: 1fr;
  }
  .uae-search-result-grid {
    grid-template-columns: 1fr;
  }
  .uae-search-grid {
    grid-template-columns: 1fr;
  }
  .uae-otp-input {
    width: 40px;
    height: 46px;
    font-size: 24px;
  }
  .uae-total {
    font-size: 18px;
    padding: 7px 12px;
  }
  .uae-home-results .lottery-draw-block {
    flex-direction: column;
    gap: 15px;
  }
  .uae-home-results .lottery-draw__result {
    width: 100%;
  }
}

.title-no {
  background: #159b5a;
  color: #fff !important;
  border-radius: 4px;
  padding: 2px 3px;
  margin: 10px 10px 10px 0px;
}

.lottery-heading h1.main_heading {
  font-size: 26px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
  padding: 0;
  border: none;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  align-content: center;
  flex-wrap: nowrap;
  justify-content: space-between;
}
.lottery-heading {
  margin: 25px 0px 20px;
  padding: 20px;
  color: #333;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #159b5a;
  border-right: 4px solid #159b5a;
  border-top: 2px solid #159b5a;
  border-bottom: 2px solid #159b5a;
}

/* ============================================
   General Lottery Framework Styles
   (previously from lottery.css)
   ============================================ */

/* ---------- Base Layout ---------- */
.gr-lottery {
  padding: 0;
  border-radius: 8px;
}
.gr-lottery-head {
  margin-bottom: 24px;
}
.gr-lottery-head .main_heading {
  font-size: 24px;
  color: #333;
  margin: 0 0 15px 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

/* ---------- Headings ---------- */
.sub_heading {
  font-size: 20px;
  color: #333;
  padding: 15px 0;
}
.lottery-heading i {
  color: #666;
}
.separator {
  margin: 0 5px 0 8px;
  color: #000000;
}

/* ---------- Description ---------- */
.lottery-desc {
  margin: 0 10px 20px 10px;
  font-size: 15px;
  line-height: 24px;
  color: #333;
}

/* ---------- Draw Lists ---------- */
.lottery-draw-lists-wrapper {
  border-radius: 8px;
  margin-bottom: 24px;
  padding: 0 10px;
}

/* ---------- Draw Table ---------- */
.lottery-draw-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.lottery-draw-table th {
  background: linear-gradient(75deg, #151e28, #364351);
  color: #fff;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}
.lottery-draw-table th:first-child {
  border-radius: 8px 0 0 0;
}
.lottery-draw-table th:last-child {
  border-radius: 0 8px 0 0;
}
.lottery-draw-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 14px;
}
.lottery-draw-table tr:last-child td {
  border-bottom: none;
}
.lottery-draw-table td a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.lottery-draw-table td a:hover {
  color: #0f7443;
}

/* ---------- Clickable Rows ---------- */
.clickable-rows-table tr {
  cursor: pointer;
}
.clickable-rows-table tr[data-url]:hover {
  background-color: #f0f0f0;
}

/* ---------- Lottery Draw Cards ---------- */
.lottery-draw__date {
  background: linear-gradient(87.14deg, #151e28 0%, #364351 100%);
  padding: 14px;
  text-align: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.lottery-draw__date p {
  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  color: #ffffff;
}
.lottery-draw-block {
  padding: 20px 15px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #ffffff;
  box-shadow: 0px 4px 10px 0px #00000014;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.lottery-draw__company {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}
.lottery-draw__company-name h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 100%;
  color: #333333;
  margin-bottom: 5px;
}
.lottery-draw__company-name p {
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  color: #333333;
}
.lottery-draw__company-price-amount {
  font-weight: 500;
  font-size: 16px;
  line-height: 32px;
  text-align: center;
  color: #333333;
}
.lottery-draw__company-price-amount p span {
  font-weight: 700;
  font-size: 20px;
}
.lottery-draw__result {
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  box-shadow: 0px 10px 15px -3px #0000001a;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #ecfdf5 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}
.lottery-draw__result-heading {
  font-weight: 500;
  font-size: 18px;
  line-height: 100%;
  text-align: center;
  color: #333333;
}
.lottery-draw__result-link {
  text-decoration: none;
  color: inherit;
}
.lottery-draw__more-res a {
  font-weight: 500;
  font-size: 15px;
  line-height: 100%;
  text-align: center;
  color: #1a73e8;
}

/* ---------- Active Lottery Draws ---------- */
.active-lottery-draws {
  margin: 10px auto;
  padding: 0 10px;
}
.active-lottery-draws ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  justify-content: center;
  gap: 25px;
}
.active-lottery-draws li {
  background: linear-gradient(-70deg, #159c5a 0%, #159c5a 100%);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-left: 2px solid #159b5a;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
}
.active-lottery-draws li:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.active-lottery-draws a {
  text-decoration: none;
  color: white;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.active-lottery-draws .active-lottery-draws-name {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ---------- Static Content ---------- */
.gr-static-content-block.gr-content-background {
  margin-bottom: 20px;
}
.gr-static-content-block h3 {
  color: #333;
}

/* ---------- Misc ---------- */
.global-no-tickets-msg {
  color: #f00;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}
.ticket_number {
  background: #151e2824;
  padding: 5px;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
}
.moneyweb-seperator {
  display: none;
}

/* ---------- Date Picker ---------- */
.lottery-date-picker-wrap {
  padding: 0 0px 0px 3px;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
  .lottery-heading h1.main_heading {
    font-size: 20px;
  }
  .sub_heading {
    font-size: 18px;
  }
  .lottery-draw-table {
    overflow-x: auto;
    white-space: nowrap;
  }
}
@media screen and (max-width: 480px) {
  .lottery-draw-table th,
  .lottery-draw-table td {
    padding: 10px;
    font-size: 13px;
  }
}
