/* ============ tokens ============ */
:root {
  --bg: #f6f8f3;
  --surface: #ffffff;
  --surface-2: #edf1e8;
  --surface-3: #e0e7d8;
  --text: #121811;
  --muted: #5d6a5a;
  --line: #e1e8da;
  --accent: #a3e635;           /* verde-limão da marca: fundos, botões, destaques */
  --accent-2: #d9f99d;         /* limão claro: degradês e ícones em fundo escuro */
  --accent-ink: #142008;       /* texto sobre o verde-limão */
  --accent-soft: #eef8d8;
  --accent-text: #4d7c0f;      /* verde para TEXTO em fundo claro (o limão some no claro) */
  --ok: #15803d;
  --ok-soft: #e3f5e6;
  --danger: #c62828;
  --stage: #0c110d;           /* fundo escuro das áreas "palco" */
  --stage-ink: #f2f7ee;
  --stage-muted: #a7b3a2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(18, 24, 17, .06);
  --shadow: 0 1px 2px rgba(18, 24, 17, .05), 0 12px 32px -8px rgba(18, 24, 17, .12);
  --shadow-lg: 0 24px 60px -12px rgba(18, 24, 17, .28);
  --font-display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e0a;
    --surface: #121811;
    --surface-2: #1a2218;
    --surface-3: #242e21;
    --text: #eef4ea;
    --muted: #9aa795;
    --line: #263023;
    --accent-soft: #1d2b0c;
    --accent-text: #a3e635;
    --ok-soft: #10301f;
    --stage: #060906;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ============ base ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.hidden { display: none !important; }
.ic { flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.hl { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ topo ============ */
.top { position: sticky; top: 0; z-index: 40; transition: background .2s, border-color .2s; border-bottom: 1px solid transparent; }
.top.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.top nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.top.on-stage:not(.scrolled) { color: var(--stage-ink); }
.top.on-stage:not(.scrolled) .btn-ghost { color: var(--stage-ink); border-color: rgba(255,255,255,.22); }
.top.on-stage:not(.scrolled) .btn-ghost:hover { background: rgba(255,255,255,.1); }
.top.on-stage { position: fixed; left: 0; right: 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-decoration: none; letter-spacing: -.04em; }
.logo-mark { width: 34px; height: 34px; flex: 0 0 auto; display: block; }
.logo-word b { color: var(--accent-text); font-weight: inherit; }

/* ============ botões ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 11px 18px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: transform .08s, background .15s, box-shadow .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 8px 20px -8px var(--accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 90%, #000); }
.btn-ghost { background: transparent; }
.btn-dark { background: var(--text); color: var(--bg); border-color: transparent; }
.btn-dark:hover { background: color-mix(in srgb, var(--text) 85%, var(--bg)); }
.btn-lg { padding: 15px 24px; font-size: 1.02rem; }
.btn-sm { padding: 7px 13px; font-size: .85rem; }
.btn-icon { padding: 9px; width: 40px; height: 40px; }
.btn-danger { color: var(--danger); }
.btn-block { width: 100%; }

/* ============ formulários ============ */
label { display: block; font-weight: 600; font-size: .875rem; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number] {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.btn:focus-visible, a:focus-visible, .tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { margin-bottom: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-prefix input { padding-left: 42px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .875rem; color: var(--muted); cursor: pointer; }
.check input { margin: 3px 0 0; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.check a { color: var(--text); }
.error { color: var(--danger); font-size: .875rem; min-height: 1.3em; margin: 4px 0 8px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--surface-2); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(12,10,8,.62); color: #fff; backdrop-filter: blur(6px); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--accent-soft); color: var(--accent-text); }

/* ============ home: palco ============ */
.stage {
  position: relative; background: var(--stage); color: var(--stage-ink); overflow: hidden; isolation: isolate;
  padding: 120px 0 72px;
}
.stage::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1;
  background: radial-gradient(closest-side, rgba(163, 230, 53, .38), rgba(217, 249, 157, .12) 55%, transparent); filter: blur(10px); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero { display: grid; gap: 48px; align-items: center; grid-template-columns: 1.15fr .85fr; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--stage-muted); max-width: 32em; margin-bottom: 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--stage-ink); border-color: rgba(255,255,255,.22); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 36px; color: var(--stage-muted); font-size: .875rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--accent-2); }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } .stage { padding-top: 104px; } }

/* celular com selfie sendo escaneada */
.device-wrap { position: relative; display: grid; place-items: center; min-height: 520px; }
.device {
  position: relative; width: 260px; aspect-ratio: 9/19; border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, #3a332c, #14110e); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(-4deg);
}
.screen { position: relative; height: 100%; border-radius: 33px; overflow: hidden; background: #1d1915 center/cover; }
.screen::before { content: ""; position: absolute; left: 50%; top: 10px; width: 80px; height: 22px; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 3; }
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.05) 40%, rgba(0,0,0,.7)); }
.scan-frame { position: absolute; left: 50%; top: 40%; width: 58%; aspect-ratio: 3/4; transform: translate(-50%, -50%); z-index: 2; }
.scan-frame i { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; }
.scan-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.scan-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.scan-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.scan-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.scan-line { position: absolute; left: 6%; right: 6%; height: 2px; background: var(--accent-2); box-shadow: 0 0 18px 4px rgba(217,249,157,.7); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 90%; } }
.screen-ui { position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 2; text-align: center; color: #fff; }
.screen-ui .pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); font-size: .8rem; font-weight: 600; }
.screen-ui .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.25); }
.float-card { position: absolute; z-index: 3; background: #fff; color: #17130f; border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
.float-card .ph { width: 116px; aspect-ratio: 4/3; border-radius: 10px; background: #ddd center/cover; }
.float-card .cap { display: flex; align-items: center; gap: 6px; padding: 8px 4px 2px; font-size: .75rem; font-weight: 700; }
.float-card .cap b { color: var(--ok); }
.float-card.a { left: 0; top: 16%; transform: rotate(-7deg); }
.float-card.b { right: 0; bottom: 18%; transform: rotate(6deg); animation-delay: -2.5s; }
.match-pill { position: absolute; z-index: 3; right: 6%; top: 6%; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: 0 16px 30px -10px var(--accent); animation: bob 6s ease-in-out infinite; animation-delay: -1s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 880px) { .device-wrap { min-height: 460px; } .device { width: 220px; } }
@media (max-width: 420px) { .float-card .ph { width: 92px; } }
@media (prefers-reduced-motion: reduce) { .scan-line, .float-card, .match-pill { animation: none; } }

/* ============ seções ============ */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how .card { box-shadow: none; position: relative; overflow: hidden; }
.how .num { font-family: var(--font-display); font-size: 4.5rem; font-weight: 800; line-height: 1; position: absolute; right: 16px; top: 8px; color: var(--surface-2); letter-spacing: -.05em; }
.how .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 18px; position: relative; }
.how h3 { position: relative; }
.how p { color: var(--muted); margin: 0; position: relative; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

/* cartões de evento */
.events { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.event-card { position: relative; display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4/5; box-shadow: var(--shadow); isolation: isolate; }
.event-card .cover { position: absolute; inset: 0; background: var(--surface-3) center/cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); z-index: -2; }
.event-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82)); }
.event-card:hover .cover { transform: scale(1.06); }
.event-card .date { position: absolute; left: 14px; top: 14px; background: #fff; color: #17130f; border-radius: 12px; padding: 6px 10px; text-align: center; line-height: 1; box-shadow: var(--shadow-sm); }
.event-card .date b { display: block; font-family: var(--font-display); font-size: 1.35rem; }
.event-card .date span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); }
.event-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: #fff; }
.event-card h3 { font-size: 1.35rem; margin: 0 0 8px; }
.event-card .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.82); }
.event-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.event-card .go { position: absolute; right: 16px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transform: translateX(-6px); opacity: 0; transition: .25s; }
.event-card:hover .go { transform: none; opacity: 1; }
@media (hover: none) { .event-card .go { opacity: 1; transform: none; } }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.empty .ic { margin: 0 auto 12px; color: var(--accent-text); }

