@font-face {
  font-family: "IBM Plex Sans";
  src: url("/store-assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/store-assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/store-assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/store-assets/fonts/ibm-plex-sans-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color: #0c1432;
  background: #eaf0f8;
  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #0c1432;
  --muted: #5b6780;
  --line: #dce3ef;
  --soft: #f3f6fb;
  --blue: #1767d2;
  --blue-bright: #2f88ff;
  --blue-dark: #0d4ea9;
  --navy: #071230;
  --content-gutter: 22px;
  --radius-control: 14px;
  --radius-panel: 22px;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at 50% 2%, rgb(255 255 255 / 100%), rgb(237 243 251 / 92%) 36%, transparent 63%),
    #e3ebf6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  border-radius: 10px;
  outline: 3px solid #0b58c3;
  outline-offset: 3px;
}

button[hidden] {
  display: block;
  visibility: hidden;
}

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

h1,
h2,
p,
figure,
ol,
ul,
blockquote {
  margin: 0;
}

.asset-loader {
  width: 100%;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
}

.loader-minimal {
  width: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-emblem {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 18px;
  background: #f0f6ff;
  box-shadow: 0 7px 18px rgb(23 103 210 / 10%);
}

.loader-emblem span {
  width: 4px;
  border-radius: 99px;
  background: var(--blue-bright);
  animation: loader-wave 650ms ease-in-out infinite alternate;
}

.loader-emblem span:nth-child(1) {
  height: 14px;
}

.loader-emblem span:nth-child(2) {
  height: 24px;
  animation-delay: -220ms;
}

.loader-emblem span:nth-child(3) {
  height: 18px;
  animation-delay: -440ms;
}

@keyframes loader-wave {
  to {
    transform: scaleY(0.48);
    opacity: 0.58;
  }
}

.loader-progress {
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8edf4;
}

.loader-progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #1767d2, #69b5ff);
  transition: width 180ms ease-out;
}

.page-shell {
  width: 100%;
  height: 100dvh;
  padding: 16px;
  display: grid;
  place-items: center;
}

