:root {
  --bg: #060810;
  --bg-deep: #030508;
  --bg-card: rgba(8, 12, 22, 0.82);
  --bg-card-border: rgba(212, 175, 55, 0.28);
  --gold: #d4af37;
  --gold-light: #f0d875;
  --gold-dark: #8a6d14;
  --blue-glow: #3ecbff;
  --blue-deep: #1a8fb8;
  --ember: #ff8c42;
  --text: #e8edf5;
  --muted: #8b9bb3;
  --danger: #f87171;
  --success: #4ade80;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 0 24px rgba(212, 175, 55, 0.35);
  --glow-blue: 0 0 20px rgba(62, 203, 255, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
}

/* Fundo atmosferico */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 175, 55, 0.14), transparent 55%),
    radial-gradient(circle at 15% 25%, rgba(62, 203, 255, 0.06), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(255, 140, 66, 0.05), transparent 30%),
    linear-gradient(180deg, #0a0f1c 0%, #060810 45%, #030508 100%);
}

.embers {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 140, 66, 0.9), transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(255, 180, 80, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 55% 35%, rgba(240, 216, 117, 0.6), transparent),
    radial-gradient(1px 1px at 72% 78%, rgba(255, 140, 66, 0.8), transparent),
    radial-gradient(1px 1px at 88% 42%, rgba(255, 200, 100, 0.5), transparent),
    radial-gradient(1px 1px at 45% 88%, rgba(255, 140, 66, 0.6), transparent);
  background-size: 100% 100%;
  animation: ember-drift 18s ease-in-out infinite alternate;
}

@keyframes ember-drift {
  from { transform: translateY(0); opacity: 0.35; }
  to { transform: translateY(-12px); opacity: 0.5; }
}

.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(6, 8, 16, 0.92), rgba(6, 8, 16, 0.78));
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.header-inner--centered {
  justify-content: center;
  position: relative;
}

.header-inner--centered .main-nav {
  justify-content: center;
}

.header-inner--centered .nav-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(62, 203, 255, 0.35)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold-dark));
  color: #111;
  font-family: Cinzel, serif;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: var(--glow-gold);
  border: 1px solid rgba(240, 216, 117, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: Cinzel, serif;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.brand-text small {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.main-nav a.nav-wa:hover {
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.3rem;
  padding: 6px 10px;
  cursor: pointer;
}

/* Botoes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, #f0d875 0%, #d4af37 45%, #a67c00 100%);
  color: #1a1200;
  box-shadow: var(--glow-gold), 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(240, 216, 117, 0.5);
}

.btn-gold:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.5), 0 8px 28px rgba(0, 0, 0, 0.4);
}

.btn-blue {
  background: linear-gradient(135deg, #5dd5ff 0%, #1a8fb8 100%);
  color: #031018;
  box-shadow: var(--glow-blue);
  border: 1px solid rgba(94, 213, 255, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.btn-ghost:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.06);
}

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Hero banner */
.hero-banner {
  position: relative;
  min-height: clamp(420px, 52vw, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    var(--hero-bg, none) center 22% / cover no-repeat,
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(212, 175, 55, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(6, 8, 16, 0.3), rgba(6, 8, 16, 0.95));
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  overflow: hidden;
}

.hero-banner--wok {
  min-height: clamp(220px, 28vw, 340px);
  align-items: center;
  background: transparent;
  border-bottom: none;
}

.hero-banner--wok .hero-banner-overlay {
  display: none;
}

.hero-banner--wok .hero-banner-inner {
  padding: 48px 0;
  width: 100%;
}

.hero-banner--wok .hero-tagline {
  margin-top: 0;
  color: rgba(232, 232, 232, 0.92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

.hero-banner--wok .hero-actions {
  margin-top: 4px;
}

.hero-banner::after {
  display: none;
}

.site-server-title {
  text-align: center;
  padding: clamp(24px, 4vw, 48px) 0 20px;
}

.site-server-name {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.site-server-icon {
  width: min(280px, 72vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 24px rgba(212, 175, 55, 0.15));
}

.site-server-name-sub {
  font-family: Cinzel, serif;
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.42em;
}

.nav-cta-register {
  margin-left: 2px;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.55) 0%, rgba(6, 8, 16, 0.75) 50%, rgba(6, 8, 16, 0.95) 100%),
    radial-gradient(circle at 50% 30%, rgba(62, 203, 255, 0.08), transparent 50%);
}

.hero-banner-inner {
  position: relative;
  z-index: 1;
  padding: 48px 0 56px;
}

.hero-logo {
  max-width: min(520px, 90vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(62, 203, 255, 0.35)) drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6));
  animation: logo-glow 4s ease-in-out infinite alternate;
}

@keyframes logo-glow {
  from { filter: drop-shadow(0 0 30px rgba(62, 203, 255, 0.25)) drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6)); }
  to { filter: drop-shadow(0 0 50px rgba(62, 203, 255, 0.45)) drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6)); }
}

