:root {
  --bg0: #080a0f;
  --bg1: #0e131b;
  --bg2: #161e2a;
  --bg-card: rgba(18, 24, 35, 0.75);
  --line: rgba(255, 42, 95, 0.18);
  --line-subtle: rgba(255, 255, 255, 0.08);
  --text: #f0f4f8;
  --muted: #94a3b8;
  --ember: #ff2a5f;
  --ember-glow: rgba(255, 42, 95, 0.4);
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --gold: #f59e0b;
  --ok: #10b981;
  --danger: #ef4444;
  --info: #38bdf8;
  --radius: 12px;
  --radius-lg: 18px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  --glow: 0 0 25px var(--ember-glow);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 15% -5%, rgba(255, 42, 95, 0.15), transparent 60%),
    radial-gradient(900px 450px at 85% 10%, rgba(139, 92, 246, 0.15), transparent 55%),
    radial-gradient(600px 300px at 50% 50%, rgba(245, 158, 11, 0.04), transparent 50%),
    linear-gradient(175deg, #05070a 0%, #0c1017 40%, #07090e 100%);
  line-height: 1.6;
  background-attachment: fixed;
}
a { color: var(--ember); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: #ff6b8b; text-shadow: 0 0 10px var(--ember-glow); }
img { max-width: 100%; }

.wrap {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 10, 15, 0.85);
  border-bottom: 1px solid var(--line-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.brand-glow {
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
.brand-accent {
  background: linear-gradient(135deg, #ff2a5f 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid rgba(255, 42, 95, 0.35);
  border-radius: 999px;
  color: #ff6b8b;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  align-items: center;
}
.nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.3rem 0;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
}
.nav-highlight {
  color: #ff6b8b !important;
  font-weight: 700;
}
.btn-glow {
  box-shadow: 0 0 15px var(--ember-glow);
}
.nav-wallet {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.25rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(201, 162, 92, 0.28);
  border-radius: 999px;
  background: rgba(18, 24, 32, 0.75);
  pointer-events: none;
  user-select: none;
}


.nav-wallet-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  white-space: nowrap;
}
.nav-wallet-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-wallet-value {
  color: var(--ember);
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  padding: 4rem 0 3rem;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("/static/img/hero-cabal.jpg") center/cover no-repeat,
    url("/static/img/hero-fallback.svg") center/cover no-repeat;
  filter: saturate(0.75) brightness(0.85);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 14, 18, 0.35) 0%, rgba(10, 14, 18, 0.92) 100%),
    linear-gradient(105deg, rgba(10, 14, 18, 0.75) 0%, rgba(10, 14, 18, 0.35) 55%, rgba(10, 14, 18, 0.7) 100%);
  pointer-events: none;
}
.hero-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ember);
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 0.6rem;
  letter-spacing: 0.03em;
}
.hero-lead {
  max-width: 36rem;
  font-size: 1.15rem;
  color: #d8d0c2;
}

.server-card,
.download-hero {
  background:
    linear-gradient(145deg, rgba(212,168,98,0.1), transparent 42%),
    rgba(0,0,0,0.28);
  border-color: rgba(212,168,98,0.28);
}
.server-badge {
  display: inline-block;
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}
.server-vibe {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: #ddd4c4;
}

.server-highlights {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.server-highlights li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-weight: 600;
}
.server-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--ember);
  transform: rotate(45deg);
}
.server-connect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}
.server-connect span {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.15rem;
}
.server-connect strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ember);
  word-break: break-all;
}
.download-steps {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.65rem;
}
.download-steps li { color: #d5cdc0; }

/* Confirmação do site (substitui window.confirm) */
body.confirm-open { overflow: hidden; }
.confirm-root[hidden] { display: none !important; }
.confirm-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}
.confirm-sheet {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid rgba(212, 168, 98, 0.4);
  border-radius: 16px;
  background: linear-gradient(165deg, #1c1712 0%, #0e1217 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  padding: 1.25rem 1.3rem 1.35rem;
  animation: sheetUp 0.22s ease;
}
.confirm-sheet h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ember);
}
.confirm-msg {
  margin: 0 0 1.2rem;
  color: #ddd4c4;
  font-size: 1.02rem;
  line-height: 1.45;
}


