.vouchers-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--brand-pink-100);
  border-radius: var(--radius-md);
  background: var(--brand-pink-050);
}

.vouchers-entry[data-tone="locked"] {
  border-color: var(--line);
  background: var(--surface);
}

.vouchers-entry__icon {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid var(--brand-pink-100);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--brand-pink-600);
}

.vouchers-entry[data-tone="locked"] .vouchers-entry__icon {
  border-color: var(--line);
  background: var(--surface-neutral);
  color: var(--charcoal-500);
}

.vouchers-entry__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.vouchers-entry__copy {
  min-width: 0;
}

.vouchers-entry__copy > strong {
  display: block;
  color: var(--charcoal-900);
  font-size: 0.76rem;
  line-height: 1.3;
}

.vouchers-entry__summary {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 0.16rem;
}

.vouchers-entry__summary strong {
  color: var(--brand-pink-700);
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.vouchers-entry__summary span {
  color: var(--ink-muted);
  font-size: 0.61rem;
  font-weight: 680;
}

.vouchers-entry__copy p,
.vouchers-entry__copy small {
  display: block;
  margin-top: 0.14rem;
  color: var(--ink-subtle);
  font-size: 0.61rem;
  line-height: 1.4;
}

.vouchers-entry__copy small {
  overflow: hidden;
  color: var(--ink-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vouchers-entry .button {
  width: auto;
  min-width: 6rem;
  padding-right: 0.7rem;
  padding-left: 0.7rem;
}

.vouchers-screen {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: var(--surface-soft);
}

.vouchers-screen:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.vouchers-screen__bar {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.vouchers-screen__bar p {
  color: var(--brand-pink-700);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.vouchers-screen__bar h1 {
  margin-top: 0.15rem;
  color: var(--charcoal-950);
  font-size: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.vouchers-screen__scroll {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem 0.9rem calc(1.25rem + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.vouchers-screen__scroll::-webkit-scrollbar {
  display: none;
}

.vouchers-community-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.vouchers-community-context > img {
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-soft);
  object-fit: cover;
}

.vouchers-community-context > div {
  min-width: 0;
}

.vouchers-community-context > div > span {
  display: block;
  color: var(--brand-pink-700);
  font-size: 0.58rem;
  font-weight: 780;
  line-height: 1.2;
}

.vouchers-community-context > div > strong {
  display: -webkit-box;
  margin-top: 0.18rem;
  overflow: hidden;
  color: var(--charcoal-900);
  font-size: 0.75rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vouchers-community-context > div > small {
  display: block;
  margin-top: 0.16rem;
  color: var(--ink-muted);
  font-size: 0.58rem;
  line-height: 1.3;
}

.vouchers-points-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.7rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--brand-pink-100);
  border-radius: var(--radius-md);
  background: var(--brand-pink-050);
}

.vouchers-points-context__icon {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-pink-600);
  color: white;
}

.vouchers-points-context__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.vouchers-points-context > div {
  min-width: 0;
}

.vouchers-points-context > div > span {
  display: block;
  color: var(--brand-pink-700);
  font-size: 0.56rem;
  font-weight: 780;
  line-height: 1.2;
}

.vouchers-points-context > div > strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--charcoal-950);
  font-size: 0.9rem;
  line-height: 1.3;
}

.vouchers-points-context > div > p {
  margin-top: 0.12rem;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 0.56rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vouchers-points-context > .badge {
  max-width: 5.7rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.vouchers-intro {
  margin-top: 1rem;
  padding: 0 0.1rem;
}

.vouchers-intro h2 {
  margin-top: 0.2rem;
  color: var(--charcoal-950);
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.vouchers-intro > p:last-child {
  max-width: 21rem;
  margin-top: 0.4rem;
  color: var(--ink-subtle);
  font-size: 0.7rem;
  line-height: 1.5;
}

.voucher-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.voucher-filters button {
  display: flex;
  min-width: 0;
  min-height: var(--tap-target);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.42rem 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.68rem;
  background: var(--surface);
  color: var(--charcoal-600);
  cursor: pointer;
}

.voucher-filters button[aria-pressed="true"] {
  border-color: var(--brand-pink-200);
  background: var(--brand-pink-050);
  color: var(--brand-pink-700);
}

.voucher-filters button span {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.57rem;
  font-weight: 760;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voucher-filters button strong {
  display: grid;
  min-width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-neutral);
  color: currentColor;
  font-size: 0.55rem;
  line-height: 1;
}

.voucher-list-section {
  margin-top: 1rem;
}

.voucher-list-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0 0.1rem;
}

.voucher-list-section > header h2 {
  color: var(--charcoal-950);
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.voucher-list-section > header span {
  color: var(--ink-muted);
  font-size: 0.61rem;
  font-weight: 680;
  line-height: 1.3;
}

.voucher-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.voucher-card {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.voucher-card.is-focused {
  border-color: var(--brand-pink-300);
  box-shadow: 0 0 0 2px var(--brand-pink-050);
}

.voucher-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.voucher-type-badge,
.voucher-status-badge {
  display: inline-flex;
  min-height: 1.45rem;
  align-items: center;
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
}

.voucher-type-badge[data-tone="points"] {
  background: var(--brand-pink-100);
  color: var(--brand-pink-700);
}

.voucher-type-badge[data-tone="benefit"] {
  background: var(--success-100);
  color: var(--success-700);
}

.voucher-type-badge[data-tone="promotion"] {
  background: var(--warning-100);
  color: var(--warning-700);
}

.voucher-status-badge[data-tone="available"] {
  border: 1px solid var(--line);
  background: var(--surface-neutral);
  color: var(--charcoal-600);
}

.voucher-status-badge[data-tone="claimed"] {
  background: var(--brand-pink-100);
  color: var(--brand-pink-700);
}

.voucher-status-badge[data-tone="redeemed"] {
  background: var(--success-100);
  color: var(--success-700);
}

.voucher-status-badge[data-tone="expired"] {
  background: #fff0f3;
  color: #93364b;
}

.voucher-card > h3 {
  margin-top: 0.65rem;
  color: var(--charcoal-950);
  font-size: 0.94rem;
  letter-spacing: -0.025em;
  line-height: 1.32;
}

.voucher-card > p:not(.voucher-card__timestamp) {
  margin-top: 0.3rem;
  color: var(--ink-subtle);
  font-size: 0.69rem;
  line-height: 1.48;
}

.voucher-card > dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.voucher-card > dl:has(> div:only-child) {
  grid-template-columns: 1fr;
}

.voucher-card dt {
  color: var(--ink-muted);
  font-size: 0.56rem;
  line-height: 1.3;
}

.voucher-card dd {
  margin: 0.18rem 0 0;
  overflow-wrap: anywhere;
  color: var(--charcoal-800);
  font-size: 0.65rem;
  font-weight: 740;
  line-height: 1.4;
}

.voucher-community-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.voucher-community-identity img {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  object-fit: cover;
}

.voucher-community-identity span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.54rem;
  line-height: 1.2;
}

.voucher-community-identity strong {
  display: block;
  margin-top: 0.14rem;
  color: var(--charcoal-800);
  font-size: 0.66rem;
  line-height: 1.35;
}

.voucher-code-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--brand-pink-100);
  border-radius: var(--radius-md);
  background: var(--brand-pink-050);
}

.voucher-code-visual {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 0.3rem solid white;
  border-radius: 0.55rem;
  background: white;
  color: var(--charcoal-950);
}

.voucher-code-visual svg {
  width: 100%;
  height: 100%;
}

.voucher-code-panel > div:last-child {
  min-width: 0;
}

.voucher-code-panel span,
.voucher-code-panel small {
  display: block;
  color: var(--ink-muted);
  font-size: 0.55rem;
  line-height: 1.35;
}

.voucher-code-panel code {
  display: block;
  margin-top: 0.22rem;
  overflow-wrap: anywhere;
  color: var(--brand-pink-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.voucher-code-panel small {
  margin-top: 0.2rem;
}

.voucher-card__action {
  margin-top: 0.75rem;
}

.voucher-card__action:disabled {
  border-color: var(--line);
  background: var(--surface-neutral);
  color: var(--charcoal-500);
  cursor: not-allowed;
}

.voucher-card__timestamp {
  margin-top: 0.45rem;
  color: var(--ink-muted);
  font-size: 0.58rem;
  line-height: 1.4;
  text-align: center;
}

.voucher-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 0.7rem;
  padding: 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}

.voucher-empty > span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-neutral);
  color: var(--charcoal-500);
}

.voucher-empty svg {
  width: 1.4rem;
  height: 1.4rem;
}

.voucher-empty strong {
  margin-top: 0.65rem;
  color: var(--charcoal-900);
  font-size: 0.78rem;
}

.voucher-empty p {
  max-width: 18rem;
  margin-top: 0.3rem;
  color: var(--ink-muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.voucher-simulation-note {
  margin-top: 0.9rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-neutral);
}

.voucher-simulation-note strong {
  color: var(--charcoal-800);
  font-size: 0.66rem;
}

.voucher-simulation-note p {
  margin-top: 0.18rem;
  color: var(--ink-subtle);
  font-size: 0.61rem;
  line-height: 1.48;
}

.vouchers-locked {
  padding: 0.35rem 0 1rem;
  text-align: center;
}

.vouchers-locked > img {
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  object-fit: cover;
}

.vouchers-locked-community {
  display: block;
  color: var(--charcoal-900);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.35;
}

.vouchers-locked-status {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
  margin-top: 0.45rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-neutral);
  color: var(--charcoal-600);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
}

.vouchers-locked-status[data-tone="expired"] {
  background: #fff0f3;
  color: #93364b;
}

.vouchers-locked-status[data-tone="pending"] {
  background: var(--warning-100);
  color: var(--warning-700);
}

.vouchers-locked__icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 1.2rem auto 0.85rem;
  place-items: center;
  border: 1px solid var(--brand-pink-100);
  border-radius: 50%;
  background: var(--brand-pink-050);
  color: var(--brand-pink-600);
}

.vouchers-locked__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.vouchers-locked h2 {
  max-width: 20rem;
  margin: 0 auto;
  color: var(--charcoal-950);
  font-size: 1.32rem;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.vouchers-locked > p {
  max-width: 20rem;
  margin: 0.55rem auto 1rem;
  color: var(--ink-subtle);
  font-size: 0.74rem;
  line-height: 1.55;
}

.vouchers-locked > .button {
  max-width: 20rem;
  margin: 0 auto;
}

.vouchers-locked > .button:disabled {
  border-color: var(--line);
  background: var(--surface-neutral);
  color: var(--charcoal-500);
  cursor: not-allowed;
}

@media (max-width: 370px) {
  .vouchers-entry {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .vouchers-entry .button {
    width: 100%;
    grid-column: 1 / -1;
  }
}

@media (max-width: 350px) {
  .vouchers-screen__scroll {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .vouchers-community-context,
  .vouchers-points-context {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .vouchers-community-context > .badge,
  .vouchers-points-context > .badge {
    grid-column: 2;
    justify-self: start;
  }

  .voucher-card > dl {
    grid-template-columns: 1fr;
  }

  .voucher-filters {
    gap: 0.3rem;
  }

  .voucher-filters button span {
    font-size: 0.52rem;
  }
}

/* W11 mobile readability hardening */
.vouchers-community-context > div > span,
.vouchers-community-context > div > small,
.vouchers-points-context > div > span,
.vouchers-points-context > div > p,
.voucher-filters button span,
.voucher-type-badge,
.voucher-status-badge,
.voucher-card dt,
.voucher-community-identity span,
.voucher-code-panel span,
.voucher-code-panel small,
.voucher-card__timestamp {
  font-size: 0.625rem;
}
