:root {
  --bg-dark: #0a0505;
  --bg-mid: #1a0a0a;
  --panel: rgba(30, 12, 12, 0.7);
  --border: rgba(90, 40, 30, 0.4);
  --text: #f2ebe6;
  --muted: #a08a8a;
  --gold: #e0a54a;
  --gold-2: #f4c76e;
  --red: #c62828;
}

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

html, body { height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(ellipse at top, #2a1414 0%, #0e0606 60%, #060202 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(198, 40, 40, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(224, 165, 74, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ============ TOPBAR ============ */
.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 1.2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}
.page-home .topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
  backdrop-filter: blur(6px);
}
.topbar .brand { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 0.9rem; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(198, 40, 40, 0.4);
}
.logo-mark-lobby {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c62828 0%, #8b1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(198, 40, 40, 0.4);
}
.brand-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  line-height: 1;
}
.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 0.15rem;
}

.topbar nav { margin-left: auto; display: flex; gap: 0.8rem; }
.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #5865F2 0%, #4752c4 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

/* ============ LOGIN / USER-BOX ============ */
.btn-steam {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem; border-radius: 8px;
  background: linear-gradient(180deg, #1b2838 0%, #0e1620 100%);
  color: #fff; text-decoration: none; font-weight: 700;
  letter-spacing: 0.05em; font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
}
.btn-steam:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 192, 244, 0.35);
  border-color: #66c0f4;
}
.btn-epic {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem; border-radius: 8px;
  background: linear-gradient(180deg, #2a2a2a 0%, #101010 100%);
  color: #fff; text-decoration: none; font-weight: 700;
  letter-spacing: 0.05em; font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
}
.btn-epic:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
  border-color: #fff;
}

.user-box-lobby {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.4rem 0.8rem; border-radius: 10px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
}
.user-box-lobby .user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
}
.user-box-lobby .user-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.user-box-lobby .user-name {
  color: var(--text); font-weight: 600; font-size: 0.85rem; line-height: 1;
}
.admin-chip-lobby {
  display: inline-block; padding: 0.1rem 0.4rem; border-radius: 4px;
  background: rgba(224, 165, 74, 0.18);
  border: 1px solid rgba(224, 165, 74, 0.5);
  color: var(--gold); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  align-self: flex-start;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.admin-chip-lobby:hover {
  background: rgba(224, 165, 74, 0.28);
  border-color: rgba(224, 165, 74, 0.75);
  color: #f0c878;
}
.admin-chip-lobby.is-active {
  background: rgba(224, 165, 74, 0.32);
  border-color: var(--gold);
  color: #f0c878;
}
.btn-logout {
  padding: 0.35rem 0.7rem; border-radius: 6px;
  color: var(--muted); text-decoration: none; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; border: 1px solid transparent;
  transition: all 0.15s;
}
.btn-logout:hover {
  color: #fff; background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
}

/* ============ MAIN ============ */
main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
}

.home-main {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 0 2rem 3rem;
}

/* Com hero limpo (capa inteira, sem texto por cima) os cards nao
   sobem por cima da imagem */
.hero-banner--clean ~ .home-main {
  margin-top: 2.5rem;
}

/* ============ HERO BANNER (home) ============ */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 52vw, 560px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #060202;
}
.hero-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  pointer-events: none;
  user-select: none;
}
.hero-banner__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 28%, transparent 55%, rgba(6, 2, 2, 0.92) 88%, #060202 100%),
    radial-gradient(ellipse at center 40%, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}
.hero-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 7.5rem 2rem 5.5rem;
}
.hero-banner__content h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(3.2rem, 11vw, 7rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.hero-banner__content .line1 {
  color: var(--text);
  display: inline-block;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}
.hero-banner__content .line2 {
  color: var(--gold);
  display: inline-block;
  text-shadow: 0 0 48px rgba(224, 165, 74, 0.45), 0 4px 24px rgba(0, 0, 0, 0.85);
}
.hero-banner__content p {
  color: rgba(242, 235, 230, 0.88);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* Hero limpo: capa inteira sem corte, sem shade e sem texto por cima
   (a arte ja traz o titulo e a frase "2 servidores, 1 comunidade") */
.hero-banner--clean {
  min-height: 0;
  align-items: stretch;
  background: #060b18;
}
.hero-banner--clean .hero-banner__img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}
.hero-login-below {
  text-align: center;
  color: rgba(242, 235, 230, 0.85);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  margin: 0.9rem auto 0;
  padding: 0 2rem;
}
.hero-login-below strong {
  color: var(--gold);
}
.hero-banner__content .hero-login-hint {
  margin-top: 0.75rem !important;
  font-size: 0.95rem !important;
  color: var(--gold) !important;
  font-weight: 600;
}

/* ============ HERO (loja/carteira) ============ */
.hero {
  text-align: center;
  margin-bottom: 4rem;
}
.hero h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
}
.hero .line1 {
  color: var(--text);
  display: inline-block;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero .line2 {
  color: var(--gold);
  display: inline-block;
  text-shadow: 0 0 40px rgba(224, 165, 74, 0.4);
}
.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 1rem;
  letter-spacing: 0.02em;
}
.hero-login-hint {
  margin-top: 0.75rem !important;
  font-size: 0.95rem !important;
  color: var(--gold) !important;
  font-weight: 600;
}

