/* =====================================================================
   KATIAALLZ.STORE — Tema Gamer Dark (Kick #53FC18 + Twitch #9146FF)
   ===================================================================== */
:root {
  --bg-0: #06070c;
  --bg-1: #0c0e17;
  --bg-2: #121524;
  --bg-3: #191d31;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6fb;
  --text-dim: #9aa3b8;
  --text-muted: #667085;

  --kick: #53fc18;
  --kick-glow: rgba(83, 252, 24, 0.25);
  --kick-soft: rgba(83, 252, 24, 0.1);

  --twitch: #9146ff;
  --twitch-light: #b685ff;
  --twitch-glow: rgba(145, 70, 255, 0.3);
  --twitch-soft: rgba(145, 70, 255, 0.12);

  --gold: #fbbf24;
  --silver: #cbd5e1;
  --bronze: #f97316;
  --danger: #ef4444;
  --radius: 16px;
}

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

html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fundo atmosférico Kick + Twitch */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 12% 8%, rgba(83, 252, 24, 0.11), transparent 60%),
    radial-gradient(ellipse 60% 45% at 88% 12%, rgba(145, 70, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(145, 70, 255, 0.08), transparent 65%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 85%);
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 7, 12, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--kick) 0%, var(--twitch) 100%);
  display: grid;
  place-items: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #06070c;
  box-shadow: 0 0 24px rgba(145, 70, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
}

.brand-title span {
  background: linear-gradient(90deg, var(--kick), var(--twitch-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.social-chip:hover {
  transform: translateY(-1px);
}

.social-chip.kick {
  background: var(--kick-soft);
  color: var(--kick);
  border: 1px solid rgba(83, 252, 24, 0.3);
}

.social-chip.twitch {
  background: var(--twitch-soft);
  color: var(--twitch-light);
  border: 1px solid rgba(145, 70, 255, 0.35);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--kick) 0%, #22c55e 100%);
  color: #05070b;
  box-shadow: 0 6px 24px rgba(83, 252, 24, 0.28);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(83, 252, 24, 0.42);
}

.btn-twitch {
  background: linear-gradient(135deg, var(--twitch) 0%, #6d28d9 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(145, 70, 255, 0.32);
}

.btn-twitch:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(145, 70, 255, 0.48);
}

.btn-dual {
  background: linear-gradient(135deg, var(--kick) 0%, var(--twitch) 100%);
  color: #07080d;
  font-weight: 800;
  box-shadow: 0 6px 26px rgba(145, 70, 255, 0.3);
}

.btn-dual:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.25);
}

/* Pill do usuário logado */
.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 8px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.user-pts {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--kick);
}

.plat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.plat-badge.kick {
  background: var(--kick-soft);
  color: var(--kick);
  border: 1px solid rgba(83, 252, 24, 0.35);
}

.plat-badge.twitch {
  background: var(--twitch-soft);
  color: var(--twitch-light);
  border: 1px solid rgba(145, 70, 255, 0.4);
}

/* Hero */
.hero {
  padding: 44px 0 28px;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kick);
  box-shadow: 0 0 12px var(--kick);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.hero h1 .accent-kick { color: var(--kick); }
.hero h1 .accent-twitch { color: var(--twitch-light); }

.hero-desc {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
  max-width: 580px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cmd-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 11px;
  background: var(--bg-2);
  border: 1px dashed var(--border-strong);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
}

.cmd-chip strong {
  color: var(--kick);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-card {
  background: linear-gradient(160deg, rgba(18, 21, 36, 0.9), rgba(12, 14, 23, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--kick), var(--twitch));
  opacity: 0.55;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin-top: 4px;
}

/* Tabs */
.tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 10px 0 26px;
}

.tabs-left {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 11px 20px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.16s ease;
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(83, 252, 24, 0.14), rgba(145, 70, 255, 0.2));
  color: #fff;
  border: 1px solid rgba(145, 70, 255, 0.4);
  box-shadow: 0 0 20px rgba(145, 70, 255, 0.18);
}

.panel { display: none; }
.panel.active { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Filtros */
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover, .chip.active {
  border-color: var(--kick);
  color: var(--kick);
  background: var(--kick-soft);
}

/* Grid de Itens da Lojinha */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 18px;
  margin-bottom: 50px;
}

.item-card {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.item-card:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 252, 24, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 28px rgba(83, 252, 24, 0.08);
}

.item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(83, 252, 24, 0.12), rgba(145, 70, 255, 0.18));
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
}

.item-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.cat-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(145, 70, 255, 0.15);
  color: var(--twitch-light);
  border: 1px solid rgba(145, 70, 255, 0.3);
}

.stock-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

.stock-badge.out {
  color: var(--danger);
}

.item-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.item-desc {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.price-tag {
  display: flex;
  flex-direction: column;
}

.price-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--kick);
}

.price-unit {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Ranking & Pódio */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 26px;
}

.podium-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
}

.podium-card.first {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.14);
  padding-top: 30px;
}

.podium-card.second { border-color: rgba(203, 213, 225, 0.35); }
.podium-card.third  { border-color: rgba(249, 115, 22, 0.35); }

.podium-medal {
  font-size: 28px;
  margin-bottom: 8px;
}

.podium-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 10px;
  background: var(--bg-3);
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  overflow: hidden;
}

.podium-avatar img { width: 100%; height: 100%; object-fit: cover; }

.podium-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 4px;
}

.podium-pts {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 800;
  color: var(--kick);
  margin-top: 8px;
}

/* Tabela */
.search-input, .input {
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-input:focus, .input:focus {
  border-color: var(--twitch-light);
}

.table-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 50px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }

.rank-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: var(--text-dim);
}

.rank-num.top1 { color: var(--gold); }
.rank-num.top2 { color: var(--silver); }
.rank-num.top3 { color: var(--bronze); }

.pts-cell {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: var(--kick);
}

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill.pending {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.status-pill.completed {
  background: var(--kick-soft);
  color: var(--kick);
  border: 1px solid rgba(83, 252, 24, 0.35);
}

.status-pill.refunded {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Modais */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 5, 10, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal {
  width: 100%;
  max-width: 460px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
}

.modal h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-divider {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 14px 0 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.code-box {
  background: var(--bg-0);
  border: 1px dashed var(--kick);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  margin-top: 12px;
}

.code-cmd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--kick);
  margin: 6px 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--bg-2);
  border: 1px solid var(--kick);
  color: var(--text);
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.25s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  border-color: var(--danger);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--kick);
}

/* Responsivo */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .podium { grid-template-columns: 1fr; }
  .social-links { display: none; }
}