.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.hero p {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 1.4rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.98rem;
  transition: all 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary,
button.btn-primary,
a.btn-primary,
input[type="submit"].btn-primary,
.form button[type="submit"],
.auth-box button[type="submit"] {
  background: linear-gradient(135deg, #ff2a5f 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(255, 42, 95, 0.45) !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover,
input[type="submit"].btn-primary:hover,
.form button[type="submit"]:hover,
.auth-box button[type="submit"]:hover {
  background: linear-gradient(135deg, #ff4777 0%, #9d6ef8 100%) !important;
  box-shadow: 0 6px 26px rgba(255, 42, 95, 0.65) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}
.btn-primary:active,
.form button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 42, 95, 0.4) !important;
}

.btn-ghost,
button.btn-ghost,
a.btn-ghost {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #f1f5f9 !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.btn-ghost:hover,
button.btn-ghost:hover,
a.btn-ghost:hover {
  background: rgba(255, 42, 95, 0.12) !important;
  border-color: rgba(255, 42, 95, 0.5) !important;
  color: #ff6b8b !important;
  box-shadow: 0 4px 15px rgba(255, 42, 95, 0.2) !important;
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #fca5a5 !important;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: rgba(239, 68, 68, 0.7) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-sm,
a.btn-sm,
button.btn-sm {
  padding: 0.45rem 1rem !important;
  font-size: 0.88rem !important;
  border-radius: 8px !important;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-glow {
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.5) !important;
}
.btn-glow:hover {
  box-shadow: 0 0 28px rgba(255, 42, 95, 0.8) !important;
}

.section { padding: 2.5rem 0; }
.section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav { justify-content: flex-end; }
}

.panel, .card {
  background: linear-gradient(180deg, rgba(26,36,48,0.92), rgba(18,24,32,0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { padding: 1.25rem 1.35rem; }
.card { padding: 1rem 1.15rem; }



.news-list { display: grid; gap: 0.8rem; }
.news-item h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.news-item h3 a { color: var(--text); }
.news-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.meta {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  margin: 0.35rem 0 0.55rem;
}
.news-item .meta {
  margin-top: 0.45rem;
  font-variant-numeric: tabular-nums;
}


.form {
  display: grid;
  gap: 0.85rem;
  max-width: 420px;
}
.form.wide { max-width: 720px; }
label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}
input, select, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(7, 10, 13, 0.65);
  color: var(--text);
  padding: 0.7rem 0.85rem;
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(212, 168, 98, 0.35);
  border-color: rgba(212, 168, 98, 0.45);
}


.flash, .alert {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.flash.ok, .alert.ok { background: rgba(92,184,138,0.12); color: #b7e6cb; }
.flash.danger, .alert.danger { background: rgba(210,114,114,0.12); color: #f0b4b4; }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
th { color: var(--muted); font-weight: 700; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 1rem; }
.inline-forms { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.inline-forms form { display: inline; }

.footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-box {
  width: min(440px, 100%);
  margin: 3rem auto;
  padding: 1.6rem;
}
.auth-box h1 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  font-size: 1.7rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ember);
}

/* Character cards + modal */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}
.char-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(30,24,18,0.9), rgba(10,12,14,0.85));
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.char-card:hover {
  border-color: rgba(212,168,98,0.45);
  transform: translateY(-2px);
}
.char-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.char-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ember);
}
.char-alz { font-weight: 700; white-space: nowrap; }
.char-stats-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.char-stats-mini span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.char-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.modal-open { overflow: hidden; }
.modal-root[hidden] { display: none !important; }
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 0;
}
@media (min-width: 720px) {
  .modal-root { place-items: center; padding: 1.5rem; }
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.modal-sheet {
  position: relative;
  width: min(520px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  border: 1px solid rgba(212,168,98,0.35);
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #1a1612 0%, #0d1014 100%);
  box-shadow: 0 -12px 40px rgba(0,0,0,0.45);
  padding: 1.1rem 1.2rem 1.4rem;
  animation: sheetUp 0.28s ease;
}
@media (min-width: 720px) {
  .modal-sheet {
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}
.modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ember);
}
.modal-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}
.modal-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}
.modal-tab.is-active {
  color: #111;
  background: var(--ember);
}
.modal-body { display: grid; gap: 0.75rem; }
.alloc-grid {
  display: grid;
  gap: 0.75rem;
}
.stepper {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 0.35rem;
  align-items: center;
}
.stepper button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  border-radius: 10px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}
.stepper button:hover { border-color: rgba(212,168,98,0.5); }
.alloc-summary {
  margin: 0.75rem 0;
  font-size: 0.95rem;
}
.alloc-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}
.alloc-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c48a3a, #e0b96a);
  transition: width 0.15s ease;
}

