/*
 * Telas do app recriadas para a landing (quadros 390×844, sem escala).
 * Cores só por --app-* (app.css).
 * Texto e ícones seguem o react-native-web: <Text> com line-height normal; <Ionicons> é um <Text>
 * na fonte Ionicons, por isso os ícones aqui também usam line-height normal.
 */
.app-frame .ion { line-height: normal; }

/* Área rolável do app: recorta o conteúdo como o ScrollView. */
.scr-scroll { position: absolute; left: 0; right: 0; overflow: hidden; }

/* ---------- Header compartilhado — components/Header.tsx + components/SkipaLogo.tsx ---------- */
.scr-header {
  position: absolute; top: 0; left: 0; width: 390px; height: 136px;
  background: linear-gradient(var(--app-primary-light), var(--app-background));
}
.scr-header__logo { position: absolute; left: 120px; top: 16px; width: 150px; height: 100px; }
.scr-header__badge-row { position: absolute; top: 90px; left: 0; right: 0; display: flex; justify-content: center; }
.scr-header__badge {
  padding: 7px 14px; border-radius: 999px; background: var(--app-primary);
  box-shadow: 0 4px 10px 0 color-mix(in srgb, var(--app-primary-dark) 18%, transparent);
  color: var(--app-white); font-size: 13px; font-weight: 700; line-height: 16px; text-align: center; white-space: nowrap;
}
.scr-header__back { position: absolute; left: 20px; top: 55px; font-size: 24px; color: var(--app-text); }
.scr-header__bell { position: absolute; left: 286px; top: 55px; font-size: 24px; color: var(--app-text); }
.scr-header__avatar {
  position: absolute; left: 330px; top: 48px; width: 40px; height: 40px; border-radius: 20px;
  background: var(--app-primary); display: flex; align-items: center; justify-content: center;
  color: var(--app-white); font-size: 16px; font-weight: 600;
}

