:root {
  --ink: #0b1411;
  --ink-2: #12201b;
  --panel: #16241f;
  --line: rgba(232, 244, 236, 0.12);
  --text: #e8f4ec;
  --muted: #93a89c;
  --mint: #3dff9a;
  --mint-ink: #062216;
  --glow: rgba(61, 255, 154, 0.28);
  --warn: #ffb454;
  --radius: 18px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(61, 255, 154, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(61, 255, 154, 0.08), transparent 50%),
    linear-gradient(165deg, #0b1411 0%, #0e1a15 45%, #101c18 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.tv-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.tv-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 20, 17, 0.72);
  border-bottom: 1px solid var(--line);
}

.tv-test-banner {
  text-align: center;
  padding: 0.55rem 1rem;
  background: #ffedd5;
  color: #7c2d12;
  border-bottom: 1px solid #fdba74;
  font-size: 0.95rem;
  line-height: 1.3;
}

.tv-test-banner strong {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.tv-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
}

.tv-brand__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background:
    linear-gradient(145deg, var(--mint), #1ecf78 55%, #0d8f52);
  box-shadow: 0 0 0 1px rgba(61, 255, 154, 0.35), 0 8px 24px var(--glow);
}

.tv-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.tv-nav a:hover {
  color: var(--text);
}

.tv-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mint-ink) !important;
  font-weight: 700;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.tv-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--glow);
}

/* Hero — one composition, brand first */
.tv-hero {
  position: relative;
  min-height: calc(100svh - 4.25rem);
  display: grid;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
  overflow: hidden;
}

.tv-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.tv-hero__copy {
  max-width: 34rem;
  animation: tv-rise 0.9s var(--ease) both;
}

.tv-hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.tv-hero__brand span {
  display: block;
  color: var(--mint);
}

.tv-hero__lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 28rem;
}

.tv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tv-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.tv-btn--primary {
  background: var(--mint);
  color: var(--mint-ink);
  box-shadow: 0 12px 36px var(--glow);
}

.tv-btn--primary:hover {
  transform: translateY(-2px);
}

.tv-btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.tv-btn--ghost:hover {
  border-color: rgba(61, 255, 154, 0.45);
}

.tv-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

/* Live voucher card */
.tv-hero__visual {
  position: relative;
  animation: tv-rise 1s var(--ease) 0.12s both;
}

.tv-card-stage {
  position: relative;
  perspective: 1200px;
}

.tv-card-stage::before {
  content: "";
  position: absolute;
  inset: 12% 8% auto;
  height: 70%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  filter: blur(18px);
  z-index: 0;
  animation: tv-pulse 4.5s ease-in-out infinite;
}

.tv-voucher-card {
  position: relative;
  z-index: 1;
  aspect-ratio: 1.62 / 1;
  width: min(100%, 460px);
  margin-inline: auto;
  border-radius: 22px;
  padding: 1.5rem 1.6rem;
  color: var(--mint-ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 40%),
    linear-gradient(160deg, #3dff9a 0%, #1fd87a 42%, #0d8f52 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 28px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s var(--ease);
}

.tv-voucher-card:hover {
  transform: rotateY(-2deg) rotateX(1deg) translateY(-4px);
}

.tv-voucher-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.tv-voucher-card__top,
.tv-voucher-card__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.tv-voucher-card__brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
}

.tv-voucher-card__chip {
  width: 42px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffe29a, #c9a227 60%, #8d6b12);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.tv-voucher-card__amount {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.tv-voucher-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.tv-voucher-card__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* Buy section */
.tv-section {
  padding: 4.5rem 0;
}

.tv-section__head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.tv-section__head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.tv-section__head p {
  margin: 0;
  color: var(--muted);
}

.tv-buy {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.tv-panel {
  background: rgba(22, 36, 31, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  backdrop-filter: blur(8px);
}

.tv-panel h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.tv-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.tv-preset {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(11, 20, 17, 0.55);
  color: var(--text);
  border-radius: 12px;
  min-height: 3rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.tv-preset:hover {
  border-color: rgba(61, 255, 154, 0.45);
}

.tv-preset.is-active {
  background: rgba(61, 255, 154, 0.14);
  border-color: var(--mint);
  color: var(--mint);
  transform: translateY(-1px);
}

.tv-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tv-field label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.tv-field input {
  width: 100%;
  min-height: 3rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 20, 17, 0.65);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  outline: none;
}

.tv-field input:focus {
  border-color: rgba(61, 255, 154, 0.55);
  box-shadow: 0 0 0 3px rgba(61, 255, 154, 0.12);
}

.tv-buy__summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tv-buy__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-weight: 700;
}

.tv-buy__total strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  color: var(--mint);
}

.tv-note {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Steps */
.tv-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tv-step {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 32, 27, 0.55);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.tv-step:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 255, 154, 0.35);
}

.tv-step__n {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(61, 255, 154, 0.15);
  color: var(--mint);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.tv-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.tv-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ / redeem */
.tv-faq {
  display: grid;
  gap: 0.75rem;
}

.tv-faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 32, 27, 0.5);
  padding: 0.95rem 1.1rem;
}

.tv-faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.tv-faq summary::-webkit-details-marker {
  display: none;
}

.tv-faq details[open] summary {
  color: var(--mint);
  margin-bottom: 0.55rem;
}

.tv-faq p {
  margin: 0;
  color: var(--muted);
}

.tv-redeem-form {
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
}

.tv-redeem-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(18, 32, 27, 0.65);
  display: none;
}

.tv-redeem-result.is-visible {
  display: block;
}

/* Woo pages */
.woocommerce .tv-shell,
.woocommerce-page .tv-shell {
  padding: 2rem 0 4rem;
}

.woocommerce-checkout .tv-shell,
.woocommerce-cart .tv-shell {
  width: min(1100px, calc(100% - 2rem));
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 12px !important;
}

.woocommerce form .form-row label {
  color: #c5d6cb !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-selection {
  border-radius: 12px !important;
  border: 1px solid rgba(232, 244, 236, 0.18) !important;
  background: #101a16 !important;
  color: #e8f4ec !important;
  min-height: 3rem;
}

.woocommerce form .form-row input.input-text::placeholder {
  color: #6f8378 !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
  border-color: rgba(61, 255, 154, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(61, 255, 154, 0.12) !important;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #payment #place_order {
  background: var(--mint) !important;
  color: var(--mint-ink) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

.woocommerce-checkout-review-order-table del,
.cart del,
.woocommerce-Price-amount del {
  display: none !important;
}

/* Footer */
.tv-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.tv-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.tv-footer a:hover {
  color: var(--text);
}

@keyframes tv-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tv-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

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

  .tv-voucher-card {
    transform: none;
  }

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

  .tv-nav a:not(.tv-nav__cta) {
    display: none;
  }
}