.hero-title-fallback {
  font-family: Cinzel, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.4));
}

.hero-tagline {
  font-family: Cinzel, serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--muted);
  margin: 16px 0 28px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-banner .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Cards ornamentados */
.ornate-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.ornate-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), transparent 40%, rgba(62, 203, 255, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-card, .panel-card, .card {
  padding: 24px;
}

.section-title {
  font-family: Cinzel, serif;
  font-size: 1.45rem;
  margin: 0 0 14px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.hero { padding: 40px 0 24px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(560px, 1.45fr);
  gap: 24px;
  align-items: stretch;
}

.hero-info-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.server-title-card {
  padding: 20px 24px;
}

.server-title-card .section-title {
  margin: 0;
}

.hero-intro-card {
  padding: 20px 24px;
}

.hero-intro-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.updates-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.updates-panel-header .section-title {
  margin: 0;
}

.updates-panel-body {
  flex: 1;
  padding: 12px 18px 18px;
  overflow: auto;
}

.updates-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.updates-group + .updates-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.updates-group-title {
  margin: 0 0 10px;
  font-family: Cinzel, serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.updates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.updates-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.08);
}

.updates-item-title {
  color: #f0ece4;
  font-size: 0.95rem;
  line-height: 1.45;
}

.updates-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.updates-item-title a:hover {
  color: var(--gold-light);
}

.updates-item-date {
  margin-left: auto;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero-card p { color: var(--muted); font-size: 1.02rem; margin-top: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.stats-grid, .cards-grid, .footer-grid, .gallery-grid { display: grid; gap: 20px; }

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
}

.cards-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.gallery-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.stat {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  color: var(--gold-light);
  font-family: Cinzel, serif;
}

.stat span { color: var(--muted); font-size: 0.82rem; }

.section { padding: 36px 0 48px; }
.section-dim { background: rgba(0, 0, 0, 0.2); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}

.section-head .section-title { font-size: 1.75rem; margin: 0; }

.section-divider {
  height: 1px;
  margin: 0 auto 28px;
  max-width: 220px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
}

.page-shell {
  padding: 28px 0 48px;
}

.page-shell .form-card {
  position: relative;
  overflow: hidden;
}

.page-shell .form-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(62, 203, 255, 0.5), rgba(212, 175, 55, 0.8), rgba(62, 203, 255, 0.5));
}

/* Galeria */
.gallery-card { overflow: hidden; padding: 0; }

.gallery-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.04);
  filter: brightness(1.08) saturate(1.1);
}

.gallery-placeholder {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(62, 203, 255, 0.06)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 8px);
}

.gallery-body { padding: 18px 20px 22px; }

.gallery-body h3 {
  font-family: Cinzel, serif;
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: 1.1rem;
}

.gallery-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.step-num {
  display: inline-block;
  font-family: Cinzel, serif;
  font-size: 1.5rem;
  color: var(--blue-glow);
  text-shadow: var(--glow-blue);
  margin-bottom: 8px;
}

.card h3 {
  font-family: Cinzel, serif;
  margin: 0 0 10px;
  color: var(--gold-light);
}

.card p { color: var(--muted); }

/* Formularios */
.form-card { max-width: 520px; margin: 32px auto; }
.form-card h1 {
    margin-top: 0;
    margin-bottom: 12px;
    font-family: Cinzel, serif;
    color: var(--gold-light);
}
.form-lead {
    margin: 0 0 18px;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.55;
}
.form-lead-muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.92rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(62, 203, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(62, 203, 255, 0.12);
}

