/* Reference-inspired WiFi vouchers. Matches the active portal theme (Ocean/Space) dynamically. */
:root {
  --vc-primary: var(--portal-primary, #2dd4bf);
  --vc-electric: var(--portal-primary-strong, #22a7f0);
  --vc-turquoise: var(--portal-primary, #2dd4bf);
  --vc-primary-dark: var(--portal-bg, #0b2b2a);
  --vc-surface: var(--portal-panel, rgba(17, 29, 36, 0.94));
  --vc-border: var(--portal-line, rgba(124, 221, 218, 0.18));
  --vc-text-secondary: var(--portal-muted, #a8bec2);
}

.cardx { max-width: 1040px; }
.cardx::before { pointer-events: none; }
.voucher-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 4px 2px;
}
@media (min-width: 561px) {
  .voucher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 6px 3px;
  }
}
.voucher-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.voucher-card {
  container-type: inline-size;
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 5 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--vc-border);
  background-image: radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--portal-primary) 55%, transparent) 0%, transparent 45%), radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--portal-primary-strong) 45%, transparent) 0%, transparent 55%), linear-gradient(135deg, var(--portal-bg) 0%, var(--portal-surface) 52%, var(--portal-surface-raised) 100%);
  background-size: cover, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(2,44,99,0.08);
  transition: transform .22s ease, box-shadow .22s ease;
  isolation: isolate;
}
.voucher-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(2,44,99,0.12); }
.voucher-radio:checked + .voucher-card {
  box-shadow: 0 0 0 4px rgba(4,213,191,0.12), 0 18px 36px rgba(2,12,35,0.28);
}
.voucher-radio:focus-visible + .voucher-card {
  outline: 3px solid rgba(255,255,255,0.08);
  outline-offset: 6px;
}
.v-selected {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--vc-turquoise);
  color: var(--vc-primary-dark);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  z-index: 10;
  box-shadow: 0 6px 18px rgba(4,213,191,0.12);
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}
.voucher-radio:checked + .voucher-card .v-selected { opacity: 1; transform: translateY(-2px); }
.v-brand {
  position: absolute;
  top: 6%;
  left: 6%;
  right: 5%;
  height: 16%;
  display: flex;
  align-items: center;
}
.v-brand-logo-container { width: 100%; height: 100%; display: flex; align-items: center; }
.v-brand-real-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.v-brand-fallback-group { display: flex; flex-direction: column; line-height: 1; }
.v-brand-name {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(30deg, var(--vc-primary-dark), var(--vc-electric));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v-brand-sub { margin-top: 2px; padding-left: 6px; font-size: .78rem; letter-spacing: .03em; color: rgba(255,255,255,0.9); }
.v-tagline {
  position: absolute;
  top: 26%;
  left: 6%;
  color: color-mix(in srgb, var(--vc-primary) 70%, white); /* Matching theme tint */
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.28);
}
.v-ribbon {
  position: absolute;
  top: 38%;
  left: 6%;
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vc-turquoise), var(--vc-electric));
  color: #fff;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.v-offer {
  position: absolute;
  top: 53%;
  left: 6%;
  right: 6%;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  line-height: 1;
}
.voucher-price {
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.v-currency { margin-right: .45rem; font-size: 1rem; letter-spacing: 0; opacity: .95; }
.v-price-long { font-size: 1.8rem; }
.v-price-extra-long { font-size: 1.35rem; }
.v-divider { flex: 0 0 2px; height: 3rem; margin: 0 .6rem; background: rgba(255,255,255,0.12); transform: skew(-15deg); }
.v-validity { min-width: 0; font-size: .95rem; font-weight: 800; line-height: 1.1; color: rgba(255,255,255,0.95); overflow-wrap: anywhere; }
.v-validity-long { font-size: .85rem; }
.v-package { display: none; }
.v-benefits {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.v-benefit { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,0.95); font-size: .85rem; line-height: 1.12; }
.v-benefit + .v-benefit { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,0.06); }
.v-benefit-icon { display: grid; place-items: center; flex: 0 0 2.8rem; width: 2.8rem; height: 2.8rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; background: rgba(255,255,255,0.04); font-size: 1.1rem; color: #fff; }
.v-benefit-icon i { line-height: 1; }
.v-signature {
  position: absolute;
  right: 6%;
  top: 40%; /* Aligned at the vertical middle, similar to the voucher ribbon */
  transform: rotate(-6deg);
  color: rgba(255,255,255,0.85);
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 1.05rem;
  font-style: italic;
  line-height: .95;
  text-align: center;
  opacity: 0.85;
}
.v-signature::after { content: ''; display: block; height: .2rem; margin-top: .4rem; border-radius: 100%; background: rgba(255,255,255,0.12); transform: rotate(-6deg); }
@media (max-width: 760px) {
  .voucher-grid { max-width: 520px; margin-inline: auto; }
  .voucher-price { font-size: 1.6rem; }
  .v-offer { top: 50%; }
}
@media (max-width: 480px) {
  .voucher-card { aspect-ratio: 16 / 10; border-radius: 14px; }
  .voucher-price { font-size: 1.35rem; }
  .v-currency { font-size: .8rem; }
  .v-validity { font-size: .78rem; }
  .v-tagline { font-size: .82rem; top: 25%; }
  .v-ribbon { font-size: .82rem; padding: .45rem .9rem; top: 37%; }
  .v-benefit { font-size: .7rem; gap: .4rem; }
  .v-benefit-icon { flex: 0 0 2.2rem; width: 2.2rem; height: 2.2rem; font-size: .9rem; }
  .v-benefit + .v-benefit { padding-left: .6rem; }
  .v-benefits { gap: .5rem; bottom: 7%; }
  .v-signature { font-size: .85rem; top: 39%; }
}
@media (max-width: 380px) {
  .wrap { padding: 10px; }
  .body { padding: 18px 12px; }
  .voucher-card { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .voucher-card { transition: none; }
  .voucher-card:hover { transform: none; }
}