/* WebShop */
.shop-page { padding-bottom: 3rem; }
.shop-layout { display: grid; gap: 0.9rem; }
.shop-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0 0.25rem;
}
.shop-top-copy { min-width: 0; }
.shop-top h2 {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.shop-top-back {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.shop-top-back:hover { color: var(--text); }

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 16, 22, 0.9);
}
.shop-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(212,168,98,0.28);
  background-color: #151b24;
  color: var(--muted) !important;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.2;
  text-decoration: none !important;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.shop-chip:hover {
  color: var(--text) !important;
  border-color: rgba(212,168,98,0.55);
  background-color: #1c2430;
}
.shop-chip.is-active {
  color: #1a120a !important;
  background: linear-gradient(135deg, var(--ember), var(--ember-2));
  border-color: transparent;
}

.shop-main {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(240px, 0.85fr);
  gap: 1rem;
  align-items: start;
}
.shop-catalog.panel {
  padding: 0.85rem;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
}
.shop-tile {
  display: grid;
  grid-template-rows: 76px auto auto;
  gap: 0.3rem;
  margin: 0;
  padding: 0.55rem 0.45rem 0.6rem;
  border: 1px solid rgba(212,168,98,0.2);
  border-radius: 12px;
  background-color: #10161e;
  background-image: linear-gradient(165deg, #1a222c, #0d1218);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.shop-tile:hover,
.shop-tile:focus-visible {
  outline: none;
  border-color: rgba(212,168,98,0.6);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.shop-tile.is-selected {
  border-color: rgba(212,168,98,0.9);
  box-shadow: 0 0 0 1px rgba(212,168,98,0.35), 0 10px 24px rgba(0,0,0,0.35);
}
.shop-tile-media {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0,0,0,0.45);
}
.shop-tile-media img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}
.shop-tile-placeholder {
  font-family: var(--font-display);
  color: var(--muted);
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}
.shop-tile-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--ember);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.05em;
}
.shop-tile-price {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text);
}
.shop-tile-price small {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
}

body.shop-buy-open { overflow: hidden; }
.shop-buy-root[hidden] { display: none !important; }
.shop-buy-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 0;
}
.shop-buy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 8, 0.72);
  backdrop-filter: blur(3px);
}
.shop-buy-sheet {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(92vh, 640px);
  overflow: auto;
  margin: 0;
  padding: 1rem 1.15rem 1.25rem;
  border: 1px solid rgba(212,168,98,0.35);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, rgba(28,24,20,0.98), rgba(10,12,14,0.98));
  box-shadow: 0 -18px 50px rgba(0,0,0,0.45);
  display: grid;
  gap: 0.85rem;
}
.shop-buy-head {
  display: flex;
  justify-content: flex-end;
}
.shop-buy-media {
  display: grid;
  place-items: center;
  min-height: 96px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
}
.shop-buy-media img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.shop-buy-meta { display: grid; gap: 0.2rem; text-align: center; }
.shop-buy-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ember);
}
.shop-buy-cat {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.shop-buy-desc {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.35;
}
.shop-buy-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(212,168,98,0.14);
}
.shop-unit, .shop-total {
  font-weight: 700;
  color: var(--text);
}
.shop-total { color: var(--ember); }
.shop-unit small, .shop-total small {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
}
.shop-buy-form {
  display: grid;
  gap: 0.65rem;
}
.shop-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}
.shop-qty-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.shop-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.shop-step-btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  min-width: 2.25rem;
  font-size: 1.15rem;
  line-height: 1;
}
.shop-step-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.shop-step-val {
  min-width: 1.8rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: var(--ember);
}
.shop-buy-btn {
  width: 100%;
  min-height: 2.5rem;
}
.shop-buy-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
.shop-hint {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}
.shop-hint.danger { color: var(--danger); }
.shop-history h2 { margin-top: 0; }
.shop-empty { padding: 1.5rem; text-align: center; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 900px) {
  .shop-main { grid-template-columns: 1fr; }
}
@media (min-width: 720px) {
  .shop-buy-root { place-items: center; padding: 1.5rem; }
  .shop-buy-sheet {
    border-radius: 18px;
    border-bottom: 1px solid rgba(212,168,98,0.35);
  }
}
@media (max-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}
.inline-forms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.inline-forms form { display: inline; margin: 0; }

