:root {
  --navy: #06183f;
  --navy-2: #0b255f;
  --blue: #0c69ff;
  --blue-2: #004ee8;
  --red: #f52d36;
  --soft: #f4f7fb;
  --line: #e5ebf5;
  --ink: #071436;
  --muted: #63708a;
}

/* LotoAhora board skin: keeps the full source data, changes the visual identity. */
.draw-board-page.loto-board {
  background:
    linear-gradient(180deg, #eef4ff 0, #f7f9fd 360px),
    var(--soft);
  padding: 18px 24px 1.5rem;
}

.loto-board .board-hero {
  align-items: center;
  background: radial-gradient(circle at 88% 12%, rgba(12, 105, 255, .35), transparent 30%), linear-gradient(135deg, var(--navy), #0a2f86);
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 14px;
  min-height: 150px;
  padding: 1.4rem 1.5rem;
}

.loto-board .board-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: .35rem 0;
}

.loto-board .board-hero p {
  color: #dce8ff;
  font-size: 1.02rem;
  margin: 0;
  max-width: 720px;
}

.loto-board .board-hero-status {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  min-width: 255px;
  padding: .8rem;
  text-align: right;
}

.loto-board .board-hero-status span,
.loto-board .board-hero-status strong {
  display: block;
}

.loto-board .board-hero-status span {
  color: #b9d3ff;
  font-size: .85rem;
}

.loto-board .board-hero-status strong {
  font-weight: 900;
}

.loto-board .board-toolbar {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(8, 24, 63, .06);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 14px;
  min-height: 62px;
  padding: .65rem .8rem;
}

.loto-board .previous-results {
  align-items: center;
  display: flex;
  gap: .6rem;
}

.loto-board .previous-results label,
.loto-board .board-source {
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.loto-board .previous-results .form-select {
  border-radius: 8px;
  min-width: 220px;
}

.loto-board .date-field {
  align-items: center;
  display: flex;
  min-width: 245px;
}

.loto-board .date-icon {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #d7e1f0;
  border-radius: 8px 0 0 8px;
  color: #8da2c0;
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 42px;
}

.loto-board .date-field .form-control {
  border-left: 0;
  border-radius: 0 8px 8px 0;
  height: 38px;
}

.loto-board .board-source {
  color: var(--muted);
  font-size: .92rem;
}

.loto-board .draw-board-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: 350px minmax(0, 1fr);
  padding: 0;
}

.loto-board .direct-column {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(8, 24, 63, .06);
  min-width: 0;
  overflow: hidden;
}

.loto-board .direct-title {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
  font-size: 1.05rem;
  font-weight: 900;
  padding: .9rem 1rem;
}

.loto-board .direct-title::before {
  content: "";
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(245, 45, 54, .18);
  display: inline-block;
  height: 9px;
  margin-right: .55rem;
  width: 9px;
}

.loto-board .direct-card {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  margin: 12px;
  min-height: 118px;
  padding: 1rem;
  text-decoration: none;
}

.loto-board .direct-card:hover {
  border-color: rgba(12, 105, 255, .45);
  transform: translateY(-1px);
}

.loto-board .direct-card-head {
  align-items: start;
  display: grid;
  gap: .75rem;
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.loto-board .direct-logo {
  align-items: center;
  background: white;
  border: 1px solid #e4ebf7;
  border-radius: 8px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: .25rem;
  width: 44px;
}

.loto-board .direct-logo img {
  display: block;
  max-height: 28px;
  max-width: 34px;
  object-fit: contain;
}

.loto-board .direct-card h2 {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0;
}

.loto-board .direct-card time {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  text-align: right;
}

.loto-board .source-draw-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loto-board .source-draw-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(8, 24, 63, .06);
  min-height: 190px;
  overflow: hidden;
  position: relative;
}

.loto-board .source-draw-card::before {
  background: var(--company-color, var(--blue));
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 5px;
}

.loto-board .source-card-band {
  background: #f7faff !important;
  border-bottom: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: .86rem;
  font-weight: 900;
  min-height: 40px;
  padding: .65rem 1.15rem .65rem 1.35rem;
}

.loto-board .source-card-band::before {
  background: var(--company-color, var(--blue));
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 10px;
  margin-right: .5rem;
  vertical-align: middle;
  width: 10px;
}

.loto-board .source-card-band {
  align-items: center;
  display: flex;
  gap: .55rem;
}

.loto-board .source-card-band::before {
  flex: 0 0 auto;
  margin-right: 0;
}

.loto-board .company-band-logo {
  background: white;
  border: 1px solid #e4ebf7;
  border-radius: 8px;
  display: block;
  height: 32px;
  object-fit: contain;
  padding: .22rem;
  width: 44px;
}

.loto-board .source-card-body {
  padding: 1rem 1.2rem 1.2rem 1.35rem;
}

.loto-board .source-card-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 40px;
}