/* ============ CARDS ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 12, 12, 0.9) 0%, rgba(15, 6, 6, 0.95) 100%);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, border-color 0.3s;
  min-height: 400px;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--card-color);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px color-mix(in srgb, var(--card-color) 25%, transparent);
}
.card:hover .card-glow { opacity: 1; }
.card:hover .card-cta { background: var(--card-color); color: white; }
.card:hover .card-logo img { transform: scale(1.05); }

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--card-color) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  filter: blur(50px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}
.card-logo {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
  border: 2px solid var(--card-color);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5), 0 0 0 2px rgba(0,0,0,0.4), inset 0 0 20px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover .card-logo {
  transform: scale(1.08);
  box-shadow: 0 8px 32px var(--card-color), 0 0 0 2px rgba(0,0,0,0.4), inset 0 0 20px rgba(0,0,0,0.3);
}
.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.card:hover .card-logo img { transform: scale(1.1); }
.card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid;
}
.card-status.online {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.08);
}
.card-status.offline {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}
.card-status.closed {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
}
.card--closed {
  opacity: 0.72;
  filter: grayscale(0.35);
  cursor: not-allowed;
}
.card--closed.card--admin-bypass {
  opacity: 1;
  filter: none;
  cursor: pointer;
  outline: 1px dashed rgba(224, 165, 74, 0.55);
}
.card-closed-hint,
.card-admin-hint {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.card-admin-hint { color: #e0a54a; }

.admin-sites-panel { margin-bottom: 1.5rem; }
.admin-steam-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
  margin: 1rem 0;
}
.admin-steam-form .btn-admin-submit { width: auto; padding: 0.7rem 1.1rem; }
.admin-steam-form .form-msg { grid-column: 1 / -1; }
.admin-steam-list { display: flex; flex-direction: column; gap: 0.55rem; }
.admin-steam-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
}
@media (max-width: 800px) {
  .admin-steam-form { grid-template-columns: 1fr; }
}
.admin-sites-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1rem;
}
.admin-site-card {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.25);
}
.admin-site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.admin-site-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid;
}
.admin-site-badge.is-open {
  color: #4ade80;
  border-color: rgba(74,222,128,.4);
}
.admin-site-badge.is-closed {
  color: #fbbf24;
  border-color: rgba(251,191,36,.45);
}
.admin-site-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.admin-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.field-inline select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: #fff;
}
.card-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.card-body {
  flex: 1;
  margin: 1.8rem 0;
  position: relative;
  z-index: 2;
}
.card-name {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 2.2rem;
  color: var(--card-accent);
  letter-spacing: 0.04em;
  line-height: 1;
}
.card-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}
.card-tag {
  color: var(--card-color);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--card-accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  transition: background 0.25s, color 0.25s;
  align-self: flex-start;
  position: relative;
  z-index: 2;
}
.card-cta svg { transition: transform 0.25s; }
.card:hover .card-cta svg { transform: translateX(4px); }

.card--locked {
  border-color: rgba(224, 165, 74, 0.35);
}
.card--locked .card-cta {
  background: rgba(27, 40, 56, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.card--locked:hover .card-cta {
  background: #1b2838;
  color: #fff;
}

@media (max-width: 768px) {
  .hero-banner__content {
    padding: 6.5rem 1.25rem 4.5rem;
  }
  .home-main {
    margin-top: -1.5rem;
    padding: 0 1.25rem 2rem;
  }
  .card {
    min-height: 360px;
  }
}

/* ============ FOOTER ============ */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* ============ NAV LOJA / CARTEIRA ============ */
.nav-links { display: flex; gap: 1rem; margin-left: auto; align-items: center; }
.nav-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.nav-link:hover, .nav-link--gold { color: var(--gold); }
.nav-link--admin { color: #ff8a65; }
.nav-link--admin:hover { color: #ffab91; }
.nav-right { display: flex; align-items: center; gap: 0.7rem; margin-left: 1rem; }
.coins-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.75rem; border-radius: 20px;
  background: rgba(224, 165, 74, 0.12); border: 1px solid rgba(224, 165, 74, 0.45);
  color: var(--gold); text-decoration: none; font-size: 0.85rem;
}
.coins-chip strong { font-size: 1rem; }
.coins-label { font-size: 0.65rem; opacity: 0.8; letter-spacing: 0.08em; }

/* ============ LOJA MOEDAS ============ */
.hero--compact { padding-bottom: 1rem; }
.coins-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem; max-width: 1100px; margin: 0 auto 3rem; padding: 0 1.5rem;
}
.coin-pack {
  position: relative; padding: 1.5rem 1.2rem; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--border); text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.coin-pack:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.coin-pack--highlight { border-color: var(--gold); box-shadow: 0 0 30px rgba(224, 165, 74, 0.15); }