.pro-band { background: var(--stage); color: var(--stage-ink); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.pro-band::before { content: ""; position: absolute; left: -10%; bottom: -60%; width: 60%; aspect-ratio: 1; z-index: -1; background: radial-gradient(closest-side, rgba(163,230,53,.35), transparent); }
.pro-band h2 { color: #fff; }
.pro-band p { color: var(--stage-muted); }
.pro-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pro-band li { display: flex; gap: 10px; align-items: center; }
.pro-band li .ic { color: var(--accent-2); }
@media (max-width: 760px) { .pro-band { grid-template-columns: 1fr; } }

/* ============ página do evento ============ */
.event-hero { position: relative; color: #fff; padding: 112px 0 96px; overflow: hidden; isolation: isolate; background: var(--stage); }
.event-hero .bg { position: absolute; inset: -40px; background: center/cover; filter: blur(28px) saturate(1.2); opacity: .55; z-index: -2; transform: scale(1.1); }
.event-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,8,6,.55), rgba(10,8,6,.85)); }
.event-hero h1 { color: #fff; max-width: 18em; }
.event-hero .chips .chip { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(8px); }
.back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem; font-weight: 600; margin-bottom: 18px; }
.back:hover { color: #fff; }

.finder { position: relative; margin-top: -60px; z-index: 2; display: grid; gap: 24px; grid-template-columns: auto 1fr auto; align-items: center; padding: 26px 28px; box-shadow: var(--shadow-lg); }
.finder .badge-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 12px 24px -10px var(--accent); }
.finder h2 { margin-bottom: 4px; font-size: 1.5rem; }
.finder .lead { color: var(--muted); margin-bottom: 12px; font-size: .95rem; }
.finder .actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
@media (max-width: 860px) {
  .finder { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
  .finder .badge-ico { width: 52px; height: 52px; border-radius: 15px; }
  .finder .actions { min-width: 0; }
}
.status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; padding: 10px 14px; background: var(--surface-2); border-radius: var(--radius-sm); margin-top: 12px; }
.status.err { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.results-head { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin: 40px 0 18px; }
.results-head h2 { margin: 0; display: flex; align-items: center; gap: 12px; }
.results-head .count { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 1.15rem; }
.results-head .row { flex: 0 0 auto; }

/* grade de fotos */
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 40px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.tile { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); cursor: pointer; border: 0; padding: 0; display: block; width: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .15s; pointer-events: none; }
.tile.in-cart::after { box-shadow: inset 0 0 0 4px var(--accent); }
.tile .badge { position: absolute; left: 8px; top: 8px; }
.tile .pick { position: absolute; right: 8px; bottom: 8px; height: 34px; min-width: 34px; padding: 0 9px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: #17130f; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 .8rem var(--font); box-shadow: var(--shadow); transition: background .15s, color .15s; }
.tile .pick span { display: none; }
.tile:hover .pick span { display: inline; }
.tile.in-cart .pick { background: var(--accent); color: var(--accent-ink); }
.tile.in-cart .pick span { display: inline; }
@media (hover: none) { .tile:hover img { transform: none; } .tile .pick span { display: none !important; } }
.tile .score { position: absolute; left: 8px; top: 8px; }

/* carrinho flutuante */
.cartbar { position: fixed; left: 50%; bottom: 16px; z-index: 30; width: min(680px, calc(100vw - 24px)); transform: translate(-50%, 140%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cartbar.show { transform: translate(-50%, 0); }
.cartbar .inner { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 14px; background: var(--stage); color: var(--stage-ink); border-radius: 999px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1); }
.cart-thumbs { display: flex; }
.cart-thumbs img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--stage); margin-left: -12px; }
.cart-thumbs img:first-child { margin-left: 0; }
.cartbar .txt { line-height: 1.2; min-width: 0; white-space: nowrap; }
.cartbar .txt small { color: var(--stage-muted); }
.cartbar .total { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
body.has-cart { padding-bottom: 96px; }
@media (max-width: 480px) { .cart-thumbs { display: none; } .cartbar .inner { padding-left: 18px; } }

/* ============ modais ============ */
dialog { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 24px)); width: 100%; color: var(--text); }
dialog[open] { animation: pop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
dialog::backdrop { background: rgba(8, 6, 4, .72); backdrop-filter: blur(4px); }
dialog .card { padding: 28px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.summary { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); margin: 12px 0 20px; }
.summary .cart-thumbs img { border-color: var(--surface-2); }
.summary .grow { flex: 1; min-width: 0; font-size: .9rem; }
.summary b { font-family: var(--font-display); font-size: 1.25rem; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .8rem; color: var(--muted); margin-top: 14px; }

.lightbox { max-width: min(1200px, calc(100vw - 16px)); }
.lightbox .frame { position: relative; background: #0a0807; border-radius: var(--radius); overflow: hidden; display: grid; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); }
.lightbox .nav:hover { background: rgba(255,255,255,.26); }
.lightbox .prev { left: 14px; } .lightbox .next { right: 14px; }
.lightbox .close { position: absolute; right: 14px; top: 14px; }
.lightbox .bar { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: #15110e; color: #fff; }
.lightbox .bar .spacer { flex: 1; }
.lightbox .bar .muted { color: #a69c90; }

/* ============ painel ============ */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); }
.auth-side { background: var(--stage); color: var(--stage-ink); padding: clamp(32px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; isolation: isolate; }
.auth-side::before { content: ""; position: absolute; right: -30%; top: -30%; width: 90%; aspect-ratio: 1; z-index: -1; background: radial-gradient(closest-side, rgba(163,230,53,.35), transparent); }
.auth-side h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.auth-side p { color: var(--stage-muted); max-width: 30em; }
.auth-side ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; }
.auth-side li .ic { color: var(--accent-2); margin-top: 2px; }
.auth-main { display: grid; place-items: center; padding: 40px 16px; }
.auth-main .card { width: 100%; max-width: 420px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { padding: 40px 20px; } }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; margin: 18px 0 22px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 36px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 28px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: center; }
.stat .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); flex: none; }
.stat.hot .ico { background: var(--accent-soft); color: var(--accent-text); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .8rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 10px; } .stat { padding: 14px; } }

