:root {
  color-scheme: dark;

  --bg: #101722;
  --bg-deep: #0b111b;
  --panel: #171f2f;
  --panel-2: #111923;
  --card: #192131;
  --card-soft: #202a3d;

  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f8fafc;
  --muted: #9aa9c2;
  --soft: #c8d3e6;

  --orange: #ff9708;
  --orange-soft: #ffe4b8;
  --blue: #13c5ff;

  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% -10%, rgba(255, 151, 8, 0.18), transparent 23rem),
    radial-gradient(circle at 100% 0%, rgba(19, 197, 255, 0.12), transparent 24rem),
    var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 14px 40px;
  transition: filter 0.25s ease;
}

body.is-loading-coupon .site-shell {
  filter: blur(6px);
  pointer-events: none;
}

/* Loader */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
}

body.is-loading-coupon .page-loader {
  display: grid;
}

.loader-card {
  display: grid;
  gap: 12px;
  place-items: center;
  min-width: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 24, 39, 0.92);
  box-shadow: var(--shadow);
}

.loader-spinner,
.small-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(255, 151, 8, 0.18);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 12px 0;
  background: linear-gradient(180deg, rgba(16, 23, 34, 0.98), rgba(16, 23, 34, 0.82));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange), #ff5f3d);
  box-shadow: 0 10px 26px rgba(255, 151, 8, 0.24);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fallback-logo::before {
  content: "YC";
  font-weight: 950;
  color: #fff;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-size: 1.02rem;
  line-height: 1;
}

.brand-text small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 0.78rem;
}

/* Hero / Search */

.hero-lite {
  padding: 22px 0 14px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--orange-soft);
  background: rgba(255, 151, 8, 0.12);
  border: 1px solid rgba(255, 151, 8, 0.25);
  font-weight: 900;
  font-size: 0.78rem;
}

.live-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255, 151, 8, 0.9);
}

.hero-copy h1 {
  margin: 12px 0 8px;
  max-width: 650px;
  font-size: clamp(2.05rem, 10vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy p {
  margin: 0 0 16px;
  max-width: 610px;
  color: var(--soft);
  line-height: 1.55;
  font-size: 1rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #0d1420;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.search-box:focus-within {
  border-color: rgba(255, 151, 8, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 151, 8, 0.1), 0 18px 55px rgba(0, 0, 0, 0.25);
}

.search-icon {
  width: 48px;
  text-align: center;
  color: var(--orange);
  font-size: 1.35rem;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 750;
}

.search-box input::placeholder {
  color: #7f8da5;
}

#clearSearch {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 1.4rem;
}

#clearSearch.is-visible {
  display: grid;
}

/* Sections */

.section-block {
  margin-top: 30px;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title-row.compact {
  align-items: center;
}

.section-kicker {
  display: block;
  color: var(--orange);
  font-weight: 950;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title-row h2 {
  margin: 3px 0 0;
  font-size: clamp(1.65rem, 7vw, 2.35rem);
  letter-spacing: -0.045em;
}

.active-filter {
  color: var(--muted);
  font-weight: 850;
  text-align: right;
}

.slider-actions {
  display: flex;
  gap: 8px;
}

.circle-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.45rem;
}

body.is-searching .newest-section,
body.is-searching .filter-strip {
  display: none;
}

body.is-searching .results-section {
  margin-top: 22px;
}

/* Newest slider */

.newest-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 82%);
  gap: 14px;
  overflow-x: auto;
  padding: 1px 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.newest-slider::-webkit-scrollbar {
  display: none;
}

.newest-card {
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

/* Important:
   Header image should be 800x400.
   These visual areas use a 2:1 ratio to match that image size.
*/

.visual-band,
.coupon-visual {
  position: relative;
  overflow: visible;
  background: #111827;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  aspect-ratio: 2 / 1;
}

.visual-band {
  min-height: 190px;
}

.coupon-visual {
  min-height: 176px;
}

.visual-band::before,
.coupon-visual::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 18%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.15), transparent 22%),
    linear-gradient(135deg, transparent 40%, rgba(0, 0, 0, 0.25) 40% 58%, transparent 58%);
  transform: rotate(-5deg);
}

.visual-band[style],
.coupon-visual[style] {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #111827;
}

.visual-band[style]::before,
.coupon-visual[style]::before {
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 19, 0.03), rgba(7, 11, 19, 0.28));
  transform: none;
}

.rating-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

/* Logo fix:
   Logo uses object-fit: contain.
   It overlaps the image, but body padding keeps title clear.
*/

.floating-logo {
  position: absolute;
  left: 18px;
  bottom: -34px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 8px;
  border-radius: 20px;
  color: white;
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 950;
  font-size: 1.2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.floating-logo img,
.mini-logo img,
.modal-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}