.loto-board .date-badge {
  background: #eef4ff;
  border: 1px solid #dbe8ff;
  border-radius: 8px;
  color: var(--blue-2);
  display: inline-flex;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1;
  padding: .45rem .55rem;
}

.loto-board .draw-logo {
  background: white;
  border: 1px solid #eef2f8;
  border-radius: 8px;
  display: block;
  max-height: 44px;
  max-width: 96px;
  object-fit: contain;
  padding: .25rem;
}

.loto-board .source-draw-card h2 {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: .4rem 0 1rem;
}

.loto-board .source-balls {
  display: flex;
  flex-wrap: wrap;
  gap: .62rem;
  justify-content: center;
}

.loto-board .source-balls.compact {
  margin-top: 1rem;
}

.loto-board .source-ball {
  align-items: center;
  background: linear-gradient(145deg, #4da0ff, var(--blue-2) 72%);
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(12, 105, 255, .18);
  color: white;
  display: inline-flex;
  font-size: 1.18rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  line-height: 1;
  width: 44px;
}

.loto-board .source-ball:nth-child(3n) {
  background: linear-gradient(145deg, #ff6970, var(--red) 72%);
  box-shadow: 0 8px 18px rgba(245, 45, 54, .18);
}

.loto-board .source-ball.muted {
  background: linear-gradient(145deg, #f7fbff, #dbe5f4);
  color: var(--ink);
}

@media (max-width: 1199.98px) {
  .loto-board .board-layout-with-ads {
    grid-template-columns: 1fr;
  }

  .loto-board .draw-board-shell {
    grid-template-columns: 1fr;
  }

  .loto-board .direct-column {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .loto-board .source-draw-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .draw-board-page.loto-board {
    padding: .75rem;
  }

  .loto-board .board-hero,
  .loto-board .board-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .loto-board .board-hero-status {
    min-width: 0;
    text-align: left;
  }

  .loto-board .previous-results {
    align-items: stretch;
    flex-direction: column;
  }

  .loto-board .previous-results .form-select,
  .loto-board .date-field,
  .loto-board .previous-results .btn {
    width: 100%;
  }

  .loto-board .source-card-body {
    padding: .9rem;
  }

  .loto-board .source-ball {
    font-size: 1.05rem;
    height: 39px;
    width: 39px;
  }
}

* {
  box-sizing: border-box;
}

body {
  background: var(--soft);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
}

a,
button,
.btn,
.form-control,
.form-select {
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 .25rem rgba(12, 105, 255, .22);
  outline: 3px solid transparent;
}

.site-nav,
.site-footer,
.admin-sidebar {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.site-nav {
  box-shadow: 0 12px 30px rgba(6, 24, 63, .18);
}

.navbar .nav-link {
  border-radius: 8px;
  font-weight: 800;
  min-height: 42px;
  padding-left: .9rem !important;
  padding-right: .9rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background: rgba(255, 255, 255, .12);
}

.brand {
  color: white;
  display: grid;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  min-width: 178px;
}

.brand span {
  color: #2d7dff;
}

.brand strong {
  color: var(--red);
  margin-left: 46px;
  margin-top: -25px;
}

.brand em {
  color: white;
  font-size: 1rem;
  font-style: normal;
  margin-left: 122px;
  margin-top: -17px;
}

.brand small {
  color: rgba(255, 255, 255, .78);
  font-size: .66rem;
  margin-top: 2px;
}

.site-footer {
  color: white;
  padding: 1.35rem 0;
}

.site-footer a {
  color: rgba(255, 255, 255, .82);
  font-weight: 700;
  text-decoration: none;
}

.site-nav .dropdown-menu {
  background: #164a7b;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(6, 24, 63, .22);
  min-width: 210px;
  overflow: hidden;
  padding: .35rem;
}

.site-nav .dropdown-item {
  border-radius: 6px;
  color: white;
  font-weight: 800;
  padding: .58rem .8rem;
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus {
  background: rgba(255, 255, 255, .12);
  color: white;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: center;
}

.ad-slot {
  align-items: center;
  background: linear-gradient(135deg, #fbfdff, #eef4ff);
  border: 1px dashed #b9c8df;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: .18rem;
  justify-content: center;
  min-height: 90px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.ad-slot::before {
  background:
    linear-gradient(90deg, rgba(12, 105, 255, .08) 1px, transparent 1px),
    linear-gradient(rgba(12, 105, 255, .08) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
  inset: 0;
  opacity: .38;
  pointer-events: none;
  position: absolute;
}

.ad-slot strong {
  color: var(--navy);
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  font-weight: 900;
  letter-spacing: 0;
  position: relative;
}

.ad-slot small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  position: relative;
}

.ad-label {
  background: white;
  border: 1px solid #dce8ff;
  border-radius: 999px;
  color: var(--blue-2);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  padding: .25rem .5rem;
  position: relative;
  text-transform: uppercase;
}

.ad-top,
.ad-wide {
  max-width: 970px;
}

.ad-side {
  min-height: 600px;
  position: sticky;
  top: 92px;
}

.layout-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 130px minmax(0, 1fr) 130px;
}

.main-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.hero-section {
  background: radial-gradient(circle at 72% 45%, #0b64f2, #071b4d 56%, #051436);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(8, 24, 63, .16);
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2.4rem);
}

.container-fluid,
.layout-grid,
.hero-section,
.hero-section .row,
.hero-section [class*="col-"] {
  max-width: 100%;
  min-width: 0;
}

.hero-section .row {
  margin-left: 0;
  margin-right: 0;
}

.hero-section [class*="col-"] {
  padding-left: .5rem;
  padding-right: .5rem;
}

.kicker {
  color: #8fc0ff;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kicker.dark {
  color: var(--blue);
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: .6rem 0;
  overflow-wrap: anywhere;
}

.hero-section p {
  color: #dce8ff;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  max-width: 650px;
}

.search-panel {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  margin-top: 1.25rem;
  padding: .85rem;
}

.search-panel .form-label {
  color: white;
  font-size: .85rem;
  font-weight: 900;
  margin-bottom: .35rem;
}

.form-control-lg,
.form-select-lg,
.btn-lg {
  border-radius: 8px;
  font-size: 1.02rem;
  font-weight: 800;
  min-height: 52px;
}

.hero-balls {
  height: 235px;
  max-width: 360px;
  position: relative;
}

.big-ball {
  align-items: center;
  border-radius: 50%;
  box-shadow: inset -12px -18px 28px rgba(0, 0, 0, .24), 0 18px 32px rgba(0, 0, 0, .25);
  display: flex;
  font-size: 2.6rem;
  font-weight: 900;
  justify-content: center;
  position: absolute;
}

.big-ball.blue {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .9) 0 9%, rgba(255, 255, 255, 0) 10%),
    linear-gradient(145deg, #6fb2ff, #0c69ff 62%, #063aa9);
  height: 122px;
  left: 24px;
  top: 82px;
  width: 122px;
}

.big-ball.red {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .9) 0 10%, rgba(255, 255, 255, 0) 11%),
    linear-gradient(145deg, #ff7479, #e3121e 62%, #9c0710);
  font-size: 3.2rem;
  height: 168px;
  left: 124px;
  top: 28px;
  width: 168px;
  z-index: 2;
}

.big-ball.white {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .96) 0 12%, rgba(255, 255, 255, 0) 13%),
    linear-gradient(145deg, #ffffff, #eaf0f8 62%, #bdc8d9);
  color: var(--ink);
  height: 104px;
  left: 244px;
  top: 106px;
  width: 104px;
}

.source-strip,
.help-strip,
.panel,
.result-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(8, 24, 63, .06);
}

.source-strip {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .95rem 1rem;
}

.source-strip strong,
.source-strip time {
  font-weight: 900;
}

.source-strip span {
  color: var(--muted);
  display: block;
  font-size: .92rem;
}

.help-strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.help-strip > div {
  align-items: center;
  display: flex;
  gap: .7rem;
  padding: 1rem;
}

.help-icon {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.section-title {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: .85rem;
}

.section-title.inside {
  margin-bottom: 1rem;
}

.section-title h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.section-title a,
.section-title span {
  font-size: .9rem;
  font-weight: 800;
}

.featured-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 1rem;
}

.result-card h3 {
  color: var(--blue-2);
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
}

.result-card p {
  color: var(--muted);
  font-size: .78rem;
  margin: 0;
}

.lottery-mark {
  align-items: center;
  background: white;
  border: 1px solid #dbe8ff;
  border-radius: 8px;
  color: var(--blue-2);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .75rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  padding: .28rem;
  width: 54px;
}

.lottery-mark img {
  display: block;
  max-height: 34px;
  max-width: 44px;
  object-fit: contain;
}

.result-numbers {
  min-height: 44px;
}

.ball {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #dce8ff;
  border-radius: 50%;
  color: var(--blue-2);
  display: inline-flex;
  font-size: .9rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  line-height: 1;
  min-width: 34px;
  width: 34px;
}

.ball.red {
  background: #fff0f1;
  border-color: #ffd1d4;
  color: var(--red);
}

.content-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.panel {
  padding: 1rem;
}

.lottery-list {
  display: grid;
  gap: 10px;
}

.lottery-link {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: .85rem;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  min-height: 68px;
  padding: .75rem;
  text-decoration: none;
}

.lottery-link:hover {
  border-color: rgba(12, 105, 255, .45);
  transform: translateY(-1px);
}

.lottery-link strong,
.lottery-link small {
  display: block;
}

.lottery-link strong {
  font-weight: 900;
}

.lottery-link small {
  color: var(--muted);
}

.mini-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
}

.mini-numbers b {
  align-items: center;
  background: white;
  border: 1px solid #dce8ff;
  border-radius: 50%;
  color: var(--blue-2);
  display: inline-flex;
  font-size: .8rem;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.hot-list {
  display: grid;
  gap: .65rem;
}

.hot-list div {
  align-items: center;
  display: flex;
  gap: .7rem;
}

.hot-list span:last-child {
  color: var(--muted);
  font-weight: 800;
}

.live-panel {
  align-items: center;
  display: grid;
  gap: .9rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.live-panel h2 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0;
}

.live-panel p {
  color: var(--muted);
  margin: 0;
}

.live-dot {
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(245, 45, 54, .14);
  height: 12px;
  width: 12px;
}

.hero-lottery-title {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lottery-logo-large {
  align-items: center;
  background: white;
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 86px;
  justify-content: center;
  padding: .8rem;
  width: 116px;
}

.lottery-logo-large img {
  display: block;
  max-height: 64px;
  max-width: 92px;
  object-fit: contain;
}

.logo-list .list-group-item {
  align-items: center;
  display: flex;
  gap: .75rem;
  font-weight: 800;
}

.logo-list img {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 34px;
  object-fit: contain;
  padding: .25rem;
  width: 46px;
}

.draw-board-page {
  background: #f6f6f6;
  padding-bottom: 1.5rem;
}

.board-toolbar {
  align-items: center;
  background: linear-gradient(#f2f2f2, #dddddd);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 54px;
  padding: .5rem 1.5rem;
}

.previous-results {
  align-items: center;
  display: flex;
  gap: .6rem;
}

.previous-results label,
.board-source strong {
  color: #111827;
  font-weight: 800;
  white-space: nowrap;
}

.previous-results .form-select {
  border-radius: 6px;
  min-width: 220px;
}

.board-source {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  font-size: .92rem;
}

.board-source span {
  color: #4b5563;
}

.draw-board-shell {
  display: grid;
  gap: 18px;
  grid-template-columns: 390px minmax(0, 1fr);
  padding: 18px 24px;
}

.direct-column {
  background: white;
  border-right: 1px solid #e5e7eb;
  min-width: 0;
}

.direct-title {
  background: linear-gradient(#f2f2f2, #dedede);
  color: #050505;
  font-size: 1.05rem;
  font-weight: 900;
  padding: .85rem 1rem;
}

.direct-title::before {
  content: "●";
  color: #000;
  font-size: .8rem;
  margin-right: .45rem;
}

.direct-card {
  background: white;
  border: 1px solid #ececec;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  color: #030712;
  display: block;
  margin: 18px;
  min-height: 128px;
  padding: 1.2rem;
  text-decoration: none;
}

.direct-card-head {
  align-items: start;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}

.direct-card h2 {
  color: #050505;
  font-size: 1.18rem;
  font-weight: 900;
  margin: 0;
}

.direct-card time {
  color: #050505;
  font-size: .9rem;
  white-space: nowrap;
}

.source-draw-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-draw-card {
  background: white;
  border: 1px solid #e7e7e7;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .06);
  min-height: 172px;
  overflow: hidden;
}

.source-card-band {
  font-size: 1rem;
  font-weight: 800;
  min-height: 38px;
  padding: .55rem 1.15rem;
}

.source-card-body {
  padding: 1.05rem 1.2rem 1.25rem;
}

.source-card-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 38px;
}

.date-badge {
  background: #617391;
  border-radius: 4px;
  color: white;
  display: inline-flex;
  font-size: .96rem;
  font-weight: 800;
  line-height: 1;
  padding: .45rem .55rem;
}

.draw-logo {
  display: block;
  max-height: 38px;
  max-width: 86px;
  object-fit: contain;
}

.source-draw-card h2 {
  color: #1d2b44;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: .35rem 0 .85rem;
}

.source-balls {
  display: flex;
  flex-wrap: wrap;
  gap: .68rem;
  justify-content: center;
}

.source-balls.compact {
  margin-top: 1rem;
}

.source-ball {
  align-items: center;
  background: linear-gradient(145deg, #9dcc5b, #65b414 68%);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  line-height: 1;
  width: 46px;
}

.source-ball.muted {
  background: linear-gradient(145deg, #dfe3e8, #c8ced7);
  color: #172033;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  color: white;
  padding: 1.25rem;
}

.admin-sidebar a {
  color: rgba(255, 255, 255, .82);
  display: block;
  font-weight: 800;
  padding: .65rem 0;
  text-decoration: none;
}

.admin-content {
  padding: 1.5rem;
}

.admin-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(8, 24, 63, .06);
  padding: 1.25rem;
}

.admin-card .brand em,
.admin-card .brand small {
  color: var(--navy);
}

@media (max-width: 1199.98px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .draw-board-shell {
    grid-template-columns: 1fr;
  }

  .direct-column {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .featured-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-balls {
    height: 190px;
    transform: scale(.82);
    transform-origin: top center;
  }

  .source-draw-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 15px;
  }

  .site-nav .container-fluid,
  .container-fluid {
    padding-left: .8rem !important;
    padding-right: .8rem !important;
  }

  .brand {
    font-size: 1.25rem;
    min-width: 150px;
  }

  .brand strong {
    margin-left: 38px;
    margin-top: -20px;
  }

  .brand em {
    font-size: .85rem;
    margin-left: 100px;
    margin-top: -15px;
  }

  .hero-section {
    padding: 1rem;
  }

  .source-strip,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-strip {
    display: flex;
  }

  .help-strip {
    grid-template-columns: 1fr;
  }

  .live-panel {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
  }

  .lottery-link {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .mini-numbers {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 66px;
  }

  .hero-lottery-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: .75rem;
  }

  .previous-results {
    align-items: stretch;
    flex-direction: column;
  }

  .previous-results .form-select,
  .previous-results .btn {
    width: 100%;
  }

  .board-source {
    align-items: flex-start;
  }

  .draw-board-shell {
    padding: .75rem;
  }

  .source-card-body {
    padding: .9rem;
  }

  .source-ball {
    font-size: 1.15rem;
    height: 40px;
    width: 40px;
  }
}

/* Final LotoAhora board overrides. */
.draw-board-page.loto-board {
  background: linear-gradient(180deg, #eef4ff 0, #f7f9fd 360px) !important;
  padding: 12px 18px 1.5rem !important;
}

.loto-board .board-layout-with-ads {
  display: grid;
  gap: 14px;
  grid-template-columns: 118px minmax(0, 1fr) 118px;
}

.loto-board .board-content {
  min-width: 0;
}

.loto-board .board-ad-top {
  margin: 0 auto 12px;
  max-width: 970px;
  min-height: 92px;
  width: min(100%, 970px);
}

.loto-board .board-ad-side {
  align-self: start;
  min-height: 600px;
  position: sticky;
  top: 82px;
  writing-mode: horizontal-tb;
}

.loto-board .board-ad-inline {
  grid-column: 1 / -1;
  min-height: 92px;
  width: 100%;
}

.loto-board .board-ad-side .ad-label {
  margin-bottom: .35rem;
}

.loto-board .board-ad-side strong {
  max-width: 95px;
}

.loto-board .board-hero {
  align-items: center;
  background: radial-gradient(circle at 88% 12%, rgba(12, 105, 255, .35), transparent 30%), linear-gradient(135deg, var(--navy), #0a2f86);
  border-radius: 8px;
  color: white;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 14px;
  min-height: 150px;
  padding: 1.4rem 1.5rem;
}

.loto-board .board-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  margin: .35rem 0;
}

.loto-board .board-hero p {
  color: #dce8ff;
  margin: 0;
}

.loto-board .board-hero-status {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  min-width: 255px;
  padding: .8rem;
  text-align: right;
}

.loto-board .board-hero-status span,
.loto-board .board-hero-status strong {
  display: block;
}

.loto-board .board-hero-status span {
  color: #b9d3ff;
  font-size: .85rem;
}

.loto-board .board-toolbar {
  background: white !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(8, 24, 63, .06);
  margin-bottom: 14px;
  min-height: 54px;
  padding: .5rem .65rem !important;
}

.loto-board .draw-board-shell {
  gap: 12px;
  grid-template-columns: 300px minmax(0, 1fr);
  padding: 0 !important;
}

.loto-board .direct-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(8, 24, 63, .06);
  overflow: hidden;
}

.loto-board .direct-title {
  background: linear-gradient(135deg, var(--navy), var(--navy-2)) !important;
  color: white !important;
}

.loto-board .direct-title::before {
  content: "";
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(245, 45, 54, .18);
  display: inline-block;
  height: 9px;
  margin-right: .55rem;
  width: 9px;
}

.loto-board .direct-card,
.loto-board .source-draw-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(8, 24, 63, .06);
}

.loto-board .direct-card {
  background: #f8fbff;
  margin: 10px;
  min-height: 104px;
  padding: .8rem;
}

.loto-board .source-draw-grid {
  gap: 12px;
}

.loto-board .source-draw-card {
  min-height: 154px;
  position: relative;
}

.loto-board .source-draw-card::before {
  background: var(--company-color, var(--blue));
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 5px;
}

.loto-board .source-card-band {
  background: #f7faff !important;
  border-bottom: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: .86rem;
  font-weight: 900;
  min-height: 34px;
  padding: .45rem .9rem .45rem 1.1rem;
}

.loto-board .source-card-band::before {
  background: var(--company-color, var(--blue));
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 10px;
  margin-right: .5rem;
  vertical-align: middle;
  width: 10px;
}

.loto-board .date-badge {
  background: #eef4ff !important;
  border: 1px solid #dbe8ff;
  border-radius: 8px;
  color: var(--blue-2) !important;
  font-weight: 900;
}

.loto-board .draw-logo {
  background: white;
  border: 1px solid #eef2f8;
  border-radius: 8px;
  max-height: 44px;
  max-width: 96px;
  padding: .25rem;
}

.loto-board .source-draw-card h2,
.loto-board .direct-card h2 {
  color: var(--ink) !important;
}

.loto-board .source-card-body {
  padding: .75rem .95rem .9rem 1.05rem !important;
}

.loto-board .source-draw-card h2 {
  font-size: 1.06rem !important;
  margin: .28rem 0 .7rem !important;
}

.loto-board .direct-card h2 {
  font-size: .98rem !important;
}

.loto-board .source-ball {
  background: linear-gradient(145deg, #4da0ff, var(--blue-2) 72%) !important;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 18px rgba(12, 105, 255, .18);
  color: white !important;
  font-size: 1.03rem;
  font-weight: 900;
  height: 38px;
  width: 38px;
}

.loto-board .source-ball:nth-child(3n) {
  background: linear-gradient(145deg, #ff6970, var(--red) 72%) !important;
}

.loto-board .source-ball.muted {
  background: linear-gradient(145deg, #f7fbff, #dbe5f4) !important;
  color: var(--ink) !important;
}

@media (max-width: 1199.98px) {
  .loto-board .draw-board-shell {
    grid-template-columns: 1fr;
  }

  .loto-board .direct-column {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .loto-board .source-draw-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .draw-board-page.loto-board {
    padding: .75rem !important;
  }

  .loto-board .board-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .loto-board .board-hero-status {
    min-width: 0;
    text-align: left;
  }
}

/* Final responsive hardening. */
html,
body {
  max-width: 100%;
}

.site-nav .container-fluid,
.loto-board,
.loto-board * {
  min-width: 0;
}

.loto-board .date-icon {
  position: relative;
}

.loto-board .date-icon::before {
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
  display: block;
  height: 16px;
  width: 16px;
}

.loto-board .date-icon::after {
  background: currentColor;
  box-shadow: 6px 0 0 currentColor;
  content: "";
  height: 2px;
  left: 15px;
  position: absolute;
  top: 13px;
  width: 2px;
}

.loto-board .previous-results {
  flex-wrap: wrap;
}

.loto-board .source-draw-card h2,
.loto-board .direct-card h2,
.loto-board .source-card-band span {
  overflow-wrap: anywhere;
}

.loto-board .source-balls {
  max-width: 100%;
}

@media (min-width: 1400px) {
  .loto-board .source-draw-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .navbar-nav {
    gap: .25rem !important;
    padding: .75rem 0 1rem;
  }

  .site-nav .dropdown-menu {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    box-shadow: none;
    margin: .2rem 0 .55rem;
    padding: .35rem;
    position: static !important;
    transform: none !important;
    width: 100%;
  }

  .site-nav .dropdown-item {
    min-height: 40px;
    padding: .55rem .8rem;
  }

  .navbar-collapse {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .loto-board .board-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .loto-board .board-hero-status {
    max-width: 100%;
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .loto-board .board-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .loto-board .previous-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .loto-board .previous-results label {
    grid-column: 1 / -1;
  }

  .loto-board .board-source {
    white-space: normal;
  }
}

@media (max-width: 575.98px) {
  .site-nav {
    overflow-x: hidden;
  }

  .site-nav .container-fluid {
    padding-left: .75rem !important;
    padding-right: .75rem !important;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .navbar-brand.brand {
    flex: 0 1 auto;
    margin-right: .5rem;
    min-width: 0;
  }

  .navbar-toggler {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .navbar-toggler {
    min-height: 42px;
    width: 46px;
  }

  .draw-board-page.loto-board {
    padding: .6rem !important;
  }

  .loto-board .board-ad-top,
  .loto-board .board-ad-inline {
    min-height: 64px;
  }

  .loto-board .board-ad-top strong,
  .loto-board .board-ad-inline strong {
    font-size: .88rem;
  }

  .loto-board .board-ad-top small,
  .loto-board .board-ad-inline small {
    font-size: .72rem;
  }

  .loto-board .board-ad-top .ad-label,
  .loto-board .board-ad-inline .ad-label {
    font-size: .62rem;
    padding: .2rem .42rem;
  }

  .loto-board .board-hero {
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 1rem;
  }

  .loto-board .board-hero > div {
    max-width: 100%;
    min-width: 0;
  }

  .loto-board .board-hero h1 {
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .loto-board .board-hero p {
    font-size: .95rem;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .loto-board .board-toolbar {
    padding: .75rem !important;
  }

  .loto-board .previous-results {
    grid-template-columns: 1fr;
  }

  .loto-board .date-field,
  .loto-board .previous-results .form-select,
  .loto-board .previous-results .btn {
    min-width: 0;
    width: 100%;
  }

  .loto-board .source-card-band {
    padding: .55rem .75rem .55rem 1rem;
  }

  .loto-board .company-band-logo {
    height: 30px;
    width: 42px;
  }

  .loto-board .source-card-body {
    padding: .85rem;
  }

  .loto-board .source-card-meta {
    gap: .6rem;
  }

  .loto-board .draw-logo {
    max-height: 38px;
    max-width: 78px;
  }

  .loto-board .source-draw-card h2 {
    font-size: 1.05rem;
  }

  .loto-board .source-balls {
    gap: .45rem;
    justify-content: flex-start;
  }

  .loto-board .source-ball {
    font-size: .98rem;
    height: 36px;
    width: 36px;
  }

  .site-footer .container-fluid {
    align-items: flex-start !important;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  .brand {
    transform: scale(.9);
    transform-origin: left center;
  }

  .loto-board .source-ball {
    height: 34px;
    width: 34px;
  }
}

/* Production layout polish: full professional board width and clean ad columns. */
.draw-board-page.loto-board {
  width: 100%;
}

.loto-board .board-layout-with-ads {
  align-items: start;
  grid-template-columns: minmax(128px, 160px) minmax(0, 1fr) minmax(128px, 160px) !important;
  margin: 0 auto;
  max-width: 1760px;
  width: 100%;
}

.loto-board .board-content,
.loto-board .draw-board-shell,
.loto-board .source-draw-grid {
  width: 100%;
}

.loto-board .draw-board-shell {
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) !important;
}

.loto-board .source-draw-grid {
  grid-template-columns: repeat(2, minmax(300px, 1fr)) !important;
}

.loto-board .source-draw-card,
.loto-board .direct-card {
  width: 100%;
}

.loto-board .board-toolbar {
  align-items: center;
  display: flex;
  width: 100%;
}

.loto-board .previous-results {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
}

.loto-board .board-source {
  flex: 0 0 auto;
}

@media (min-width: 1600px) {
  .loto-board .source-draw-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
  }
}

@media (max-width: 1399.98px) {
  .loto-board .board-layout-with-ads {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 1180px;
  }

  .loto-board .board-ad-side {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .loto-board .draw-board-shell,
  .loto-board .source-draw-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .loto-board .board-toolbar {
    align-items: stretch;
  }

  .loto-board .previous-results {
    align-items: stretch;
  }
}

/* Static content pages. */
.info-page {
  background: linear-gradient(180deg, #eef4ff 0, #f8fbff 320px);
  min-height: calc(100vh - 180px);
  padding: 1.25rem clamp(.9rem, 2vw, 2rem) 2rem;
}

.info-page .row {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.info-hero,
.info-panel,
.legal-panel,
.latest-result-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(8, 24, 63, .06);
}

.info-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(12, 105, 255, .28), transparent 28%),
    linear-gradient(135deg, var(--navy), #0a2f86);
  color: white;
  margin: 0 auto 1rem;
  max-width: 1180px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.info-hero.compact {
  max-width: 980px;
}

.info-hero .kicker {
  color: #9fc5ff;
  font-weight: 900;
  text-transform: uppercase;
}

.info-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  margin: .35rem 0 .65rem;
}

.info-hero p {
  color: #dce8ff;
  font-size: 1.06rem;
  margin: 0;
  max-width: 760px;
}

.info-grid,
.app-showcase,
.contact-layout {
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.info-grid,
.app-showcase {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

.contact-layout {
  grid-template-columns: minmax(520px, 1fr) minmax(280px, 360px);
}

.info-panel,
.legal-panel {
  background: white;
  padding: 1.25rem;
  width: 100%;
}

.info-panel {
  border-left: 5px solid var(--blue);
}

.legal-panel {
  border-top: 5px solid var(--blue);
}

.info-panel h2,
.legal-panel h2 {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 0 .55rem;
}

.info-panel p,
.legal-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.legal-panel {
  margin: 0 auto;
  max-width: 980px;
}

.legal-panel h2:not(:first-child) {
  margin-top: 1.4rem;
}

.contact-form {
  display: grid;
  gap: .9rem;
}

.contact-form .btn {
  justify-self: start;
  min-width: 170px;
}

.contact-form label {
  color: var(--ink);
  display: grid;
  font-weight: 900;
  gap: .35rem;
}

.contact-aside p + p {
  margin-top: .85rem;
}

.app-card {
  min-height: 210px;
}

.contact-aside {
  align-self: start;
}

.app-icon {
  align-items: center;
  background: linear-gradient(145deg, #4da0ff, var(--blue-2));
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  margin-bottom: 1rem;
  min-width: 48px;
  padding: 0 .8rem;
}

.latest-results-list {
  display: grid;
  gap: .75rem;
  margin: 0 auto;
  max-width: 1180px;
}

.latest-result-row {
  align-items: center;
  background: white;
  color: var(--ink);
  display: grid;
  gap: 1rem;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  padding: .85rem 1rem;
  text-decoration: none;
}

.latest-result-row:hover {
  border-color: rgba(12, 105, 255, .35);
  transform: translateY(-1px);
}

.latest-logo {
  align-items: center;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 58px;
}

.latest-logo img {
  max-height: 36px;
  max-width: 48px;
  object-fit: contain;
}

.latest-logo strong {
  color: var(--blue-2);
  font-weight: 900;
}

.latest-info {
  display: grid;
}

.latest-info strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.latest-info small {
  color: var(--muted);
  font-weight: 800;
}

.latest-balls {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
}

.latest-balls span {
  align-items: center;
  background: linear-gradient(145deg, #4da0ff, var(--blue-2));
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.latest-balls span:nth-child(3n) {
  background: linear-gradient(145deg, #ff6970, var(--red));
}

@media (max-width: 991.98px) {
  .info-grid,
  .app-showcase,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .latest-result-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .latest-balls {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .info-page {
    padding: .75rem;
  }

  .info-hero,
  .info-panel,
  .legal-panel {
    padding: 1rem;
  }

  .info-hero h1 {
    font-size: 1.85rem;
  }
}
