.dd1app-prediction-hero {
  position: relative;
  padding: clamp(62px, 8vw, 108px) 0 58px;
  overflow: hidden;
}

.dd1app-prediction-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 82% 30%, rgba(255,79,163,.17), transparent 24rem),
    radial-gradient(circle at 64% 0, rgba(116,96,255,.23), transparent 25rem),
    radial-gradient(circle at 10% 90%, rgba(19,201,190,.08), transparent 20rem);
  content: "";
}

.dd1app-prediction-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr);
  align-items: center;
  gap: clamp(32px, 7vw, 82px);
}

.dd1app-prediction-hero__copy,
.dd1app-prediction-hero__media {
  min-width: 0;
}

.dd1app-prediction-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.dd1app-prediction-hero__copy > p {
  color: #c1c9e3;
  font-size: 1.08rem;
}

.dd1app-prediction-hero__media img {
  width: 100%;
  border: 1px solid rgba(255,181,27,.26);
  border-radius: 30px;
  box-shadow: var(--dd1app-shadow), 0 0 70px rgba(116,96,255,.2);
}

.dd1app-prediction-disclaimer {
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid rgba(255,181,27,.38);
  border-radius: 15px;
  background: rgba(255,181,27,.075);
  color: #e7d8ad;
  font-size: .94rem;
}

.dd1app-prediction-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 32px 0 0;
}

.dd1app-prediction-nav a {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--dd1app-border);
  border-radius: 14px;
  background: rgba(16,25,67,.72);
  color: #dde3f7;
  font-weight: 820;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.dd1app-prediction-nav a:hover,
.dd1app-prediction-nav a[aria-current="page"] {
  border-color: rgba(255,181,27,.5);
  background: linear-gradient(135deg, rgba(116,96,255,.25), rgba(255,79,163,.11));
  color: #fff;
}

.dd1app-prediction-dashboard {
  padding: clamp(54px, 7vw, 90px) 0;
}

.dd1app-prediction-root {
  min-width: 0;
}

.dd1app-prediction-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: 18px;
}

.dd1app-prediction-card {
  min-width: 0;
  max-width: 100%;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--dd1app-border);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(25,37,92,.92), rgba(8,13,35,.94)),
    var(--dd1app-surface);
  box-shadow: var(--dd1app-shadow-soft);
  overflow: hidden;
}

.dd1app-prediction-card--main {
  position: relative;
  border-color: rgba(116,96,255,.42);
}

.dd1app-prediction-card--main::before {
  position: absolute;
  top: -100px;
  right: -70px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255,181,27,.14);
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,181,27,.04) 0 8deg, transparent 8deg 20deg);
  content: "";
}

.dd1app-prediction-card__label {
  margin-bottom: 8px;
  color: var(--dd1app-muted);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dd1app-lang-hi .dd1app-prediction-card__label {
  letter-spacing: 0;
  text-transform: none;
}

.dd1app-prediction-period {
  position: relative;
  z-index: 1;
  margin-bottom: 23px;
  color: #fff;
  font-size: clamp(1.15rem, 3vw, 1.8rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.dd1app-prediction-numbers {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 23px;
}

.dd1app-prediction-number {
  display: grid;
  place-items: center;
  width: clamp(68px, 10vw, 92px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, #fff 0 3%, rgba(255,255,255,.38) 4%, transparent 18%),
    linear-gradient(145deg, #9d8fff, #5a43ee 54%, #251c79);
  box-shadow: inset -12px -14px 25px rgba(0,0,0,.24), 0 15px 35px rgba(78,60,220,.33), 0 0 0 7px rgba(116,96,255,.06);
  color: #fff;
  font-size: clamp(1.7rem, 5vw, 2.65rem);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.dd1app-prediction-reference-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.dd1app-prediction-reference {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(166,177,229,.18);
  border-radius: 14px;
  background: rgba(3,6,18,.35);
}

.dd1app-prediction-reference span,
.dd1app-prediction-reference strong {
  display: block;
  overflow-wrap: anywhere;
}

.dd1app-prediction-reference span {
  color: #939ebf;
  font-size: .75rem;
}

.dd1app-prediction-reference strong {
  margin-top: 3px;
  color: #fff;
  font-size: 1.05rem;
}

.dd1app-prediction-colour::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.dd1app-prediction-colour[data-dd1app-colour="red"] { color: #ff6e79; }
.dd1app-prediction-colour[data-dd1app-colour="green"] { color: #38dc9b; }
.dd1app-prediction-colour[data-dd1app-colour="violet"] { color: #c293ff; }

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

.dd1app-prediction-clock,
.dd1app-prediction-countdown {
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  font-weight: 930;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.dd1app-prediction-countdown {
  margin: 12px 0 16px;
  color: #ffd36d;
}

.dd1app-prediction-progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.dd1app-prediction-progress span {
  display: block;
  width: calc(var(--dd1app-progress, 0) * 1%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dd1app-rani), var(--dd1app-saffron), var(--dd1app-peacock));
  transition: width .28s linear;
}

.dd1app-prediction-next {
  margin-top: 15px;
  color: #b4bdd9;
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.dd1app-prediction-status {
  min-height: 1.5em;
  margin-top: 10px;
  color: #78eee6;
  font-size: .82rem;
}

.dd1app-prediction-history {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--dd1app-border);
  border-radius: 24px;
  background: rgba(12,18,47,.82);
  box-shadow: var(--dd1app-shadow-soft);
}

.dd1app-prediction-history h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.dd1app-prediction-history__scroll {
  max-width: 100%;
  overflow-x: auto;
}

.dd1app-prediction-history table {
  width: 100%;
  min-width: 670px;
  border-collapse: collapse;
}

.dd1app-prediction-history th,
.dd1app-prediction-history td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(166,177,229,.13);
  color: #bdc5de;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.dd1app-prediction-history th {
  color: #fff;
  font-size: .78rem;
}

.dd1app-prediction-content {
  padding: 35px 0 clamp(70px, 9vw, 115px);
}

.dd1app-prediction-content__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dd1app-prediction-content__card {
  min-width: 0;
  padding: clamp(23px, 4vw, 38px);
  border: 1px solid var(--dd1app-border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(21,31,78,.8), rgba(9,14,38,.9));
}

.dd1app-prediction-content__card p,
.dd1app-prediction-content__card li {
  color: #bbc3dd;
}

.dd1app-prediction-content__card--wide {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .dd1app-prediction-hero__grid,
  .dd1app-prediction-grid {
    grid-template-columns: 1fr;
  }

  .dd1app-prediction-hero__media {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .dd1app-prediction-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dd1app-prediction-hero {
    padding: 50px 0;
  }

  .dd1app-prediction-nav,
  .dd1app-prediction-content__grid,
  .dd1app-prediction-reference-row {
    grid-template-columns: 1fr;
  }

  .dd1app-prediction-card {
    padding: 21px;
  }

  .dd1app-prediction-numbers {
    justify-content: center;
  }

  .dd1app-prediction-number {
    width: clamp(66px, 24vw, 82px);
  }

  .dd1app-prediction-content__card--wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dd1app-prediction-progress span {
    transition: none;
  }
}
