:root {
  --red: #c8102e;
  --red-dark: #a50d26;
  --red-light: #f0193a;
  --green: #16a34a;
  --green-dark: #0f7a30;
  --amber: #d97706;
  --bg: #0d0d0d;
  --bg2: #111111;
  --bg3: #161616;
  --bg4: #1a1a1a;
  --border: #222222;
  --border2: #2a2a2a;
  --text: #ffffff;
  --text2: #aaaaaa;
  --text3: #666666;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-logo-icon {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  overflow: hidden;
  max-width: 160px;
}
.topbar-logo-icon img { border-radius: 8px !important; max-width: 100%; }
.topbar-logo-name { font-size: 16px; font-weight: 700; }
.topbar-logo-name span { color: var(--red); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.btn-suporte {
  font-size: 11px; color: var(--red);
  border: 1px solid var(--red);
  padding: 5px 12px; border-radius: 20px;
  font-weight: 600; background: transparent;
}
.support-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.4);
  min-width: 200px; z-index: 150; overflow: hidden;
}
.support-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; font-size: 13px; color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.support-menu-item:last-child { border-bottom: none; }
.support-menu-item:hover { background: var(--bg3); }
.support-menu-item svg { color: var(--red); flex-shrink: 0; }
.topbar-user-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text2);
}

/* ── BOTTOM NAV ─────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-item {
  flex: 1; padding: 8px 0 6px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text3); font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .3px;
  border: none; background: transparent;
}
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item.active { color: var(--red); }

/* ── PÁGINA PRINCIPAL ───────────────────────────────────── */
.page { padding-bottom: 70px; }

