/* ===========================================================================
   Phone screen replicas — réplicas pixel-conscientes das telas reais da dev:
   - PassList.tsx + PassCard.tsx          → .s-catalog
   - PurchasedPassDetail.tsx              → .s-select
   - AttractionQR.tsx                     → .s-qr
   - AttractionQR (allUsed/isUsed branch) → .s-ok

   Todas em modo claro (como o app real) — independente do tema escuro
   da landing. O quadro escuro do telefone enquadra a UI clara.
   =========================================================================== */

.phone-screens > div > .scr,
.phone-screens .scr {
  position: absolute; inset: 0;
  transition: opacity .55s ease, transform .55s ease;
  overflow: hidden;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ===========================================================================
   SCREEN 1 — Catalog (espelha PassList.tsx + PassCard.tsx)
   =========================================================================== */
.s-catalog { background: #f8fafc; color: #0f172a; }
.s-catalog .top-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 56px 14px 14px;
}
.s-catalog .top-bar h1 {
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0 0 2px;
  line-height: 1.1;
}
.s-catalog .top-bar p {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.4;
}
.s-catalog .body {
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.s-catalog .results-bar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9px; font-weight: 600;
  color: #64748b;
  padding: 0 2px;
}
.s-catalog .results-bar .filters {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
  border-radius: 6px;
  color: #475569;
}

.pc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  opacity: 0;
  animation: pcIn .55s ease forwards;
}
.pc-card.delay { animation-delay: .15s; }
@keyframes pcIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pc-card .img-area {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #047857 0%, #022c22 100%);
  overflow: hidden;
}
.pc-card .img-area::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.25) 100%);
}
.pc-card .img-area svg.scene {
  position: absolute; right: -6px; bottom: -2px;
  opacity: 0.4;
}
.pc-card .img-area .off-badge {
  position: absolute; top: 8px; left: 8px;
  background: #10b981;
  color: #ffffff;
  font-size: 9px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px -1px rgba(0,0,0,0.15);
  z-index: 2;
}