.form-group small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.82rem; }
.form-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.form-links a { color: var(--blue-glow); text-decoration: none; font-size: 0.92rem; }

/* Alertas */
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.alert-error { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); color: #fecaca; }
.alert-success { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.35); color: #bbf7d0; }
.alert-warning { background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.35); color: #fde68a; }
.alert-info { background: rgba(62, 203, 255, 0.08); border: 1px solid rgba(62, 203, 255, 0.28); color: #bae6fd; }

/* Tabelas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); text-align: left; font-size: 0.92rem; }
th { color: var(--gold-light); font-weight: 600; font-family: Cinzel, serif; }
tbody tr:hover { background: rgba(212, 175, 55, 0.04); }

.ranking-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.ranking-card .game-panel-header.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
  margin-bottom: 0;
}

.ranking-card .ranking-panel-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 10px;
}

.ranking-card .ranking-table-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.ranking-card .table-wrap {
  overflow: hidden;
}

.ranking-table--filled {
  height: 100%;
  min-height: 100%;
  table-layout: fixed;
}

.ranking-table--filled tbody {
  height: 100%;
}

.ranking-table--filled tbody tr {
  height: 10%;
}

.ranking-row-empty td {
  color: var(--muted);
  opacity: 0.5;
}

.ranking-row-empty .ranking-player {
  font-weight: 400;
}

.ranking-table {
  width: 100%;
  table-layout: auto;
}

.ranking-table th,
.ranking-table td {
  padding: 8px 9px;
  font-size: 0.84rem;
  vertical-align: middle;
}

.ranking-table th {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ranking-head .section-title { margin: 0; }

.ranking-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(212, 175, 55, 0.16);
}

.ranking-tab {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.ranking-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.ranking-tab.is-active {
  color: #0b1020;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

.ranking-table .ranking-pos {
  width: 36px;
  color: var(--gold-light);
  font-family: Cinzel, serif;
}

.ranking-table .ranking-player {
  font-weight: 600;
  white-space: nowrap;
}

.ranking-kingdom-cell {
  text-align: center;
  width: 42px;
  padding-left: 6px;
  padding-right: 6px;
}

.ranking-cape-icon {
  display: block;
  width: 28px;
  height: 36px;
  margin: 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.ranking-cape-fallback {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.ranking-guild {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.ranking-table .ranking-evo {
  white-space: nowrap;
  font-size: 0.8rem;
}

.ranking-kingdom {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  box-shadow: 0 0 8px currentColor;
}

.ranking-kingdom.kingdom-blue { background: #3ecbff; color: #3ecbff; }
.ranking-kingdom.kingdom-red { background: #f87171; color: #f87171; }

.ranking-table .ranking-frags {
  color: #fca5a5;
  font-weight: 700;
}

.ranking-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.package-card { display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.package-card h3 { margin: 0; font-family: Cinzel, serif; color: var(--gold-light); }
.package-price { font-size: 1.4rem; color: var(--gold-light); font-weight: 700; font-family: Cinzel, serif; }
.package-meta { color: var(--muted); font-size: 0.9rem; }

.tutorial-list a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.12);
  margin-bottom: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.tutorial-list a:hover {
  border-color: rgba(62, 203, 255, 0.35);
  background: rgba(62, 203, 255, 0.04);
}

.tutorial-list small { color: var(--muted); }

.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.panel-stat strong { font-size: 1.5rem; color: var(--gold-light); display: block; font-family: Cinzel, serif; }

/* Footer */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  padding: 36px 0 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.site-footer h3, .site-footer h4 {
  font-family: Cinzel, serif;
  margin: 0 0 10px;
  color: var(--gold-light);
}

.site-footer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--gold-light); }
.footer-grid { grid-template-columns: 2fr 1fr 1fr; }

.footer-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.85rem;
}

.content-html h2, .content-html h3 { font-family: Cinzel, serif; color: var(--gold-light); }
.content-html ul { padding-left: 20px; }

.pix-box { display: flex; justify-content: center; margin: 20px 0; }
.pix-qr {
  width: min(280px, 100%);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: var(--glow-gold);
}