.section-header {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 16px 8px;
}
.section-header-icon { font-size: 16px; }
.section-header-title {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.section-header-sub {
  font-size: 12px; color: var(--text3); margin-left: 2px; font-weight: 400;
  text-transform: none; letter-spacing: 0;
}

/* ── CARDS DE RIFA ──────────────────────────────────────── */
.raffle-list { padding: 0 12px 8px; display: flex; flex-direction: column; gap: 12px; }

.raffle-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.raffle-card:active { transform: scale(.99); }
.raffle-card.featured { border-color: var(--red); }

.card-img {
  position: relative; height: 170px;
  background: var(--bg4);
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover; opacity: .92;
  transition: transform .3s;
}
.raffle-card:hover .card-img img { transform: scale(1.03); }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg4), #1a0a0a);
  font-size: 56px; color: var(--red); opacity: .5;
}
.card-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .4px;
}
.badge-hot   { background: var(--red);   color: #fff; }
.badge-live  { background: var(--green); color: #fff; }
.badge-enc   { background: var(--amber); color: #fff; }

.card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  padding: 12px;
}
.card-prize {
  font-size: 24px; font-weight: 800; color: #fff;
  line-height: 1; text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.card-title {
  font-size: 11px; color: rgba(255,255,255,.65);
  margin-top: 3px; text-transform: uppercase; letter-spacing: .4px;
}

.card-body { padding: 10px 12px 12px; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 11px; margin-bottom: 4px;
}
.progress-label span:first-child { color: var(--text2); }
.progress-label span:last-child  { color: var(--red); font-weight: 700; }
.prog-track {
  height: 4px; background: var(--border2);
  border-radius: 2px; overflow: hidden; margin-bottom: 10px;
}
.prog-fill {
  height: 100%; border-radius: 2px;
  background: repeating-linear-gradient(
    45deg,
    var(--red) 0, var(--red) 8px,
    var(--red-light) 8px, var(--red-light) 16px
  );
  background-size: 28px 100%;
  transition: width .6s ease;
  animation: prog-stripes 1s linear infinite;
}
.prog-fill.green {
  background: repeating-linear-gradient(45deg, var(--green) 0, var(--green) 8px, #22d36b 8px, #22d36b 16px);
  background-size: 28px 100%;
  animation: prog-stripes 1s linear infinite;
}
.prog-fill.amber {
  background: repeating-linear-gradient(45deg, var(--amber) 0, var(--amber) 8px, #f5a623 8px, #f5a623 16px);
  background-size: 28px 100%;
  animation: prog-stripes 1s linear infinite;
}
@keyframes prog-stripes {
  from { background-position: 0 0; }
  to   { background-position: 28px 0; }
}

.card-footer { display: flex; align-items: center; justify-content: space-between; }
.cota-price { font-size: 13px; color: var(--text2); }
.cota-price strong { color: var(--text); font-size: 15px; }
.btn-adquirir {
  background: var(--green); color: #fff;
  border: none; border-radius: 6px;
  padding: 8px 16px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  transition: background .15s;
}
.btn-adquirir:hover  { background: var(--green-dark); }
.btn-adquirir.red    { background: var(--red); }
.btn-adquirir.red:hover { background: var(--red-dark); }

/* ── PÁGINA CAMPANHA ────────────────────────────────────── */
.campaign-hero {
  position: relative; width: 100%; height: 220px;
  background: var(--bg4); overflow: hidden;
}
.campaign-hero-tall {
  height: 300px;
}
.campaign-hero img {
  width: 100%; height: 100%; object-fit: cover; opacity: .88;
}
.campaign-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 15%, rgba(0,0,0,.95) 100%);
}
.campaign-hero-back-btn {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.55); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); cursor: pointer;
}
.campaign-hero-back-btn:hover { background: rgba(0,0,0,.75); }
.campaign-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px;
}
.campaign-hero-badge {
  display: inline-block; background: var(--red);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; margin-bottom: 6px;
}
.campaign-hero-prize {
  font-size: 28px; font-weight: 800; color: #fff;
  line-height: 1.15; font-style: italic;
  text-transform: uppercase;
}
.campaign-hero-desc {
  font-size: 11px; color: rgba(255,255,255,.6);
  margin-top: 4px; text-transform: uppercase; letter-spacing: .4px;
}
.campaign-hero-badges {
  position: absolute; bottom: 14px; right: 14px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
}
.campaign-hero-price-pill {
  position: absolute; top: 14px; right: 14px;
  background: var(--bg); border: 1px solid var(--border2);
  border-radius: 6px; padding: 6px 12px;
  font-size: 12px; color: var(--text2); font-weight: 600;
}
.campaign-hero-price-pill strong { color: var(--red); font-size: 13px; }
.hero-pill {
  background: rgba(0,0,0,.75); border: 1px solid var(--red);
  border-radius: 5px; padding: 4px 8px;
  font-size: 10px; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: .3px;
}
.hero-pill span { color: var(--red); }
.hero-badge-bilhetes {
  background: var(--red); border-radius: 5px; padding: 4px 8px;
  font-size: 10px; font-weight: 700; color: #fff;
  text-align: right; line-height: 1.3;
}

.campaign-title-bar {
  background: var(--bg); padding: 10px 14px 12px;
}
.campaign-title { font-size: 17px; font-weight: 800; text-transform: uppercase; }
.campaign-title-bar-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; gap: 10px;
}
.campaign-subtitle { font-size: 11px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }

.campaign-tabs {
  display: flex; background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.campaign-tab {
  flex: 1; padding: 10px 0; text-align: center;
  font-size: 11px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .3px;
  border: none; background: transparent;
  border-bottom: 2px solid transparent;
}
.campaign-tab.active { color: var(--text); border-bottom-color: var(--red); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── SELETOR DE COTAS ───────────────────────────────────── */
.compra-body { padding: 14px 14px 80px; }

.price-pill-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; }
.price-pill-label { font-size: 13px; color: var(--text2); }
.price-pill {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 6px; padding: 6px 14px;
  font-size: 15px; font-weight: 800; color: var(--text);
}

.qty-input-row {
  display: flex; align-items: center;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 10px;
}
.qty-clear {
  padding: 13px 12px; color: var(--red);
  font-size: 12px; font-weight: 600; border: none; background: none;
  border-right: 1px solid var(--border2);
  display: flex; align-items: center; gap: 4px;
}
.qty-minus, .qty-plus {
  padding: 13px 16px; color: var(--text2); font-size: 22px;
  border: none; background: none; user-select: none; line-height: 1;
  transition: color .1s;
}
.qty-minus { border-right: 1px solid var(--border2); }
.qty-plus  { border-left:  1px solid var(--border2); }
.qty-minus:hover, .qty-plus:hover { color: var(--text); }
.qty-num {
  flex: 1; text-align: center;
  font-size: 22px; font-weight: 800; color: var(--text);
}

.presets-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 6px; margin-bottom: 6px;
}
.presets-grid2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; margin-bottom: 14px;
}
.preset-btn {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 10px 4px; text-align: center;
  position: relative; transition: border-color .1s, background .1s;
}
.preset-btn:hover { border-color: #444; }
.preset-btn.popular { background: var(--green); border-color: var(--green); }
.popular-badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 2px 7px; border-radius: 3px;
  text-transform: uppercase; white-space: nowrap;
}
.preset-qty { font-size: 14px; font-weight: 800; color: var(--text); }
.preset-lbl { font-size: 9px; color: var(--text3); margin-top: 1px; text-transform: uppercase; }
.preset-btn.popular .preset-lbl { color: rgba(255,255,255,.75); }

.user-fields { margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.user-fields input {
  width: 100%; background: var(--bg3);
  border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 11px 12px; font-size: 13px; color: var(--text);
  transition: border-color .15s;
}
.user-fields input:focus { outline: none; border-color: var(--red); }
.user-fields input::placeholder { color: var(--text3); }

.total-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px;
}
.total-bar-label { font-size: 12px; color: var(--text2); }
.total-bar-val { font-size: 22px; font-weight: 800; color: var(--text); }