/* Ranking */
.rank-hero h1 {
  font-family: var(--font-display);
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 980px) {
  .rank-grid { grid-template-columns: 1fr; }
}
.rank-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.rank-card-head h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.25rem;
}
.rank-table .rank-pos {
  font-weight: 700;
  color: var(--ember);
  width: 2rem;
}
.rank-table .rank-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}
.rank-sub { font-size: 0.78rem; margin-top: 0.15rem; }
.rank-top-1 td { background: rgba(212, 168, 98, 0.10); }
.rank-top-2 td { background: rgba(154, 163, 174, 0.08); }
.rank-top-3 td { background: rgba(184, 107, 60, 0.08); }

/* Termos / doações */
.legal-doc h1 {
  font-family: var(--font-display);
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.4rem 0 0.55rem;
  color: var(--ember);
}
.legal-doc p, .legal-doc li {
  color: #d5cdc0;
  line-height: 1.55;
}
.legal-doc ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
}
.donate-notice {
  border: 1px solid rgba(212, 168, 98, 0.28);
  background: rgba(212, 168, 98, 0.07);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
}

/* ===== Trailers ===== */
.trailers-section {
  padding-top: 0.5rem;
}
.trailers-head {
  margin-bottom: 1.25rem;
}
.trailers-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin: 0.15rem 0 0.35rem;
  letter-spacing: 0.03em;
}
.trailers-sub {
  margin: 0;
  max-width: 34rem;
}
.trailer-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}
.trailer-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 98, 0.28);
  background: #05070a;
  box-shadow: var(--shadow);
  min-height: 280px;
  isolation: isolate;
}
.trailer-frame video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 520px;
  object-fit: cover;
  background: #000;
}
.trailer-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(5, 7, 10, 0.72) 100%),
    linear-gradient(90deg, rgba(212, 168, 98, 0.08), transparent 40%);
  opacity: 0.95;
  animation: trailerSheen 8s ease-in-out infinite;
}
@keyframes trailerSheen {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
.trailer-sound {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  border: 1px solid rgba(212, 168, 98, 0.35);
  background: rgba(10, 14, 18, 0.78);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.trailer-sound:hover {
  border-color: var(--ember);
  color: var(--ember);
  transform: translateY(-1px);
}
.trailer-sound[aria-pressed="true"] {
  border-color: rgba(92, 184, 138, 0.55);
  color: var(--ok);
}
.trailer-now {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(10, 14, 18, 0.78);
  border: 1px solid rgba(212, 168, 98, 0.22);
  backdrop-filter: blur(8px);
  max-width: calc(100% - 1.8rem);
}
.trailer-now-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  font-family: var(--font-display);
}
.trailer-now strong {
  font-size: 0.98rem;
  font-weight: 700;
}
.trailer-playlist {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(18, 24, 32, 0.72);
}
.trailer-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.trailer-item:hover {
  background: rgba(212, 168, 98, 0.08);
  border-color: rgba(212, 168, 98, 0.2);
}
.trailer-item.is-active {
  background: linear-gradient(120deg, rgba(212, 168, 98, 0.14), rgba(184, 107, 60, 0.08));
  border-color: rgba(212, 168, 98, 0.35);
  transform: translateX(2px);
}
.trailer-idx {
  font-family: var(--font-display);
  color: var(--ember);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.trailer-item-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.trailer-item-state {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trailer-item.is-active .trailer-item-state {
  color: var(--ok);
}

@media (max-width: 860px) {
  .trailer-stage {
    grid-template-columns: 1fr;
  }
  .trailer-frame video {
    max-height: 360px;
  }
}
.donate-notice p { margin: 0 0 0.55rem; }
.check-line {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
}
.check-line input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}

/* =======================================================
   ESTILO CLEAN BRANCO E ELEGANTE (PAINEL & DOAÇÕES)
   ======================================================= */
body {
  background-color: #edf2f9;
  color: #1e293b;
}

/* TOPBAR */
.topbar {
  background: #120f24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .nav-link {
  color: #cbd5e1;
}
.topbar .nav-link:hover {
  color: #ffffff;
}

/* TOPBAR USER WIDGET (HEADER) */
.topbar-user-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-left: 0.5rem;
}

.user-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

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

.topbar-username {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
}

.topbar-ecoin {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.gold-coin-dot-xs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  background: #f59e0b;
  color: #451a03;
  font-size: 0.6rem;
  font-weight: 900;
  border-radius: 50%;
}

.btn-panel-top {
  padding: 0.35rem 0.85rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  transition: all 0.2s ease;
}

.btn-panel-top:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
  transform: translateY(-1px);
}

