/* PW Sync — site. Sem fontes externas, sem imagens remotas. Claro/escuro automático (e ?theme= só em localhost, para os prints). */
:root {
  --bg: #f6f7f9; --panel: #ffffff; --text: #181b21; --muted: #5d6675; --line: #e3e6ec; --hover: #f1f3f7;
  --accent: #2563eb; --accent-strong: #1d4fd0; --accent-text: #ffffff; --accent-soft: #e8efff;
  --ok: #15803d; --ok-soft: #e3f6e9; --warn: #a45206; --warn-soft: #fdf0d9; --danger: #c62828; --danger-soft: #fdeaea;
  --hero-a: #eef3ff; --hero-b: #f6f7f9;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1014; --panel: #161a20; --text: #eceef2; --muted: #9aa3b2; --line: #272c35; --hover: #1c2027;
    --accent: #5b94ff; --accent-strong: #7aa9ff; --accent-text: #0b0d12; --accent-soft: #1a2a48;
    --ok: #4ade80; --ok-soft: #12301f; --warn: #fbbf24; --warn-soft: #36290c; --danger: #f87171; --danger-soft: #3a1717;
    --hero-a: #14203a; --hero-b: #0e1014; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  --bg: #0e1014; --panel: #161a20; --text: #eceef2; --muted: #9aa3b2; --line: #272c35; --hover: #1c2027;
  --accent: #5b94ff; --accent-strong: #7aa9ff; --accent-text: #0b0d12; --accent-soft: #1a2a48;
  --ok: #4ade80; --ok-soft: #12301f; --warn: #fbbf24; --warn-soft: #36290c; --danger: #f87171; --danger-soft: #3a1717;
  --hero-a: #14203a; --hero-b: #0e1014; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { color-scheme: light dark; -webkit-text-size-adjust: 100%; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
code { font-size: .92em; background: var(--hover); padding: 1px 6px; border-radius: 6px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.wrap.slim { max-width: 720px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* ---- topo ---- */
.test-banner { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: 14px; font-weight: 600; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.logo-img { width: 32px; height: 32px; border-radius: 9px; display: block; flex: none; box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 9px; font-size: 15px; }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; background: var(--hover); }
.nav a.nav-cta { background: var(--accent); color: var(--accent-text); font-weight: 600; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--accent-strong); color: var(--accent-text); }

/* ---- botões e formulários ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 600; text-decoration: none; padding: 11px 20px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.btn:hover { background: var(--hover); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-text); }
.btn.big { padding: 14px 26px; font-size: 17px; }
.btn.small { padding: 6px 12px; font-size: 14px; font-weight: 500; border-radius: 9px; }
.btn.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.block { width: 100%; }
label.field { display: block; margin: 14px 0; font-size: 14px; color: var(--muted); font-weight: 500; }
input[type="email"], input[type="text"] { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
input::placeholder { color: var(--muted); opacity: .7; }
input.code-input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 30px; letter-spacing: .5em; text-align: center; padding: 12px 8px 12px calc(8px + .5em); }
.form-msg { min-height: 1.5em; margin: 8px 0 0; font-size: 14px; }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--ok); }

/* ---- cartões e seções ---- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.section { padding: 56px 0; }
.section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 26px; }
.section-head p { color: var(--muted); margin: 8px 0 0; font-size: 17px; }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.page-head { padding: 40px 0 8px; }
.page-head p { color: var(--muted); font-size: 17px; margin: 8px 0 0; }
.page-body { padding: 18px 0 64px; }

/* ---- início ---- */
.hero { background: linear-gradient(180deg, var(--hero-a), var(--hero-b)); padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero .wrap { max-width: 860px; text-align: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 18px auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--muted); }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .dot { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.feature h3 { font-size: 16px; margin-bottom: 2px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
.edition-card { display: flex; flex-direction: column; gap: 10px; }
.edition-card h3 { font-size: 22px; }
.edition-card .tag { align-self: flex-start; }
.edition-card .price { font-size: 15px; color: var(--muted); }
.edition-card .price strong { font-size: 26px; color: var(--text); letter-spacing: -.02em; }
.edition-card ul { margin: 4px 0 6px; padding-left: 18px; color: var(--muted); font-size: 15px; }
.edition-card .btn { margin-top: auto; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; margin-bottom: 10px; }
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
details.faq { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); padding-bottom: 6px; }

/* ---- comprar ---- */
.buy { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 14px; }
.step-title .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 800; flex: none; }
.buy .card + .card { margin-top: 16px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; border: 2px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg); }
.choice:hover { border-color: var(--muted); }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.choice strong { display: block; font-size: 16px; }
.choice span { color: var(--muted); font-size: 13.5px; }
.plan-list { display: grid; gap: 8px; }
.plan-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-row strong { font-size: 16px; }
.plan-row .p { font-weight: 700; font-variant-numeric: tabular-nums; }
.summary { position: sticky; top: 76px; }
.summary h3 { margin-bottom: 12px; }
.summary dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 14px; }
.summary .total strong { font-size: 28px; letter-spacing: -.02em; }
.summary .secure { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.notice { border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; font-size: 15px; border: 1px solid var(--line); background: var(--panel); }
.notice.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.notice.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.notice.danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.notice strong { display: block; }

/* ---- selos ---- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--hover); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--accent-soft); color: var(--accent); }

/* ---- obrigado ---- */
.status-card { max-width: 640px; margin: 0 auto; text-align: center; }
.status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; font-size: 32px; font-weight: 800; }
.status-icon.ok { background: var(--ok-soft); color: var(--ok); }
.status-icon.warn { background: var(--warn-soft); color: var(--warn); }
.status-icon.danger { background: var(--danger-soft); color: var(--danger); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--warn); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.keybox { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border: 2px dashed var(--accent); border-radius: 12px; padding: 12px 14px; margin: 18px 0 6px; text-align: left; }
.keybox code { background: none; font-size: clamp(16px, 4vw, 22px); font-weight: 700; letter-spacing: .04em; padding: 0; word-break: break-all; }
.howto { text-align: left; margin: 22px 0 0; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.howto h3 { font-size: 16px; margin-bottom: 8px; }
.howto ol { margin: 0; padding-left: 20px; color: var(--muted); }
.howto li { margin: 4px 0; }

/* ---- conta ---- */
.login-box { max-width: 420px; margin: 24px auto 0; }
.login-box h2 { font-size: 24px; margin-bottom: 4px; }
.account-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 10px 16px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.lic { display: grid; gap: 14px; }
.lic-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.lic-head h3 { font-size: 20px; }
.lic-head .sub { color: var(--muted); font-size: 14px; }
.lic .keybox { margin: 0; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kv div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kv dt, .kv .k { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.kv dd, .kv .v { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions.center { justify-content: center; margin-top: 28px; }
.stack > * + * { margin-top: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th { text-align: left; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 36px 12px; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }

/* ---- baixar ---- */
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.dl-row .actions { margin: 0; }
.hash { font-size: 12px; word-break: break-all; color: var(--muted); }
.more-eds { margin-top: 32px; }
.more-eds h2 { font-size: 20px; margin-bottom: 4px; }
.more-eds > p { margin: 0 0 14px; }
.edition-buy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.edition-buy .btn { margin-top: 8px; }

/* ---- texto legal ---- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }

/* ---- rodapé ---- */
.footer { border-top: 1px solid var(--line); background: var(--panel); padding: 26px 0; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ---- aviso de cópia ---- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 30; box-shadow: var(--shadow); }

@media (max-width: 860px) {
  .grid.cols-3, .steps { grid-template-columns: 1fr; }
  .buy { grid-template-columns: 1fr; }
  .summary { position: static; }
  .kv { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid.cols-2 { grid-template-columns: 1fr; }
  .nav a { padding: 7px 9px; font-size: 14px; }
  .nav a.nav-hide-sm { display: none; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 40px 0; }
  .topbar .wrap { gap: 8px; }
  .keybox { flex-direction: column; align-items: stretch; }
}

/* ajustes */
.status-card .actions { justify-content: center; margin-top: 20px; }
.howto-card { margin-top: 18px; }
.howto-card h3 { margin-bottom: 8px; }
.howto-card ol { margin: 0 0 10px; padding-left: 20px; color: var(--muted); }
.howto-card li { margin: 4px 0; }
.empty .actions { justify-content: center; margin-top: 14px; }
.form-msg:empty { display: none; }
.status-card h1 { font-size: clamp(26px, 5vw, 34px); margin-bottom: 6px; }
.status-card .keybox, .status-card .howto { margin-top: 18px; }
#plan-note { margin: 14px 0 0; }
label.field { font-weight: 400; }
.account-bar { justify-content: flex-end; margin-bottom: 8px; }
.logo, .nav a { white-space: nowrap; }
@media (max-width: 640px) {
  .logo { font-size: 17px; gap: 8px; }
  .nav { gap: 0; }
  .nav a { padding: 7px 8px; }
  .nav a.nav-cta { margin-left: 4px; }
}
.login-box input.code-input { margin: 14px 0 12px; }
.login-box .actions { margin-top: 12px; }
.status-card { margin-top: 28px; }

/* ================= Minha conta (painel do jogador) ================= */
.badge { display: inline-flex; align-items: center; gap: 6px; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ico { display: inline-grid; place-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 16px; background: var(--accent-soft); color: var(--accent); }
.mono-tile { --tone: var(--accent); width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: .02em;
  background: var(--accent-soft); color: var(--accent); }
@supports (background: color-mix(in srgb, red, blue)) {
  .mono-tile { background: color-mix(in srgb, var(--tone) 14%, var(--panel)); color: color-mix(in srgb, var(--tone) 72%, var(--text)); }
}
.mono-tile[data-ed="187classic"] { --tone: #2563eb; }
.mono-tile[data-ed="187lug"] { --tone: #7c3aed; }
.mono-tile[data-ed="144"] { --tone: #0d9488; }
.prod-fam { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; min-height: 1em; }

.acct-hero { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px; }
.acct-hero .who { min-width: 0; flex: 1; }
.acct-hero .k { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.acct-hero .mail { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }

.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.acct-stat { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.acct-stat .ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--hover); color: var(--muted); }
.acct-stat.ok .ic { background: var(--ok-soft); color: var(--ok); }
.acct-stat.warn .ic { background: var(--warn-soft); color: var(--warn); }
.acct-stat.danger .ic { background: var(--danger-soft); color: var(--danger); }
.acct-stat .k { font-size: 13px; color: var(--muted); font-weight: 500; }
.acct-stat .v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.acct-stat.warn .v { color: var(--warn); } .acct-stat.danger .v { color: var(--danger); }
.acct-stat .sub { font-size: 12.5px; color: var(--muted); }

.seg-tabs { display: inline-flex; gap: 2px; padding: 4px; background: var(--hover); border-radius: 12px; margin-bottom: 18px; max-width: 100%; overflow-x: auto; }
.seg-tab { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.seg-tab:hover { color: var(--text); }
.seg-tab[aria-selected="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }

.lic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 16px; align-items: start; }
.acct-lic { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.acct-lic.is-off .mono-tile { filter: grayscale(.7); opacity: .8; }
.acct-lic-head { display: flex; align-items: center; gap: 12px; }
.acct-lic-head .who { flex: 1; min-width: 0; }
.acct-lic-head h3 { font-size: 19px; }
.acct-lic-head .sub { color: var(--muted); font-size: 14px; }
.acct-key .k, .acct-meta dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.acct-key .keybox { margin: 6px 0 0; }
.acct-key .keybox code { background: none; padding: 0; }
.acct-valid .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--muted); font-size: 14px; }
.acct-valid .row strong { color: var(--text); font-size: 16px; }
.acct-valid .muted { margin-top: 6px; }
.bar { height: 7px; border-radius: 99px; background: var(--hover); margin-top: 8px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.bar.ok .bar-fill { background: var(--ok); } .bar.warn .bar-fill { background: var(--warn); } .bar.danger .bar-fill { background: var(--danger); }
.acct-lic .dl-row { background: var(--accent-soft); border-color: transparent; gap: 14px; }
.acct-lic .dl-row.warn { background: var(--warn-soft); }
.acct-lic .dl-row.muted { background: var(--bg); border-color: var(--line); }
.dl-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--panel); color: var(--accent); flex: none; }
.dl-row.warn .dl-ic { color: var(--warn); }
.dl-txt { flex: 1; min-width: 150px; }
.acct-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.acct-meta div { min-width: 0; }
.acct-meta dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.acct-lic .actions { padding-top: 4px; border-top: 1px solid var(--line); margin-top: 2px; padding-top: 14px; }

.more-eds { margin-top: 34px; }
.edition-buy { align-items: flex-start; }
.edition-buy h3 { margin-top: 2px; }
.login-box { text-align: center; padding: 28px; }
.login-box .field { text-align: left; }
.login-box .actions { justify-content: center; }
.login-ic { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.acct-orders td.end { text-align: right; }
@media (max-width: 860px) {
  .acct-stats { grid-template-columns: 1fr; }
  .lic-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .acct-meta { grid-template-columns: 1fr; }
  .acct-hero { padding: 14px; }
  .acct-orders table { min-width: 0; }
  .acct-orders thead { display: none; }
  .acct-orders tbody, .acct-orders tr, .acct-orders td { display: block; }
  .acct-orders tr { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .acct-orders tbody tr:last-child { border-bottom: 0; }
  .acct-orders td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 4px 8px; text-align: right; }
  .acct-orders td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
  .acct-orders td.end { justify-content: flex-end; padding-top: 8px; }
}
@media (max-width: 860px) {
  .acct-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .acct-stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
}
@media (max-width: 640px) {
  .acct-stat .ic { width: 30px; height: 30px; border-radius: 9px; }
  .acct-stat .k { font-size: 12px; }
  .acct-stat .v { font-size: 16px; }
  .acct-stat .sub { font-size: 11.5px; }
  .acct-hero { flex-wrap: wrap; }
  .acct-hero .mail { font-size: 15px; overflow-wrap: break-word; word-break: normal; }
  .avatar { width: 40px; height: 40px; font-size: 14px; }
}

/* Suporte no Discord (topo de todas as páginas): leva direto à sala de abrir ticket. O endereço vem de /api/site/config (support_url);
   sem endereço configurado o site.js esconde o botão. */
:root { --discord: #4752c4; --discord-soft: #eef0fe; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --discord: #9aa2ff; --discord-soft: #1f2340; } }
:root[data-theme="dark"] { --discord: #9aa2ff; --discord-soft: #1f2340; }
.nav a.nav-support { display: inline-flex; align-items: center; gap: 6px; color: var(--discord); font-weight: 600; border: 1px solid var(--line); margin: 0 2px; }
.nav a.nav-support:hover { background: var(--discord-soft); color: var(--discord); border-color: var(--discord); }
.nav-support-icon { flex: none; }
@media (max-width: 640px) {
  .nav a.nav-support { padding: 7px 8px; }
  .nav-support-text { display: none; }
}