.newest-body {
  padding: 54px 16px 16px;
}

.newest-body h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.newest-body p {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.38;
  font-size: 0.9rem;
}

/* Category chips */

.filter-strip {
  position: sticky;
  top: 71px;
  z-index: 24;
  margin: 16px -14px 0;
  padding: 10px 14px 13px;
  overflow-x: auto;
  background: rgba(16, 23, 34, 0.9);
  backdrop-filter: blur(12px);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
  scrollbar-width: none;
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.chips {
  display: flex;
  gap: 9px;
  width: max-content;
  min-width: 100%;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
  font-weight: 900;
  white-space: nowrap;
}

.chip.is-active {
  color: #111827;
  background: var(--orange-soft);
  border-color: var(--orange);
}

/* Coupon grid */

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.coupon-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.coupon-content {
  padding: 52px 12px 12px;
}

.coupon-content h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.2;
}

.category-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.85rem;
}

.ticket-mini {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 76px;
  margin: 0 0 13px;
  padding: 10px;
  border-radius: 10px;
  background: #0d131d;
  text-align: center;
  overflow: hidden;
}

.ticket-mini::before,
.ticket-mini::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 28px;
  border-radius: 999px;
  background: var(--card);
  transform: translateY(-50%);
}

.ticket-mini::before {
  left: -10px;
}

.ticket-mini::after {
  right: -10px;
}

.ticket-mini strong {
  color: var(--orange);
  font-size: 0.95rem;
}

.ticket-mini span {
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.2;
}

.left-pill {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--orange);
  background: var(--orange-soft);
  font-weight: 850;
  font-size: 0.78rem;
}

.get-code {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--orange);
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(255, 151, 8, 0.2);
}

.animated-cta {
  animation: ctaNudge 2.4s ease-in-out infinite;
}

@keyframes ctaNudge {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(4px);
  }
}

.coupon-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

/* About / Popular / Why */

.about-panel {
  margin-top: 38px;
  padding: 28px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel);
  text-align: center;
}

.about-logo {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.about-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 6vw, 2.2rem);
}

.about-panel p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--soft);
  line-height: 1.65;
  font-weight: 750;
}

.popular-list {
  display: grid;
  gap: 12px;
}

.popular-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  background: var(--panel-2);
  text-align: left;
}

.popular-item span {
  flex: 1;
  min-width: 0;
}

.popular-item strong,
.popular-item small {
  display: block;
}

.popular-item small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.popular-item em {
  color: var(--orange);
  font-style: normal;
  font-size: 1.8rem;
  font-weight: 950;
}

.mini-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 6px;
  border-radius: 16px;
  color: white;
  font-weight: 950;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.9);
}

.why-grid {
  display: grid;
  gap: 12px;
}

.why-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-2);
}

.why-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  color: var(--orange);
  background: rgba(255, 151, 8, 0.1);
  font-weight: 950;
}

.why-grid h3 {
  margin: 0 0 6px;
}

.why-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

.site-footer {
  margin-top: 34px;
  padding: 22px 0 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--text);
}

.site-footer p {
  margin: 10px 0 0;
}

/* Empty state */

.empty-state {
  padding: 34px 16px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  color: var(--muted);
}

.empty-icon {
  font-size: 1.6rem;
  color: var(--orange);
}

.soft-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 900;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: stretch;
  justify-content: center;
}

.modal.is-open {
  display: flex;
}

body:has(.modal.is-open) {
  overflow: hidden !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  background: var(--panel);
  border: 0;
  box-shadow: var(--shadow);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal-controls {
  position: sticky;
  top: 0;
  height: 0;
  z-index: 5;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--orange);
  background: rgba(17, 24, 39, 0.78);
  font-size: 1.6rem;
  font-weight: 900;
}

.modal-hero {
  position: relative;
  min-height: 170px;
  padding: 30px 22px 18px;
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
}

.modal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.2), transparent 25%),
    linear-gradient(180deg, transparent, rgba(16, 23, 34, 0.55));
  filter: blur(0.2px);
}

.modal-hero > * {
  position: relative;
  z-index: 2;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 7px;
  border-radius: 18px;
  color: white;
  background: var(--orange);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 950;
  font-size: 1.35rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.modal-category {
  color: var(--orange-soft);
  font-weight: 950;
}

.modal-hero h2 {
  margin: 4px 48px 0 0;
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.modal-pills {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.modal-stock { position: relative; }
.modal-stock > span { display: block; }
.modal-stock:has(.offer-prompt:not([hidden])) { margin-bottom: 14px; }
.left-pill:has(.offer-prompt:not([hidden])) { margin-bottom: 28px; }

.modal-pills span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.62);
  color: #fff;
  font-weight: 900;
}

.pop-number {
  animation: popNumber 0.55s ease;
}

@keyframes popNumber {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.38);
    color: var(--orange);
  }

  100% {
    transform: scale(1);
  }
}