.topbar-logout-icon {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.topbar-logout-icon:hover {
  color: #ef4444;
}

/* HERO BREADCRUMB BANNER */
.hero-breadcrumb-banner {
  width: 100%;
  min-height: 170px;
  background: linear-gradient(180deg, #100d21 0%, #171233 50%, #120f26 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner-content {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 2.8rem 1rem;
}

.hero-banner-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 4px 25px rgba(99, 102, 241, 0.5);
}

.hero-breadcrumb-trail {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
}

.hero-breadcrumb-trail a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-breadcrumb-trail a:hover {
  color: #ffffff;
}

.hero-breadcrumb-trail .active {
  color: #60a5fa;
}

/* MAIN LAYOUT WITH SIDEBAR */
.panel-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.75rem;
  align-items: start;
  margin-top: 1.5rem;
}

@media (max-width: 880px) {
  .panel-layout {
    grid-template-columns: 1fr;
  }
}

/* SIDEBAR LIGHT & CLEAN */
.panel-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 80px;
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #f1f5f9;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.user-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ecoin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #d97706;
}

.coin-icon, .gold-coin-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
  border-radius: 50%;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-link:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateX(2px);
}

.sidebar-link.active {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.sidebar-link.logout-btn {
  color: #ef4444;
  background: #fff5f5;
  border-color: #fed7d7;
}

.sidebar-link.logout-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* MAIN CONTENT */
.panel-main {
  min-width: 0;
}

.panel-content-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.panel-title-group h1 {
  font-size: 1.7rem;
  font-weight: 900;
  margin: 0;
  color: #3b82f6;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.title-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #ffffff;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.panel-title-group p {
  margin: 0.35rem 0 0;
  color: #64748b;
}

/* =======================================================
   PAINEL & DASHBOARD OFICIAL LEGENDS CABAL
   ======================================================= */
.panel-outer-section {
  padding: 2rem 0 5rem;
  background: #edf2f9;
  min-height: 700px;
}

.panel-layout-container {
  display: flex;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .panel-layout-container {
    flex-direction: column;
  }
}

/* SIDEBAR ESQUERDA */
.panel-sidebar-legends {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .panel-sidebar-legends {
    width: 100%;
  }
}

.sidebar-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.user-info-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar-svg {
  color: #475569;
}

.user-text-meta {
  display: flex;
  flex-direction: column;
}

.user-name-bold {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
}

.user-ecoin-small {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #b45309;
  font-weight: 700;
}

.sidebar-logout-btn {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.sidebar-logout-btn:hover {
  transform: scale(1.06);
  filter: brightness(1.15);
}

/* CAIXA DE NAVEGAÇÃO DA SIDEBAR */
.sidebar-nav-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.sidebar-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-nav-item {
  width: 100%;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  color: #475569;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #f8fafc;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-nav-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.sidebar-nav-btn.active-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* CONTEÚDO PRINCIPAL DO PAINEL */
.panel-main-legends {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.legends-dashboard-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.legends-dash-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

/* STACK DE CARDS (CONTA, LINK, ECOIN, EMAIL, DATA) */
.legends-info-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.legends-info-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.legends-row-label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7c3aed;
}

.legends-row-val {
  font-weight: 700;
  color: #0f172a;
  font-size: 1.05rem;
}

.legends-ref-link {
  color: #2563eb;
  text-decoration: underline;
  word-break: break-all;
  font-weight: 700;
}

.legends-row-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legends-ecoin-display {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.15rem;
  color: #0f172a;
}

.legends-row-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-legends-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.btn-legends-gradient:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-legends-discord {
  background: #5865f2;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(88, 101, 242, 0.3);
}

.btn-legends-discord:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-legends-yellow {
  background: #eab308;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(234, 179, 8, 0.3);
}

.btn-legends-yellow:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* TILES DE AÇÕES RÁPIDAS (ALTERAR SENHA & RESETAR SUB-SENHA) */
.legends-tiles-row {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.legends-action-tile {
  min-width: 140px;
  height: 120px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
  flex: 1;
  max-width: 220px;
}

.legends-action-tile:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.legends-tile-label {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
}

/* LISTA DE PERSONAGENS */
.legends-char-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-top: 1rem;
}

.legends-section-subtitle {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1rem;
}

.legends-char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.legends-char-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.2s ease;
}

.legends-char-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.char-avatar-slot {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legends-char-symbol {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.char-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.char-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.char-card-stats {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #475569;
}

.badge-class-pill {
  background: #e2e8f0;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 800;
  color: #334155;
}

.char-card-loc {
  font-size: 0.78rem;
  color: #64748b;
}

.ref-link-text {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
  word-break: break-all;
}

.ref-link-text:hover {
  text-decoration: underline;
}

.ecoin-val-display {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #0f172a;
}

.info-card-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ACTION BUTTONS ON INFO ROW */
.btn-purple-action {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  padding: 0.55rem 1.15rem !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}

.btn-purple-action:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%) !important;
  transform: translateY(-1px);
}

.btn-blue-action {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  padding: 0.55rem 1.25rem !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.btn-blue-action:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
  transform: translateY(-1px);
}

.btn-discord-action {
  background: #5865f2 !important;
  color: #ffffff !important;
  padding: 0.55rem 1.1rem !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
  transition: all 0.2s ease;
}

.btn-discord-action:hover {
  background: #4752c4 !important;
  transform: translateY(-1px);
}

.btn-yellow-action {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
  padding: 0.55rem 1.1rem !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
}

.btn-yellow-action:hover {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%) !important;
  transform: translateY(-1px);
}

/* ACTION TILES (QUADRADOS AZUIS/ROXOS NEON) */
.action-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.action-tile {
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  border: none;
  border-radius: 12px;
  padding: 1.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  transition: all 0.25s ease;
  width: 100%;
}

.action-tile:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  box-shadow: 0 12px 25px rgba(59, 130, 246, 0.45);
}

