/* ============================================================
   TETR!Z PASS — Design System
   Preto + amarelo mostarda · tech, fluido, premium
   ============================================================ */

:root {
  /* Brand */
  --tz-yellow: #F5B301;
  --tz-yellow-2: #FFC72E;
  --tz-yellow-deep: #D99A00;
  --tz-yellow-soft: rgba(245, 179, 1, 0.12);

  /* Ink scale (dark) */
  --ink: #0a0a0a;
  --bg: #0d0d0d;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --elevated: #1f1f1f;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f4f4f4;
  --muted: #9a9a9a;
  --muted-2: #6e6e6e;

  --green: #34d399;
  --red: #ff5a4d;
  --blue: #4f9bff;

  --font-display: "Sora", system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --pill: 999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --glow: 0 10px 30px rgba(245, 179, 1, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: #050505;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--tz-yellow); color: #0d0d0d; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; background-clip: content-box; }

/* ---- Logo lockup --------------------------------------------------------- */
.tz-logo { display: inline-flex; align-items: center; gap: 9px; }
.tz-logo-pass {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.62em;
  padding-left: 9px;
  margin-left: 1px;
  border-left: 1.5px solid var(--tz-yellow);
  line-height: 1;
  transform: translateY(1px);
}

/* ============================================================
   APP SHELL  (demo switcher chrome)
   ============================================================ */
#root { min-height: 100vh; }
.tz-shell { min-height: 100vh; display: flex; flex-direction: column; background:
  radial-gradient(140% 90% at 50% -10%, #161616 0%, #070707 55%); }

.tz-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 22px;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.tz-switch { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: var(--pill); border: 1px solid var(--line); }
.tz-switch button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--pill);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: all 0.18s ease; white-space: nowrap;
}
.tz-switch button:hover { color: var(--text); }
.tz-switch button.on { background: var(--tz-yellow); color: #0d0d0d; box-shadow: var(--glow); }
.tz-topbar-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12.5px; }
.tz-chip-live { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; font-size: 12px; }
.tz-chip-live i { width: 7px; height: 7px; border-radius: 99px; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,0.18); animation: tzpulse 2s infinite; }
@keyframes tzpulse { 50% { opacity: 0.4; } }

.tz-stage { flex: 1; display: flex; justify-content: center; padding: 34px 22px 60px; }
.tz-stage.desktop { padding: 0; align-items: stretch; }
.tz-shell.desktop-lock { height: 100vh; overflow: hidden; }
.tz-shell.desktop-lock .tz-stage.desktop { height: 100%; min-height: 0; overflow: hidden; }

/* ---- Phone frame --------------------------------------------------------- */
.tz-phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tz-phone {
  width: 390px; height: 820px;
  background: #000; border-radius: 52px; padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px #1c1c1c, inset 0 0 0 2px #232323;
  position: relative;
}
.tz-phone-screen {
  width: 100%; height: 100%; border-radius: 42px; overflow: hidden;
  background: var(--bg); position: relative; display: flex; flex-direction: column;
}
.tz-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 30px; background: #000; border-radius: 99px; z-index: 40;
}
.tz-caption { color: var(--muted); font-size: 13px; text-align: center; max-width: 360px; }
.tz-caption b { color: var(--text); font-weight: 600; }

/* ---- Screen scroll area -------------------------------------------------- */
.tz-screen { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; }
.tz-screen::-webkit-scrollbar { width: 0; }
.tz-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 26px 6px; font-size: 13px; font-weight: 600; color: var(--text);
  position: sticky; top: 0; z-index: 30;
}
.tz-statusbar .dots { display: flex; gap: 5px; align-items: center; }
.tz-statusbar .dots b { width: 16px; height: 9px; border: 1.4px solid var(--text); border-radius: 3px; display: inline-block; position: relative; }
.tz-statusbar .dots b::after { content: ""; position: absolute; inset: 1.5px; background: var(--text); border-radius: 1px; }

/* ============================================================
   COVER MOTIF (placeholder imagery)
   ============================================================ */
