/* L2 Valdren — tema escuro com dourado envelhecido */
:root {
  --bg: #0c0a09;
  --bg-2: #15110f;
  --panel: #1b1613;
  --panel-2: #231d19;
  --line: #3a2f27;
  --text: #ece4d8;
  --muted: #a99b8a;
  --gold: #c9a45c;
  --gold-2: #e6c987;
  --red: #8e2a22;
  --red-2: #b23a2e;
  --ok: #4f9a5b;
  --err: #c0503f;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --title: 'Cinzel', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font);
  background-image: radial-gradient(1200px 600px at 50% -10%, rgba(142, 42, 34, .35), transparent 60%),
                    radial-gradient(900px 500px at 50% 120%, rgba(201, 164, 92, .08), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 .35em; font-size: .9em; }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.inline { display: inline; margin: 0; }

/* topo */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(12, 10, 9, .86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand img { display: block; width: 96px; height: 96px; margin: -18px 0; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--text); font-family: var(--title); font-size: .95rem; letter-spacing: .04em; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-2); border-bottom-color: var(--gold); text-decoration: none; }
.account { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
  font: 600 .95rem var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; border-color: #5a1a15; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.btn-primary:hover { background: linear-gradient(180deg, #c84a3c, var(--red-2)); }
.btn-ghost { background: transparent; color: var(--gold-2); border-color: var(--gold); }
.btn-ghost:hover { background: rgba(201, 164, 92, .12); }
.btn-link { background: none; border: 0; color: var(--muted); padding: 9px 6px; }
.btn-link:hover { color: var(--text); }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-disabled { background: var(--panel-2); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* hero */
.hero { padding: 48px 0 56px; text-align: center; border-bottom: 1px solid var(--line); }
.hero-logo { width: 320px; max-width: 80vw; margin: -24px auto -36px; display: block; filter: drop-shadow(0 8px 24px rgba(0,0,0,.6)); }
.hero-sub { max-width: 640px; margin: 0 auto 28px; color: var(--muted); font-size: 1.1rem; }
.countdown { display: inline-grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: 10px; margin-bottom: 8px; }
.countdown div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 8px; }
.countdown span { display: block; font: 700 2rem/1.1 var(--title); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.countdown small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
.opening { color: var(--muted); font-size: .9rem; margin: 4px 0 16px; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--err); box-shadow: 0 0 0 3px rgba(192, 80, 63, .25); }
.status.is-on .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(79, 154, 91, .25); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* seções */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font: 700 1.7rem var(--title); color: var(--gold-2); text-align: center; margin: 0 0 28px; letter-spacing: .03em; }
.section-title.small { font-size: 1.2rem; text-align: left; margin: 36px 0 12px; }
.page { padding: 48px 0 64px; }
.page-title { font: 700 2rem var(--title); color: var(--gold-2); margin: 0 0 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.steps:not(.steps-v) li::before { counter-increment: s; content: counter(s); font: 700 1.6rem var(--title); color: var(--gold); }
.steps strong { font-family: var(--title); color: var(--text); }
.steps span { color: var(--muted); }
.steps-v { grid-template-columns: 1fr; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font: 700 1.15rem var(--title); color: var(--gold-2); margin: 0 0 8px; }
.card p { margin: 0 0 16px; }
.tips { color: var(--muted); padding-left: 20px; }
.tips li { margin-bottom: 8px; }

/* formulários */
.form-wrap { max-width: 460px; }
.form { display: flex; flex-direction: column; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.form small { font-weight: 400; color: var(--muted); }
.form input[type=text], .form input:not([type]), .form input[type=email], .form input[type=password] {
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: 1rem var(--font); }
.form input:focus { border-color: var(--gold); outline: none; }
.form .check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.form .check input { width: 18px; height: 18px; accent-color: var(--red-2); }

/* mensagens */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.flash ul { margin: 0; padding-left: 18px; }
.flash-ok { border-color: #2f5e37; background: rgba(79, 154, 91, .12); }
.flash-erro { border-color: #6b2a22; background: rgba(192, 80, 63, .12); }
.flash-info { border-color: var(--gold); background: rgba(201, 164, 92, .08); }

/* painel */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-actions { display: flex; gap: 10px; }
.empty p { margin: 0 0 6px; }
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.char-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.char-head h3 { margin: 0; }
.char-class { margin: 8px 0 10px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.badge { font-size: .75rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); }
.badge-gold { color: var(--gold-2); border-color: var(--gold); }
.badge-red { color: #f1b0a6; border-color: var(--red-2); }
.pill { font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill-on { color: #b8e6bf; border-color: #2f5e37; background: rgba(79, 154, 91, .15); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.stats dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stats dd { margin: 0; font-weight: 600; }

/* rankings */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 20px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 16px; color: var(--muted); font-family: var(--title); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--gold-2); border-bottom-color: var(--gold); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--panel-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(201, 164, 92, .05); }
.table .pos { color: var(--gold-2); font-family: var(--title); font-weight: 700; width: 48px; }
.small-note { font-size: .85rem; margin-top: 12px; }

/* loja */
.coin-box { display: flex; flex-direction: column; align-items: flex-end; background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); padding: 10px 18px; min-width: 160px; }
.coin-box strong { font: 700 1.8rem/1.1 var(--title); color: var(--gold-2); }
.coin-box small { color: var(--muted); }
.coins-card { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.coins-card .coin-box { align-items: flex-start; }
.coins-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.pack { position: relative; display: flex; flex-direction: column; }
.pack-hl { border-color: var(--gold); }
.pack-tag { position: absolute; top: -10px; right: 14px; background: var(--gold); color: #1a130c; font-size: .7rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.pack-items { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--line); flex: 1; }
.pack-items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.pack-price { font: 700 1.5rem var(--title); color: var(--gold-2); margin: 0 0 12px !important; }
.pack-price small { font: 400 .8rem var(--font); color: var(--muted); }
.pack-buy { display: flex; gap: 8px; }
.pack-buy select { flex: 1; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: .9rem var(--font); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.plus { color: #8fd19a; font-weight: 600; }
.minus { color: #f1a196; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* comunidade / contato */
.community-text { max-width: 560px; margin: -12px auto 8px; }
.help-line { margin-top: 20px; }
.btn-discord { background: #5865f2; color: #fff; border-color: #4752c4; }
.btn-discord:hover { background: #4752c4; }
.btn-whats { background: #1f9d55; color: #fff; border-color: #17803f; }
.btn-whats:hover { background: #17803f; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #1f9d55; color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); text-decoration: none; }

/* rodapé */
.footer { border-top: 1px solid var(--line); padding: 28px 0 92px; color: var(--muted); font-size: .9rem; }
.footer-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-in img { width: 72px; height: 72px; }
.footer-in p { flex: 1; margin: 0; min-width: 220px; }
.footer nav { display: flex; gap: 16px; }

@media (max-width: 820px) {
  .steps, .cards, .cards-2 { grid-template-columns: 1fr; }
  .topbar-in { gap: 12px; }
  .nav { order: 3; width: 100%; gap: 16px; }
  .brand img { width: 72px; height: 72px; margin: -10px 0; }
  .countdown span { font-size: 1.5rem; }
}