/* ---------- merchant-home — app/(tabs)/index.tsx, components/FAB.tsx, components/CustomTabBar.tsx ---------- */
.mh-scroll { top: 136px; bottom: 0; padding: 0 20px; }
.mh-greet { font-size: 24px; font-weight: 700; color: var(--app-text); }
.mh-sub { margin-top: 4px; font-size: 14px; color: var(--app-text-muted); }
.mh-card { background: var(--app-card); border-radius: 16px; box-shadow: 0 2px 8px 0 color-mix(in srgb, var(--app-black) 5%, transparent); }
.mh-main { margin-top: 20px; padding: 20px; }
.mh-row { display: flex; align-items: center; justify-content: space-between; }
.mh-label { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; color: var(--app-text-muted); }
.mh-main .ion { font-size: 20px; color: var(--app-primary); }
.mh-big { margin-top: 8px; font-size: 32px; font-weight: 700; color: var(--app-text); }
.mh-hint { margin-top: 4px; font-size: 13px; color: var(--app-text-muted); }
.mh-pair { display: flex; gap: 12px; margin-top: 12px; }
.mh-small { flex: 1; padding: 16px; }
.mh-small .mh-label, .mh-wallet .mh-label { font-size: 11px; }
.mh-mid { margin-top: 8px; font-size: 20px; font-weight: 700; }
.mh-mid--late { color: var(--app-error); }
.mh-mid--ok { color: var(--app-success); }
.mh-alert {
  display: inline-block; margin-top: 8px; padding: 4px 8px; border-radius: 4px; background: var(--app-error);
  color: var(--app-white); font-size: 10px; font-weight: 700;
}
.mh-meta { margin-top: 4px; font-size: 12px; color: var(--app-primary); }
.mh-meta .ion { font-size: 12px; color: var(--app-success); }
.mh-wallet {
  display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 16px; border-radius: 16px;
  border: 1px solid var(--app-primary-light); background: var(--app-card);
}
.mh-wallet__icon { font-size: 22px; color: var(--app-primary); }
.mh-wallet__body { flex: 1; }
.mh-wallet__value { font-size: 18px; font-weight: 700; color: var(--app-primary); }
.mh-wallet__chev { font-size: 20px; color: var(--app-primary); }
.mh-section { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 16px; }
.mh-section__title { font-size: 18px; font-weight: 700; color: var(--app-text); }
.mh-section__sub { margin-top: 2px; font-size: 13px; color: var(--app-text-muted); }
.mh-section__link { font-size: 14px; font-weight: 600; color: var(--app-primary); }
.mh-due {
  display: flex; align-items: center; padding: 16px; border-radius: 12px; background: var(--app-card);
  box-shadow: 0 1px 4px 0 color-mix(in srgb, var(--app-black) 5%, transparent);
}
.mh-list { margin-top: 16px; }
.mh-due + .mh-due { margin-top: 10px; }
.mh-due__avatar {
  flex: none; width: 44px; height: 44px; margin-right: 12px; border-radius: 22px; background: var(--app-primary-light);
  display: flex; align-items: center; justify-content: center; color: var(--app-primary-dark); font-size: 16px; font-weight: 600;
}
.mh-due__body { flex: 1; }
.mh-due__name { font-size: 15px; font-weight: 600; color: var(--app-text); }
.mh-due__status { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.mh-due__dot { flex: none; width: 8px; height: 8px; border-radius: 4px; background: var(--app-text-muted); }
.mh-due__dot--late { background: var(--app-error); }
.mh-due__when { flex: 1; font-size: 13px; color: var(--app-text-muted); }
.mh-due__product { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--app-text-muted); }
.mh-due__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mh-due__num { font-size: 12px; font-weight: 600; color: var(--app-text-muted); }
.mh-due__amount { font-size: 15px; font-weight: 700; color: var(--app-text); }
.mh-due__pill { padding: 4px 10px; border-radius: 999px; background: var(--app-error-light); color: var(--app-error); font-size: 10px; font-weight: 800; }
.mh-due__go {
  width: 28px; height: 28px; border-radius: 14px; background: var(--app-background);
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--app-text-muted);
}
.mh-fab {
  position: absolute; right: 20px; bottom: 92px; display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: 28px; background: var(--app-primary);
  box-shadow: 0 4px 8px 0 color-mix(in srgb, var(--app-black) 25%, transparent);
  color: var(--app-white); font-size: 15px; font-weight: 600;
}
.mh-fab .ion { font-size: 24px; }
.mh-tabs {
  position: absolute; left: 16px; top: 768px; width: 358px; height: 64px; display: flex;
  border: 1px solid color-mix(in srgb, var(--app-black) 6%, transparent); border-radius: 32px; background: var(--app-card);
  box-shadow: 0 4px 16px 0 color-mix(in srgb, var(--app-black) 8%, transparent);
}
.mh-tab {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--app-text-light); font-size: 11px; font-weight: 600;
}
.mh-tab .ion { position: relative; font-size: 22px; }
.mh-tab span:last-child { position: relative; }
.mh-tab--on { color: var(--app-primary); }
.mh-tab--on::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 7px; height: 48px; border-radius: 24px; background: var(--app-primary-light);
}

/* ---------- merchant-new-sale — app/new-sale.tsx + app/new-sale.styles.ts ---------- */
.ns-scroll { top: 136px; height: 612px; padding: 20px; }
.ns-title { font-size: 28px; font-weight: 700; color: var(--app-text); }
.ns-sub { margin-top: 4px; font-size: 16px; color: var(--app-text-muted); }
.ns-label { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--app-text); }
.ns-group { margin-top: 20px; }
.ns-group--first { margin-top: 24px; }
.ns-modes { display: flex; gap: 12px; }
.ns-mode {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 14px; border-radius: 12px;
  border: 1px solid var(--app-border); background: var(--app-card); color: var(--app-text-muted);
}
.ns-mode .ion { font-size: 18px; }
.ns-mode span:last-child { flex: 1; font-size: 13px; font-weight: 600; }
.ns-mode--on { border-color: var(--app-primary); background: var(--app-primary-light); color: var(--app-primary-dark); }
.ns-select {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px;
  border: 1px solid var(--app-border); background: var(--app-card);
}
.ns-select__avatar {
  width: 32px; height: 32px; border-radius: 16px; background: var(--app-primary-light);
  display: flex; align-items: center; justify-content: center; color: var(--app-primary-dark); font-size: 14px; font-weight: 600;
}
.ns-select__name { flex: 1; font-size: 16px; font-weight: 500; color: var(--app-text); }
.ns-select .ion { font-size: 20px; color: var(--app-text-muted); }
.ns-item { padding: 12px; border-radius: 12px; border: 1px solid var(--app-border); background: var(--app-card); }
.ns-item__top { display: flex; align-items: center; gap: 10px; }
.ns-item__photo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.ns-item__name { flex: 1; font-size: 15px; font-weight: 600; color: var(--app-text); }
.ns-item__top .ion { font-size: 18px; color: var(--app-error); }
.ns-item__bottom { display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; }
.ns-step {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--app-border); background: var(--app-background);
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--app-text);
}
.ns-qty { width: 20px; align-self: center; margin-top: 7px; text-align: center; font-size: 15px; font-weight: 600; color: var(--app-text); }
.ns-unit { flex: 1; }
.ns-mini { font-size: 11px; color: var(--app-text-muted); }
.ns-unit__input {
  margin-top: 4px; height: 35px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--app-border);
  background: var(--app-background); font-size: 14px; font-weight: 600; color: var(--app-text);
}
.ns-subtotal { text-align: right; }
.ns-subtotal__value { font-size: 15px; font-weight: 700; color: var(--app-primary); }
.ns-add {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 14px;
  border-radius: 12px; border: 1px dashed var(--app-primary); color: var(--app-primary); font-size: 15px; font-weight: 600;
}
.ns-add .ion { font-size: 20px; }
.ns-footer {
  position: absolute; left: 0; top: 748px; width: 390px; height: 96px; padding: 20px;
  border-top: 1px solid var(--app-border); background: var(--app-background);
}
.ns-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: 12px;
  background: var(--app-primary); color: var(--app-white); font-size: 16px; font-weight: 700;
}
.ns-submit .ion { font-size: 20px; }