.tile-icon {
  margin-bottom: 0.65rem;
  color: #ffffff;
}

.tile-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

/* CARDS DE DOAÇÃO CLEAN BRANCOS (IGUAL PRINT) */
.donate-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (max-width: 1080px) {
  .donate-packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .donate-packages-grid {
    grid-template-columns: 1fr;
  }
}

.donate-pkg-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.donate-pkg-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.12);
}

.pkg-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pkg-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  text-align: left;
}

.bonus-tag {
  background: #7c3aed;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35);
}

.pkg-graphic {
  width: 100%;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
}

.art-svg {
  width: 100%;
  height: 100%;
  max-height: 85px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
  transition: transform 0.2s ease;
}

.donate-pkg-card:hover .art-svg {
  transform: scale(1.05);
}

.pkg-ecoin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #334155;
  font-weight: 700;
  margin: 0.4rem 0;
}

.pkg-price-tag {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  color: #3b82f6;
  margin: 0.3rem 0 1rem;
  letter-spacing: 0.02em;
}

.pkg-action-form {
  width: 100%;
}

.btn-buy {
  width: 100% !important;
  padding: 0.7rem 1rem !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35) !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-buy:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5) !important;
  transform: translateY(-1px);
}

/* GENERAL PANELS & CARDS ON LIGHT CANVAS */
.panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 1.5rem;
}

.panel h2 {
  color: #0f172a;
  font-weight: 800;
}

.char-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem;
}
.char-card .char-name {
  color: #0f172a;
  font-size: 1.1rem;
}
.char-card .char-alz {
  color: #059669;
  font-weight: 800;
}

table {
  color: #334155;
}
th {
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
}
td {
  border-bottom: 1px solid #f1f5f9;
}

/* DISCORD CTA SECTION & FOOTER */
.discord-cta-section {
  position: relative;
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
  background: #0f0d21;
}

.discord-smoke-divider {
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(180deg, transparent 0%, #0f0d21 100%);
  pointer-events: none;
}

.discord-cta-card {
  background: linear-gradient(135deg, #1c183d 0%, #282057 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  padding: 1.25rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(139, 92, 246, 0.15);
}

@media (max-width: 680px) {
  .discord-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }
}

.discord-cta-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.discord-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #5865f2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
  flex-shrink: 0;
}

.discord-mascot-glow {
  font-size: 1.5rem;
}

.discord-cta-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 0;
  color: #ffffff;
}

.btn-discord-join {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  padding: 0.75rem 1.6rem !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  border-radius: 10px !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.5) !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-discord-join:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
  transform: scale(1.03);
}

.link-icon-rot {
  display: inline-block;
  transform: rotate(-45deg);
}

.footer {
  background: #0f0d21;
  border-top: none;
  padding: 1.5rem 0 3rem;
  margin-top: 0;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 1.5rem;
}

