:root {
  --ink: #0f0f17;
  --ink-2: #52525b;
  --ink-3: #a1a1aa;
  --bg: #f7f7fb;
  --surface: #ffffff;
  --line: rgba(15, 15, 23, 0.07);
  --line-2: rgba(15, 15, 23, 0.11);
  --violet: #7c3aed;
  --violet-2: #a855f7;
  --indigo: #6366f1;
  --pink: #ec4899;
  --green: #10b981;
  --green-deep: #047857;
  --red: #ef4444;
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 55%, #ec4899 100%);
  --gradient-soft: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  --r-sm: 14px;
  --r-md: 18px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 15, 23, 0.04), 0 1px 3px rgba(15, 15, 23, 0.03);
  --shadow-md: 0 4px 16px -4px rgba(15, 15, 23, 0.08);
  --shadow-hero: 0 20px 40px -12px rgba(139, 92, 246, 0.45);
  --shadow-badge: 0 6px 16px -6px rgba(124, 58, 237, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  touch-action: manipulation;
  overscroll-behavior: none;
}

body {
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

.screen {
  --pull-distance: 0px;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 20px max(28px, calc(env(safe-area-inset-bottom) + 18px));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.topbar,
.welcome-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -20px;
  padding: max(12px, env(safe-area-inset-top)) 20px 12px;
  background: rgba(247, 247, 251, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 15, 23, 0.05);
  color: var(--ink);
}

.search-button span,
.search-field span {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.search-button span::after,
.search-field span::after {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
}

.pull-refresh {
  position: sticky;
  top: 0;
  z-index: 19;
  display: flex;
  height: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-22px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.pull-refresh span {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(124, 58, 237, 0.22);
  border-top-color: var(--violet);
  border-radius: 50%;
}

.pull-refresh b {
  color: var(--violet);
  font-size: 0.74rem;
  font-weight: 750;
}

.screen.is-pulling .pull-refresh,
.app-shell.refreshing .pull-refresh {
  opacity: 1;
  transform: translateY(46px);
}

.screen.is-pulling > :not(.pull-refresh):not(.topbar):not(.welcome-top) {
  transform: translateY(var(--pull-distance));
}

.app-shell.refreshing .pull-refresh span {
  animation: refresh-spin 0.75s linear infinite;
}

.loading-state {
  display: grid;
  min-height: calc(100% - 72px);
  place-items: center;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(124, 58, 237, 0.16);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: refresh-spin 0.75s linear infinite;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.mini-mark,
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: var(--shadow-badge);
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  font-size: 1.2rem;
}

.connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.connection::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  content: "";
  animation: pulse 2.4s ease-in-out infinite;
}

.connection.offline {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.connection.offline::before {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.eyebrow {
  margin: 22px 0 6px;
  color: var(--ink-3);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 410px;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(1.85rem, 8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead,
.muted {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.55;
}

.balance-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 22px 22px 20px;
  border-radius: var(--r-xl);
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-hero);
}

.balance-card .eyebrow {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.72);
}

.balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 8px;
  color: #fff;
  font-size: clamp(3rem, 14vw, 3.6rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.05em;
}

.balance small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.balance-card > p:not(.eyebrow) {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.balance-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
}

.balance-foot span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
}

.balance-foot strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-weight: 650;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}

.quick-grid > * {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
  padding: 16px 16px 15px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-align: left;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.quick-grid button:active,
.wallet-card:active,
.history-row:active,
.chat-action:active,
.nav-button:active,
.button:active {
  transform: scale(0.98);
}

.quick-grid strong {
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.04em;
}

.quick-grid span {
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.3;
}

.quick-grid button[data-view="history"] strong {
  background: linear-gradient(135deg, var(--indigo), var(--violet-2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section {
  margin-top: 26px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head small {
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 500;
  text-align: right;
  letter-spacing: -0.005em;
}

.wallet-list,
.offer-list,
.history-list,
.info-stack,
.guide-tabs,
.account-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-card,
.offer-card,
.history-row,
.panel,
.auth-card,
.info-card,
.guide-card,
.faq-section details,
.empty {
  background: var(--surface);
  border: 0;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.wallet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.shop-row-button {
  width: 100%;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}

.wallet-main {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 12px;
}

.shop-badge,
.info-card span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--gradient);
  box-shadow: var(--shadow-badge);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wallet-main > div,
.history-row > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.wallet-main strong,
.history-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-main span:not(.shop-badge),
.history-row span {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points,
.history-row .positive,
.history-row .negative {
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.points {
  color: var(--violet);
}

.positive {
  color: var(--green);
}

.negative,
.notice {
  color: var(--red);
}

.offer-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.offer-card .eyebrow {
  margin-top: 0;
}

.offer-card p {
  margin: 7px 0 0;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.5;
}

.offer-card code {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 8px;
  border-radius: 9px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--violet);
  font: 750 0.72rem Inter, sans-serif;
}

.offer-card time {
  flex: 0 0 auto;
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 700;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  transition: transform 0.14s ease;
}

.empty {
  padding: 26px 22px;
  border: 1.5px dashed var(--line-2);
  box-shadow: none;
  color: var(--ink-3);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

.text-button {
  margin: -6px -8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}

.support-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding: 14px 14px 14px 18px;
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: var(--r-md);
  background: var(--gradient-soft);
}

.support-strip span {
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 550;
  line-height: 1.4;
}

.support-strip a {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 100px;
  background: var(--green);
  box-shadow: 0 4px 12px -4px rgba(16, 185, 129, 0.55);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.bottom-nav {
  flex: 0 0 auto;
  position: relative;
  z-index: 30;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.nav-button {
  display: flex;
  min-height: 52px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px 7px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-3);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-button.active {
  color: var(--violet);
}

.nav-button:active {
  background: rgba(15, 15, 23, 0.04);
}

.nav-icon {
  width: 22px;
  height: 22px;
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 22px 22px;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 22px 22px;
  transition: transform 0.18s ease;
}

.nav-button.active .nav-icon {
  transform: translateY(-1px);
}

.nav-button[data-view="home"] .nav-icon {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3.2 3 11v9a1.5 1.5 0 0 0 1.5 1.5H9v-6h6v6h4.5A1.5 1.5 0 0 0 21 20v-9z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3.2 3 11v9a1.5 1.5 0 0 0 1.5 1.5H9v-6h6v6h4.5A1.5 1.5 0 0 0 21 20v-9z'/></svg>");
}

.nav-button[data-view="history"] .nav-icon {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='12' width='4' height='9' rx='1.5'/><rect x='10' y='6' width='4' height='15' rx='1.5'/><rect x='17' y='9' width='4' height='12' rx='1.5'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='12' width='4' height='9' rx='1.5'/><rect x='10' y='6' width='4' height='15' rx='1.5'/><rect x='17' y='9' width='4' height='12' rx='1.5'/></svg>");
}

.nav-button[data-view="account"] .nav-icon {
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8z'/></svg>");
}

.auth-screen,
.welcome-screen,
.info-screen {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.auth-screen {
  justify-content: center;
  gap: 24px;
  padding-top: max(72px, env(safe-area-inset-top));
}

.auth-card {
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  outline: 0;
}

input:focus {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.button {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--gradient);
  box-shadow: 0 10px 24px -14px rgba(124, 58, 237, 0.75);
  color: #fff;
  font-weight: 750;
}

.button[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.button.ghost {
  background: rgba(15, 15, 23, 0.05);
  box-shadow: none;
  color: var(--ink);
}

.button.sun {
  background: var(--green);
  box-shadow: 0 10px 24px -14px rgba(16, 185, 129, 0.75);
}

.notice {
  min-height: 20px;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.back-button {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  left: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.back-button.inline {
  position: static;
  flex: 0 0 auto;
  margin-right: 2px;
}

.welcome-screen {
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.welcome-hero {
  padding: 58px 0 24px;
}

.welcome-hero h1 {
  max-width: 390px;
  font-size: clamp(3.2rem, 14vw, 4.65rem);
  line-height: 0.98;
}

.welcome-wallets {
  display: grid;
  max-width: 350px;
  gap: 8px;
  margin-top: 32px;
}

.welcome-wallets span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
}

.welcome-wallets b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
}

.welcome-wallets strong {
  margin-left: auto;
  color: var(--violet);
  font-size: 0.76rem;
}

.welcome-actions {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.welcome-link {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--violet);
  font-weight: 750;
}

.welcome-primary {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--r-md);
  font-size: 1rem;
}

.welcome-primary span,
.chat-action i {
  font-style: normal;
  font-size: 1.2rem;
}

.chat-action {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.chat-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.11);
  color: var(--violet);
  font: 800 0.68rem Arial, sans-serif;
}

.whatsapp .chat-icon {
  background: #dcfce7;
  color: #15803d;
}

.instagram .chat-icon {
  background: #fce7f3;
  color: #be185d;
}

.chat-action span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.chat-action b {
  color: var(--ink);
  font-size: 0.88rem;
}

.chat-action small {
  color: var(--ink-3);
  font-size: 0.72rem;
  line-height: 1.25;
}

.chat-action i {
  margin-left: auto;
  color: var(--ink-3);
}

.welcome-note {
  margin: 18px 10px 0;
  color: var(--ink-3);
  font-size: 0.72rem;
  text-align: center;
}

.info-screen .topbar {
  justify-content: flex-start;
}

.info-stack {
  margin-top: 24px;
}

.info-card,
.guide-card {
  padding: 17px;
}

.info-card span {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.info-card p,
.guide-card li,
.faq-section p {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

.guide-card ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.guide-card li + li {
  margin-top: 7px;
}

.faq-section details + details {
  margin-top: 10px;
}

.faq-section summary {
  padding: 15px;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.faq-section details p {
  margin: 0;
  padding: 0 15px 15px;
}

.account-card {
  padding: 18px;
}

.account-card p {
  margin-bottom: 7px;
  color: var(--ink-2);
}

.account-card span {
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 750;
}

.search-field {
  position: sticky;
  top: 58px;
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  color: var(--ink-3);
}

.search-field input {
  min-height: 54px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.search-field input:focus {
  box-shadow: none;
}

.shop-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-align: left;
}

.shop-result span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.shop-result strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-result small {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 0.76rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-result b {
  flex: 0 0 auto;
  color: var(--violet);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.shop-detail-card {
  display: grid;
  gap: 22px;
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.shop-detail-card .shop-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 1.35rem;
}

.shop-detail-card small {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-detail-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.shop-detail-card strong {
  color: var(--violet);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.install {
  display: none;
}

.install.visible {
  display: block;
}

.screen-enter {
  animation: none;
}

.screen-enter > :not(.topbar):not(.welcome-top):not(.pull-refresh) {
  animation: screen-slide-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-shell[data-motion="back"] .screen-enter > :not(.topbar):not(.welcome-top):not(.pull-refresh) {
  animation-name: screen-slide-back;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.06);
  }
}

@keyframes screen-slide-in {
  from {
    opacity: 0.35;
    transform: translateX(22px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes screen-slide-back {
  from {
    opacity: 0.35;
    transform: translateX(-18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.nav-button:focus-visible,
.quick-grid button:focus-visible,
.text-button:focus-visible,
.support-strip a:focus-visible,
.button:focus-visible,
.chat-action:focus-visible,
input:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.browser-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 13px;margin:22px 0 0;color:#747486;font-size:.72rem}.browser-links a{text-decoration:underline;text-underline-offset:3px}

@media (min-width: 520px) and (min-height: 700px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 28px 16px;
    background: radial-gradient(circle at 50% 0%, #2a2a3a 0%, #14141c 60%, #0a0a10 100%);
  }

  .app-shell {
    width: 100%;
    max-width: 400px;
    min-height: min(860px, calc(100vh - 56px));
    height: min(860px, calc(100vh - 56px));
    border-radius: 46px;
    box-shadow: 0 0 0 10px #1e1e28, 0 0 0 12px #38384a, 0 0 0 13px rgba(255, 255, 255, 0.05), 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 120px -20px rgba(124, 58, 237, 0.35);
  }

  .screen,
  .auth-screen,
  .welcome-screen,
  .info-screen {
    min-height: 0;
  }
}

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

/* Consumer QR card: scanning resolves current, merchant-scoped data server-side. */
.member-card-quick,.member-card-button{display:flex;align-items:center;gap:12px;width:100%;margin:16px 0 0;border:0;border-radius:18px;padding:15px 16px;background:linear-gradient(135deg,#6d28d9,#8b5cf6);color:#fff;text-align:left;box-shadow:0 12px 28px rgba(109,40,217,.2)}.member-card-quick span,.member-card-button span{font-weight:800}.member-card-quick b,.member-card-button b{font-size:.75rem;font-weight:600;opacity:.82}.member-card-quick i{margin-left:auto;font-size:1.2rem;font-style:normal}.member-card-button{display:grid;gap:3px;margin:0}.member-card-screen .lead{margin-bottom:24px}.member-card{display:grid;justify-items:center;gap:14px;padding:24px 18px;border:1px solid #e5e7eb;border-radius:26px;background:#fff;text-align:center;box-shadow:0 18px 46px rgba(18,18,35,.1)}.member-qr{display:grid;min-width:240px;min-height:240px;place-items:center;padding:10px;border-radius:18px;background:#fff}.member-qr img{display:block;width:220px!important;height:220px!important}.member-card-name{margin:0;color:#181827;font-size:1.05rem;font-weight:800}.member-card small{color:#737386;line-height:1.45}.member-card-error{padding:18px;color:#b42318;font-size:.85rem}