.tz-cover { position: relative; overflow: hidden; isolation: isolate; }
.tz-cover-shine { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%); z-index: 2; }
.tz-cover-motif { position: absolute; inset: 0; z-index: 1; opacity: 0.9; }
.tz-cover-motif span { position: absolute; background: var(--acc); border-radius: 4px; opacity: 0.16; }
.tz-cover-motif[data-motif] span:nth-child(1) { width: 64px; height: 64px; top: -16px; right: 8%; transform: rotate(12deg); }
.tz-cover-motif[data-motif] span:nth-child(2) { width: 38px; height: 38px; top: 30%; right: 22%; opacity: 0.1; }
.tz-cover-motif[data-motif] span:nth-child(3) { width: 90px; height: 26px; bottom: 18%; right: -10px; opacity: 0.12; }
.tz-cover-motif[data-motif] span:nth-child(4) { width: 26px; height: 80px; top: 10%; left: 6%; opacity: 0.08; }
.tz-cover-motif[data-motif] span:nth-child(5) { width: 46px; height: 46px; bottom: -14px; left: 20%; transform: rotate(20deg); opacity: 0.13; }
.tz-cover-motif[data-motif] span:nth-child(n+6) { display: none; }
.tz-cover-motif[data-motif="dots"] span { border-radius: 99px; }
.tz-cover-motif[data-motif="wave"] span { border-radius: 99px 99px 0 0; }

/* ============================================================
   GENERIC UI BITS
   ============================================================ */
.tz-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  padding: 4px 9px; border-radius: var(--pill); text-transform: uppercase;
}
.tz-badge.yellow { background: var(--tz-yellow); color: #0d0d0d; }
.tz-badge.soft { background: var(--tz-yellow-soft); color: var(--tz-yellow); }
.tz-badge.dark { background: rgba(0,0,0,0.55); color: #fff; backdrop-filter: blur(6px); }
.tz-badge.green { background: rgba(52,211,153,0.16); color: var(--green); }
.tz-badge.line { border: 1px solid var(--line-2); color: var(--muted); }

.tz-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--tz-yellow);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.tz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 15px 22px; border-radius: var(--r-md);
  transition: transform 0.12s ease, box-shadow 0.18s, background 0.18s, opacity 0.18s;
  white-space: nowrap;
}
.tz-btn:active { transform: scale(0.975); }
.tz-btn.primary { background: var(--tz-yellow); color: #0d0d0d; box-shadow: var(--glow); }
.tz-btn.primary:hover { background: var(--tz-yellow-2); }
.tz-btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
.tz-btn.ghost:hover { background: var(--elevated); }
.tz-btn.dark { background: #0d0d0d; color: #fff; }
.tz-btn.block { width: 100%; }
.tz-btn.lg { padding: 17px 24px; font-size: 16px; }
.tz-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.tz-iconbtn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: background 0.16s;
}
.tz-iconbtn:hover { background: var(--elevated); }
.tz-iconbtn.glass { background: rgba(0,0,0,0.45); border-color: rgba(255,255,255,0.18); backdrop-filter: blur(8px); }

/* ============================================================
   CLIENT — Vitrine
   ============================================================ */
.tz-app { display: flex; flex-direction: column; min-height: 100%; }
.tz-app-head { padding: 6px 22px 12px; display: flex; align-items: center; justify-content: space-between; }
.tz-app-loc { display: flex; flex-direction: column; gap: 2px; }
.tz-app-loc .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tz-app-loc .city { display: flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }

.tz-search {
  margin: 4px 22px 0; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill);
  padding: 13px 17px; color: var(--muted-2);
}
.tz-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14.5px; }
.tz-search input::placeholder { color: var(--muted-2); }