.btn-gerar-pix {
  width: 100%; background: var(--green); color: #fff;
  border: none; border-radius: var(--radius);
  padding: 0; display: flex; align-items: center; overflow: hidden;
  transition: background .15s;
}
.btn-gerar-pix:hover { background: var(--green-dark); }
.btn-gerar-pix-arrow {
  background: var(--green-dark); padding: 14px 14px;
  display: flex; align-items: center;
}
.btn-gerar-pix-arrow svg { width: 20px; height: 20px; color: #fff; }
.btn-gerar-pix-body { flex: 1; padding: 10px 12px; text-align: left; }
.btn-gerar-pix-title { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.btn-gerar-pix-sub { font-size: 10px; color: rgba(255,255,255,.7); margin-top: 2px; }
.btn-gerar-pix-val { padding: 0 14px; font-size: 15px; font-weight: 800; white-space: nowrap; }

/* Reserva timer */
.reserva-timer {
  background: #0d1f12; border: 1px solid #1a3a22;
  border-radius: var(--radius); padding: 10px 12px;
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.reserva-timer svg { width: 16px; height: 16px; color: #4ade80; flex-shrink: 0; }
.reserva-timer-text { font-size: 12px; color: #4ade80; }
.reserva-timer-text strong { font-size: 14px; }

/* ── COTAS DISPONÍVEIS ──────────────────────────────────── */
.cotas-section {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px;
}
.cotas-header {
  padding: 9px 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.cotas-header svg { width: 13px; height: 13px; color: var(--red); }
.cotas-header span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.cota-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-bottom: 1px solid var(--bg4);
}
.cota-row:last-child { border-bottom: none; }
.cota-num { font-size: 12px; color: var(--text2); font-family: monospace; }
.cota-price-lbl { font-size: 12px; color: var(--text3); }
.cota-status-badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 4px; background: #0d1f12; color: #4ade80;
  text-transform: uppercase;
}
.ver-mais-btn {
  width: 100%; padding: 9px; font-size: 11px;
  color: var(--text3); background: none; border: none;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: color .1s;
}
.ver-mais-btn:hover { color: var(--text); }

/* ── TOP COMPRADORES ────────────────────────────────────── */
.top-buyer-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px; border-bottom: 1px dashed var(--border2);
}
.top-buyer-row:last-child { border-bottom: none; }
.top-buyer-rank {
  font-size: 18px; font-weight: 800; color: var(--text);
  min-width: 30px; flex-shrink: 0;
}
.top-buyer-rank-first { color: var(--green); }
.top-buyer-info { flex: 1; min-width: 0; }
.top-buyer-name { font-size: 14px; font-weight: 600; color: var(--text); }
.top-buyer-name-first { color: var(--green); }
.top-buyer-phone { font-size: 11px; color: var(--text3); margin-top: 2px; font-family: monospace; }
.top-buyer-phone-first { color: rgba(74,222,128,.6); }
.top-buyer-stats { text-align: right; flex-shrink: 0; }
.top-buyer-tickets { font-size: 13px; font-weight: 600; color: var(--text); }
.top-buyer-tickets-first { color: var(--green); }
.top-buyer-spent { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ── PIX ────────────────────────────────────────────────── */
.pix-page-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}
.pix-page-back {
  background: none; border: none; color: var(--text2);
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; padding: 0; cursor: pointer;
}
.pix-page-back:hover { color: var(--text); }
.pix-page-title { font-size: 14px; font-weight: 700; color: var(--text); }

.pix-body { padding: 14px 14px 80px; }
.pix-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; text-align: center;
}
.pix-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.pix-sub { font-size: 12px; color: var(--text3); margin-top: 3px; margin-bottom: 14px; }
.pix-qr {
  width: 160px; height: 160px; margin: 0 auto 14px;
  background: var(--bg4); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border2);
}
.pix-qr img { width: 140px; height: 140px; }
.pix-amount { font-size: 28px; font-weight: 800; color: var(--green); margin-bottom: 2px; }
.pix-desc { font-size: 11px; color: var(--text3); text-transform: uppercase; margin-bottom: 12px; }
.pix-code {
  font-size: 10px; color: var(--text2);
  background: var(--bg2); padding: 8px 10px;
  border-radius: var(--radius); word-break: break-all;
  font-family: monospace; margin-bottom: 10px;
  border: 1px solid var(--border); text-align: left;
}
.btn-copy {
  width: 100%; background: var(--bg3);
  border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 10px; font-size: 12px; font-weight: 600;
  color: var(--text); margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .15s, color .15s;
}
.btn-copy:hover { border-color: var(--red); color: var(--red); }
.btn-copy.copied { border-color: var(--green); color: var(--green); }
.pix-info {
  background: #0d1f12; border-radius: var(--radius);
  padding: 10px 12px; display: flex; align-items: center; gap: 8px;
}
.pix-info svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.pix-info span { font-size: 11px; color: #4ade80; text-align: left; }
.pix-countdown {
  margin-top: 10px; font-size: 11px; color: var(--text3);
}
.pix-countdown strong { color: var(--text2); }

/* ── ÚLTIMOS GANHADORES ─────────────────────────────────── */
.winners-list { padding: 0 12px 8px; display: flex; flex-direction: column; gap: 8px; }
.winner-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
  display: flex; align-items: center; gap: 12px;
}
.winner-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.winner-info { flex: 1; }
.winner-name { font-size: 13px; font-weight: 600; }
.winner-prize { font-size: 12px; color: var(--text2); margin-top: 2px; }
.winner-ticket { font-size: 11px; color: var(--text3); margin-top: 2px; font-family: monospace; }
.winner-date { font-size: 10px; color: var(--text3); text-align: right; flex-shrink: 0; }

/* ── MEUS TÍTULOS ───────────────────────────────────────── */
.mytitles-list { padding: 0 12px 8px; display: flex; flex-direction: column; gap: 10px; }
.mytitle-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.mytitle-header {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.mytitle-img {
  width: 48px; height: 48px; border-radius: 6px;
  background: var(--bg4); object-fit: cover; flex-shrink: 0;
}
.mytitle-campaign { font-size: 12px; font-weight: 600; }
.mytitle-date { font-size: 10px; color: var(--text3); margin-top: 2px; }
.mytitle-status { margin-left: auto; }
.status-badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase;
}
.status-paid { background: #0d1f12; color: #4ade80; }
.status-pending { background: #1f1a0d; color: #fbbf24; }
.mytitle-numbers { padding: 8px 12px 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.ticket-number {
  background: var(--bg4); border: 1px solid var(--border2);
  border-radius: 4px; padding: 3px 7px; font-size: 11px;
  font-family: monospace; color: var(--text2);
}
.ticket-number.prize { border-color: var(--amber); color: var(--amber); }

/* ── PERFIL ─────────────────────────────────────────────── */
.profile-body { padding: 14px 14px 80px; }
.profile-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center;
  justify-content: center; font-size: 24px; font-weight: 700; margin: 0 auto 6px;
}
.profile-name { text-align: center; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.profile-phone { text-align: center; font-size: 12px; color: var(--text2); margin-bottom: 16px; }
.form-group { margin-bottom: 10px; }
.form-label { font-size: 11px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px; }
.form-input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 11px 12px; font-size: 13px;
  color: var(--text); transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--red); }
.form-input::placeholder { color: var(--text3); }
.btn-primary {
  width: 100%; background: var(--red); color: #fff;
  border: none; border-radius: var(--radius); padding: 13px;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  margin-top: 4px; transition: background .15s;
}
.btn-primary:hover { background: var(--red-dark); }

/* ── LINK DE INDICAÇÃO ──────────────────────────────────── */
.referral-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px;
}
.referral-link-display {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 10px 12px;
  font-size: 12px; color: var(--text2); font-family: monospace;
  word-break: break-all; margin: 8px 0;
}
.referral-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.referral-stat {
  background: var(--bg2); border-radius: var(--radius);
  padding: 10px; text-align: center; border: 1px solid var(--border);
}
.referral-stat-num { font-size: 18px; font-weight: 700; color: var(--text); }
.referral-stat-lbl { font-size: 10px; color: var(--text3); text-transform: uppercase; margin-top: 2px; }

/* ── LOGIN MODAL ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  z-index: 200; display: flex; align-items: flex-end;
}
.modal-sheet {
  width: 100%; background: var(--bg2);
  border-radius: 20px 20px 0 0; padding: 20px 20px 40px;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } }
.modal-handle {
  width: 40px; height: 4px; background: var(--border2);
  border-radius: 2px; margin: 0 auto 16px;
}
.modal-title { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 16px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text2); font-size: 20px;
}
.hidden { display: none !important; }

/* ── MODAL DE COTA PREMIADA ──────────────────────────────── */
.prize-won-sheet {
  width: 100%; max-width: 420px; margin: 0 auto;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg2) 100%);
  border: 1px solid var(--amber);
  border-radius: 20px; padding: 28px 22px 24px;
  text-align: center;
  animation: slideUp .3s ease;
  box-shadow: 0 -10px 40px rgba(217,119,6,.15);
}
.prize-won-confetti {
  font-size: 48px; margin-bottom: 8px;
  animation: prizePopIn .5s ease;
}
@keyframes prizePopIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.prize-won-title {
  font-size: 24px; font-weight: 800; color: var(--amber);
  letter-spacing: -.3px; margin-bottom: 4px;
}
.prize-won-subtitle {
  font-size: 13px; color: var(--text2); margin-bottom: 20px;
}
.prize-won-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.prize-won-item {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 12px; padding: 12px;
}
.prize-won-item-img {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.prize-won-item-icon {
  display: flex; align-items: center; justify-content: center;
  background: #2a1a0d; font-size: 22px;
}
.prize-won-item-name { font-size: 14px; font-weight: 700; color: var(--text); }
.prize-won-item-desc { font-size: 11px; color: var(--text3); margin-top: 2px; }
.prize-won-item-number { font-size: 11px; color: var(--amber); margin-top: 4px; font-family: monospace; }
.prize-won-footer {
  font-size: 11px; color: var(--text3); line-height: 1.5;
  border-top: 1px solid var(--border); padding-top: 14px;
}

/* ── TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 10px 18px;
  font-size: 13px; color: var(--text); z-index: 300;
  max-width: 90vw; width: max-content; text-align: center;
  animation: fadeInOut 2.5s ease forwards;
}
.toast.toast-long { animation: fadeInOutLong 4.5s ease forwards; }
@keyframes fadeInOut {
  0%   { opacity: 0; transform: translateX(-50%) translateY(10px); }
  15%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes fadeInOutLong {
  0%   { opacity: 0; transform: translateX(-50%) translateY(10px); }
  10%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  85%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ── CAMPANHAS CONCLUÍDAS (formato horizontal) ─────────────── */
.finished-cards-list {
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 12px 16px;
}
.finished-card {
  display: flex; align-items: stretch; gap: 12px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 10px;
  cursor: pointer; transition: border-color .15s;
}
.finished-card:active { transform: scale(.99); }
.finished-card-img {
  width: 64px; height: 64px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0; background: var(--bg4);
}
.finished-card-img img { width: 100%; height: 100%; object-fit: cover; }
.finished-card-img-placeholder {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  font-size: 24px; color: var(--text3);
}
.finished-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.finished-card-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #2563eb; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 9px; border-radius: 20px;
  width: fit-content; text-transform: none;
}
.finished-card-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  line-height: 1.25; text-transform: uppercase;
}
.finished-card-subtitle {
  font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .3px;
}
.finished-card-date {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text3); margin-top: 2px;
}