.dash-events { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); padding-bottom: 56px; }
.dash-card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.dash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dash-card .cover { aspect-ratio: 16/8; background: var(--surface-2) center/cover; display: grid; place-items: center; color: var(--muted); }
.dash-card .body { padding: 16px 18px 18px; }
.dash-card h3 { margin: 0 0 4px; }
.dash-card .nums { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.dash-card .nums b { color: var(--text); }
.new-card { border: 1.5px dashed var(--line); background: transparent; display: grid; place-items: center; text-align: center; min-height: 240px; cursor: pointer; color: var(--muted); font: inherit; border-radius: var(--radius); transition: border-color .15s, color .15s; }
.new-card:hover { border-color: var(--accent); color: var(--accent-text); }
.new-card .plus { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin: 0 auto 10px; }

.drop { display: block; border: 2px dashed var(--line); border-radius: var(--radius); padding: 44px 20px; text-align: center; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; margin: 0; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .up-ico { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 12px 24px -10px var(--accent); }
.drop strong { display: block; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 4px; }
.upload-card { margin-top: 14px; }
.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 10px 0 8px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; transition: width .25s; }
.tile .del { position: absolute; right: 8px; bottom: 8px; opacity: 0; transition: opacity .15s; background: rgba(255,255,255,.94); color: var(--danger); border: 0; }
.tile:hover .del, .tile:focus-within .del { opacity: 1; }
@media (hover: none) { .tile .del { opacity: 1; } }
.mgmt-actions { display: flex; gap: 8px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; padding: 8px 16px; }

/* ============ pedido ============ */
.order-head { text-align: center; padding: 56px 0 28px; max-width: 640px; margin: 0 auto; }
.order-ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.order-ico.ok { background: var(--ok-soft); color: var(--ok); }
.order-ico.wait { background: var(--accent-soft); color: var(--accent-text); }
.order-total { display: inline-flex; gap: 10px; align-items: center; margin-top: 4px; }
.demo-box { max-width: 560px; margin: 0 auto 28px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.demo-box .grow { flex: 1 1 240px; }
.dl-tile .btn { margin-top: 8px; }

/* ============ diversos ============ */
.toast { position: fixed; left: 50%; bottom: 100px; z-index: 100; display: inline-flex; align-items: center; gap: 8px; background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s cubic-bezier(.2,.8,.2,1); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .875rem; margin-top: 24px; }
.foot { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 32px; align-items: center; }
.foot .logo { font-size: 1.1rem; color: var(--text); }
.foot .logo-mark { width: 28px; height: 28px; }
.foot p { margin: 0; display: flex; align-items: center; gap: 8px; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot small { grid-column: 1 / -1; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
.prose { max-width: 720px; margin: 0 auto; padding: 48px 0 32px; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose p { color: var(--muted); }

/* ============ pagamento PIX na página ============ */
.methods { border: 0; padding: 0; margin: 4px 0 16px; display: grid; gap: 8px; }
.methods legend { font-weight: 600; font-size: .875rem; margin-bottom: 8px; padding: 0; }
.method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 400; margin: 0; transition: border-color .15s, background .15s; }
.method:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.method input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.method strong { display: block; font-size: .95rem; }
.method small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.m-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); flex: none; font-weight: 800; font-size: .72rem; letter-spacing: .02em; }
.m-pix { background: #32bcad; color: #fff; }

.pix { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.pix-qr { width: 220px; height: 220px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.pix-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.pix-demo { display: grid; place-items: center; gap: 8px; text-align: center; color: #6e665d; font-size: .8rem; font-weight: 600; }
.pix-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.pix-steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: .9rem; display: grid; gap: 6px; }
.pix-steps b { color: var(--text); }
.pix-code { display: flex; gap: 8px; }
.pix-code input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; background: var(--surface-2); }
.pix-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .9rem; color: var(--muted); }
.pix-status b { color: var(--text); font-variant-numeric: tabular-nums; }
.pix-expired, .pix-paid { text-align: center; padding: 8px 0; }
.pix-expired h3, .pix-paid h2 { margin-bottom: 6px; }
.pix-paid .order-ico, .pix-expired .order-ico { margin-bottom: 14px; }
@media (max-width: 560px) {
  .pix { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pix-qr { width: 200px; height: 200px; }
  .pix-steps { text-align: left; }
}
.order-pix { max-width: 560px; margin: 0 auto 32px; }

/* ============ painel administrador ============ */
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; background: var(--surface-2); border-radius: 999px; margin: 18px 0 22px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button { flex: 0 0 auto; border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.admin-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }
.stat small { display: block; font-size: .75rem; margin-top: 2px; }
.admin-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding: 12px 0 6px; border-bottom: 1px solid var(--line); }
.bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar i, .bar em { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px 4px 0 0; min-height: 0; }
.bar i { background: var(--surface-3); }
.bar em { background: var(--accent); }
.bar:hover i { background: color-mix(in srgb, var(--accent) 35%, var(--surface-3)); }
.bars-legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: .8rem; margin-top: 10px; }
.bars-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bars-legend .muted { margin-left: auto; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg.gross { background: var(--surface-3); } .lg.fee { background: var(--accent); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.badge-danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.owed { color: var(--accent-text); }
td.actions { white-space: nowrap; text-align: right; }
td.actions .btn + .btn { margin-left: 6px; }
.cell-ev { display: flex; gap: 10px; align-items: center; min-width: 200px; }
.mini { width: 44px; height: 44px; border-radius: 8px; background: var(--surface-2) center/cover; flex: none; }
.chip-btn { border: 1px solid var(--line); cursor: pointer; font: inherit; font-weight: 600; font-size: .85rem; }
.chip-btn.on { background: var(--text); color: var(--bg); border-color: transparent; }
.money-note { font-size: .8rem; color: var(--muted); margin: -14px 0 24px; }

/* ============ home profissional ============ */
.hero-photo { position: relative; isolation: isolate; color: var(--stage-ink); background: var(--stage); padding: 140px 0 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url('https://images.unsplash.com/photo-1760315972424-1637530daead?auto=format&fit=crop&w=2000&q=70') center 55%/cover; transform: scale(1.03); }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,8,6,.92) 0%, rgba(10,8,6,.72) 50%, rgba(10,8,6,.35) 100%), linear-gradient(0deg, rgba(10,8,6,.9), transparent 45%); }
.hero-inner { max-width: 1180px; }
.hero-photo h1 { color: #fff; max-width: 15em; margin-bottom: 18px; }
.hero-photo .lead { color: #d9d0c5; font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 34em; margin-bottom: 28px; }
.search-bar { display: flex; align-items: center; gap: 10px; max-width: 680px; background: #fff; border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }
.search-bar .ic { color: #8a8077; }
.search-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; color: #17130f; padding: 10px 0; }
.search-bar input::placeholder { color: #8a8077; }
.search-bar input:focus { box-shadow: none; }
@media (max-width: 560px) {
  .search-bar { flex-wrap: wrap; border-radius: 22px; padding: 10px; }
  .search-bar .ic { margin-left: 8px; }
  .search-bar input { flex: 1 1 60%; }
  .search-bar .btn { width: 100%; }
}
.quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: .85rem; color: #b5aa9c; }
.qchip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.qchip:hover { background: rgba(255,255,255,.16); }
.hero-photo .trust { margin-top: 32px; }

.stats-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-strip .wrap > div { padding: 22px 16px; border-left: 1px solid var(--line); }
.stats-strip .wrap > div:first-child { border-left: 0; padding-left: 0; }
.stats-strip b { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.03em; line-height: 1.1; }
.stats-strip span { color: var(--muted); font-size: .85rem; }
@media (max-width: 720px) {
  .stats-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .stats-strip .wrap > div { padding: 16px 12px; border-left: 0; }
  .stats-strip .wrap > div:nth-child(odd) { padding-left: 0; }
  .stats-strip .wrap > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: -8px 0 22px; }
.tool-search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; margin: 0; font-weight: 400; }
.tool-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tool-search .ic { color: var(--muted); }
.tool-search input { border: 0; background: transparent; padding: 11px 0; box-shadow: none !important; }
.toolbar select { font: inherit; font-size: .9rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; cursor: pointer; }

.how-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .how-split { grid-template-columns: 1fr; gap: 32px; } }
.mosaic { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 440px; }
.mosaic .m { border-radius: var(--radius); background: var(--surface-2) center/cover; box-shadow: var(--shadow); }
.mosaic .m1 { grid-row: 1 / 3; }
.m-badge { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); white-space: nowrap; }
.m-badge .ic { color: var(--accent-text); }
@media (max-width: 560px) { .mosaic { height: 320px; } }
.steps-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.steps-list li { display: flex; gap: 16px; }
.steps-list .n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; background: var(--accent-soft); color: var(--accent-text); }
.steps-list strong { font-size: 1.05rem; }
.steps-list p { margin: 2px 0 0; color: var(--muted); }

.photo-band { overflow: hidden; padding: 8px 0 24px; }
.band-track { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; padding: 0 16px; }
.band-track div { aspect-ratio: 4/5; border-radius: var(--radius); background: var(--surface-2) center/cover; }
@media (max-width: 860px) { .band-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .band-track div { flex: 0 0 62%; scroll-snap-align: start; } .band-track::-webkit-scrollbar { display: none; } }

.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 20px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent-text); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }
.photo-credit { font-size: .75rem; color: var(--muted); margin-top: 0; }