/* ---------- merchant-sale-detail — app/sale/[id].tsx ---------- */
.sd-bar {
  position: absolute; left: 0; top: 0; width: 390px; height: 65px;
  border-bottom: 1px solid var(--app-border); background: var(--app-background);
}
.sd-bar__close { position: absolute; left: 24px; top: 19px; font-size: 24px; color: var(--app-text); }
.sd-bar__nav {
  position: absolute; top: 14px; width: 36px; height: 36px; border-radius: 18px; background: var(--app-card);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.sd-bar__nav--prev { left: 56px; color: var(--app-primary); }
.sd-bar__nav--next { left: 298px; color: var(--app-text-muted); opacity: 0.4; }
.sd-bar__title { position: absolute; left: 0; right: 0; top: 14.5px; text-align: center; }
.sd-bar__name { font-size: 16px; font-weight: 600; color: var(--app-text); }
.sd-bar__pos { margin-top: 2px; font-size: 12px; color: var(--app-text-muted); }
.sd-scroll { top: 65px; height: 646px; padding: 20px; }
.sd-card { padding: 20px; border-radius: 16px; background: var(--app-card); }
.sd-top { display: flex; align-items: center; justify-content: space-between; }
.sd-status {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px;
  background: color-mix(in srgb, var(--app-primary) 12.55%, transparent); /* Colors.primary + '20' */
  color: var(--app-primary); font-size: 14px; font-weight: 600;
}
.sd-status .ion { font-size: 16px; }
.sd-customer { font-size: 14px; font-weight: 500; color: var(--app-primary); }
.sd-product { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px; border-radius: 12px; background: var(--app-background); }
.sd-product__icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--app-primary-light);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--app-primary);
}
.sd-product__body { flex: 1; }
.sd-product__name { font-size: 14px; font-weight: 600; color: var(--app-primary); }
.sd-product__qty { margin-top: 2px; font-size: 12px; color: var(--app-text-muted); }
.sd-product__price { font-size: 14px; font-weight: 600; color: var(--app-text); }
.sd-product > .ion { font-size: 16px; color: var(--app-primary); }
.sd-desc { margin-top: 12px; font-size: 13px; font-style: italic; color: var(--app-text-muted); }
.sd-total { margin-top: 12px; text-align: center; font-size: 40px; font-weight: 700; color: var(--app-text); }
.sd-total-label { margin-top: 4px; text-align: center; font-size: 14px; color: var(--app-text-muted); }
.sd-stats { display: flex; align-items: center; margin-top: 20px; }
.sd-stat { flex: 1; text-align: center; }
.sd-stat__value { font-size: 18px; font-weight: 700; color: var(--app-text); }
.sd-stat__value--due { color: var(--app-error); }
.sd-stat__label { margin-top: 4px; font-size: 12px; color: var(--app-text-muted); }
.sd-sep { width: 1px; height: 30px; background: var(--app-border); }
.sd-heading { margin-top: 20px; margin-bottom: 12px; font-size: 18px; font-weight: 700; color: var(--app-text); }
.sd-inst { display: flex; gap: 12px; padding: 16px; border-radius: 12px; background: var(--app-card); }
.sd-inst + .sd-inst { margin-top: 10px; }
.sd-inst--paid { opacity: 0.7; }
.sd-inst__mark {
  flex: none; width: 32px; height: 32px; border-radius: 16px; background: var(--app-primary);
  display: flex; align-items: center; justify-content: center; color: var(--app-white); font-size: 14px; font-weight: 700;
}
.sd-inst--paid .sd-inst__mark { background: var(--app-success); font-size: 16px; font-weight: 400; }
.sd-inst__body { flex: 1; }
.sd-inst__amount { font-size: 16px; font-weight: 600; color: var(--app-text); }
.sd-inst--paid .sd-inst__amount { color: var(--app-text-muted); text-decoration: line-through; }
.sd-inst__date { margin-top: 2px; font-size: 13px; color: var(--app-text-muted); }
.sd-inst__method { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--app-text-muted); }
.sd-inst__side { flex: none; width: 124px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.sd-badge {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px;
  background: var(--app-background); color: var(--app-text-muted); font-size: 12px; font-weight: 700;
}
.sd-badge .ion { font-size: 14px; }
.sd-badge--paid { background: var(--app-success-light); color: var(--app-success); }
.sd-more {
  width: 38px; height: 38px; border-radius: 19px; border: 1px solid var(--app-border); background: var(--app-background);
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--app-text);
}
.sd-footer {
  position: absolute; left: 0; top: 711px; width: 390px; height: 133px; padding: 20px;
  border-top: 1px solid var(--app-border); background: var(--app-background);
}
.sd-settle {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 12px;
  background: var(--app-success); color: var(--app-white); font-size: 15px; font-weight: 600;
}
.sd-settle .ion { font-size: 20px; }
.sd-delete { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--app-error); }
.sd-delete .ion { font-size: 16px; }

