 :root {
  --teal: #12bfa7; --teal-dark: #079b87; --teal-deep: #087f70; --mint: #e7faf6;
  --ink: #172b2a; --muted: #748481; --line: #e4ecea; --soft: #f8fbfa;
  --shadow: 0 16px 48px rgba(21, 83, 74, .07);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f4f8f7; color: var(--ink); font-family: "DM Sans", sans-serif; padding: 28px 16px; }
button, input { font: inherit; }
.app-shell { width: min(1120px, 100%); min-height: calc(100vh - 56px); margin: 0 auto; background: #fff; border: 1px solid #eaf0ee; border-radius: 28px; box-shadow: 0 22px 80px rgba(23, 66, 60, .08); overflow: hidden; position: relative; display: flex; flex-direction: column; }
.top-accent { height: 5px; background: linear-gradient(90deg, #12bfa7 0%, #8be3d5 52%, #d9f8f1 100%); }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(22px, 5vw, 60px); border-bottom: 1px solid #f0f4f3; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px Manrope, sans-serif; letter-spacing: -1px; }
.brand-mark { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--mint); color: var(--teal-dark); }
.brand-mark svg { width: 20px; height: 20px; }
.brand-highlight { color: var(--teal-dark); }
.header-right { display: flex; align-items: center; gap: 16px; }
.session-label { display: inline-flex; align-items: center; gap: 8px; color: #61736f; font-size: 12px; font-weight: 600; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #15bf8e; box-shadow: 0 0 0 4px rgba(21,191,142,.12); flex: 0 0 auto; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; color: #6d807c; background: white; transition: .2s; }
.icon-button:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--mint); }
.icon-button svg { width: 18px; }
.step-progress { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 22px 5px; }
.progress-step { display: flex; align-items: center; gap: 8px; color: #9aa9a6; font-size: 11px; white-space: nowrap; }
.progress-step > span { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #dfe8e5; background: white; font-weight: 700; font-size: 11px; }
.progress-step.active { color: var(--teal-deep); font-weight: 700; }
.progress-step.active > span, .progress-step.done > span { background: var(--teal); color: #fff; border-color: var(--teal); }
.progress-step.done { color: #4e8e82; }
.progress-line { width: clamp(15px, 4vw, 46px); height: 1px; background: #e4ece9; }
.screen { display: none; padding: 42px clamp(22px, 6vw, 72px) 34px; animation: enter .42s ease both; flex: 1; }
.screen.screen-active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.section-heading { text-align: center; margin: 0 auto 34px; max-width: 610px; }
.eyebrow { color: var(--teal-dark); font-size: 10px; font-weight: 800; letter-spacing: 1.6px; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.eyebrow svg { width: 14px; height: 14px; }
h1, h2, h3, .section-heading h1 { font-family: Manrope, sans-serif; letter-spacing: -1.2px; font-weight: 800; }
.section-heading h1 { font-size: clamp(27px, 3vw, 37px); margin: 0 0 10px; }
.section-heading p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-card { position: relative; text-align: center; min-height: 205px; border: 1px solid #e3ebe8; background: #fff; border-radius: 19px; padding: 26px 14px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; color: var(--ink); transition: border-color .25s, background .25s, box-shadow .25s, transform .25s; cursor: pointer; }
.category-card:hover { transform: translateY(-3px); border-color: #9de8dc; box-shadow: 0 12px 26px rgba(10, 157, 135, .08); }
.category-card.selected { border: 2px solid var(--teal); background: #f2fdfa; box-shadow: 0 9px 24px rgba(18,191,167,.09); padding: 25px 13px 21px; }
.category-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 23px; color: var(--teal-dark); transition: transform .25s; }
.category-card.selected .category-icon { transform: scale(1.04); }
.category-icon svg { width: 34px; height: 34px; stroke-width: 1.7; }
.icon-mint { background: #dff8f1; color: #079b87; }
.icon-blue { background: #e7f3ff; color: #4488bb; }
.icon-peach { background: #fff0e6; color: #d98654; }
.icon-lime { background: #eef8df; color: #7aa644; }
.category-name { font-weight: 700; font-size: 14px; }
.category-desc { font-size: 11px; color: #8a9a96; line-height: 1.4; }
.selection-check { position: absolute; top: 12px; right: 12px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: white; opacity: 0; transform: scale(.7); transition: .2s; }
.selection-check svg { width: 13px; height: 13px; stroke-width: 3; }
.selected .selection-check { opacity: 1; transform: scale(1); }
.screen-footer { display: flex; flex-direction: column; align-items: center; gap: 21px; margin-top: 34px; }
.carousel-dots { display: flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 10px; background: #d9e5e1; transition: .25s; }
.dot.active { width: 23px; background: var(--teal); }
.btn-primary-custom, .btn-secondary-custom { min-height: 48px; border-radius: 14px; padding: 0 23px; display: inline-flex; justify-content: center; align-items: center; gap: 11px; font-weight: 700; font-size: 13px; border: 1px solid transparent; transition: .22s; cursor: pointer; }
.btn-primary-custom { background: var(--teal); color: #063b35; box-shadow: 0 7px 16px rgba(18,191,167,.18); }
.btn-primary-custom:hover:not(:disabled) { background: #0eb29c; color: #052e29; transform: translateY(-1px); box-shadow: 0 10px 21px rgba(18,191,167,.25); }
.btn-primary-custom:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-primary-custom svg, .btn-secondary-custom svg { width: 17px; height: 17px; }
.screen-footer .btn-primary-custom { min-width: 170px; border-radius: 999px; }
.btn-secondary-custom { color: #526762; background: #fff; border-color: #dce7e3; }
.btn-secondary-custom:hover { border-color: var(--teal); color: var(--teal-deep); background: #f5fdfa; }
.footnote, .demo-note { margin: 24px 0 0; text-align: center; color: #93a19e; font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.footnote svg, .demo-note svg { width: 14px; height: 14px; }
.form-card { max-width: 620px; margin: 0 auto; padding: clamp(22px, 4vw, 38px); border: 1px solid #e6eeeb; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.form-illustration { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid #edf2f0; }
.form-illustration .category-icon { width: 54px; height: 54px; border-radius: 17px; flex: 0 0 auto; }
.form-illustration .category-icon svg { width: 25px; }
.form-illustration strong { font-size: 14px; }
.form-illustration p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.form-label { font-size: 12px; font-weight: 700; color: #334a45; margin-bottom: 9px; }
.required { color: #e05b5b; }
.optional { font-weight: 400; color: #8b9b97; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #91a29d; z-index: 2; }
.input-wrap .form-control { height: 49px; border: 1px solid #dfe8e4; border-radius: 12px; padding: 0 15px 0 44px; font-size: 13px; box-shadow: none; color: var(--ink); }
.input-wrap .form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18,191,167,.1); }
.input-wrap .form-control.is-invalid { border-color: #dc6b6b; background-image: none; }
.field-hint { color: #8b9b97; font-size: 11px; margin-top: 8px; line-height: 1.5; }
.invalid-feedback { font-size: 11px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.privacy-note { max-width: 620px; margin: 18px auto 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #91a09c; font-size: 11px; text-align: center; }
.privacy-note svg { width: 15px; color: var(--teal-dark); flex: 0 0 auto; }
.section-heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; text-align: left; gap: 20px; margin-bottom: 25px; }
.section-heading-row h1 { font-size: clamp(26px, 3vw, 34px); }
.basket-count { border-radius: 999px; padding: 8px 12px; background: #effaf7; color: var(--teal-deep); font-size: 11px; font-weight: 700; white-space: nowrap; margin-bottom: 4px; }
.points-panel { border-radius: 22px; padding: 25px 28px; background: linear-gradient(115deg, #e4faf4, #f3fcf9 72%, #e7f9f4); display: flex; align-items: center; justify-content: space-between; overflow: hidden; }
.points-caption { color: #4d8980; font-size: 12px; font-weight: 600; }
.points-number { display: flex; align-items: baseline; gap: 8px; margin: 3px 0 8px; }
.points-number strong { font: 800 39px Manrope, sans-serif; letter-spacing: -2px; color: #079b87; }
.points-number span { color: #348c7e; font-size: 14px; font-weight: 600; }
.points-subtitle { display: flex; align-items: center; gap: 8px; color: #67968d; font-size: 11px; }
.points-art { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 25px; background: rgba(255,255,255,.65); color: #18bca4; transform: rotate(8deg); }
.points-art svg { width: 40px; height: 40px; stroke-width: 1.5; }
.basket-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 14px; }
.basket-toolbar h2 { font-size: 17px; margin: 0; letter-spacing: -.4px; }
.muted-small { color: #91a09c; font-size: 11px; }
.basket-list { display: flex; flex-direction: column; gap: 10px; }
.basket-row { display: flex; align-items: center; gap: 14px; border: 1px solid #e6eeeb; border-radius: 16px; padding: 15px 17px; animation: enter .3s ease both; }
.basket-row .category-icon { width: 48px; height: 48px; border-radius: 15px; flex: 0 0 auto; }
.basket-row .category-icon svg { width: 23px; height: 23px; }
.basket-item-copy { flex: 1; min-width: 0; }
.basket-item-copy strong { font-size: 13px; display: block; }
.basket-item-copy span { color: #8a9a96; font-size: 11px; display: block; margin-top: 4px; }
.basket-item-points { text-align: right; white-space: nowrap; }
.basket-item-points strong { display: block; font-size: 13px; }
.basket-item-points span { color: #079b87; font-size: 10px; margin-top: 4px; display: block; }
.empty-state { border: 1px dashed #d9e7e2; border-radius: 16px; padding: 30px 20px; text-align: center; color: #8b9b97; }
.empty-icon { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: #f0faf7; color: #79b9ad; }
.empty-icon svg { width: 25px; }
.empty-state strong { display: block; color: #536b65; font-size: 13px; }
.empty-state p { max-width: 350px; margin: 7px auto 0; font-size: 11px; line-height: 1.6; }
.machine-panel { display: flex; align-items: center; gap: 13px; border: 1px solid #c9eee5; background: #fbfffe; border-radius: 16px; padding: 15px 17px; margin-top: 17px; }
.machine-status-icon { width: 40px; height: 40px; border-radius: 13px; background: #e5faf4; color: var(--teal-dark); display: grid; place-items: center; flex: 0 0 auto; }
.machine-status-icon svg { width: 20px; }
.machine-copy { flex: 1; min-width: 0; }
.machine-copy strong { font-size: 12px; }
.machine-copy p { margin: 4px 0 0; color: #8b9b97; font-size: 11px; line-height: 1.5; }
.status-pill { border-radius: 999px; background: #e8f9ef; color: #25865e; font-size: 10px; font-weight: 700; padding: 6px 9px; }
.status-pill.processing { background: #fff5dd; color: #9b711e; }
.basket-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.demo-note { margin-top: 18px; }
.success-content { max-width: 590px; margin: 0 auto; text-align: center; }
.success-icon { position: relative; width: 86px; height: 86px; margin: 0 auto 23px; border-radius: 50%; background: #ddf8ee; color: #0eae8d; display: grid; place-items: center; box-shadow: 0 0 0 10px #f2fcf8; animation: pop-in .5s cubic-bezier(.2,.8,.2,1) both; }
.success-icon > svg { width: 42px; height: 42px; stroke-width: 2.4; }
@keyframes pop-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.success-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #f4c96b; }
.spark-one { top: 4px; right: -7px; }.spark-two { bottom: 4px; left: -8px; background: #7edbca; }
.success-eyebrow { margin-bottom: 9px; }
.success-content h1 { font-size: clamp(28px, 4vw, 37px); margin: 0 0 10px; }
.success-description { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 440px; margin: 0 auto 24px; }
.success-points { border: 1px solid #c8f0e6; background: linear-gradient(120deg, #e8fbf6, #f7fdfa); border-radius: 20px; padding: 21px; display: flex; flex-direction: column; gap: 5px; color: #4e8e82; font-size: 12px; }
.success-points > strong { color: #079b87; font: 800 38px Manrope, sans-serif; letter-spacing: -1.5px; }
.success-points small { font-size: 13px; letter-spacing: 0; }
.transaction-id { color: #7e9c95; font-size: 10px; margin-top: 3px; }
.success-info { display: flex; gap: 13px; text-align: left; border: 1px solid #e5eeea; border-radius: 16px; padding: 17px; margin: 16px 0 18px; }
.info-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; background: #e8faf5; color: #079b87; display: grid; place-items: center; }
.info-icon svg { width: 21px; }
.success-info strong { font-size: 12px; }
.success-info p { margin: 5px 0 7px; color: #849590; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.email-status { display: inline-flex; align-items: center; gap: 5px; color: #9a7b37; font-size: 10px; }
.email-status svg { width: 13px; height: 13px; }
.receipt-preview { background: #fff; border: 1px dashed #cddbd6; border-radius: 14px; padding: 19px 20px; text-align: left; margin: 0 0 19px; }
.receipt-brand { display: flex; align-items: center; gap: 8px; font: 800 14px Manrope, sans-serif; }
.receipt-brand .brand-mark { width: 27px; height: 27px; border-radius: 9px; }.receipt-brand .brand-mark svg { width: 16px; }
.receipt-tag { margin-left: auto; color: #7c928c; font: 700 8px "DM Sans",sans-serif; letter-spacing: 1px; }
.receipt-meta { display: flex; justify-content: space-between; gap: 12px; color: #879691; font-size: 10px; margin-top: 15px; }
.receipt-divider { border-top: 1px dashed #d9e3df; margin: 13px 0; }
.receipt-line { display: flex; justify-content: space-between; gap: 12px; color: #586b66; font-size: 11px; margin: 9px 0; }
.receipt-line strong { color: #314c44; white-space: nowrap; }
.receipt-total { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.receipt-total strong { color: #079b87; font-size: 16px; }
.receipt-thanks { text-align: center; color: #8b9b97; font-size: 10px; margin: 17px 0 0; }
.success-actions { display: flex; justify-content: center; gap: 12px; }
.success-footnote { color: #9aa7a3; font-size: 10px; margin: 13px 0 0; }
.app-footer { display: flex; align-items: center; justify-content: center; gap: 7px; color: #a0afaa; font-size: 10px; padding: 17px 20px 22px; margin-top: auto; }
.app-footer span { color: var(--teal-dark); font-size: 15px; }
.app-toast { border: 1px solid #d7e9e3; border-radius: 13px; box-shadow: var(--shadow); }
.app-toast .toast-body { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.app-toast svg { width: 16px; color: var(--teal-dark); flex: 0 0 auto; }
.help-modal { border: 0; border-radius: 20px; overflow: hidden; }
.help-modal .modal-header { border-bottom-color: #edf2f0; padding: 20px 22px; }
.help-modal .modal-title { font: 800 17px Manrope, sans-serif; }
.help-modal .modal-body { padding: 20px 24px 24px; font-size: 13px; color: #526762; line-height: 1.7; }
.help-modal li { padding-left: 5px; margin-bottom: 8px; }
@media (max-width: 800px) {
  body { padding: 0; background: #fff; }
  .app-shell { border: 0; border-radius: 0; min-height: 100vh; box-shadow: none; }
  .app-header { padding: 18px 22px; }
  .step-progress { gap: 7px; padding-top: 17px; }
  .progress-step { gap: 5px; font-size: 9px; }
  .progress-step > span { width: 23px; height: 23px; }
  .progress-line { width: clamp(8px, 3vw, 24px); }
  .screen { padding-top: 34px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .category-card { min-height: 180px; padding: 22px 10px 18px; }
  .category-card.selected { padding: 21px 9px 17px; }
  .category-icon { width: 62px; height: 62px; border-radius: 20px; }
  .category-icon svg { width: 29px; height: 29px; }
  .section-heading { margin-bottom: 27px; }
  .points-panel { padding: 22px; }
  .points-art { width: 62px; height: 62px; border-radius: 20px; }
  .points-art svg { width: 32px; }
  .basket-actions { flex-direction: column-reverse; }
  .basket-actions button { width: 100%; }
  .section-heading-row { align-items: start; }
  .basket-count { margin-top: 10px; }
}
@media (max-width: 430px) {
  .session-label { font-size: 0; gap: 0; }.session-label .live-dot { width: 8px; height: 8px; }
  .step-progress { gap: 5px; }
  .progress-step { flex-direction: column; gap: 4px; min-width: 55px; }
  .progress-line { flex: 1; width: auto; margin-bottom: 15px; }
  .screen { padding-left: 18px; padding-right: 18px; }
  .section-heading p { font-size: 12px; }
  .category-name { font-size: 12px; }
  .category-desc { font-size: 10px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions button { width: 100%; }
  .section-heading-row { flex-direction: column; gap: 12px; }
  .basket-count { margin: 0; }
  .basket-row { padding: 13px 11px; gap: 10px; }
  .basket-item-copy strong, .basket-item-points strong { font-size: 11px; }
  .basket-item-copy span { font-size: 10px; }
  .success-actions { flex-direction: column-reverse; }
  .success-actions button { width: 100%; }
  .receipt-preview { padding: 15px 13px; }
}
@media print {
  @page { size: auto; margin: 12mm; }
  body { background: #fff !important; padding: 0 !important; }
  body * { visibility: hidden !important; }
  #receipt-preview, #receipt-preview * { visibility: visible !important; }
  #receipt-preview { position: absolute; inset: 0 auto auto 0; width: 100%; border: 0; border-radius: 0; padding: 0; margin: 0; }
}
