@keyframes ukFlagBorderMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}
@keyframes ukFlagGlowPulse {
  0% {
    box-shadow:
      0 0 10px rgba(1, 33, 105, 0.45),
      0 0 22px rgba(200, 16, 46, 0.35),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 18px rgba(30, 90, 180, 0.55),
      0 0 32px rgba(200, 16, 46, 0.5),
      0 8px 24px rgba(0, 0, 0, 0.45);
  }
  100% {
    box-shadow:
      0 0 10px rgba(1, 33, 105, 0.45),
      0 0 22px rgba(200, 16, 46, 0.35),
      0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* Solid hero header (UK listing) — matches reference layout */
.uk-listing-header {
  background-image: none !important;
  background: linear-gradient(180deg, #012169 0%, #021840 100%) !important;
  border-radius: 0;
}
.uk-listing-header .sub-header-text h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.uk-listing-header .sub-header-text p {
  margin: 0;
  font-size: 0.75rem !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.offers-page-container {
  margin-top: 1rem;
  padding: 0 1rem;
}
.offers-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: transparent !important;
  padding: 1rem 1.25rem 2rem;
  box-sizing: border-box;
}
.offer-block {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0.85rem auto 0;
  display: flex;
  flex-direction: column;
  padding: 2px;
  box-sizing: border-box;
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    #012169 0%,
    #c8102e 18%,
    #1a56a8 36%,
    #c8102e 54%,
    #012169 72%,
    #2a6fc4 88%,
    #c8102e 100%
  );
  background-size: 280% 100%;
  animation: ukFlagBorderMove 6s linear infinite, ukFlagGlowPulse 2.4s ease-in-out infinite;
}
.offer-block:first-child {
  margin-top: 0;
}
.offers-page-container .offer-block:nth-child(n+4) {
  display: none;
}
.mobile-link {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100%;
  z-index: 4;
}
.offer-inner-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(165deg, #012169 0%, #0b3d82 42%, #152a50 78%, #5c0f18 100%);
  min-height: auto;
  color: #fff;
  border-radius: 12px;
}
.offer-left-block,
.offer-right-block {
  width: 100%;
  display: flex;
  align-items: center;
  background: transparent;
}
.offer-left-block {
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  text-align: center;
  padding: 1.85rem 1rem 0.5rem;
}
.offer-right-block {
  flex-direction: column;
  justify-content: center;
  padding: 0.35rem 1rem 1.15rem;
  text-align: center;
}
.offer-logo {
  width: 100%;
  max-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem 0;
  margin-top: 0.25rem;
  background-color: transparent;
  border-radius: 0;
}
.offer-logo:hover {
  opacity: 0.92;
}
.offer-logo img {
  width: 100%;
  max-width: 200px;
  height: auto;
  padding: 0;
}
.rating-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 0.15rem;
  gap: 0.2rem;
}
.offer-votes,
.offer-score {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.offer-votes > span {
  display: none;
}
.stars-container {
  position: relative;
  display: inline-block;
  color: transparent;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}
.stars-container:before {
  position: absolute;
  top: 0;
  left: 0;
  content: '★★★★★';
  color: #5c5c5c;
}
.stars-container:after {
  position: absolute;
  top: 0;
  left: 0;
  content: '★★★★★';
  color: #ffd700;
  overflow: hidden;
}
.star-100:after { width: 100%; }
.star-90:after { width: 90%; }
.star-80:after { width: 80%; }
.star-70:after { width: 70%; }
.star-50:after { width: 50%; }
.offer-votes span {
  font-size: 1rem;
  font-weight: 600;
}
.offer-score {
  align-items: center;
  padding-right: 0;
}
.offer-score-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.site-rating {
  margin-bottom: 0.1rem;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  color: #9ecfff;
  text-shadow: 0 0 18px rgba(126, 184, 255, 0.55);
}
.site-rating-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.offer-right-block {
  background-color: transparent;
  border-radius: 0;
}
.offers-page-container .offer-right-block {
  border-radius: 0;
}
.offer-right-block:hover {
  background-color: transparent;
}
.welcome-bonus-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  line-height: 1.5rem;
  gap: 0.15rem;
}
.welcome-bonus-block .welcome-bonus-title {
  margin: 0.25rem 0 0.35rem;
  color: #ffb4b8 !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  text-shadow: 0 0 12px rgba(200, 16, 46, 0.45);
}
.welcome-bonus-block .bonus-line {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.welcome-bonus-block span {
  font-weight: 600;
}
.btn-block {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.65rem;
}
.offer-btn {
  width: 100%;
  max-width: 280px;
  min-height: 3rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #e02040 0%, #c8102e 45%, #9b0d24 100%) !important;
  border: 2px solid rgba(126, 184, 255, 0.45);
  box-shadow:
    0 0 16px rgba(200, 16, 46, 0.55),
    0 0 28px rgba(1, 33, 105, 0.35);
  transform: scale(1);
  -webkit-transition: transform 0.15s ease-out, background 0.15s ease-out;
  transition: transform 0.15s ease-out, background 0.15s ease-out;
  text-decoration: none;
}
.offer-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #f02848 0%, #d01230 50%, #b01028 100%) !important;
  border-color: rgba(180, 210, 255, 0.65);
}
.offer-features {
  width: 100%;
  max-width: 300px;
  margin: 0.85rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.offer-features li {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}
.offer-features li:first-child {
  margin-top: 0.35rem;
}
.offer-features .offer-check {
  color: #7eb8ff;
  font-size: 1.05rem;
  font-weight: 800;
  margin-right: 0.35rem;
}
.label-container {
  display: none;
}

.flag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 5;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, #c8102e, #7a0a1c);
  color: #fff;
  font-weight: 800;
  font-size: 0.68rem;
  border-radius: 999px;
  box-shadow:
    0 0 10px rgba(200, 16, 46, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.35);
  max-width: calc(100% - 1.25rem);
  line-height: 1.2;
  text-align: left;
}
.flag:empty {
  display: none;
}

@media (max-width: 767px) {
  .mobile-link {
    display: block;
  }
  .offer-btn {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .uk-listing-header .sub-header-text h1 {
    font-size: 1.15rem;
  }
  .site-rating {
    font-size: 1.85rem;
  }
}