/* ============ editor de capa (admin) ============ */
.cover-preview { aspect-ratio: 16/8; border-radius: var(--radius-sm); background: var(--surface-2) center/cover; margin-bottom: 14px; display: grid; place-items: center; color: var(--muted); }
.cover-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; margin-top: 8px; padding: 2px; }
.cover-pick button { aspect-ratio: 1; border: 0; padding: 0; border-radius: 8px; background: var(--surface-2) center/cover; cursor: pointer; outline-offset: 2px; }
.cover-pick button.on { outline: 3px solid var(--accent); }
.cover-pick button:hover { filter: brightness(1.1); }
.cover-tabs { margin: 14px 0 12px; }
dialog.wide { max-width: min(680px, calc(100vw - 24px)); }

/* ============ preço, busca e comissão ============ */
select.select { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.field small { display: block; margin-top: 6px; font-size: .78rem; }
.price-edit { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; }
.price-edit .ic { color: var(--accent-text); }
.price-edit select { border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; padding: 10px 6px; cursor: pointer; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.admin-toolbar .tool-search { max-width: 420px; }
.fee-cell { white-space: nowrap; }
.fee-cell .btn { margin-left: 4px; padding: 4px 9px; }

/* ============ carteira / saques ============ */
.wallet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 28px; box-shadow: var(--shadow-sm); }
.wallet-main { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.wallet-amount { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.wallet-actions { display: grid; gap: 6px; justify-items: end; }
.wallet-hint { text-align: right; }
.wallet-pix { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; }
.wallet-pix span { display: inline-flex; align-items: center; gap: 6px; }
.wallet-pix .ic { color: var(--ok); }
.wallet-pix .owed .ic { color: var(--accent-text); }
.wallet-history { margin-top: 14px; padding: 0; }
@media (max-width: 560px) { .wallet-actions { justify-items: stretch; width: 100%; } .wallet-hint { text-align: left; } }
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 800; }
.pix-key-cell { display: flex; align-items: center; gap: 6px; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.pix-key-cell .btn { font-family: var(--font); }
.alert-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--text); text-decoration: none; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.alert-bar > .ic:first-child { color: var(--accent-text); }
.alert-bar span { flex: 1; }

/* ============ categorias ============ */
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: -6px 0 20px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cat-chip span { font-size: .75rem; color: var(--muted); font-weight: 700; }
.cat-chip:hover { border-color: var(--accent); }
.cat-chip.on { background: var(--text); color: var(--bg); border-color: transparent; }
.cat-chip.on span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.cat-chip.empty { opacity: .55; }
.event-card .cat-badge { position: absolute; right: 14px; top: 14px; padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(12,10,8,.6); backdrop-filter: blur(6px); }
.cat-select { width: auto; min-width: 150px; padding: 7px 10px; font-size: .85rem; }

/* ============ busca aperfeiçoada ============ */
.bib-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.bib-search .bib-label { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
.bib-search .bib-label .ic { color: var(--accent-text); }
.bib-search input { width: 120px; padding: 8px 12px; font-size: 1rem; font-weight: 700; letter-spacing: .05em; }
.maybe-head { margin-top: 8px; }
.tile.maybe img { filter: saturate(.85); }
.tile .me-btn { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 999px; border: 0; background: rgba(255,255,255,.94); color: #17130f; font: 700 .8rem var(--font); cursor: pointer; box-shadow: var(--shadow); }
.tile.is-me .me-btn { background: var(--ok); color: #fff; }
.tile.is-me::after { box-shadow: inset 0 0 0 4px var(--ok); }
.tile.maybe .score { background: rgba(120, 90, 0, .7); }
.more-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin: 0 0 40px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

/* câmera guiada */
.cam-dialog { max-width: min(520px, calc(100vw - 16px)); }
.cam-frame { position: relative; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 3/4; }
.cam-frame video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.cam-oval { position: absolute; left: 50%; top: 44%; width: 58%; aspect-ratio: 3/4; transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.45); border: 3px dashed rgba(255,255,255,.8); transition: border-color .2s; }
.cam-oval.ok { border: 3px solid #3ddc84; }
.cam-close { position: absolute; right: 12px; top: 12px; transform: none !important; top: 12px !important; }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; display: grid; justify-items: center; gap: 12px; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); }
.cam-msg { color: #fff; font-weight: 700; text-align: center; background: rgba(0,0,0,.45); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.cam-msg.ok { background: #138a4c; }
.cam-shot { width: 68px; height: 68px; border-radius: 50%; border: 4px solid #fff; background: var(--accent); cursor: pointer; }
.cam-shot:disabled { background: rgba(255,255,255,.25); cursor: not-allowed; }
.bib-toggle { margin: 0 0 12px; }

/* ============ perfil do fotógrafo, conquistas e selo ============ */
.verified { display: inline-flex; vertical-align: middle; margin-left: 6px; line-height: 0; }
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.avatar-ph { display: inline-grid; place-items: center; font-weight: 800; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-family: var(--font-display); }
.profile-hero { position: relative; isolation: isolate; background: var(--stage); color: #fff; padding: 120px 0 36px; overflow: hidden; }
.profile-bg { position: absolute; inset: -40px; z-index: -2; background: center/cover; filter: blur(30px) saturate(1.2); opacity: .5; }
.profile-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,8,6,.45), rgba(10,8,6,.9)); }
.profile-head { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.profile-head .avatar { width: 120px; height: 120px; border: 4px solid rgba(255,255,255,.9); box-shadow: var(--shadow-lg); }
.profile-id { flex: 1; min-width: 240px; }
.profile-id h1 { color: #fff; margin: 0 0 12px; font-size: clamp(1.8rem, 4.5vw, 3rem); }
.profile-hero .chip { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; backdrop-filter: blur(8px); }
.chip-verified { background: rgba(29,155,240,.22) !important; }
.chip .verified { margin-left: 0; }
.profile-bio { font-size: 1.08rem; max-width: 46em; margin: 28px 0 8px; white-space: pre-line; }
.profile-stats { display: flex; gap: 32px; flex-wrap: wrap; margin: 20px 0 8px; }
.profile-stats b { display: block; font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -.03em; line-height: 1.1; }
.profile-stats span { color: var(--muted); font-size: .85rem; }
.ach-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: 32px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ach strong { display: block; font-size: .92rem; }
.ach small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.ach-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.ach.earned .ach-ico { background: linear-gradient(135deg, #ffcf4d, #ff8a3d); color: #3a1d00; box-shadow: 0 6px 16px -8px #ff8a3d; }
.ach.locked { opacity: .78; }
.ach .ach-prog { height: 5px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.ach .ach-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.by-photographer { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: #fff; text-decoration: none; background: rgba(255,255,255,.1); padding: 6px 14px 6px 6px; border-radius: 999px; backdrop-filter: blur(8px); font-size: .92rem; }
.by-photographer:hover { background: rgba(255,255,255,.18); }
.by-photographer small { display: block; color: rgba(255,255,255,.7); font-size: .72rem; line-height: 1.1; }
/* cartão de perfil no painel */
.me-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 22px; }
.me-card .grow { flex: 1; min-width: 220px; }
.me-card h3 { margin: 0 0 4px; display: flex; align-items: center; }
.me-link { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); word-break: break-all; }
.verify-progress { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.avatar-edit { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.admin-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(29,155,240,.12); border: 1px solid rgba(29,155,240,.35); margin: 14px 0 0; font-size: .92rem; }
.admin-banner .ic { color: #1d9bf0; }
.textarea { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ach-group h3 { font-size: .95rem; color: var(--muted); margin: 18px 0 10px; text-transform: uppercase; letter-spacing: .06em; }
#pf-base { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* Mosaico de eventos: 5 por linha no computador, 4 no tablet e 3 no celular. */
.events { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.event-card { border-radius: 14px; }
.event-card .info { padding: 14px; }
.event-card h3 { font-size: 1.05rem; line-height: 1.2; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-card .meta { gap: 4px 10px; font-size: .76rem; }
.event-card .meta span:first-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.event-card .date { left: 10px; top: 10px; padding: 5px 8px; border-radius: 10px; }
.event-card .date b { font-size: 1.1rem; }
.event-card .date span { font-size: .62rem; }
.event-card .cat-badge { right: 10px; top: 10px; padding: 4px 8px; font-size: .66rem; max-width: calc(100% - 76px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-card .go { width: 34px; height: 34px; right: 12px; bottom: 14px; }
.event-card:hover .go { opacity: 0; }
@media (hover: hover) { .event-card:hover .meta { opacity: .9; } }
@media (hover: none) { .event-card .go { display: none; } }
.events > .status, .events > .empty { grid-column: 1 / -1; }
@media (max-width: 1023px) { .events { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .events { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .event-card { border-radius: 10px; aspect-ratio: 3/4; }
  .event-card::after { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.85)); }
  .event-card .info { padding: 8px; }
  .event-card h3 { font-size: .78rem; margin: 0 0 3px; }
  .event-card .meta { font-size: .66rem; }
  .event-card .meta span:not(:nth-last-child(2)) { display: none; }
  .event-card .meta svg { width: 11px; height: 11px; }
  .event-card .date { left: 6px; top: 6px; padding: 3px 6px; border-radius: 7px; }
  .event-card .date b { font-size: .85rem; }
  .event-card .date span { font-size: .52rem; }
  .event-card .cat-badge { display: none; }
}

/* Login: Google, "ou", links de texto */
.google-wrap { margin-top: 18px; }
.google-wrap #google-btn { display: flex; justify-content: center; min-height: 44px; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; color: var(--muted); font-size: .8rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.link-btn { display: block; margin: 14px auto 0; background: none; border: 0; padding: 4px; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.status:not(.hidden) svg { flex: 0 0 auto; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Em fundos escuros, o texto de destaque usa o limão vivo. */
.stage, .hero-photo, .pro-band, .event-hero, .cartbar .inner, .auth-side, .profile-hero, .lightbox, .top.on-stage:not(.scrolled) { --accent-text: var(--accent); }