.pc-card .info {
  padding: 12px 12px 8px;
}
.pc-card .info .loc {
  display: flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 500;
  color: #64748b;
  margin-bottom: 4px;
}
.pc-card .info .loc svg { color: #10b981; width: 9px; height: 9px; }
.pc-card .info h3 {
  font-size: 14px; font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.pc-card .access-line {
  margin: 8px 12px 0;
  display: flex; align-items: center; gap: 5px;
  font-size: 9px; color: #475569;
}
.pc-card .access-line svg { color: #94a3b8; width: 10px; height: 10px; }

.pc-card .savings {
  margin: 8px 12px 0;
  background: #f8fafc;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 9px;
}
.pc-card .savings .r1 {
  display: flex; justify-content: space-between;
  color: #64748b;
  margin-bottom: 2px;
}
.pc-card .savings .r1 .strike { text-decoration: line-through; }
.pc-card .savings .r2 {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700;
  color: #059669;
}
.pc-card .savings .r2 .left {
  display: flex; align-items: center; gap: 4px;
}

.pc-card .footer {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 8px 12px 12px;
  margin-top: 6px;
}
.pc-card .footer .price-block .l {
  font-size: 8px; color: #64748b;
}
.pc-card .footer .price-block .v {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 20px; font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-top: 2px;
}
.pc-card .footer .price-block .v .cur {
  font-size: 10px; font-weight: 700;
  color: #64748b;
  margin-right: 1px;
}
.pc-card .footer .cta {
  background: #059669;
  color: #ffffff;
  font-size: 10px; font-weight: 700;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex; align-items: center;
  box-shadow: 0 2px 6px -2px rgba(4, 120, 87, 0.5);
}

/* ===========================================================================
   SCREEN 2 — PurchasedPassDetail (espelha a tela de seleção de atrações)
   =========================================================================== */
.s-select {
  background: #f8fafc;
  color: #0f172a;
  overflow-y: hidden;
}
.s-select .top-bar {
  background: #0f172a;
  color: #ffffff;
  padding: 50px 14px 28px;
}
.s-select .top-bar .back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; color: #94a3b8;
  margin-bottom: 8px;
}
.s-select .top-bar .head {
  display: flex; gap: 8px;
}
.s-select .top-bar .pthumb {
  width: 48px; height: 48px;
  border-radius: 11px;
  background: linear-gradient(135deg, #047857, #022c22);
  flex: none;
  box-shadow: 0 4px 8px -2px rgba(0,0,0,0.4);
}
.s-select .top-bar .meta { flex: 1; min-width: 0; }
.s-select .top-bar .meta .row1 {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 3px;
}
.s-select .top-bar .meta .row1 .status {
  font-size: 8px; font-weight: 700;
  background: #10b981; color: #ffffff;
  padding: 2px 6px; border-radius: 4px;
  letter-spacing: 0.02em;
}
.s-select .top-bar .meta .row1 .loc {
  font-size: 8px; color: #94a3b8;
  display: inline-flex; align-items: center; gap: 3px;
}
.s-select .top-bar .meta h2 {
  font-size: 16px; font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
}
.s-select .top-bar .meta .validity {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 8px;
  color: #cbd5e1;
}
.s-select .top-bar .meta .validity svg { color: #34d399; width: 10px; height: 10px; }
.s-select .top-bar .meta .validity strong { color: #fff; font-weight: 700; margin-left: 2px; }

.s-select .body {
  background: #ffffff;
  margin: -16px 10px 0;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 12px;
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 1;
}
.s-select .progress-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.s-select .progress-row h3 {
  font-size: 11px; font-weight: 800; color: #0f172a; margin: 0;
}
.s-select .progress-row .count {
  font-size: 8px; font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 99px;
}
.s-select .progress-bar {
  height: 4px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}
.s-select .progress-bar .fill {
  height: 100%;
  background: #10b981;
  width: 0;
  animation: pf 1.6s .4s ease forwards;
  border-radius: 99px;
}
@keyframes pf { to { width: 40%; } }

.s-select .section { margin-top: 12px; }
.s-select .section .label {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}
.s-select .section .label svg { width: 11px; height: 11px; }
.s-select .section .label.anchor svg { color: #10b981; }
.s-select .section .label.free svg { color: #6366f1; }
.s-select .section .label.bonus svg { color: #d97706; }
.s-select .section .label .qpill {
  margin-left: auto;
  font-size: 7px;
  background: #f1f5f9; color: #475569;
  padding: 1px 5px;
  border-radius: 99px;
  font-weight: 700;
}

.s-select .item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 5px;
}
.s-select .item .thumb {
  width: 32px; height: 32px;
  border-radius: 6px;
  flex: none;
  background: linear-gradient(135deg, #34d399, #047857);
}
.s-select .item .info { flex: 1; min-width: 0; }
.s-select .item .info .n {
  font-size: 10px; font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.s-select .item .info .d {
  font-size: 8.5px;
  color: #64748b;
  margin-top: 1px;
}
.s-select .item .used {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 8px; font-weight: 700;
  background: #d1fae5;
  color: #047857;
  padding: 3px 6px;
  border-radius: 6px;
}
.s-select .item .used svg { width: 9px; height: 9px; }
.s-select .item .avail {
  font-size: 8px; font-weight: 700;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
  padding: 3px 6px;
  border-radius: 6px;
}
.s-select .item .gen-btn {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 8px; font-weight: 700;
  background: #0f172a;
  color: #ffffff;
  padding: 4px 7px;
  border-radius: 999px;
}
.s-select .item .gen-btn svg { width: 9px; height: 9px; }

.s-select .item.benefit {
  background: #fffbeb;
  border-color: #fde68a;
}
.s-select .item .bonus-thumb {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #ffffff;
  display: grid; place-items: center;
}
.s-select .item .gen-btn.bonus-btn {
  background: #d97706;
  color: #ffffff;
}

/* ===========================================================================
   SCREEN 3 — AttractionQR (active QR state)
   =========================================================================== */
.s-qr {
  background: #020617; /* slate-950, igual ao real */
  color: #ffffff;
  display: flex;
  flex-direction: column;
}
.s-qr .top-bar {
  position: relative;
  height: 92px;
  overflow: hidden;
}
.s-qr .top-bar::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #047857 0%, #022c22 100%);
  opacity: 0.45;
}
.s-qr .top-bar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, #020617 100%);
}
.s-qr .top-bar .back {
  position: absolute; top: 56px; left: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  color: #ffffff;
  z-index: 2;
}
.s-qr .top-bar .back svg { width: 12px; height: 12px; }
.s-qr .top-bar .pass-pill {
  position: absolute; top: 60px; right: 12px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 7px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
  padding: 3px 7px;
  border-radius: 999px;
  z-index: 2;
}
.s-qr .top-bar h1 {
  position: absolute; bottom: 6px; left: 12px; right: 12px;
  text-align: center;
  font-size: 13px; font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
  margin: 0;
}
.s-qr .body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
}

.qr-card {
  width: 100%;
  max-width: 280px;
  background: #ffffff;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  padding: 14px 14px 12px;
  text-align: center;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}
.qr-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: #10b981;
}
.qr-card .cap {
  font-size: 7.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 8px;
}
.qr-card .qr-frame {
  background: #f8fafc;
  border: 1.5px solid #f1f5f9;
  border-radius: 11px;
  padding: 8px;
  margin: 0 auto 6px;
  max-width: 156px;
}
.qr-card .qr-grid {
  width: 100%;
  aspect-ratio: 1;
  background: transparent;
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
}
.qr-card .qr-grid span { background: transparent; }
.qr-card .qr-grid span.b { background: #020617; }

.qr-card .zoom-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  color: #047857;
  font-size: 8.5px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  margin: 0 0 8px;
}
.qr-card .zoom-pill svg { width: 9px; height: 9px; }
.qr-card .show-text {
  font-size: 11px; font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.qr-card .show-sub {
  font-size: 8.5px;
  color: #64748b;
  margin-top: 2px;
  padding: 0 6px;
}
.qr-card .clock-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fffbeb;
  color: #b45309;
  font-size: 8.5px; font-weight: 500;
  padding: 4px 8px;
  border-radius: 7px;
  margin-top: 8px;
}
.qr-card .clock-pill svg { width: 9px; height: 9px; }

.qr-card .shortcode {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 9px;
  margin-top: 8px;
  display: flex; align-items: center; justify-content: space-between;
  text-align: left;
  gap: 6px;
}
.qr-card .shortcode .l {
  font-size: 6.5px; font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}
.qr-card .shortcode .code {
  font-family: ui-monospace, "SF Mono", "Roboto Mono", monospace;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.18em;
  color: #0f172a;
  margin-top: 1px;
}
.qr-card .shortcode .cp {
  font-size: 7.5px; font-weight: 700;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 4px 7px;
  border-radius: 6px;
  display: inline-flex; align-items: center; gap: 3px;
}
.qr-card .shortcode .cp svg { width: 8px; height: 8px; }

/* ===========================================================================
   SCREEN 4 — Validated (allUsed branch da AttractionQR)
   =========================================================================== */
.s-ok {
  background: #020617;
  color: #ffffff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 56px 22px 28px;
  text-align: center;
}
.s-ok .ring-wrap {
  position: relative;
  margin-bottom: 22px;
}
.s-ok .ring {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(4, 120, 87, 0.35);
  border: 4px solid rgba(16, 185, 129, 0.2);
  display: grid; place-items: center;
}
.s-ok .ring svg { color: #10b981; width: 40px; height: 40px; }
.s-ok .ring-wrap::after {
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1.5px solid #10b981;
  animation: rEx 1.6s ease-out infinite;
}
@keyframes rEx {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}
.s-ok h2 {
  font-size: 18px; font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  line-height: 1.15;
}
.s-ok .lead {
  font-size: 11px;
  color: #94a3b8;
  margin: 0 0 16px;
  max-width: 240px;
  line-height: 1.4;
}
.s-ok .ticket {
  width: 100%;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 11px 12px;
  display: flex; flex-direction: column; gap: 7px;
  text-align: left;
}
.s-ok .ticket .row {
  display: flex; justify-content: space-between;
  font-size: 9.5px;
}
.s-ok .ticket .row .k { color: #64748b; }
.s-ok .ticket .row .v { color: #f8fafc; font-weight: 600; }
.s-ok .ticket .row .v .ok {
  color: #34d399;
  display: inline-flex; align-items: center; gap: 3px;
}
.s-ok .ticket .row .v .ok svg { width: 9px; height: 9px; }

.s-ok .btn-back {
  margin-top: 14px;
  width: 100%;
  padding: 9px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  font-size: 10px; font-weight: 700;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
