@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #351b24;
  --muted: #79656c;
  --forest: #8a1237;
  --forest-2: #a51c48;
  --mint: #f8dce5;
  --lime: #ffe8ee;
  --cream: #fcf5f7;
  --paper: #ffffff;
  --line: #eadce1;
  --danger: #a43838;
  --shadow: 0 24px 70px rgba(93, 18, 43, .12);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #faf5f6; font-family: 'DM Sans', system-ui, sans-serif; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.shell { min-height: 100vh; }
.topbar { height: 72px; padding: 0 max(24px, calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; background: rgba(250,245,246,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 11px; font: 800 20px/1 'Manrope', sans-serif; text-decoration: none; letter-spacing: -.5px; }
.brand-mark { width: 34px; height: 34px; border-radius: 50% 50% 50% 10%; background: var(--forest); color: var(--lime); display: grid; place-items: center; transform: rotate(-8deg); }
.brand-mark span { transform: rotate(8deg); font-size: 18px; }
.demo-pill, .status-pill { border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.demo-pill { color: var(--forest); background: var(--lime); }
.main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 90px; }
.readiness { margin: -22px 0 44px; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); box-shadow: 0 10px 35px rgba(93,18,43,.045); }
.readiness-item { min-width: 0; padding: 15px 16px; display: flex; gap: 11px; align-items: center; border-right: 1px solid var(--line); }
.readiness-item:last-child { border-right: 0; }
.readiness-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: #e0f3e8; color: #267653; font-weight: 800; }
.readiness-item.not-ready .readiness-icon { background: #fff0d1; color: #8a641d; }
.readiness-item strong, .readiness-item small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readiness-item strong { font-size: 13px; }
.readiness-item small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; margin-bottom: 52px; }
.eyebrow { color: var(--forest-2); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; margin: 0 0 16px; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; margin-top: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: .98; margin-bottom: 22px; max-width: 760px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; margin-bottom: 12px; }
h3 { font-size: 20px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 660px; }
.hero-cta { margin-top: 8px; min-width: 170px; }
.hero-card { padding: 28px; color: white; border-radius: 28px; background: var(--forest); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero-card::after { content: ''; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: var(--mint); opacity: .16; right: -80px; bottom: -110px; }
.journey-step { display: flex; gap: 14px; align-items: flex-start; margin: 20px 0; position: relative; z-index: 1; }
.step-no { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; font-weight: 800; }
.journey-step strong { display: block; margin-bottom: 3px; }
.journey-step small { color: #f4dce4; line-height: 1.45; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 14px 45px rgba(93,18,43,.06); }
.issue-panel { position: relative; overflow: hidden; }
.issue-panel::before { content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: var(--mint); opacity: .18; top: -120px; right: -80px; pointer-events: none; }
.step-badge { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--forest); color: var(--lime); font: 800 18px/1 'Manrope'; }
.panel-wide { grid-column: 1 / -1; }
.panel-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 22px; }
.panel-head p, .muted { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.field-hint { display: block; margin: 6px 2px 0; color: var(--muted); font-size: 11px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fdfafb; padding: 13px 14px; color: var(--ink); outline: none; transition: .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(138,18,55,.1); }
textarea { resize: vertical; }
.btn { border: 0; border-radius: 12px; min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; text-decoration: none; transition: transform .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--forest); color: white; }
.btn-lime { background: var(--lime); color: var(--forest); }
.btn-soft { background: #faedf1; color: var(--forest); }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--forest); }
.btn-danger { color: var(--danger); background: #fff0f0; }
.btn-compact { min-height: 38px; padding: 0 13px; font-size: 12px; }
.btn-wallet { width: 100%; min-height: 52px; background: #111; color: white; box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.wallet-g { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: white; color: #4285f4; font: 800 15px/1 'Manrope'; }
.button-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item { padding: 15px; border-radius: 15px; background: #fcf8f9; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.voucher-list-copy { min-width: 0; }
.list-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.list-title .status-pill { padding: 4px 8px; font-size: 9px; }
.list-item strong { display: block; margin-bottom: 4px; }
.list-item small { color: var(--muted); display: block; margin-top: 3px; }
.wallet-state { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; color: #6f7d78; font-size: 11px; font-weight: 700; }
.wallet-state.saved { color: #267653; }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.empty strong, .empty span { display: block; }
.empty strong { color: var(--ink); margin-bottom: 5px; }
.status-pill { background: #faedf1; color: var(--forest); white-space: nowrap; }
.status-pill.issued { background: #e8edff; color: #3c4f91; }
.status-pill.awaiting_patient { background: #fff3cf; color: #765d13; }
.status-pill.reserved { background: var(--mint); color: var(--forest); }
.status-pill.claim_submitted, .status-pill.payout_queued { background: #e5ddff; color: #55418a; }
.status-pill.revoked { background: #ffe1e1; color: var(--danger); }
.manage-main > .panel-head h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 8px; }
.manage-grid { margin-top: 24px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.metric { padding: 15px 10px; border-radius: 14px; background: #fcf4f7; text-align: center; }
.metric strong { display: block; font: 800 24px/1.1 'Manrope', sans-serif; }
.metric span { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.event { display: grid; grid-template-columns: 10px 1fr auto; gap: 11px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.event-dot { width: 8px; height: 8px; background: var(--forest-2); border-radius: 50%; margin-top: 6px; }
.event time { color: var(--muted); font-size: 12px; }
.mobile-wrap { min-height: 100vh; background: linear-gradient(150deg, #f4e1e7, #fff8f5); padding: 18px; display: grid; place-items: center; }
.phone-page { width: min(100%, 480px); }
.mini-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.back-link { text-decoration: none; font-weight: 700; font-size: 14px; }
.voucher { background: var(--forest); color: white; border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.voucher-top { padding: 28px 26px 22px; position: relative; }
.voucher-top::after { content: ''; position: absolute; width: 150px; height: 150px; border: 38px solid rgba(255,232,238,.12); border-radius: 50%; right: -70px; top: -60px; }
.voucher .brand { margin-bottom: 34px; }
.voucher .brand-mark { background: var(--lime); color: var(--forest); }
.voucher h1 { font-size: 31px; line-height: 1.08; margin: 0 0 10px; max-width: 330px; }
.voucher .member { color: #f4dce4; margin: 0; }
.voucher-details { padding: 22px 26px 26px; background: white; color: var(--ink); border-radius: 26px 26px 0 0; }
.qr-box { width: 210px; height: 210px; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 20px; margin: 0 auto 20px; }
.qr-box img { display: block; width: 100%; height: 100%; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.detail label { color: var(--muted); font-weight: 600; margin: 0 0 4px; }
.detail strong { font-size: 15px; }
.amount { font-family: 'Manrope'; font-size: 25px !important; }
.notice { background: #fcf0f4; border-radius: 14px; padding: 13px 15px; color: #754154; font-size: 13px; line-height: 1.5; margin: 14px 0; }
.notice.warn { background: #fff4d7; color: #725c20; }
.presenter-note { margin-top: 24px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(110deg, #6e0e2b, #a51c48); color: white; padding: 18px 22px; display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.presenter-note > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.presenter-note strong { color: var(--lime); }
.presenter-note p { color: #f4dce4; margin: 0; line-height: 1.45; font-size: 13px; }
.presenter-kicker { width: 100%; color: #f4dce4; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack .btn { width: 100%; }
.member-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.member-actions .btn { width: 100%; }
.action-help { margin: -2px 8px 5px; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.45; }
.provider-card { background: white; border-radius: 26px; padding: 26px; box-shadow: var(--shadow); }
.provider-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.provider-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--forest); color: var(--lime); font-size: 22px; }
.summary { background: #fcf4f7; border-radius: 16px; padding: 16px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; margin: 8px 0; font-size: 14px; }
.summary-row span { color: var(--muted); }
.otp-code { font: 800 34px/1 'Manrope'; letter-spacing: .16em; text-align: center; padding: 19px; border-radius: 14px; color: var(--forest); background: var(--lime); margin: 15px 0; }
.success-icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--forest); font-size: 36px; margin: 0 auto 20px; }
.center { text-align: center; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 13px 18px; border-radius: 12px; background: #5e1028; color: white; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 30px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loading-screen { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); }
.pulse { width: 28px; height: 28px; border-radius: 50%; background: var(--forest); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; transform: scale(.75); } }
.error-card { width: min(480px, calc(100% - 36px)); margin: 15vh auto; padding: 28px; border-radius: 22px; background: white; text-align: center; }

@media (max-width: 850px) {
  .hero, .grid { grid-template-columns: 1fr; }
  .hero { gap: 24px; }
  .panel-wide { grid-column: auto; }
  .readiness { grid-template-columns: 1fr 1fr; }
  .readiness-item:nth-child(2) { border-right: 0; }
  .readiness-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .presenter-note { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  .topbar { padding: 0 18px; }
  .main { width: min(100% - 28px, 1180px); padding-top: 34px; }
  .field-row, .detail-grid { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .hero-card { padding: 21px; }
  .list-item { align-items: flex-start; flex-direction: column; }
  .topbar .demo-pill { display: none; }
  .readiness { margin-top: -12px; grid-template-columns: 1fr; }
  .readiness-item, .readiness-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .readiness-item:last-child { border-bottom: 0; }
}

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