:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --panel: #ffffff;
  --text: #172126;
  --muted: #60717a;
  --line: #d7e0e4;
  --primary: #0b6b5f;
  --primary-strong: #07564c;
  --warn: #ad5b00;
  --error-bg: #ffe9e3;
  --success-bg: #e2f5ef;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 42px);
}

.eyebrow,
.step {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
}

.nav-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.layout {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px clamp(16px, 4vw, 42px);
}

.single-layout {
  display: grid;
  margin: 0 auto;
  max-width: 560px;
  padding: 36px clamp(16px, 4vw, 42px);
}

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

.customer-action-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.wide-panel {
  grid-column: 1 / -1;
}

.otp-panel {
  min-height: 360px;
}

.panel-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.form {
  display: grid;
  gap: 10px;
}

.form + .form {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
button {
  border-radius: 8px;
  font: inherit;
  min-height: 44px;
}

input,
select {
  background: #ffffff;
  border: 1px solid #b9c8cd;
  color: var(--text);
  padding: 10px 12px;
  width: 100%;
}

button {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

button:hover {
  background: var(--primary-strong);
}

button:disabled {
  background: #9aabad;
  border-color: #9aabad;
  cursor: not-allowed;
}

.secondary-button {
  background: #ffffff;
  color: var(--primary);
}

.secondary-button:hover {
  background: #eef7f5;
}

.inline-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.checkbox-row {
  align-items: center;
  color: var(--text);
  display: flex;
  gap: 10px;
}

.checkbox-row input {
  min-height: auto;
  width: auto;
}

.status {
  background: var(--success-bg);
  border-radius: 8px;
  color: #165241;
  margin: 14px 0 0;
  min-height: 42px;
  padding: 11px 12px;
}

.status:empty {
  display: none;
}

.helper-text {
  color: var(--muted);
  font-weight: 700;
  margin: 0;
}

.notice {
  background: var(--success-bg);
  border-radius: 8px;
  color: #165241;
  font-weight: 700;
  margin: 14px 0 0;
  padding: 11px 12px;
}

.notice.is-warning {
  background: #fff4de;
  color: var(--warn);
}

.disabled-panel {
  opacity: 0.58;
}

.disabled-panel.is-ready {
  opacity: 1;
}

.result-box {
  background: #11191d;
  border-radius: 8px;
  color: #eaf2f4;
  margin: 0;
  min-height: 180px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.compact-box {
  min-height: 88px;
}

.hidden {
  display: none !important;
}

.result-panel {
  grid-column: span 1;
}

.is-error {
  background: var(--error-bg);
  color: #8a2c18;
}

@media (max-width: 920px) {
  .layout,
  .admin-layout,
  .customer-action-layout {
    grid-template-columns: 1fr;
  }

  .result-panel {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    gap: 14px;
  }

  .inline-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 24px;
  }
}

.kiosk-page {
  --kiosk-ink: #15171d;
  --kiosk-muted: #5f6673;
  --kiosk-line: #d9dde6;
  --kiosk-soft: #f7f8fb;
  --kiosk-primary: #1f6f61;
  background:
    radial-gradient(circle at 28% 16%, rgba(78, 160, 255, 0.14), transparent 22%),
    radial-gradient(circle at 68% 12%, rgba(255, 209, 94, 0.16), transparent 20%),
    #fbfbfc;
  color: var(--kiosk-ink);
  min-height: 100vh;
}

.kiosk-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(18px, 3vw, 54px) 8px;
}

.kiosk-actions {
  display: flex;
  gap: 10px;
}

.pill-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 2px solid #394052;
  border-radius: 999px;
  color: #273044;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  min-width: 104px;
  padding: 9px 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.pill-button:hover {
  background: #ffffff;
  color: #111827;
}

.pill-button:disabled {
  opacity: 0.45;
}

.language-button {
  min-width: 92px;
}

.kiosk-main {
  margin: 0 auto;
  max-width: 1120px;
  min-height: calc(100vh - 150px);
  padding: 12px clamp(18px, 3vw, 54px) 70px;
}

.kiosk-step {
  animation: kioskIn 180ms ease-out;
  display: grid;
  justify-items: center;
}

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

.kiosk-title {
  color: #12141a;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 950;
  line-height: 1.04;
  margin: 38px 0 30px;
  text-align: center;
}

.kiosk-eyebrow {
  color: var(--kiosk-primary);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.kiosk-helper {
  color: var(--kiosk-muted);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 22px;
  text-align: center;
}

.platform-grid {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  max-width: 760px;
  width: 100%;
}

.platform-card {
  background: transparent;
  border: 0;
  color: var(--kiosk-ink);
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 0;
}

.platform-card:hover .platform-art,
.choice-card:hover,
.transaction-card:hover {
  transform: translateY(-2px);
}

.platform-art {
  align-items: center;
  aspect-ratio: 1.3 / 1;
  border-radius: 34px;
  box-shadow: 0 18px 42px rgba(18, 25, 38, 0.22);
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease;
  width: min(100%, 330px);
}

.river-art {
  background:
    radial-gradient(circle at 22% 20%, rgba(142, 240, 255, 0.95), transparent 13%),
    radial-gradient(circle at 82% 78%, rgba(107, 224, 255, 0.95), transparent 16%),
    radial-gradient(circle at 50% 45%, rgba(77, 229, 255, 0.8), transparent 28%),
    linear-gradient(145deg, #063288, #081a58 56%, #151548);
  color: #e7f8ff;
  font-size: clamp(92px, 15vw, 150px);
  font-weight: 950;
  text-shadow: 0 0 18px rgba(88, 229, 255, 0.86);
}

.river-art::before,
.river-art::after {
  border: 6px solid rgba(35, 230, 255, 0.5);
  border-radius: 50%;
  content: "";
  height: 72%;
  position: absolute;
  width: 72%;
}

.river-art::after {
  border-color: rgba(255, 46, 194, 0.34);
  height: 88%;
  width: 88%;
}

.thunder-art {
  background:
    radial-gradient(circle at 76% 22%, rgba(255, 245, 116, 0.34), transparent 22%),
    linear-gradient(145deg, #2b1057, #6124b2 55%, #2e124a);
  color: #ffffff;
  flex-direction: column;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 950;
  font-style: italic;
  line-height: 0.92;
  text-shadow: 4px 5px 0 rgba(32, 13, 76, 0.58);
}

.thunder-art strong {
  color: #ffd43b;
  font-size: clamp(110px, 15vw, 168px);
  line-height: 0.62;
  text-shadow: 5px 7px 0 rgba(255, 64, 17, 0.74);
}

.platform-caption {
  color: #171923;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.22;
  text-align: center;
}

.how-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  width: min(1120px, 100%);
}

.how-card {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #2f3443;
  border-radius: 30px;
  display: grid;
  gap: 18px;
  justify-items: center;
  min-height: 390px;
  padding: 26px 22px;
  text-align: center;
}

.how-card h2 {
  color: #232632;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 950;
  line-height: 1.16;
}

.how-card p {
  color: #555c6c;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.28;
  margin: 0;
}

.how-icon {
  align-items: center;
  border-radius: 22px;
  box-shadow: 0 16px 28px rgba(27, 34, 48, 0.2);
  display: flex;
  height: 148px;
  justify-content: center;
  position: relative;
  width: 100%;
}

.how-create {
  background: linear-gradient(145deg, #dfb12f, #f0c657);
}

.how-purchase {
  background: linear-gradient(145deg, #c92ca1, #e75cbf);
}

.how-app {
  background: linear-gradient(145deg, #565bdc, #7369f0);
}

.how-redeem {
  background: linear-gradient(145deg, #309da0, #52bdc1);
}

.how-person {
  border: 8px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  height: 74px;
  position: relative;
  width: 84px;
}

.how-person::before {
  border: 7px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  content: "";
  height: 24px;
  left: 22px;
  position: absolute;
  top: 15px;
  width: 24px;
}

.how-person::after {
  border: 7px solid rgba(255, 255, 255, 0.78);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  content: "";
  height: 22px;
  left: 14px;
  position: absolute;
  top: 47px;
  width: 42px;
}

.how-plus {
  color: rgba(255, 255, 255, 0.84);
  font-size: 48px;
  font-weight: 950;
  left: calc(50% + 26px);
  position: absolute;
  top: 34px;
}

.how-plus::before {
  content: "+";
}

.how-receipt {
  border: 8px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px 12px 20px 20px;
  height: 74px;
  position: relative;
  width: 84px;
}

.how-receipt::before,
.how-receipt::after {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 99px;
  content: "";
  height: 7px;
  left: 18px;
  position: absolute;
  width: 40px;
}

.how-receipt::before {
  top: 22px;
}

.how-receipt::after {
  top: 40px;
}

.how-controller {
  border: 8px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px 34px 24px 24px;
  height: 58px;
  position: relative;
  width: 128px;
}

.how-controller::before {
  color: rgba(255, 255, 255, 0.78);
  content: "+";
  font-size: 42px;
  font-weight: 900;
  left: 20px;
  line-height: 1;
  position: absolute;
  top: 0;
}

.how-controller::after {
  border: 7px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  content: "";
  height: 16px;
  position: absolute;
  right: 22px;
  top: 13px;
  width: 16px;
}

.how-wallet {
  border: 8px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  height: 72px;
  position: relative;
  transform: rotate(-14deg);
  width: 98px;
}

.how-wallet::before {
  border: 8px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  content: "";
  height: 44px;
  left: -8px;
  position: absolute;
  top: -50px;
  width: 44px;
}

.how-wallet::after {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  content: "";
  height: 30px;
  position: absolute;
  right: -16px;
  top: 21px;
  width: 36px;
}

.login-grid,
.transaction-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  width: min(820px, 100%);
}

.choice-card,
.transaction-card,
.account-card,
.receipt-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--kiosk-line);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(20, 28, 43, 0.08);
  color: var(--kiosk-ink);
  padding: 26px;
}

.choice-card {
  display: grid;
  gap: 8px;
  min-height: 140px;
  text-align: left;
  transition: transform 160ms ease;
}

.choice-card span {
  font-size: 28px;
  font-weight: 950;
}

.choice-card small {
  color: var(--kiosk-muted);
  font-size: 16px;
  font-weight: 800;
}

.kiosk-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  width: min(720px, 100%);
}

.kiosk-form label {
  color: var(--kiosk-muted);
  font-size: 17px;
  font-weight: 900;
}

.kiosk-form input {
  border: 2px solid #c6ced8;
  border-radius: 14px;
  font-size: 26px;
  font-weight: 800;
  min-height: 68px;
  padding: 12px 18px;
}

.kiosk-form button,
.wide-action {
  background: var(--kiosk-primary);
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  min-height: 68px;
  padding: 14px 24px;
}

.kiosk-form button:hover,
.wide-action:hover {
  background: #185b50;
}

.kiosk-inline {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.kiosk-status {
  background: #e8f6f0;
  border-radius: 14px;
  color: #185342;
  font-size: 18px;
  font-weight: 900;
  margin: 24px auto 0;
  max-width: 900px;
  min-height: 52px;
  padding: 15px 18px;
  width: 100%;
}

.kiosk-status:empty {
  display: none;
}

.kiosk-status.is-warning {
  background: #fff3d9;
  color: #9d5b13;
}

.kiosk-footer {
  align-items: center;
  bottom: 0;
  color: #323746;
  display: grid;
  font-size: 14px;
  font-weight: 900;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  left: 0;
  padding: 0 clamp(18px, 3vw, 54px) 18px;
  position: fixed;
  right: 0;
}

.kiosk-footer span:nth-child(2) {
  text-align: center;
}

.kiosk-footer span:last-child {
  text-align: right;
}

.transaction-main {
  max-width: 1220px;
}

.transaction-screen {
  display: grid;
  gap: 24px;
}

.account-card {
  padding: 22px 26px;
}

.transaction-title {
  font-size: clamp(28px, 4vw, 44px);
}

.transaction-card h2 {
  border-bottom: 1px solid var(--kiosk-line);
  font-size: 30px;
  margin: 0 0 20px;
  padding-bottom: 18px;
}

.bounceback-row {
  font-size: 18px;
  font-weight: 900;
}

.transaction-status {
  max-width: none;
}

.receipt-screen {
  display: grid;
  justify-items: center;
}

.receipt-card {
  max-width: 860px;
  width: 100%;
}

.receipt-card h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 22px;
}

.receipt-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 240px minmax(0, 1fr);
}

#receipt-qr {
  background: #ffffff;
  border: 8px solid #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.16);
}

.receipt-details {
  display: grid;
  gap: 12px;
  margin: 0;
}

.receipt-details div {
  border-bottom: 1px solid var(--kiosk-line);
  display: grid;
  gap: 8px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding-bottom: 12px;
}

.receipt-details dt {
  color: var(--kiosk-muted);
  font-weight: 900;
}

.receipt-details dd {
  font-size: 20px;
  font-weight: 950;
  margin: 0;
  overflow-wrap: anywhere;
}

.receipt-message {
  background: #e8f6f0;
  border-radius: 14px;
  color: #185342;
  font-size: 20px;
  font-weight: 950;
  padding: 16px 18px;
}

.wide-action {
  width: 100%;
}

@media (max-width: 820px) {
  .platform-grid,
  .login-grid,
  .transaction-grid,
  .receipt-layout,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .kiosk-topbar {
    gap: 12px;
  }

  .kiosk-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .kiosk-inline {
    grid-template-columns: 1fr;
  }

  .kiosk-footer {
    position: static;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .kiosk-footer span,
  .kiosk-footer span:nth-child(2),
  .kiosk-footer span:last-child {
    text-align: center;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