.modal-state {
  display: none;
  padding: 30px 22px calc(32px + env(safe-area-inset-bottom));
  animation: stateIn 0.36s ease both;
}

.modal-state.is-active {
  display: block;
}

@keyframes stateIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.ticket-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 116px;
  margin-bottom: 20px;
  border-radius: 24px;
  color: #7b4b00;
  background:
    radial-gradient(circle, rgba(255, 151, 8, 0.22) 1.4px, transparent 1.7px) 0 0 / 16px 16px,
    var(--orange-soft);
  text-align: center;
}

.ticket-preview::before,
.ticket-preview::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 42px;
  border-radius: 999px;
  background: var(--panel);
  transform: translateY(-50%);
}

.ticket-preview::before {
  left: -12px;
}

.ticket-preview::after {
  right: -12px;
}

.ticket-preview strong {
  color: var(--orange);
  font-size: 1.75rem;
  line-height: 1.1;
}

.ticket-preview span {
  margin-top: 4px;
  font-weight: 950;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.stats-row div {
  padding: 11px 6px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.stat-icon {
  display: block;
  color: var(--orange);
  font-size: 1.2rem;
  line-height: 1;
}

.stats-row strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

.stats-row small {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.details-box {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.details-box h3 {
  margin-bottom: 10px;
}

.details-box p {
  color: var(--text);
  line-height: 1.55;
  font-weight: 800;
}

.reveal-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: min(100%, 406px);
  min-height: 76px;
  margin: 0 auto;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--orange);
  color: white;
  box-shadow: 0 20px 50px rgba(255, 151, 8, 0.26);
}

.reveal-button span {
  min-width: 0;
  padding: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
  font-size: 1.02rem;
}

.reveal-button em {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 100px;
  padding: 0 13px;
  border-left: 2px dashed rgba(17, 24, 39, 0.5);
  color: rgba(255, 255, 255, 0.95);
  background: rgba(17, 24, 39, 0.28);
  font-style: normal;
  font-weight: 950;
  transition: transform 0.35s ease, min-width 0.35s ease;
}

.reveal-button:hover em,
.reveal-button:focus-visible em {
  transform: translateX(-10px);
  min-width: 118px;
}

/* Progress state */

.state-progress {
  min-height: calc(100dvh - 170px);
  place-items: start center;
  text-align: center;
  padding-top: 118px;
}

.state-progress.is-active {
  display: grid;
}

.progress-wrap {
  display: grid;
  place-items: center;
  gap: 24px;
  transform: none;
}

.progress-ring {
  --progress: 0;
  position: relative;
  width: 212px;
  height: 212px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--orange) calc(var(--progress) * 1%), #0b111b 0);
  box-shadow: inset 0 0 0 10px rgba(0, 0, 0, 0.2), 0 22px 60px rgba(0, 0, 0, 0.25);
  transition: background 0.14s linear;
  animation: ringIn 0.42s ease both;
}

@keyframes ringIn {
  from {
    opacity: 0;
    transform: scale(0.88);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.progress-ring::before {
  content: "";
  position: absolute;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  background: var(--panel);
}

.progress-ring > div {
  position: relative;
  z-index: 2;
}

.progress-ring strong {
  font-size: 2.05rem;
}

.state-progress p {
  width: min(100%, 440px);
  margin: 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.45;
}

.message-pop {
  animation: messagePop 0.32s ease;
}

@keyframes messagePop {
  from {
    opacity: 0.2;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Ready state */

.state-ready {
  text-align: center;
}

.state-ready h2 {
  margin-top: 12px;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  animation: readyIn 0.35s ease both;
}

.state-ready p {
  color: var(--soft);
  line-height: 1.55;
  font-weight: 750;
  animation: readyIn 0.45s ease both;
}

@keyframes readyIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.timer-card {
  width: fit-content;
  margin: 18px auto 20px;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(255, 151, 8, 0.1);
  border: 1px solid rgba(255, 151, 8, 0.25);
}

.timer-card span {
  display: block;
  color: var(--orange-soft);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.timer-card strong {
  display: block;
  margin-top: 2px;
  color: var(--orange);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.locked-code-box {
  position: relative;
  min-height: 172px;
  margin: 18px 0 28px;
  display: grid;
  place-items: center;
  border: 3px dashed var(--orange-soft);
  border-radius: 24px;
  overflow: hidden;
}

.locked-code-box span {
  color: var(--orange);
  letter-spacing: 0.18em;
  font-weight: 900;
}

.locked-code-box b {
  padding: 8px 13px;
  border-radius: 999px;
  background: #0b111b;
  color: var(--soft);
}

.locked-code-box strong {
  filter: blur(7px);
  color: var(--orange);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
}

.primary-button.full {
  width: min(270px, 100%);
  min-height: 64px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--orange);
  font-weight: 950;
  font-size: 1.05rem;
  box-shadow: 0 18px 45px rgba(255, 151, 8, 0.22);
}

.waiting-inline {
  display: none;
  place-items: center;
  gap: 10px;
  margin: 16px auto 0;
  color: var(--soft);
  font-size: 1.05rem;
  font-weight: 900;
}

.waiting-inline.is-visible {
  display: grid;
}

.waiting-inline .small-spinner {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

.state-ready.is-waiting-unlock .primary-button {
  display: none;
}

.state-ready.is-waiting-unlock .reserve-copy {
  display: none;
}

.state-ready.is-waiting-unlock .locked-code-box {
  margin-bottom: 18px;
}

/* Desktop */

@media (min-width: 720px) {
  .site-shell {
    padding-inline: 18px;
  }

  .hero-lite {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    align-items: end;
    padding-top: 34px;
  }

  .newest-slider {
    grid-auto-columns: 340px;
  }

  .coupon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .popular-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .state-progress {
    min-height: 620px;
  }
}

@media (min-width: 1040px) {
  .newest-slider {
    grid-auto-columns: 360px;
  }

  .coupon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Mobile */

@media (max-width: 719px) {
  #stateDetails {
    /* At the end of the scroll, leave the reveal button near mid-screen. */
    padding-bottom: max(32px, calc(50dvh - 38px));
  }
}

@media (max-width: 520px) {
  .coupon-footer {
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .visual-band {
    min-height: 168px;
  }

  .coupon-visual {
    min-height: 150px;
  }

  .floating-logo {
    width: 68px;
    height: 68px;
    bottom: -28px;
    left: 14px;
    border-radius: 18px;
    padding: 7px;
  }

  .newest-body {
    padding-top: 48px;
  }

  .coupon-content {
    padding-top: 48px;
  }
}

@media (max-width: 420px) {
  .visual-band {
    min-height: 154px;
  }

  .coupon-visual {
    min-height: 138px;
  }

  .floating-logo {
    width: 64px;
    height: 64px;
    bottom: -25px;
    left: 14px;
  }

  .coupon-grid {
    gap: 10px;
    margin-inline: -4px;
  }

  .coupon-content {
    padding-inline: 10px;
    padding-top: 46px;
  }

  .coupon-content h3 {
    font-size: 0.98rem;
  }

  .ticket-mini strong {
    font-size: 0.91rem;
  }

  .left-pill {
    font-size: 0.76rem;
    padding-inline: 9px;
  }

  .modal-state {
    padding-inline: 18px;
  }

  .reveal-button span {
    white-space: normal;
    line-height: 1.35;
    font-size: 0.92rem;
  }

  .reveal-button em {
    min-width: 82px;
    padding-inline: 8px;
    font-size: 0.85rem;
  }

}

@media (max-width: 520px) and (max-height: 700px) {
  .modal-hero {
    min-height: 138px;
    padding: 22px 18px 14px;
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }

  .modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .modal-hero h2 {
    font-size: 1.25rem;
  }

  .modal-state {
    padding-top: 18px;
  }

  .state-progress {
    padding-top: 70px;
  }

  .progress-wrap {
    gap: 18px;
  }

  .ticket-preview {
    min-height: 96px;
    margin-bottom: 14px;
  }

  .ticket-preview strong {
    font-size: 1.45rem;
  }

  .stats-row {
    margin-bottom: 14px;
  }
}

.offer-prompt {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  z-index: 1;
  width: fit-content;
  white-space: nowrap;
  padding: 3px 7px;
  margin: 0;
  border: 1px solid rgba(255, 151, 8, 0.35);
  border-radius: 999px;
  background: #302514;
  color: var(--orange);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;
}

.offer-prompt[hidden] { display: none; }
.offer-prompt.is-next-step { background: #443018; }

/* Mobile-only desktop lock */

#mobile-content {
  min-height: 100vh;
  transition: filter 0.25s ease;
}

#desktop-lock,
body.desktop-blocked #desktop-lock {
  display: none !important;
}

body.desktop-blocked {
  overflow: auto !important;
}

body.desktop-blocked #mobile-content {
  filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
}

.lock-box {
  width: min(100%, 390px);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 151, 8, 0.18), transparent 170px),
    rgba(17, 24, 39, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
}

.lock-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--orange), #ff5f3d);
  box-shadow: 0 16px 42px rgba(255, 151, 8, 0.26);
  font-size: 2rem;
}

.lock-box h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.lock-box p {
  margin: 0;
  color: var(--soft);
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 700;
}

.lock-box span {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}


/* Product Card Links */
.coupon-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease;
}
.coupon-link:hover {
  color: var(--orange-soft, #ffe4b8);
}