@media (max-width: 760px) {
  .footer-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.brand-footer {
  font-size: 1.6rem;
}

.footer-legal-text {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.footer-divider-purple {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #6366f1 30%, #a855f7 70%, transparent 100%);
  margin: 1rem 0;
}

.footer-copyright {
  text-align: center;
  font-size: 0.88rem;
  color: #94a3b8;
}

/* =======================================================
   ESTILO DO RANKING OFICIAL LEGENDS CABAL
   ======================================================= */
.legends-ranking-section {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  border-top: 6px solid #8b5cf6;
  overflow: hidden;
  min-height: 896px;
  background: #edf2f9;
  padding: 1rem 0 3rem;
}

.legends-rank-art {
  position: absolute;
  top: 0;
  height: 896px;
  width: auto;
  object-fit: contain;
  pointer-events: none !important;
  z-index: 0 !important;
}

.legends-rank-art.left-art {
  left: -120px;
}

.legends-rank-art.right-art {
  right: -120px;
}

@media (max-width: 1600px) {
  .legends-rank-art.left-art {
    left: -220px;
    opacity: 0.6;
  }
  .legends-rank-art.right-art {
    right: -220px;
    opacity: 0.6;
  }
}

@media (max-width: 1300px) {
  .legends-rank-art {
    display: none !important;
  }
}

.legends-ranking-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  padding: 1.5rem 1rem;
  z-index: 20 !important;
  position: relative;
}

.legends-ranking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 50 !important;
}

.legends-rank-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #6a00ff;
  letter-spacing: 0.05em;
  margin: 0;
}

.legends-rank-tabs {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 60 !important;
}

.legends-tab-item {
  background: transparent !important;
  border: none !important;
  padding: 0.25rem 0.6rem !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #64748b !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 100 !important;
  outline: none !important;
}

.legends-tab-item:hover {
  color: #3b82f6 !important;
}

.legends-tab-item.active {
  color: #7c3aed !important;
}

.tab-label-text {
  pointer-events: none;
}

.tab-chevron {
  width: 60px;
  height: auto;
  margin-top: 4px;
  pointer-events: none;
}

.legends-bringer-legend {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.legends-table-wrapper {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.legends-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legends-table thead {
  background: #f8fafc;
  border-bottom: 2px solid #cbd5e1;
}

.legends-table th {
  padding: 0.85rem 1rem;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: #475569;
  text-align: left;
}

.legends-tbody-scroll {
  display: block;
  max-height: 650px;
  overflow-y: auto;
  width: 100%;
}

.legends-table thead tr,
.legends-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.legends-table tbody tr {
  transition: all 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  cursor: default;
}

.legends-table tbody tr.row-even {
  background: #f8fafc;
}

.legends-table tbody tr.row-bringer-gold {
  background: #fffdf5;
}

.legends-table tbody tr:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
}

.legends-table tbody tr:hover td,
.legends-table tbody tr:hover .col-points,
.legends-table tbody tr:hover .td-points,
.legends-table tbody tr:hover strong,
.legends-table tbody tr:hover .muted {
  color: #ffffff !important;
}

.legends-table td {
  padding: 0.75rem 1rem;
  color: #1e293b;
  vertical-align: middle;
}

.th-pos, .td-pos {
  width: 50px;
  font-weight: 800;
  color: #6366f1;
}

.th-char, .td-char {
  width: 28%;
}

.th-class, .td-class {
  width: 14%;
  text-align: center;
}

.th-guild, .td-guild {
  width: 25%;
  color: #475569;
}

.th-kills, .td-kills {
  width: 13%;
  text-align: center;
}

.th-points, .td-points {
  width: 20%;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 800;
  color: #2563eb;
}

.legends-class-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.15s ease, filter 0.15s ease;
  filter: brightness(0) invert(0.2) !important;
}

.legends-table tbody tr:hover .legends-class-icon {
  transform: scale(1.15);
  filter: brightness(0) invert(1) !important;
}

/* =======================================================
   MODAL CARTÃO DE OURO (CASH CARD OPTION 1000)
   ======================================================= */
.gold-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999 !important;
  padding: 1rem;
}

.gold-modal-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  animation: modalScaleIn 0.2s ease-out;
}

.gold-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.gold-modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.gold-modal-close:hover {
  color: #0f172a;
}

.gold-modal-body {
  padding: 1.5rem;
}

.gold-action-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
}

.btn-purple-action {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff !important;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-purple-action:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
  transform: translateY(-1px);
}

.btn-blue-action {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.btn-blue-action:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
}