.coin-pack__badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #1a0a0a; font-size: 0.65rem; font-weight: 800;
  padding: 0.2rem 0.6rem; border-radius: 20px; white-space: nowrap;
}
.coin-pack__amount { font-family: "Bebas Neue"; font-size: 2.8rem; color: var(--gold); line-height: 1; }
.coin-pack__label { color: var(--muted); font-size: 0.8rem; margin: 0.3rem 0 0.8rem; }
.coin-pack__price { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.btn-buy {
  width: 100%; padding: 0.7rem; border: none; border-radius: 8px; cursor: pointer;
  background: linear-gradient(180deg, var(--red), #8b1a1a); color: #fff;
  font-weight: 700; letter-spacing: 0.06em; transition: opacity 0.15s;
}
.btn-buy:hover { opacity: 0.9; }
.btn-buy--full { margin-top: 0.5rem; }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; display: inline-block; text-decoration: none; }

/* ============ LOJA VALOR LIVRE ============ */
.coin-shop {
  max-width: 520px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.coin-shop__panel {
  padding: 2rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 12, 12, 0.92) 0%, rgba(15, 6, 6, 0.96) 100%);
  border: 1px solid rgba(224, 165, 74, 0.35);
  box-shadow: 0 0 40px rgba(224, 165, 74, 0.08);
}
.coin-shop__rate {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.coin-shop__rate strong { color: var(--gold); }
.coin-shop__field {
  display: block;
  margin-bottom: 1.25rem;
}
.coin-shop__field > span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.coin-shop__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
}
.coin-shop__prefix {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}
.coin-shop__input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 700;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.04em;
  outline: none;
  min-width: 0;
}
.coin-shop__input-wrap input::-webkit-outer-spin-button,
.coin-shop__input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.coin-shop__preview {
  text-align: center;
  padding: 1.25rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: rgba(224, 165, 74, 0.08);
  border: 1px solid rgba(224, 165, 74, 0.25);
}
.coin-shop__preview-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}
.coin-shop__preview-amount {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(224, 165, 74, 0.35);
  transition: color 0.2s;
}
.coin-shop__preview-amount--warn { color: #f87171; }
.coin-shop__preview-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.coin-shop__quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.coin-shop__quick-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-right: 0.25rem;
}
.coin-shop__quick-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.coin-shop__quick-btn:hover {
  background: rgba(224, 165, 74, 0.12);
  border-color: rgba(224, 165, 74, 0.45);
  color: var(--gold);
}
.coin-shop__hint {
  min-height: 1.2rem;
  text-align: center;
  margin-bottom: 0.75rem;
  color: #f87171 !important;
}
.coin-shop__buy { margin-top: 0.25rem; }

