/* ARCO PASS · componentes */

/* layout */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s-8); } }
.stack > * + * { margin-top: var(--s-4); }
.grid { display: grid; gap: var(--s-4); }
.grid > * { min-width: 0; }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.row > * { min-width: 0; }
.kicker { font-size: var(--t-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--acao); margin-bottom: var(--s-2); }
.muted { color: var(--texto-2); }
.small { font-size: var(--t-sm); }

/* faixa arco-íris */
.arco-faixa { height: 4px; background: var(--arco); border: 0; margin: 0; }
.arco-faixa--fina { height: 2px; }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 700; font-size: var(--t-md); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
  line-height: 1.2;
}
.btn:active { transform: scale(.98); }
.btn--primario { background: var(--acao); color: #fff; box-shadow: 0 6px 18px rgba(194, 78, 18, .28); }
.btn--primario:hover { background: var(--acao-hover); }
.btn--secundario { background: var(--primaria); color: #fff; }
.btn--secundario:hover { filter: brightness(1.1); }
.btn--fantasma { background: transparent; color: var(--texto); border-color: var(--borda); }
.btn--fantasma:hover { border-color: var(--texto-2); }
.btn--bloco { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: var(--t-sm); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* card base */
.card { background: var(--superficie); border-radius: var(--r-md); box-shadow: var(--sombra-1); padding: var(--s-5); border: 1px solid var(--borda); }

/* card de experiência */
.exp { background: var(--superficie); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sombra-1); border: 1px solid var(--borda); display: flex; flex-direction: column; }
.exp__foto { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--bg-2); }
.exp__corpo { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.exp__titulo { font-family: var(--f-titulo); font-size: var(--t-lg); font-weight: 600; margin: 0; }
.exp__meta { font-size: var(--t-sm); color: var(--texto-2); display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* placeholder de foto */
.ph {
  position: relative; display: grid; place-items: center; text-align: center; padding: var(--s-4);
  background: linear-gradient(135deg, #F2A35E, #F6C66B 45%, #7FB59A 100%);
  color: #1B2430; font-size: var(--t-sm); font-weight: 700; aspect-ratio: 16 / 10; width: 100%;
}
.ph::after { content: "foto a substituir"; position: absolute; bottom: 8px; right: 10px; font-size: 10px; font-weight: 600; opacity: .7; }
.ph--mar { background: linear-gradient(135deg, #0E5E7E, #24CFDE); color: #fff; }
.ph--reserva { background: linear-gradient(135deg, #3E7D5A, #A8C98F); color: #fff; }
.ph--sunset { background: linear-gradient(135deg, #C24E12, #F6B93B); color: #fff; }

/* chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
  border-radius: var(--r-pill); border: 1.5px solid var(--borda); background: var(--superficie);
  font-weight: 600; font-size: var(--t-sm); cursor: pointer; transition: all .15s; text-align: left;
}
.chip:hover { border-color: var(--primaria); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--primaria); color: #fff; border-color: var(--primaria); }

/* badge de pontos */
.coins {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill);
  background: #FFF4D6; color: #6B4A00; font-weight: 800; font-size: var(--t-sm); white-space: nowrap;
}
.coins__moeda { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE38A, #FDC110 55%, #D99A00); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); flex: none; }
:root[data-theme="dark"] .coins { background: #3A2E10; color: #FFD866; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .coins { background: #3A2E10; color: #FFD866; } }

/* barra de progresso arco-íris */
.progresso { height: 12px; border-radius: var(--r-pill); background: var(--bg-2); overflow: hidden; }
.progresso__barra { height: 100%; background: var(--arco); border-radius: inherit; transition: width .6s ease; }

/* selo de conquista */
.selo { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: var(--t-xs); font-weight: 700; width: 84px; }
.selo__icone { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--superficie); border: 3px solid var(--sol); box-shadow: var(--sombra-1); }
.selo--bloqueado .selo__icone { border-color: var(--borda); filter: grayscale(1); opacity: .45; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 52px; top: 8px; bottom: 8px; width: 2px; background: var(--borda); }
.tl { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); padding: var(--s-2) 0; position: relative; }
.tl > * { min-width: 0; }
.tl__hora { font-weight: 800; font-size: var(--t-sm); color: var(--texto-2); padding-top: 10px; text-align: right; }
.tl__item { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); position: relative; }
.tl__item::before { content: ""; position: absolute; left: -15px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--primaria); box-shadow: 0 0 0 3px var(--bg); }
.tl__titulo { font-weight: 700; margin: 0; }
.tl__sub { font-size: var(--t-sm); color: var(--texto-2); margin: 0; }
.tl--destaque .tl__item { background: linear-gradient(135deg, #FFE7D6, #FFF3D1); border-color: #F2B27F; color: #1B2430; }
.tl--destaque .tl__item .tl__sub { color: #5B4A3A; }
.tl--destaque .tl__item::before { background: var(--sunset); }
.tl--oferta .tl__item { border-style: dashed; border-color: var(--reserva); }
.tl--oferta .tl__item::before { background: var(--reserva); }

/* seletor de horário */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: var(--s-2); }
.slot { min-height: 52px; border-radius: var(--r-sm); border: 1.5px solid var(--borda); background: var(--superficie); font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: var(--t-sm); padding: 4px; }
.slot small { font-size: 10px; font-weight: 700; color: var(--reserva); text-transform: uppercase; letter-spacing: .04em; }
.slot--ocioso { border-color: var(--reserva); background: rgba(62, 125, 90, .08); }
.slot--ocupado { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.slot[aria-pressed="true"] { background: var(--reserva); color: #fff; border-color: var(--reserva); }
.slot[aria-pressed="true"] small { color: #fff; }

/* raspadinha */
.raspa { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; width: 100%; max-width: 360px; margin-inline: auto; background: var(--superficie); border: 2px dashed var(--sol); touch-action: none; user-select: none; }
.raspa__premio { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--s-4); }
.raspa__premio strong { font-family: var(--f-titulo); font-size: var(--t-xl); display: block; }
.raspa canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }

/* cartão de membro */
.membro {
  position: relative; border-radius: var(--r-lg); padding: var(--s-6); color: #fff; overflow: hidden; aspect-ratio: 1.586; max-width: 380px; width: 100%;
  background: radial-gradient(120% 90% at 100% 0%, rgba(253, 193, 16, .35), transparent 55%), linear-gradient(140deg, #0A3D52, #0E5E7E 55%, #127A8F);
  box-shadow: var(--sombra-3); display: flex; flex-direction: column; justify-content: space-between;
}
.membro::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--arco); }
.membro__marca { font-family: var(--f-titulo); font-weight: 700; letter-spacing: .06em; font-size: var(--t-lg); }
.membro__nivel { font-size: var(--t-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sol); }
.membro__nome { font-size: var(--t-lg); font-weight: 700; }
.membro__num { font-variant-numeric: tabular-nums; letter-spacing: .12em; opacity: .85; font-size: var(--t-sm); }

/* KPI */
.kpi { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--r-md); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); position: relative; }
.kpi__rotulo { font-size: var(--t-sm); color: var(--texto-2); font-weight: 600; }
.kpi__valor { font-family: var(--f-titulo); font-size: var(--t-xl); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi__var { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: var(--t-sm); padding: 2px 8px; border-radius: var(--r-pill); width: fit-content; }
.kpi__var--bom { color: var(--positivo); background: rgba(47, 122, 77, .12); }
.kpi__var--ruim { color: var(--negativo); background: rgba(179, 64, 28, .12); }
.kpi__linhas { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-3); font-size: var(--t-xs); color: var(--texto-2); }
.kpi__linhas dd { margin: 0; font-weight: 700; color: var(--texto); text-align: right; font-variant-numeric: tabular-nums; }
.kpi .selo-sim { align-self: flex-start; }

/* slider */
.slider { display: grid; gap: var(--s-2); }
.slider__topo { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--t-sm); font-weight: 600; }
.slider__topo output { font-weight: 800; color: var(--primaria); font-variant-numeric: tabular-nums; white-space: nowrap; }
.slider input[type="range"] { width: 100%; accent-color: var(--acao); height: 28px; }

/* toast */
.toast-area { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 380px); pointer-events: none; }
.toast { background: var(--tinta); color: #fff; padding: 12px 16px; border-radius: var(--r-sm); box-shadow: var(--sombra-2); font-weight: 600; font-size: var(--t-sm); display: flex; gap: 10px; align-items: center; animation: toast-in .25s ease; }
.toast::before { content: ""; width: 6px; align-self: stretch; border-radius: 3px; background: var(--arco); flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* bottom nav */
.bnav { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--superficie); border-top: 1px solid var(--borda); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bnav button, .bnav a { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--texto-2); padding: 6px 2px; cursor: pointer; text-decoration: none; min-height: 48px; justify-content: center; border-radius: 10px; }
.bnav svg { width: 22px; height: 22px; }
.bnav [aria-current="page"] { color: var(--acao); }

/* selo dado simulado */
.selo-sim { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-pill); background: repeating-linear-gradient(-45deg, #FFF1C2, #FFF1C2 6px, #FFE7A0 6px, #FFE7A0 12px); color: #6B4A00; border: 1px solid #E8C35A; white-space: nowrap; }
.selo-sim::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C28A00; }

/* moldura de celular */
.celular { width: 390px; max-width: 100%; height: min(844px, calc(100vh - 48px)); border-radius: 52px; padding: 12px; background: #0D1117; box-shadow: var(--sombra-3), inset 0 0 0 2px #2A313A; position: relative; flex: none; }
.celular__tela { width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: var(--bg); position: relative; display: flex; flex-direction: column; }
.celular::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; border-radius: 20px; background: #0D1117; z-index: 5; }

/* rodapé de protótipo */
.rodape-proto { font-size: var(--t-xs); color: var(--texto-2); text-align: center; padding: var(--s-4); border-top: 1px solid var(--borda); }
.rodape-proto strong { color: var(--texto); }

/* tabela */
.tabela { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.tabela th, .tabela td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--borda); vertical-align: top; }
.tabela th { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--texto-2); }
.tabela td:last-child { font-weight: 800; color: var(--primaria); }