@keyframes modalScaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* =======================================================
   HOMEPAGE OFICIAL LEGENDS CABAL (HERO, NEWS, MEMORIAL, PRAETOR, SOCIAL)
   ======================================================= */
.text-light-purple {
  color: #8b5cf6 !important;
}

.legends-section-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: #6a00ff;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.legends-section-desc {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.legends-divider-bar {
  width: 140px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #8b5cf6 50%, transparent 100%);
  margin: 0 auto 2.5rem;
  border-radius: 2px;
}

/* 1. HERO BANNER */
.legends-hero-banner {
  width: 100%;
  min-height: 540px;
  background: radial-gradient(circle at center, #241442 0%, #0d0b1d 80%, #070611 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
  border-bottom: 4px solid #8b5cf6;
}

.legends-hero-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.legends-hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.legends-hero-tagline {
  font-size: 1.15rem;
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 0.25em;
  margin: 0;
  text-transform: uppercase;
}

.legends-hero-maintitle {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin: 0.2rem 0;
  text-shadow: 0 0 35px rgba(139, 92, 246, 0.6);
}

.legends-hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0;
}

.btn-play-now-glow {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
  color: #ffffff !important;
  text-decoration: none;
  padding: 1.1rem 2.8rem;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-play-now-glow:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.8), 0 12px 30px rgba(0, 0, 0, 0.6);
  filter: brightness(1.15);
}

.play-text-top {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.play-text-sub {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.9;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* 2. NOTÍCIAS & EVENTOS */
.legends-news-section {
  padding: 4rem 1rem;
  background: #edf2f9;
}

.legends-news-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.legends-news-card {
  height: 240px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.card-news-1 {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, #0f172a 100%), #312e81;
}

.card-news-2 {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, #0f172a 100%), #1e1b4b;
}

.card-news-3 {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, #0f172a 100%), #1e3a8a;
}

.legends-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
  filter: brightness(1.1);
}

.news-card-inner {
  text-align: left;
}

.news-card-tag {
  background: #7c3aed;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.news-card-title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
}

.news-card-date {
  color: #cbd5e1;
  font-size: 0.85rem;
  margin: 0;
}

/* 4. ARMA MEMORIAL */
.legends-memorial-section {
  padding: 4.5rem 1rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.memorial-showcase-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.memorial-card-box {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.memorial-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 1rem;
}

.memorial-char-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
}

.memorial-class-badge {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.memorial-weapon-stage {
  width: 100%;
  height: 180px;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%), #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.memorial-weapon-art {
  font-size: 4rem;
  filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
}

.memorial-stats-bar {
  display: flex;
  justify-content: space-around;
  width: 100%;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.memorial-stat-item {
  display: flex;
  gap: 0.4rem;
  font-size: 1.05rem;
  color: #475569;
}

.memorial-stat-item .stat-val {
  color: #6a00ff;
  font-weight: 900;
}

.memorial-empty-state {
  border: 2px dashed #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.memorial-glow-empty {
  background: radial-gradient(circle at center, rgba(148, 163, 184, 0.12) 0%, transparent 70%) !important;
}

/* 5. PORTADORES & GUARDIÕES */
.legends-praetor-section {
  padding: 4.5rem 1rem;
  background: #edf2f9;
}

.praetor-cards-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.praetor-card {
  width: 320px;
  height: 380px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.capella-card {
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.1) 0%, #1e1b4b 100%), #1e293b;
  border: 2px solid #eab308;
}

.procyon-card {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, #1e1b4b 100%), #0f172a;
  border: 2px solid #8b5cf6;
}

.praetor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.praetor-card-overlay {
  text-align: left;
}

.praetor-crown-badge {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.4rem;
}

.praetor-name {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 0.2rem;
}

.praetor-role {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 700;
}

/* 6. REDES SOCIAIS */
.legends-social-section {
  padding: 4.5rem 1rem 5rem;
  background: #f8fafc;
}

.legends-social-box {
  background: #13113f;
  border: 2px solid #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 10px 30px rgba(19, 17, 63, 0.25);
}

@media (max-width: 768px) {
  .legends-social-box {
    flex-direction: column;
  }
}

.social-links-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .social-links-column {
    flex-direction: row;
  }
}

.social-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #8b5cf6;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-action-btn:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.social-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  flex: 1;
}

@media (max-width: 768px) {
  .social-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
}

.social-thumb-box {
  height: 90px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  padding: 0.4rem;
  transition: all 0.2s ease;
}

.social-thumb-box:hover {
  border-color: #8b5cf6;
  transform: translateY(-2px);
}