.panel-center { text-align: center; padding: 3rem; }
.panel { max-width: 900px; margin: 0 auto 3rem; padding: 1.5rem; background: var(--panel); border-radius: 12px; border: 1px solid var(--border); }
.alert { padding: 0.8rem 1rem; border-radius: 8px; max-width: 900px; margin: 0 auto 1rem; }
.alert-warn { background: rgba(243, 156, 18, 0.15); border: 1px solid rgba(243, 156, 18, 0.4); color: #f39c12; }
.alert-ok { background: rgba(82, 196, 26, 0.15); border: 1px solid rgba(82, 196, 26, 0.4); color: #52c41a; }
.muted { color: var(--muted); font-size: 0.85rem; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.modal__box {
  position: relative; background: #1a0a0a; border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem; max-width: 420px; width: 92%; max-height: 90vh; overflow-y: auto;
}
.modal__close { position: absolute; top: 0.8rem; right: 1rem; background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.checkout-form label { display: block; margin-bottom: 0.8rem; font-size: 0.8rem; color: var(--muted); }
.checkout-form input { width: 100%; margin-top: 0.3rem; padding: 0.6rem; border-radius: 6px; border: 1px solid var(--border); background: rgba(0,0,0,0.4); color: var(--text); }
.pay-tabs { display: flex; gap: 0.5rem; margin: 1rem 0; }
.pay-tab { flex: 1; padding: 0.5rem; border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer; }
.pay-tab--active { background: var(--red); color: #fff; border-color: var(--red); }
.pix-qr { text-align: center; margin: 1rem 0; }
.pix-qr img { max-width: 220px; border-radius: 8px; }
#pix-copy { width: 100%; font-size: 0.7rem; margin: 0.5rem 0; padding: 0.5rem; background: rgba(0,0,0,0.4); border: 1px solid var(--border); color: var(--text); border-radius: 6px; }
.btn-copy { width: 100%; padding: 0.5rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text); border-radius: 6px; cursor: pointer; }

.wallet-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 900px; margin: 0 auto 2rem; padding: 0 1.5rem; }
@media (max-width: 700px) { .wallet-head { grid-template-columns: 1fr; } }
.wallet-balance-card { padding: 2rem; background: var(--panel); border-radius: 16px; border: 1px solid rgba(224,165,74,0.3); text-align: center; }
.wallet-label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.wallet-amount { font-family: "Bebas Neue"; font-size: 3.5rem; color: var(--gold); line-height: 1.1; }
.wallet-amount span { font-size: 1.5rem; opacity: 0.7; }
.wallet-stats { display: flex; justify-content: center; gap: 1.5rem; margin: 1rem 0; color: var(--muted); font-size: 0.85rem; }
.wallet-info { padding: 1.5rem; background: var(--panel); border-radius: 12px; border: 1px solid var(--border); }
.wallet-info ul { margin-top: 0.8rem; padding-left: 1.2rem; color: var(--muted); font-size: 0.9rem; line-height: 1.8; }
.hist-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.hist-table th, .hist-table td { padding: 0.6rem; text-align: left; border-bottom: 1px solid var(--border); }
.hist-table .pos { color: #52c41a; }
.hist-table .neg { color: #f87171; }

/* ============ ADMIN BC ============ */
.admin-main { padding-top: 2rem; }
.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.panel-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.panel-title--inline { margin-bottom: 0; }
.btn-clear-log {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-clear-log:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.22);
  border-color: rgba(248, 113, 113, 0.65);
}
.btn-clear-log:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.admin-form { display: flex; flex-direction: column; gap: 1rem; }
.admin-form .field { display: flex; flex-direction: column; gap: 0.35rem; }
.admin-form .field span { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.admin-form .field small { font-size: 0.75rem; color: var(--muted); }
.admin-form input {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.95rem;
}
.admin-form input:focus {
  outline: none;
  border-color: rgba(224, 165, 74, 0.6);
  box-shadow: 0 0 0 2px rgba(224, 165, 74, 0.15);
}
.btn-admin-submit {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #e0a54a 0%, #b8862e 100%);
  color: #1a0a0a;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-admin-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(224, 165, 74, 0.35);
}
.btn-admin-submit:disabled { opacity: 0.6; cursor: wait; }
.form-msg {
  font-size: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  line-height: 1.4;
}
.form-msg--ok {
  background: rgba(82, 196, 26, 0.12);
  border: 1px solid rgba(82, 196, 26, 0.35);
  color: #95de64;
}
.form-msg--err {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}
.muted-text { color: var(--muted); font-size: 0.9rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.admin-table th,
.admin-table td {
  padding: 0.55rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cell-player { display: flex; flex-direction: column; gap: 0.15rem; }
.cell-player code {
  font-size: 0.68rem;
  color: var(--muted);
  word-break: break-all;
}
.cell-positive { color: #95de64; font-weight: 700; }
.cell-note { color: var(--muted); max-width: 220px; }

.admin-logged-as { margin-top: 0.5rem; font-size: 0.9rem; }
.admin-logged-as code { font-size: 0.75rem; color: var(--muted); margin-left: 0.35rem; }
.field-row { display: flex; gap: 0.5rem; align-items: stretch; }
.field-row input { flex: 1; }
.btn-secondary-sm {
  flex-shrink: 0;
  padding: 0 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary-sm:hover { background: rgba(255,255,255,0.1); }
.coins-label-prefix {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.15rem;
}

/* ============ CARD: acoes (ENTRAR + DISCORD) ============ */
.card-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: auto;
  position: relative;
  z-index: 2;
}
.card--clickable { cursor: pointer; }
.card-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.14);
  color: #a5adf7;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  border: 1px solid rgba(88, 101, 242, 0.45);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  text-decoration: none;
}
.card-discord:hover {
  background: #5865f2;
  color: white;
  border-color: #5865f2;
}