/* ---------- merchant-message-tone — app/message-tone.tsx ---------- */
.mt-scroll { top: 136px; bottom: 0; padding: 20px; }
.mt-title { font-size: 28px; font-weight: 700; color: var(--app-text); }
.mt-lead { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--app-text-muted); }
.mt-info { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--app-primary-light); }
.mt-info .ion { font-size: 20px; color: var(--app-primary); }
.mt-info__text { flex: 1; font-size: 13px; line-height: 20px; color: var(--app-primary-dark); }
.mt-stages { margin-top: 24px; }
.mt-stage {
  display: flex; align-items: center; padding: 16px; border-radius: 16px;
  border: 1px solid var(--app-border); background: var(--app-card);
}
.mt-stage__icon { flex: none; width: 40px; height: 40px; margin-right: 12px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mt-stage__body { flex: 1; }
.mt-stage__label { font-size: 15px; font-weight: 700; color: var(--app-text); }
.mt-stage__sub { margin-top: 1px; font-size: 12px; color: var(--app-text-muted); }
.mt-tone { margin-right: 6px; padding: 4px 10px; border-radius: 12px; background: var(--app-primary-light); color: var(--app-primary-dark); font-size: 12px; font-weight: 600; }
.mt-stage > .ion { font-size: 18px; color: var(--app-text-muted); }
.mt-link { display: flex; justify-content: center; height: 12px; padding-left: 24px; }
.mt-link::before { content: ""; width: 2px; height: 12px; border-radius: 1px; background: color-mix(in srgb, var(--mt-c) 25%, transparent); }
.mt-c-primary { --mt-c: var(--app-primary); }
.mt-c-warning { --mt-c: var(--app-warning); }
.mt-c-orange { --mt-c: var(--app-orange); }
.mt-c-error { --mt-c: var(--app-error); }
.mt-stage__icon.mt-c-primary { background: var(--app-primary-light); color: var(--app-primary); }
.mt-stage__icon.mt-c-warning { background: var(--app-warning-light); color: var(--app-warning); }
.mt-stage__icon.mt-c-orange { background: var(--app-orange-light); color: var(--app-orange); }
.mt-stage__icon.mt-c-error { background: var(--app-error-lighter); color: var(--app-error); }

/* ---------- Header do cliente (sem selo do negócio) — components/Header.tsx ---------- */
.scr-header--plain { height: 114px; }
.scr-header--plain .scr-header__bell { top: 44px; }
.scr-header--plain .scr-header__avatar { top: 37px; }

/* ---------- customer-home — app/(customer)/index.tsx, components/CustomerTabBar.tsx ---------- */
.ch-scroll { top: 114px; bottom: 0; padding: 20px; }
.ch-greet { margin-bottom: 16px; }
.ch-greet__title { font-size: 24px; font-weight: 700; color: var(--app-text); }
.ch-greet__sub { margin-top: 4px; font-size: 14px; color: var(--app-text-muted); }
.ch-main { margin-bottom: 16px; padding: 20px; border-radius: 16px; background: var(--app-card); }
.ch-main__label { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; color: var(--app-text-muted); }
.ch-main__value { margin-top: 6px; font-size: 32px; font-weight: 800; color: var(--app-text); }
.ch-main__hint { margin-top: 8px; font-size: 13px; color: var(--app-text-muted); }
.ch-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.ch-stat { width: 48%; padding: 14px; border-radius: 14px; background: var(--app-card); }
.ch-stat__title { margin-bottom: 8px; font-size: 12px; color: var(--app-text-muted); }
.ch-stat__value { font-size: 22px; font-weight: 700; color: var(--app-text); }
.ch-stat__value--ok { color: var(--app-success); }
.ch-stat__value--warn { color: var(--app-warning); }
.ch-stat__amount { font-size: 16px; font-weight: 700; color: var(--app-text); }
.ch-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ch-section__title { font-size: 18px; font-weight: 700; color: var(--app-text); }
.ch-section__link { font-size: 13px; font-weight: 700; color: var(--app-primary); }
.ch-list { padding: 8px; border-radius: 16px; background: var(--app-card); }
.ch-item {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 10px;
  border-bottom: 1px solid var(--app-border);
}
.ch-item__left { flex: 1; display: flex; align-items: center; gap: 10px; margin-right: 8px; }
.ch-item__left .ion { font-size: 18px; color: var(--app-primary); }
.ch-item__desc { font-size: 14px; font-weight: 600; color: var(--app-text); white-space: nowrap; }
.ch-item__due { margin-top: 2px; font-size: 12px; color: var(--app-text-muted); }
.ch-item__amount { font-size: 14px; font-weight: 700; color: var(--app-text); }

/* ---------- customer-pix — HTML de functions/src/payments/handlePaymentLink.ts (pay.skipa.ai) ---------- */
/* Mesmo CSS da página, com as regras do <body> no quadro. O cartão é mais alto que a tela, por isso
   começa no padding de cima (o align-items: center do body só vale quando sobra altura). */
:where(.pix-frame) :where(h1, p, span, div, img) { margin: 0; padding: 0; }
.app-frame.pix-frame {
  padding: 24px; background: var(--app-pix-bg); color: var(--app-pix-text);
  font: 16px var(--app-pix-font); line-height: normal;
}
.pix-card {
  width: 100%; padding: 32px 28px; border: 1px solid var(--app-pix-card-border); border-radius: 22px;
  background: var(--app-pix-card); box-shadow: 0 14px 40px var(--app-pix-shadow); text-align: center;
}
.pix-logo { margin-bottom: 22px; }
.pix-logo img { width: 180px; height: auto; }
.pix-badge {
  display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 20px;
  background: var(--app-pix-badge-bg); color: var(--app-pix-badge-text);
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
}
.pix-title { margin-bottom: 10px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.pix-subtitle { margin-bottom: 24px; font-size: 15px; line-height: 1.5; color: var(--app-pix-muted); }
.pix-amount { margin: 14px 0 18px; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--app-pix-green); }
.pix-details {
  margin-bottom: 24px; padding: 18px; border: 1px solid var(--app-pix-details-border); border-radius: 14px;
  background: var(--app-pix-details-bg); text-align: left;
}
.pix-row {
  display: flex; justify-content: space-between; gap: 8px; padding: 10px 0;
  border-bottom: 1px solid var(--app-pix-row-border); font-size: 14px;
}
.pix-row:last-child { border-bottom: none; }
.pix-row__label { color: var(--app-pix-muted); }
.pix-row__value { font-weight: 600; color: var(--app-pix-strong); text-align: right; }
.pix-qr { display: block; width: 200px; height: 200px; margin: 0 auto 16px; border-radius: 12px; }