.tz-cats { display: flex; gap: 8px; overflow-x: auto; padding: 16px 22px 4px; scrollbar-width: none; }
.tz-cats::-webkit-scrollbar { display: none; }
.tz-cats button {
  padding: 9px 16px; border-radius: var(--pill); font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
  transition: all 0.15s;
}
.tz-cats button.on { background: var(--tz-yellow); color: #0d0d0d; border-color: var(--tz-yellow); }

.tz-section-h { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 22px 12px; }
.tz-section-h h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.tz-section-h a { font-size: 13px; color: var(--tz-yellow); font-weight: 600; }

/* Featured hero card */
.tz-hero { margin: 0 22px; border-radius: var(--r-xl); overflow: hidden; position: relative; height: 360px; cursor: pointer; box-shadow: var(--shadow-md); }
.tz-hero .tz-cover { position: absolute; inset: 0; }
.tz-hero-body { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.tz-hero-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tz-hero-foot h2 { font-family: var(--font-display); font-size: 27px; line-height: 1.08; font-weight: 800; margin: 12px 0 8px; letter-spacing: -0.02em; }
.tz-hero-meta { display: flex; gap: 14px; color: rgba(255,255,255,0.82); font-size: 13px; font-weight: 500; }
.tz-hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tz-hero-cta { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tz-hero-price { font-family: var(--font-display); }
.tz-hero-price .from { font-size: 11px; color: rgba(255,255,255,0.6); display: block; }
.tz-hero-price .v { font-size: 21px; font-weight: 800; }

/* Date chip */
.tz-datechip { background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r-md); padding: 7px 11px; text-align: center; min-width: 52px; }
.tz-datechip .d { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1; }
.tz-datechip .m { font-size: 10px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

/* Event row cards */
.tz-list { display: flex; flex-direction: column; gap: 14px; padding: 4px 22px 24px; }
.tz-ecard { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; cursor: pointer; transition: border-color 0.16s, transform 0.16s, background 0.16s; }
.tz-ecard:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-1px); }
.tz-ecard-cover { width: 92px; height: 92px; border-radius: var(--r-md); flex-shrink: 0; position: relative; overflow: hidden; }
.tz-ecard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tz-ecard-body .ttl { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.tz-ecard-meta { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tz-ecard-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tz-ecard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.tz-ecard-foot .price { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.tz-ecard-foot .price small { font-weight: 500; color: var(--muted); font-size: 11px; }

/* Bottom nav */
.tz-bottomnav { display: flex; justify-content: space-around; align-items: center; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(10,10,10,0.9); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.tz-bottomnav button { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted-2); font-size: 10.5px; font-weight: 600; padding: 4px 14px; border-radius: 12px; }
.tz-bottomnav button.on { color: var(--tz-yellow); }

/* ============================================================
   CLIENT — Sales page (event detail)
   ============================================================ */
.tz-detail-hero { height: 320px; position: relative; }
.tz-detail-hero .tz-cover { position: absolute; inset: 0; }
.tz-detail-topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; padding: 50px 18px 0; }
.tz-detail-topbar .right { display: flex; gap: 8px; }
.tz-detail-hero-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; padding: 20px; }
.tz-detail-hero-foot h1 { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 10px 0 0; color: #fff; }

.tz-detail-body { padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 22px; }
.tz-infogrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tz-info { display: flex; gap: 11px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px; }
.tz-info .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--tz-yellow-soft); color: var(--tz-yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tz-info .lbl { font-size: 11px; color: var(--muted); }
.tz-info .val { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; margin-top: 1px; }

.tz-h-sec { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.01em; }
.tz-about { color: #c9c9c9; font-size: 14.5px; line-height: 1.6; }
.tz-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tz-highlights .h { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 8px 13px; font-size: 12.5px; color: #d6d6d6; }
.tz-highlights .h svg { color: var(--tz-yellow); }

.tz-organizer { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.tz-organizer .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--tz-yellow), var(--tz-yellow-deep)); color: #0d0d0d; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; }

/* Ticket selector */
.tz-ticket { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px; transition: border-color 0.16s, background 0.16s; }
.tz-ticket.active { border-color: var(--tz-yellow); background: linear-gradient(180deg, var(--tz-yellow-soft), transparent); }
.tz-ticket .t-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.tz-ticket .t-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.tz-ticket .t-price { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.tz-ticket .t-price small { display: block; font-weight: 500; font-size: 10.5px; color: var(--muted); text-align: right; }

.tz-stepper { display: flex; align-items: center; gap: 0; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--pill); }
.tz-stepper button { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text); transition: background 0.14s; }
.tz-stepper button:hover:not(:disabled) { background: var(--surface-2); }
.tz-stepper button:disabled { color: var(--muted-2); }
.tz-stepper .n { min-width: 22px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; }

/* Sticky purchase bar */
.tz-buybar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: rgba(10,10,10,0.94); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.tz-buybar .total { flex: 1; }
.tz-buybar .total .lbl { font-size: 11px; color: var(--muted); }
.tz-buybar .total .v { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.tz-buybar .total .v small { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ============================================================
   CLIENT — Checkout (Asaas)
   ============================================================ */
.tz-co { display: flex; flex-direction: column; min-height: 100%; }
.tz-co-head { display: flex; align-items: center; gap: 14px; padding: 50px 20px 16px; border-bottom: 1px solid var(--line); }
.tz-co-head h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0; }
.tz-steps { display: flex; gap: 6px; padding: 16px 22px 0; }
.tz-steps .s { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.tz-steps .s.done { background: var(--tz-yellow); }
.tz-co-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; }

.tz-field { display: flex; flex-direction: column; gap: 7px; }
.tz-field label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tz-field input, .tz-field select {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 14px 15px; color: var(--text); font-size: 14.5px; outline: none; transition: border-color 0.16s;
}
.tz-field input:focus, .tz-field select:focus { border-color: var(--tz-yellow); }
.tz-field input::placeholder { color: var(--muted-2); }
.tz-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tz-pay { display: flex; flex-direction: column; gap: 10px; }
.tz-payopt { display: flex; align-items: center; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px; transition: border-color 0.16s, background 0.16s; cursor: pointer; }
.tz-payopt.on { border-color: var(--tz-yellow); background: var(--tz-yellow-soft); }
.tz-payopt .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--text); }
.tz-payopt.on .ic { background: var(--tz-yellow); color: #0d0d0d; }
.tz-payopt .nm { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.tz-payopt .ds { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tz-payopt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; position: relative; }
.tz-payopt.on .radio { border-color: var(--tz-yellow); }
.tz-payopt.on .radio::after { content: ""; position: absolute; inset: 3px; background: var(--tz-yellow); border-radius: 50%; }

.tz-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.tz-summary .ln { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.tz-summary .ln b { color: var(--text); font-weight: 600; }
.tz-summary .tot { display: flex; justify-content: space-between; align-items: center; padding-top: 11px; border-top: 1px dashed var(--line-2); }
.tz-summary .tot .v { font-family: var(--font-display); font-weight: 800; font-size: 20px; }

.tz-asaas-note { display: flex; align-items: center; gap: 9px; justify-content: center; color: var(--muted); font-size: 11.5px; padding: 4px; }
.tz-asaas-note b { color: var(--text); }

/* PIX screen */
.tz-pix { padding: 30px 22px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.tz-pix-qr { background: #fff; padding: 16px; border-radius: var(--r-lg); box-shadow: var(--glow); }
.tz-pix-code { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 13px 15px; }
.tz-pix-code code { flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-timer { font-family: var(--font-mono); font-weight: 600; color: var(--tz-yellow); }

/* Success / ticket */
.tz-success { padding: 40px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.tz-success .ok { width: 84px; height: 84px; border-radius: 50%; background: var(--tz-yellow); color: #0d0d0d; display: flex; align-items: center; justify-content: center; box-shadow: var(--glow); margin-bottom: 8px; animation: tzpop 0.5s cubic-bezier(.2,1.4,.4,1); }
@keyframes tzpop { from { transform: scale(0); } }
.tz-success h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin: 6px 0 2px; }
.tz-success p { color: var(--muted); font-size: 14px; margin: 0; }

.tz-eticket { width: 100%; margin-top: 22px; background: #fff; color: #0d0d0d; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.tz-eticket-top { background: #0d0d0d; color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.tz-eticket-main { padding: 20px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.tz-eticket-perf { width: 100%; border-top: 2px dashed #ddd; position: relative; margin: 4px 0; }
.tz-eticket-perf::before, .tz-eticket-perf::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.tz-eticket-perf::before { left: -29px; }
.tz-eticket-perf::after { right: -29px; }
.tz-eticket-info { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tz-eticket-info .lbl { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }
.tz-eticket-info .val { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-top: 2px; }

/* ============================================================
   ADMIN — Desktop
   ============================================================ */
.tz-admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; height: 100%; width: 100%; background: var(--bg); }
.tz-sidebar { background: #0a0a0a; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 16px; gap: 4px; }
.tz-sidebar-logo { padding: 6px 10px 22px; }
.tz-nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); padding: 16px 12px 8px; font-weight: 700; }
.tz-navitem { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm); color: var(--muted); font-size: 14px; font-weight: 500; transition: all 0.14s; }
.tz-navitem:hover { background: var(--surface); color: var(--text); }
.tz-navitem.on { background: var(--tz-yellow-soft); color: var(--tz-yellow); font-weight: 600; }
.tz-navitem .badge { margin-left: auto; background: var(--tz-yellow); color: #0d0d0d; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.tz-sidebar-foot { margin-top: auto; }
.tz-userbox { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.tz-userbox .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--tz-yellow), var(--tz-yellow-deep)); color: #0d0d0d; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.tz-userbox .nm { font-size: 13px; font-weight: 600; }
.tz-userbox .rl { font-size: 11px; color: var(--muted); }

.tz-main { overflow-y: auto; max-height: 100%; height: 100%; }
.tz-main-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(13,13,13,0.85); backdrop-filter: blur(16px); z-index: 10; }
.tz-main-head h1 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.tz-main-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.tz-main-head .actions { display: flex; align-items: center; gap: 12px; }
.tz-search-admin { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 9px 15px; color: var(--muted-2); width: 240px; }
.tz-search-admin input { background: none; border: none; outline: none; color: var(--text); font-size: 13.5px; flex: 1; }

.tz-content { padding: 28px 32px 60px; }

.tz-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tz-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; position: relative; overflow: hidden; }
.tz-kpi:hover { border-color: var(--line-2); }
.tz-kpi .lbl { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.tz-kpi .val { font-family: var(--font-display); font-size: 27px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 6px; }
.tz-kpi .foot { display: flex; align-items: center; justify-content: space-between; }
.tz-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.tz-delta.up { color: var(--green); }
.tz-delta.down { color: var(--red); }

.tz-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tz-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.tz-panel-head h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 0; }
.tz-panel-head .lnk { font-size: 13px; color: var(--tz-yellow); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

.tz-grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 20px; }

.tz-table { width: 100%; border-collapse: collapse; }
.tz-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); font-weight: 700; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.tz-table td { padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tz-table tr:last-child td { border-bottom: none; }
.tz-table tbody tr { transition: background 0.12s; }
.tz-table tbody tr:hover { background: var(--surface-2); }
.tz-table .mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.tz-table .name { font-weight: 600; }

.tz-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.tz-status.pago, .tz-status.publicado, .tz-status.confirmado { background: rgba(52,211,153,0.14); color: var(--green); }
.tz-status.pendente { background: rgba(245,179,1,0.16); color: var(--tz-yellow); }
.tz-status.rascunho { background: var(--surface-2); color: var(--muted); }
.tz-status i { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }

.tz-method { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }

.tz-evrow { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.tz-evrow:last-child { border-bottom: none; }
.tz-evrow:hover { background: var(--surface-2); }
.tz-evrow-cover { width: 48px; height: 48px; border-radius: var(--r-sm); position: relative; overflow: hidden; flex-shrink: 0; }
.tz-evrow .nm { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.tz-evrow .mt { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tz-progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.tz-progress i { display: block; height: 100%; background: var(--tz-yellow); border-radius: 99px; }

/* Create event wizard (modal) */
.tz-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.78); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 30px; animation: tzfade 0.2s; }
@keyframes tzfade { from { opacity: 0; } }
.tz-modal { width: 100%; max-width: 720px; max-height: 88vh; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: tzrise 0.28s cubic-bezier(.2,1,.4,1); }
@keyframes tzrise { from { transform: translateY(16px); opacity: 0; } }
.tz-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.tz-modal-head h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 0; }
.tz-wizard-steps { display: flex; gap: 8px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.tz-wstep { display: flex; align-items: center; gap: 9px; flex: 1; }
.tz-wstep .num { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; flex-shrink: 0; transition: all 0.2s; }
.tz-wstep.on .num { background: var(--tz-yellow); color: #0d0d0d; }
.tz-wstep.done .num { background: var(--tz-yellow-soft); color: var(--tz-yellow); }
.tz-wstep .tx { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tz-wstep.on .tx { color: var(--text); }
.tz-wstep .bar { flex: 1; height: 2px; background: var(--line); }
.tz-modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.tz-modal-foot { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-top: 1px solid var(--line); }

.tz-formgrid { display: flex; flex-direction: column; gap: 18px; }
.tz-formgrid .tz-field input, .tz-formgrid .tz-field textarea, .tz-formgrid .tz-field select {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 13px 14px; color: var(--text); font-size: 14px; outline: none; transition: border-color 0.16s; width: 100%;
}
.tz-formgrid .tz-field textarea { resize: vertical; min-height: 84px; font-family: inherit; }
.tz-formgrid .tz-field input:focus, .tz-formgrid .tz-field textarea:focus, .tz-formgrid .tz-field select:focus { border-color: var(--tz-yellow); }

.tz-typecards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tz-typecard { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 15px; cursor: pointer; transition: border-color 0.16s; }
.tz-typecard.on { border-color: var(--tz-yellow); background: var(--tz-yellow-soft); }
.tz-typecard .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--tz-yellow); display: flex; align-items: center; justify-content: center; }
.tz-typecard.on .ic { background: var(--tz-yellow); color: #0d0d0d; }
.tz-typecard .nm { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.tz-typecard .ds { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.tz-lotline { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; }
.tz-lotline input { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--text); font-size: 13px; outline: none; width: 100%; }
.tz-lotline .rm { width: 34px; height: 34px; border-radius: 9px; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.tz-lotline .rm:hover { color: var(--red); }

.tz-addlot { display: inline-flex; align-items: center; gap: 8px; color: var(--tz-yellow); font-weight: 600; font-size: 13.5px; padding: 10px 2px; }

/* Asaas integration card */
.tz-integration { display: flex; align-items: center; gap: 16px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 18px; }
.tz-integration .logo { width: 52px; height: 52px; border-radius: 12px; background: #1573ff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 13px; flex-shrink: 0; }

/* Toggle */
.tz-toggle { width: 44px; height: 26px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); position: relative; transition: background 0.18s; flex-shrink: 0; cursor: pointer; }
.tz-toggle.on { background: var(--tz-yellow); border-color: var(--tz-yellow); }
.tz-toggle i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.18s; }
.tz-toggle.on i { transform: translateX(18px); background: #0d0d0d; }

/* Reveal animation — transform-only so content stays visible even if the
   animation timeline is paused (e.g. background/hidden iframe) */
.tz-reveal { animation: tzslide 0.34s cubic-bezier(.2,1,.4,1); }
@keyframes tzslide { from { transform: translateY(10px); } }

/* Responsive: stack admin on small screens already handled by stage scroll */
@media (max-width: 980px) {
  .tz-kpis { grid-template-columns: repeat(2, 1fr); }
  .tz-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   ORGANIZER — Painel do dono do evento (analytics)
   ============================================================ */
.tz-org-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.tz-eventpick { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 9px 9px 9px 14px; }
.tz-eventpick .ic { width: 40px; height: 40px; border-radius: 10px; position: relative; overflow: hidden; flex-shrink: 0; }
.tz-eventpick .lbl { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tz-eventpick .nm { font-family: var(--font-display); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.tz-eventpick .chev { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--muted); }

.tz-range { display: flex; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 4px; }
.tz-range button { padding: 8px 15px; border-radius: var(--pill); font-size: 13px; font-weight: 600; color: var(--muted); transition: all 0.15s; }
.tz-range button.on { background: var(--tz-yellow); color: #0d0d0d; }
.tz-live { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: 12.5px; }
.tz-live i { width: 8px; height: 8px; border-radius: 99px; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,0.16); animation: tzpulse 2s infinite; }

/* KPI with subtitle */
.tz-kpi .sub { font-size: 11.5px; color: var(--muted-2); margin-top: -2px; margin-bottom: 8px; }

/* Big chart grid */
.tz-org-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; margin-top: 20px; }
.tz-org-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 20px; }
.tz-org-grid-2b { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; margin-top: 20px; }
@media (max-width: 1180px) { .tz-org-grid, .tz-org-grid-3, .tz-org-grid-2b { grid-template-columns: 1fr; } }

.tz-chartwrap { padding: 20px 22px 8px; }
.tz-chart-legend { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tz-chart-legend .li { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.tz-chart-legend .li b { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tz-chart-legend .li.line b { width: 14px; height: 3px; border-radius: 99px; }

/* Donut */
.tz-donut-row { display: flex; align-items: center; gap: 22px; padding: 16px 22px 22px; }
.tz-donut-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tz-donut-legend { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tz-donut-legend .li { display: flex; align-items: center; gap: 10px; }
.tz-donut-legend .dot { width: 11px; height: 11px; border-radius: 4px; flex-shrink: 0; }
.tz-donut-legend .nm { font-size: 13px; flex: 1; }
.tz-donut-legend .vl { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; }
.tz-donut-legend .pc { font-size: 11.5px; color: var(--muted); width: 38px; text-align: right; }

/* Funnel */
.tz-funnel { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.tz-funnel .step { }
.tz-funnel .row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.tz-funnel .row .l { font-size: 13px; color: var(--text); font-weight: 500; }
.tz-funnel .row .v { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.tz-funnel .row .v small { color: var(--muted); font-weight: 500; font-size: 11px; margin-left: 6px; }
.tz-funnel .track { height: 30px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.tz-funnel .fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--tz-yellow), var(--tz-yellow-deep)); transition: width 0.5s; }
.tz-funnel .drop { font-size: 11px; color: var(--muted-2); margin-top: 5px; text-align: right; }

/* Horizontal bars (channels) */
.tz-hbars { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.tz-hbar .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.tz-hbar .top .l { font-size: 13px; display: flex; align-items: center; gap: 9px; }
.tz-hbar .top .l .ic { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--tz-yellow); }
.tz-hbar .top .v { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; }
.tz-hbar .top .v small { color: var(--muted); font-weight: 500; }
.tz-hbar .track { height: 9px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.tz-hbar .fill { height: 100%; border-radius: 99px; background: var(--tz-yellow); }

/* Stacked segment bar (payment methods) */
.tz-seg { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; }
.tz-seg span { height: 100%; }

/* Payout / financial card */
.tz-payout { padding: 4px 0; }
.tz-payout .big { display: flex; align-items: baseline; gap: 10px; padding: 18px 22px 8px; }
.tz-payout .big .v { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.tz-payout-rows { padding: 6px 22px 18px; display: flex; flex-direction: column; }
.tz-payout-rows .r { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tz-payout-rows .r:last-child { border-bottom: none; }
.tz-payout-rows .r .k { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tz-payout-rows .r .vv { font-family: var(--font-display); font-weight: 600; }

/* Demographics */
.tz-demo { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 18px; }
.tz-demo .grp .hd { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; font-weight: 700; }
.tz-demo .age { display: flex; flex-direction: column; gap: 10px; }
.tz-demo .age .row { display: flex; align-items: center; gap: 12px; }
.tz-demo .age .rg { width: 52px; font-size: 12.5px; color: var(--muted); }
.tz-demo .age .track { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.tz-demo .age .fill { height: 100%; background: var(--tz-yellow); border-radius: 99px; }
.tz-demo .age .pc { width: 36px; text-align: right; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; }
.tz-genders { display: flex; gap: 10px; }
.tz-gender { flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px; text-align: center; }
.tz-gender .pc { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.tz-gender .nm { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* Insight banner */
.tz-insight { display: flex; align-items: center; gap: 14px; background: linear-gradient(100deg, var(--tz-yellow-soft), transparent); border: 1px solid rgba(245,179,1,0.25); border-radius: var(--r-lg); padding: 16px 20px; margin-top: 20px; }
.tz-insight .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--tz-yellow); color: #0d0d0d; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tz-insight .tx b { color: var(--text); }
.tz-insight .tx { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ============================================================
   THEME SWITCH (organizador escolhe dark/light da página)
   ============================================================ */
.tz-phone-col { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.tz-theme-switch { display: flex; align-items: center; gap: 14px; background: rgba(20,20,20,0.7); border: 1px solid var(--line); border-radius: var(--pill); padding: 7px 7px 7px 16px; backdrop-filter: blur(10px); }
.tz-theme-switch .lbl { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tz-theme-switch .lbl svg { color: var(--tz-yellow); }
.tz-theme-switch .seg { display: flex; gap: 3px; background: var(--bg); border-radius: var(--pill); padding: 3px; }
.tz-theme-switch .seg button { padding: 7px 16px; border-radius: var(--pill); font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all 0.16s; }
.tz-theme-switch .seg button.on { background: var(--tz-yellow); color: #0d0d0d; }

/* ============================================================
   LIGHT THEME — escopo da página de venda do evento
   Sobrescreve apenas os tokens; a maioria dos componentes adapta sozinha
   ============================================================ */
.tz-client-root { color: var(--text); }
.tz-client-root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f6f6f5;
  --surface-2: #eeeeec;
  --elevated: #e6e6e4;
  --line: rgba(0,0,0,0.08);
  --line-2: rgba(0,0,0,0.14);
  --text: #131313;
  --muted: #6b6b6b;
  --muted-2: #a0a0a0;
  --tz-yellow-soft: rgba(245,179,1,0.16);
}
.tz-client-root[data-theme="light"] .tz-bottomnav { background: rgba(255,255,255,0.92); border-top-color: rgba(0,0,0,0.08); }
.tz-client-root[data-theme="light"] .tz-buybar { background: rgba(255,255,255,0.94); border-top-color: rgba(0,0,0,0.08); }
.tz-client-root[data-theme="light"] .tz-co-head { border-bottom-color: rgba(0,0,0,0.08); }
.tz-client-root[data-theme="light"] .tz-about { color: #3a3a3a; }
.tz-client-root[data-theme="light"] .tz-highlights .h { color: #3a3a3a; }
.tz-client-root[data-theme="light"] .tz-eticket { border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.tz-client-root[data-theme="light"] .tz-pix-qr { box-shadow: 0 10px 30px rgba(245,179,1,0.25), 0 0 0 1px rgba(0,0,0,0.06); }
.tz-client-root[data-theme="light"] .tz-success .ok { box-shadow: 0 10px 30px rgba(245,179,1,0.35); }
.tz-client-root[data-theme="light"] .tz-eticket-perf::before,
.tz-client-root[data-theme="light"] .tz-eticket-perf::after { background: #ffffff; }
.tz-client-root[data-theme="light"] .tz-iconbtn.glass { background: rgba(255,255,255,0.65); border-color: rgba(0,0,0,0.1); color: #131313; }
.tz-client-root[data-theme="light"] .tz-ticket.active { background: linear-gradient(180deg, var(--tz-yellow-soft), transparent); }

/* ============================================================
   APP (funcional) — classes simples pra páginas reais
   Reaproveita variáveis acima
   ============================================================ */
.app-shell { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.app-header { position: sticky; top: 0; z-index: 50; background: rgba(13,13,13,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.app-header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.app-brand { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; cursor: pointer; }
.app-brand .dot { color: var(--tz-yellow); }
.app-nav { display: flex; gap: 4px; }
.app-nav a { padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.app-nav a:hover { background: var(--surface); color: var(--text); }
.app-nav a.active { background: var(--tz-yellow); color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; border: none; transition: transform .15s, opacity .2s; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--tz-yellow); color: var(--ink); }
.btn-primary:hover { background: var(--tz-yellow-2); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid rgba(255,90,77,0.3); }
.btn-sm { padding: 8px 12px; font-size: 12px; }
.btn-lg { padding: 16px 24px; font-size: 15px; }

.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }

input, select, textarea {
  font-family: inherit; font-size: 14px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tz-yellow); }
label.field { display: block; margin-bottom: 12px; }
label.field > .lbl { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }

.row { display: flex; gap: 12px; align-items: center; }
.grid-events { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.event-card { background: var(--surface); border-radius: 16px; overflow: hidden; cursor: pointer; border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.event-card:hover { transform: translateY(-2px); border-color: rgba(245,179,1,0.4); }
.event-card__banner { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--surface-2), var(--surface)); background-size: cover; background-position: center; display: grid; place-items: center; color: var(--muted-2); font-size: 11px; }
.event-card__body { padding: 16px; }
.event-card__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 6px 0; }
.event-card__meta { display: flex; gap: 8px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }

.hero-evt { position: relative; min-height: 360px; overflow: hidden; border-radius: var(--r-xl); background-size: cover; background-position: center; margin-top: 24px; background-color: var(--surface); }
.hero-evt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(13,13,13,0.95)); }
.hero-evt__content { position: relative; z-index: 1; padding: 28px; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-evt__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 8px 0; letter-spacing: -0.02em; }

.batch-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-bottom: 10px; }
.batch-row__name { flex: 1; font-weight: 700; font-size: 14px; }
.batch-row__price { font-family: var(--font-mono); font-weight: 800; font-size: 18px; color: var(--tz-yellow); }

.app-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.app-table th { text-align: left; padding: 10px 12px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--line); }
.app-table td { padding: 12px; border-bottom: 1px solid var(--line); }

.app-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.app-pill.yellow { background: rgba(245,179,1,0.15); color: var(--tz-yellow); }
.app-pill.green  { background: rgba(52,211,153,0.15); color: var(--green); }
.app-pill.gray   { background: rgba(255,255,255,0.06); color: var(--muted); }

.empty { padding: 48px 24px; text-align: center; color: var(--muted-2); font-size: 14px; }

@media (max-width: 720px) {
  .app-shell { padding: 0 16px; }
  .grid-events { grid-template-columns: 1fr; }
  .hero-evt__content { padding: 20px; }
}
