/* ── Reset & raiz ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #040406;
  --surface:  rgba(10,12,22,.88);
  --border:   rgba(255,255,255,.07);
  --neon-g:   #00ff88;
  --neon-b:   #00d4ff;
  --gold:     #FFD700;
  --silver:   #b8c4cf;
  --bronze:   #cd7f32;
  --text:     #f0f2f5;
  --muted:    #6b7280;
  --dim:      #374151;
  --radius:   14px;
  --radius-sm:10px;
}

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

/* ── Tipografia util ────────────────────────────────────────────────── */
.shark-title {
  font-size: clamp(1.8rem,5vw,3rem);
  font-weight: 900;
  letter-spacing: -.03em;
  background: linear-gradient(120deg,var(--neon-g) 0%,var(--neon-b) 55%,var(--neon-g) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.neon-text-g { color: var(--neon-g); text-shadow: 0 0 14px rgba(0,255,136,.5); }
.neon-text-b { color: var(--neon-b); text-shadow: 0 0 14px rgba(0,212,255,.5); }

/* ── Componentes base ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .35rem;
  padding: .55rem 1.15rem;
  border: none; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 700; cursor: pointer;
  transition: opacity .15s, transform .1s, box-shadow .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn-neon {
  background: var(--neon-g); color: #000;
  box-shadow: 0 0 20px rgba(0,255,136,.25);
}
.btn-neon:hover { box-shadow: 0 0 28px rgba(0,255,136,.4); }

.btn-ghost {
  background: rgba(255,255,255,.07); color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.btn-danger {
  background: rgba(239,68,68,.12); color: #f87171;
  border: 1px solid rgba(239,68,68,.2);
}
.btn-danger:hover { background: rgba(239,68,68,.2); }

/* ── Inputs ─────────────────────────────────────────────────────────── */
input[type=text], input[type=email], input[type=password], input[type=number] {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
input:focus {
  border-color: rgba(0,255,136,.4);
  box-shadow: 0 0 0 3px rgba(0,255,136,.08);
}
input::placeholder { color: var(--dim); }
label {
  display: block;
  font-size: .78rem; color: var(--muted);
  font-weight: 600; letter-spacing: .04em;
  margin-bottom: .4rem;
}

/* ── Error msg ──────────────────────────────────────────────────────── */
.error-msg { color: #f87171; font-size: .84rem; text-align: center; min-height: 1.2em; }

/* ── Divider ────────────────────────────────────────────────────────── */
.divider {
  height: 1px; max-width: 480px; margin: .75rem auto 0;
  background: linear-gradient(90deg,transparent,var(--neon-g),transparent);
  animation: pulse-op 2.5s ease-in-out infinite;
}
@keyframes pulse-op { 0%,100%{opacity:.3} 50%{opacity:.9} }

/* ─────────────────────────────────────────────────────────────────────
   PÁGINA DO VENDEDOR (vendedor.php)
───────────────────────────────────────────────────────────────────── */
#seller-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding: 2rem 1.25rem 3rem;
  max-width: 460px; margin: 0 auto;
}

.seller-header { text-align: center; margin-bottom: 1.75rem; }

.seller-stat-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(0,255,136,.04);
  border: 1px solid rgba(0,255,136,.15);
  box-shadow: 0 0 40px rgba(0,255,136,.06);
  margin-bottom: 1.75rem;
}
.seller-pos   { font-size: 2.6rem; line-height: 1; margin-bottom: .3rem; }
.seller-name  { font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; }
.seller-total {
  font-size: 2rem; font-weight: 900; color: var(--neon-g);
  text-shadow: 0 0 20px rgba(0,255,136,.4);
  margin-top: .3rem;
}

.amount-input {
  font-size: 2rem !important;
  font-weight: 900 !important;
  text-align: center;
  padding: 1rem !important;
  letter-spacing: -.02em;
}

.success-banner {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  background: rgba(0,255,136,.06);
  border: 1px solid rgba(0,255,136,.25);
  box-shadow: 0 0 30px rgba(0,255,136,.15);
  display: none;
}
.success-banner.show { display: block; }

/* ─────────────────────────────────────────────────────────────────────
   ADMIN — LOGIN
───────────────────────────────────────────────────────────────────── */
#admin-login {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.login-box {
  width: 100%; max-width: 380px; padding: 2.5rem 2rem;
  border-radius: var(--radius);
  background: rgba(10,12,22,.9);
  border: 1px solid rgba(0,255,136,.1);
  box-shadow: 0 0 60px rgba(0,255,136,.05);
}
.login-box h2 { font-size: 1.35rem; font-weight: 900; margin-bottom: 1.5rem; }

/* ─────────────────────────────────────────────────────────────────────
   TELÃO — estilos complementares (maioria em ranking.php inline)
───────────────────────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 4rem 2rem; gap: .75rem;
  color: var(--dim);
}
.empty-state .emoji, .empty-icon { font-size: 3rem; }
.empty-state p { font-size: .95rem; font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────────
   CONFETTI (compartilhado)
───────────────────────────────────────────────────────────────────── */
#confetti-container { position:fixed;inset:0;pointer-events:none;z-index:99;overflow:hidden; }
.confetti-particle { position:absolute; animation: cffall linear forwards; }
@keyframes cffall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* ─────────────────────────────────────────────────────────────────────
   ADMIN — LEGACY (mantido para compatibilidade)
───────────────────────────────────────────────────────────────────── */
.admin-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.5rem;
  background: rgba(4,4,6,.92);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}
.admin-content { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }

.tabs { display: flex; gap: .6rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.tab-btn {
  padding: .45rem 1.1rem; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  font-weight: 700; font-size: .85rem;
  background: rgba(255,255,255,.06); color: var(--muted);
  transition: all .15s;
}
.tab-btn.active { background: var(--neon-g); color: #000; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: .75rem 1rem;
  font-size: .72rem; color: var(--muted); font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.05);
  letter-spacing: .05em; text-transform: uppercase;
}
.admin-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .9rem;
}
.admin-table tr:last-child td { border-bottom: none; }

.event-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.1rem;
  border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: .4rem;
  background: rgba(10,12,22,.7);
  transition: border-color .2s;
}
.event-row.selected { border-color: rgba(0,255,136,.35); background: rgba(0,255,136,.06); }

.live-badge {
  font-size: .7rem; font-weight: 800; color: var(--neon-g);
  background: rgba(0,255,136,.12); padding: .15rem .5rem;
  border-radius: 999px; letter-spacing: .05em;
}
.add-row { display: flex; gap: .65rem; margin-bottom: 1.1rem; }
.link-code { font-size: .72rem; color: var(--muted); word-break: break-all; font-family: monospace; }