/* ── EMPTY STATE ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state svg { width: 48px; height: 48px; color: var(--text3); margin-bottom: 12px; }
.empty-state p { color: var(--text2); font-size: 14px; }
.empty-state small { color: var(--text3); font-size: 12px; }

/* ── LOADING ────────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--border2); border-top-color: var(--red);
  animation: spin .7s linear infinite; margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* regulamento */
.reg-block {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; margin-bottom: 14px;
}
.reg-block-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; margin-bottom: 6px; color: var(--text2);
  display: flex; align-items: center; gap: 5px;
}
.reg-block-text { font-size: 11px; color: var(--text3); line-height: 1.7; }

/* Descrição do prêmio — texto aberto */
.prize-description-block {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
}
.prize-description-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; margin-bottom: 8px; color: var(--text2);
  display: flex; align-items: center; gap: 5px;
}
.prize-description-text {
  font-size: 13px; color: var(--text2); line-height: 1.6; white-space: pre-line;
}

/* Regulamento — acordeão (clica para abrir) */
.accordion {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 14px; overflow: hidden;
}
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.accordion-header-left { display: flex; align-items: center; gap: 7px; }
.accordion-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: var(--text);
}
.accordion-chevron {
  width: 16px; height: 16px; color: var(--text3);
  transition: transform .25s ease;
}
.accordion.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.accordion.open .accordion-body { max-height: 600px; }
.accordion-body-inner {
  padding: 0 14px 14px;
  font-size: 11px; color: var(--text3); line-height: 1.7;
}

/* Contador de cotas disponíveis — formato vendidas/total */
.tickets-counter-pill {
  display: inline-flex; align-items: baseline; gap: 3px;
  background: var(--bg4); border: 1px solid var(--border2);
  border-radius: 20px; padding: 3px 10px;
  font-size: 11px; font-weight: 600; color: var(--text2);
  white-space: nowrap;
}
.tickets-counter-pill strong { color: var(--text); font-size: 12px; }
.tickets-counter-pill .sep { color: var(--text3); margin: 0 1px; }

/* Variante usada dentro do hero escuro (sobre a imagem) */
.hero-pill.tickets-counter-pill {
  background: rgba(0,0,0,.75); border: 1px solid var(--border2);
  display: block; text-align: right;
}
.hero-pill.tickets-counter-pill strong { color: #fff; }
.hero-pill.tickets-counter-pill .sep { color: rgba(255,255,255,.4); }
.footer-legal { text-align: center; font-size: 10px; color: var(--bg4); padding: 6px 0 14px; }

@media (min-width: 480px) {
  .raffle-list { display: grid; grid-template-columns: 1fr 1fr; }
  .raffle-card.featured { grid-column: 1 / -1; }
}