.phone-canvas {
  width: min(390px, 100%);
  height: min(844px, calc(100dvh - 32px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d5deeb;
  border-radius: 40px;
  background: #ffffff;
  box-shadow:
    0 30px 80px rgb(8 19 49 / 16%),
    0 3px 10px rgb(8 19 49 / 5%);
}

.story-header {
  min-height: 61px;
  padding: max(14px, env(safe-area-inset-top)) var(--content-gutter) 8px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  column-gap: 6px;
  background: rgb(255 255 255 / 96%);
  z-index: 3;
}

.back-button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.story-progress {
  grid-column: 2;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #e3e9f2;
}

.progress-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #1767d2, #55a6ff);
  transition: width 280ms ease;
}

.progress-count {
  min-width: 25px;
  color: #68748c;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.story-content {
  min-height: 0;
  padding: 5px var(--content-gutter) 7px;
  overflow: hidden;
}

.story-screen {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  animation: screen-enter 230ms ease-out both;
}

@keyframes screen-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-copy h1,
.screen-copy h2 {
  color: var(--ink);
  font-size: clamp(1.78rem, 7.5vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.047em;
  line-height: 1.04;
  text-wrap: balance;
}

.screen-copy {
  width: 100%;
}

.screen-copy h1 em {
  color: var(--blue);
  font-style: normal;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.42;
  text-wrap: pretty;
}

.opening-screen {
  align-items: center;
}

.opening-screen .screen-copy {
  width: 100%;
}

.opening-visual {
  position: relative;
  width: calc(100% + (var(--content-gutter) * 2));
  min-height: 0;
  margin: 12px calc(var(--content-gutter) * -1) 7px;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.opening-scene {
  width: 100%;
  height: 100%;
  max-height: 405px;
  object-fit: cover;
  object-position: center 46%;
}

.opening-note-preview {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 96px;
  padding: 5px 5px 6px;
  border: 1px solid rgb(255 255 255 / 92%);
  border-radius: 12px;
  background: rgb(255 255 255 / 96%);
  box-shadow:
    0 5px 14px rgb(8 19 49 / 11%),
    0 1px 3px rgb(8 19 49 / 7%);
}

.opening-note-preview img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.opening-note-preview strong {
  margin-top: 4px;
  display: block;
  color: var(--blue-dark);
  font-size: 0.61rem;
  font-weight: 700;
  text-align: center;
}

.opening-result-arrow {
  position: absolute;
  right: 93px;
  bottom: 66px;
  z-index: 2;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 6px 13px rgb(23 103 210 / 28%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

.occasion-story {
  width: 100%;
  padding: 10px 0 8px;
}

.occasion-story > p {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.occasion-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 14px;
  color: #303d58;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.occasion-list span::before {
  width: 5px;
  height: 5px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--blue-bright);
  color: var(--blue-bright);
  content: "";
  transform: translateY(-1px);
}

.tutorial-screen {
  align-items: center;
}

.tutorial-copy {
  width: 100%;
}

.tutorial-device {
  position: relative;
  width: 166px;
  margin: 11px auto 10px;
}

.device-frame {
  width: 100%;
  padding: 3px;
  border-radius: 32px;
  background: linear-gradient(145deg, #cdd4df 0%, #424d62 45%, #071230 100%);
  box-shadow:
    0 20px 36px -18px rgb(5 15 39 / 55%),
    0 3px 8px rgb(5 15 39 / 18%);
}

.device-screen {
  position: relative;
  padding: 5px;
  overflow: hidden;
  border-radius: 29px;
  background: #02040b;
}

.device-screen video {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: 24px;
  background: #ffffff;
  object-fit: contain;
}

.device-island {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 58px;
  height: 14px;
  border-radius: 99px;
  background: #000000;
  transform: translateX(-50%);
}

.device-button {
  position: absolute;
  z-index: 2;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: #39455b;
}

.device-button-top {
  top: 54px;
  left: -3px;
  height: 16px;
}

.device-button-middle {
  top: 78px;
  left: -3px;
  height: 35px;
}

.device-button-right {
  top: 91px;
  right: -3px;
  height: 39px;
  border-radius: 0 3px 3px 0;
}

.tutorial-steps {
  width: 100%;
  padding: 0;
  display: grid;
  list-style: none;
  border-top: 1px solid #e1e7f0;
}

.tutorial-steps li {
  min-height: 40px;
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.tutorial-steps span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #eef5ff;
  color: var(--blue);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.tutorial-steps strong {
  color: #26334f;
  font-size: 0.78rem;
  font-weight: 600;
}

.gallery-copy h2 {
  max-width: 335px;
  font-size: 1.62rem;
}

.output-tabs {
  width: 100%;
  margin: 10px 0 8px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border-radius: 14px;
  background: #eff3f8;
}

.output-tabs button {
  min-height: 36px;
  padding: 7px 6px;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5b6880;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.output-tabs button[aria-selected="true"] {
  background: #ffffff;
  box-shadow:
    0 1px 2px rgb(9 24 55 / 8%),
    0 4px 10px rgb(9 24 55 / 7%);
  color: var(--blue);
}

.event-navigator {
  width: 100%;
  min-height: 43px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 9px;
}

.event-navigator > button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #d8e0ec;
  border-radius: 50%;
  background: #ffffff;
  color: var(--blue);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
}

.event-navigator > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.event-navigator span {
  color: var(--blue);
  font-size: 0.64rem;
  font-weight: 700;
}

.event-navigator strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output-stage {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  outline: none;
}

.visual-note-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.visual-note-stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 9px 16px rgb(8 19 49 / 12%));
  animation: note-enter 180ms ease-out both;
}

@keyframes note-enter {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.text-output-panel {
  width: 100%;
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dfe6f0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgb(248 251 255 / 94%), #ffffff 35%),
    #ffffff;
  box-shadow: 0 10px 22px rgb(9 29 64 / 8%);
  animation: note-enter 180ms ease-out both;
}

.text-output-panel > header {
  padding-bottom: 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid #e4e9f1;
}

.text-output-panel > header span {
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.text-output-panel > header strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.transcript-lines {
  padding: 5px 0;
  display: grid;
}

.transcript-lines p {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  border-bottom: 1px solid #edf1f6;
}

.transcript-lines time {
  color: var(--blue);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.transcript-lines span {
  color: #394861;
  font-size: 0.78rem;
  line-height: 1.45;
}

.text-output-panel > footer {
  margin-top: auto;
  padding-top: 12px;
  color: #778198;
  font-size: 0.65rem;
  text-align: center;
}

.summary-intro {
  margin-top: 15px;
  color: #5f6c83;
  font-size: 0.76rem;
  line-height: 1.45;
}

.summary-panel ul {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.summary-panel li {
  position: relative;
  padding-left: 28px;
  color: #34435e;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.summary-panel li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf3ff;
  color: var(--blue);
  content: "✓";
  font-size: 0.65rem;
  font-weight: 700;
}

.summary-panel blockquote {
  margin-top: auto;
  padding: 13px 14px;
  border-left: 3px solid #71adff;
  border-radius: 0 10px 10px 0;
  background: #f1f6fd;
  color: #526079;
  font-size: 0.69rem;
  font-style: normal;
  line-height: 1.4;
}

.voucher-screen {
  justify-content: space-evenly;
}

.voucher-copy {
  margin-bottom: 0;
}

.voucher-copy .lead {
  max-width: 325px;
}

.voucher-ticket {
  position: relative;
  padding: 19px 18px 17px;
  overflow: hidden;
  border: 1px solid #bd861b;
  border-radius: var(--radius-panel);
  background:
    radial-gradient(circle at 86% 13%, rgb(255 255 255 / 72%), transparent 24%),
    linear-gradient(145deg, #fff7cf 0%, #f7d77d 43%, #e4b345 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 82%),
    inset 0 -3px 0 rgb(132 84 5 / 14%),
    0 8px 0 #b77c18,
    0 20px 30px rgb(126 79 0 / 21%);
}

.voucher-ticket::before,
.voucher-ticket::after {
  position: absolute;
  top: 113px;
  width: 22px;
  height: 22px;
  border: 1px solid #bd861b;
  border-radius: 50%;
  background: #ffffff;
  content: "";
}

.voucher-ticket::before {
  left: -13px;
}

.voucher-ticket::after {
  right: -13px;
}

.voucher-ticket-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #70500f;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.voucher-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #365f32;
  letter-spacing: 0;
  text-transform: none;
}

.voucher-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43853c;
  box-shadow: 0 0 0 3px rgb(67 133 60 / 14%);
}

.voucher-seal {
  position: absolute;
  top: 54px;
  right: 20px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(138 86 4 / 25%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff5bc, transparent 24%),
    linear-gradient(145deg, #e7b43d, #bd7d12);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 58%),
    0 5px 0 #98620b,
    0 10px 18px rgb(113 68 0 / 21%);
  color: #fff7d0;
  font-size: 1.42rem;
  text-shadow: 0 1px 1px rgb(95 57 0 / 35%);
}

.voucher-duration {
  margin-top: 17px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.voucher-duration strong {
  color: #3e2b09;
  font-size: 4.4rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.09em;
  line-height: 0.78;
}

.voucher-duration span {
  padding-bottom: 2px;
  color: #634816;
  font-size: 1rem;
  font-weight: 600;
}

.voucher-rule {
  height: 1px;
  margin: 20px 0 13px;
  background: repeating-linear-gradient(90deg, rgb(120 78 9 / 42%) 0 7px, transparent 7px 13px);
}

.voucher-ticket > p {
  max-width: 285px;
  color: #614a1f;
  font-size: 0.76rem;
  line-height: 1.45;
}

.meetingai-destination {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.meetingai-destination > p {
  margin-bottom: 8px;
  color: #68748a;
  font-size: 0.67rem;
}

.meetingai-destination > img {
  width: 112px;
  height: auto;
}

.store-links {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.store-links span {
  min-width: 0;
  flex: 1 1 0;
  border-radius: 8px;
}

.store-links img {
  width: 100%;
  height: 30px;
  object-fit: contain;
}

.story-footer {
  min-height: 91px;
  padding: 10px var(--content-gutter) calc(14px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  border-top: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / 72%), #ffffff 30%);
  box-shadow: 0 -12px 25px rgb(255 255 255 / 92%);
  z-index: 4;
}

.story-primary-button {
  width: 100%;
  min-height: 56px;
  padding: 12px 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #105ab6;
  border-radius: 18px;
  background: linear-gradient(180deg, #4c98ff 0%, #1767d2 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 40%),
    inset 0 -1px 0 rgb(0 0 0 / 12%),
    0 2px 6px -1px rgb(23 103 210 / 40%),
    0 6px 18px -4px rgb(23 103 210 / 36%);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    box-shadow 140ms ease,
    filter 140ms ease,
    transform 140ms ease;
}

.story-primary-button > span:first-child {
  display: inline;
}

.button-arrow {
  display: none;
}

.story-primary-button:hover {
  filter: brightness(1.04);
}

.story-primary-button:active {
  transform: scale(0.98);
}

@media (max-width: 479px) {
  .page-shell {
    padding: 0;
  }

  .phone-canvas {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-height: 760px) {
  .story-header {
    min-height: 51px;
    padding-top: 8px;
    padding-bottom: 4px;
  }

  .story-footer {
    min-height: 78px;
    padding-top: 7px;
    padding-bottom: 10px;
  }

  .story-primary-button {
    min-height: 52px;
  }

  .screen-copy h1,
  .screen-copy h2 {
    font-size: 1.58rem;
  }

  .lead {
    font-size: 0.78rem;
  }

  .opening-visual {
    margin-top: 5px;
    margin-bottom: 3px;
  }

  .opening-visual img {
    max-height: 335px;
  }

  .occasion-list {
    font-size: 0.74rem;
  }

  .tutorial-device {
    width: 146px;
    margin-block: 5px;
  }

  .tutorial-steps li {
    min-height: 30px;
  }

  .gallery-copy h2 {
    font-size: 1.46rem;
  }

  .output-tabs {
    margin-top: 6px;
    margin-bottom: 3px;
    gap: 5px;
  }

  .event-navigator {
    min-height: 36px;
    margin-bottom: 4px;
  }

  .event-navigator > button {
    width: 34px;
    height: 34px;
  }

  .text-output-panel {
    padding: 14px;
  }

  .voucher-copy {
    margin-bottom: 10px;
  }

  .voucher-ticket {
    padding-block: 15px;
  }

  .voucher-duration strong {
    font-size: 3.7rem;
  }

  .meetingai-destination {
    margin-top: 10px;
  }

  .store-links {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .tutorial-device video {
    visibility: hidden;
  }

  .tutorial-device .device-screen {
    background: url("/store-assets/meetingai-islam-listening-v4.webp") center / contain no-repeat #ffffff;
  }
}
/* ---- TSElvoucher storefront additions (guided journey + commerce) ---- */

/* Story step visibility */
.story-screen[hidden],
.story-footer[hidden] {
  display: none;
}

.story-content--scrollable {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.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;
}

a.back-button {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.detail-title {
  grid-column: 2;
  justify-self: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Products step */
.products-screen {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.products-copy {
  margin-bottom: 14px;
}

.store-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--soft);
  color: var(--ink);
  font: inherit;
}

.sort-bar {
  display: flex;
  gap: 8px;
}

.sort-bar button {
  flex: 1 1 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}

.sort-bar button[aria-pressed='true'] {
  border-color: var(--blue);
  background: #f0f6ff;
  color: var(--blue);
}

.product-list {
  display: grid;
  gap: 10px;
}

.product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: #ffffff;
  text-decoration: none;
  color: inherit;
}

.product-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.product-card-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.product-card-price {
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.state-panel {
  padding: 32px 12px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.state-panel--error {
  color: var(--ink);
}

.retry-button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 26px;
  border: 1px solid #105ab6;
  border-radius: var(--radius-control);
  background: linear-gradient(180deg, #4c98ff 0%, #1767d2 100%);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

/* Product detail + checkout */
.product-detail-card,
.checkout-form,
.qris-panel,
.status-card,
.success-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: #ffffff;
}

.product-detail-card {
  padding: 20px;
  margin-bottom: 14px;
}

.product-detail-card h1 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.price-line {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 700;
}

.validity-line {
  color: var(--muted);
  font-size: 0.85rem;
}

.checkout-form {
  padding: 20px;
}

.checkout-form h2 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--soft);
  color: var(--ink);
  font: inherit;
}

.field-error {
  margin-top: 4px;
  color: #c2261f;
  font-size: 0.78rem;
}

.checkout-error {
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px solid #efc0c0;
  border-radius: var(--radius-control);
  background: #fff0f0;
  color: #a02018;
  font-size: 0.82rem;
}

.checkout-submit {
  width: 100%;
  min-height: 52px;
  border: 1px solid #105ab6;
  border-radius: 18px;
  background: linear-gradient(180deg, #4c98ff 0%, #1767d2 100%);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
}

.checkout-submit:disabled {
  cursor: not-allowed;
  filter: grayscale(0.6) brightness(0.9);
}

.qris-panel {
  padding: 20px;
  margin-bottom: 14px;
  text-align: center;
}

.qris-panel h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.qris-panel .amount {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 700;
}

.qris-panel canvas {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.qris-instructions {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.qris-instructions a {
  color: var(--blue);
  font-weight: 600;
}

/* Success */
.success-panel {
  padding: 22px 18px;
}

.success-panel .lead {
  margin-bottom: 18px;
}

.voucher-code-box {
  margin: 18px 0;
  padding: 16px;
  border: 1px dashed var(--blue);
  border-radius: var(--radius-control);
  background: #f0f6ff;
  text-align: center;
}

.voucher-code-value {
  display: block;
  color: var(--blue-dark);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
}

.voucher-code-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.copy-btn {
  margin-top: 10px;
  padding: 8px 18px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-control);
  background: #ffffff;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
}

.redeem-btn {
  display: block;
  margin-top: 18px;
  padding: 14px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #4c98ff 0%, #1767d2 100%);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.back-store {
  margin-top: 18px;
  text-align: center;
  font-size: 0.85rem;
}

.back-store a {
  color: var(--blue);
  font-weight: 600;
}

/* Failed + shared status */
.status-card {
  padding: 28px 22px;
  text-align: center;
}

.status-card h1 {
  margin-bottom: 10px;
  color: #a02018;
  font-size: 1.2rem;
}

.status-card p {
  margin-bottom: 20px;
  color: var(--muted);
}

.pending-panel,
.error-panel {
  padding: 40px 18px;
  text-align: center;
}

.pending-panel p,
.error-panel p {
  margin-bottom: 10px;
  color: var(--muted);
}

@media (hover: hover) {
  .product-card:hover {
    border-color: #b9cdea;
    box-shadow: 0 6px 18px rgb(8 19 49 / 8%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .product-card,
  .sort-bar button,
  .copy-btn {
    transition:
      box-shadow 140ms ease,
      transform 140ms ease,
      border-color 140ms ease;
  }

  .product-card:active,
  .sort-bar button:active,
  .copy-btn:active {
    transform: scale(0.98);
  }
}