.site-header.is-scrolled {
  background: rgba(6, 8, 16, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-main {
  min-height: calc(100vh - 180px);
}

/* ===== Responsivo: site publico ===== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    min-height: 520px;
  }

  .ranking-table--filled tbody tr {
    height: auto;
    min-height: 38px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(1140px, calc(100% - 24px));
  }

  .header-inner {
    flex-wrap: nowrap;
    padding: 8px 0;
  }

  .header-inner--centered {
    justify-content: flex-end;
    padding-right: 52px;
  }

  .header-inner--centered .main-nav.open {
    left: 0;
    right: 0;
  }

  .site-server-name-main {
    letter-spacing: 0.12em;
  }

  .site-server-name-sub {
    letter-spacing: 0.22em;
    padding-left: 0.22em;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 42px;
    min-height: 42px;
  }

  .site-header .container {
    position: relative;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
    background: rgba(6, 8, 16, 0.98);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
  }

  .main-nav a.btn {
    justify-content: center;
    margin-top: 4px;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0, 0, 0, 0.55);
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav-overlay {
    display: block;
  }

  .hero-grid,
  .footer-grid,
  .stats-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    min-height: 320px;
  }

  .hero-banner--wok {
    min-height: 360px;
    background-position: center 14%;
  }

  .hero-banner--wok .hero-banner-inner {
    padding: 0 0 28px;
  }

  .hero-banner-inner {
    padding: 36px 0 44px;
  }

  .brand-logo {
    height: 42px;
  }

  .hero {
    padding: 28px 0 20px;
  }

  .section {
    padding: 28px 0 36px;
  }

  .page-shell {
    padding: 20px 0 36px;
  }

  .hero-card,
  .panel-card,
  .card {
    padding: 18px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-head .section-title {
    font-size: 1.45rem;
  }

  .ranking-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ranking-tabs {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .ranking-card .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px 4px;
  }

  .ranking-card {
    overflow: hidden;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap::after {
    content: '';
    display: block;
    height: 1px;
  }

  th,
  td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 7px 8px;
    font-size: 0.8rem;
  }

  .form-card {
    margin: 20px auto;
    max-width: 100%;
  }

  .form-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-banner .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-banner .hero-actions .btn {
    width: 100%;
  }

  .content-html table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .site-footer {
    margin-top: 32px;
    padding: 28px 0 18px;
  }

  .footer-bottom {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 16px);
  }

  .brand-text small {
    display: none;
  }

  .brand-logo {
    height: 36px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .hero-banner {
    min-height: 260px;
  }

  .hero-banner-inner {
    padding: 28px 0 36px;
  }

  .hero-tagline {
    letter-spacing: 0.08em;
    font-size: 0.88rem;
  }

  .btn {
    padding: 11px 18px;
    font-size: 0.88rem;
  }

  .btn-lg {
    padding: 13px 22px;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .section-head .section-title {
    font-size: 1.35rem;
  }

  .stats-grid {
    gap: 12px;
  }

  .stat {
    padding: 12px;
  }

  .stat strong {
    font-size: 1rem;
  }

  .gallery-image {
    height: 160px;
  }

  .gallery-body {
    padding: 14px 16px 18px;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 6px 6px;
    font-size: 0.74rem;
  }

  .ranking-tab {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .package-price {
    font-size: 1.2rem;
  }

  .panel-stat strong {
    font-size: 1.25rem;
  }

  .tutorial-list a {
    padding: 12px 14px;
  }

  .pix-qr {
    padding: 10px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 11px 12px;
  }
}

/* Utilitarios publicos */
.cards-grid--spaced {
  margin-top: 1.25rem;
}

.card-title {
  font-family: Cinzel, serif;
  margin-top: 0;
  color: var(--gold-light);
}

.form-card-wide {
  max-width: min(640px, 100%);
}

.page-kicker {
  color: var(--muted);
  margin-top: 0;
}

.page-title {
  font-family: Cinzel, serif;
  margin-top: 0;
  color: var(--gold-light);
}

.content-html pre,
.tutorial-pre {
  background: rgba(0, 0, 0, 0.35);
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  line-height: 1.55;
  font-size: 0.88rem;
}

.content-html hr,
.tutorial-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 28px 0;
}

.tutorial-footnote {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.tutorial-back {
  margin-top: 1.5rem;
}

.tutorial-back a {
  color: var(--blue-glow);
  text-decoration: none;
}

.tutorial-back a:hover {
  text-decoration: underline;
}
