/* ============================================================
   DANCO COC — Portal do cliente
   Design system v1 (standalone — não depende do style.css)
   ============================================================ */

:root {
  --bg: #07090d;
  --panel: #11151c;
  --panel-2: #141820;
  --panel-3: #1a1f2a;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --tx: #f5f7fb;
  --tx-2: #a8afbd;
  --tx-3: #737b8c;
  /* Cor de destaque. Os --vio* são só apelidos antigos: o nome dizia "violeta"
     mas o valor aqui é dourado. Use --accent em código novo. */
  --accent: #ffa800;
  --accent-2: #ffc233;
  --accent-deep: #d88a05;
  --vio: var(--accent);
  --vio-2: var(--accent-2);
  --vio-deep: var(--accent-deep);
  --grad: linear-gradient(135deg, #ffc233 0%, #ffa800 55%, #d88a05 100%);
  /* Texto que fica EM CIMA do dourado. Branco sobre #ffa800 dá 1,9:1
     (ilegível); este quase-preto dá 9,6:1. */
  --on-accent: #171208;
  --ok: #34d399;
  --ok-bg: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.12);
  --bad: #fb7185;
  --bad-bg: rgba(251, 113, 133, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

/* Tema claro — tokens (dark permanece padrão em :root) */
html[data-theme="light"] {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --panel-2: #f8f9fc;
  --panel-3: #eef1f7;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --tx: #0f172a;
  --tx-2: #334155;
  --tx-3: #475569;
  /* Mesmo dourado da marca do bloco escuro, em tons mais fechados para ficar
     legível no branco (o #ffa800 puro tem contraste 1.9:1 sobre branco).
     --accent-2 é cor de link: 5.0:1. --accent-deep é hover: 6.9:1.
     O --grad carrega texto branco, por isso usa os tons mais profundos (4.6:1). */
  --accent: #b57d0a;
  --accent-2: #96660a;
  --accent-deep: #7a5208;
  --vio: var(--accent);
  --vio-2: var(--accent-2);
  --vio-deep: var(--accent-deep);
  --grad: linear-gradient(135deg, #a06a06 0%, #7a5208 100%);
  /* No claro o gradiente é fechado, então o branco continua legível (4,6:1) */
  --on-accent: #ffffff;
  --ok: #047857;
  --ok-bg: rgba(4, 120, 87, 0.1);
  --warn: #b45309;
  --warn-bg: rgba(180, 83, 9, 0.1);
  --bad: #be123c;
  --bad-bg: rgba(190, 18, 60, 0.1);
  --shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.portal-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(255, 168, 0, 0.10), transparent 60%),
    radial-gradient(900px 420px at -10% 0%, rgba(216, 138, 5, 0.08), transparent 55%),
    var(--bg);
  color: var(--tx);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="light"] body.portal-body {
  /* Brilho de fundo acompanha a marca dourada (era arroxeado) */
  background:
    radial-gradient(1000px 420px at 90% -8%, rgba(255, 168, 0, 0.10), transparent 55%),
    radial-gradient(800px 360px at -5% 0%, rgba(216, 138, 5, 0.06), transparent 50%),
    var(--bg);
}
.portal-body a { color: var(--vio-2); text-decoration: none; }
.portal-body a:hover { color: var(--accent-2); }
html[data-theme="light"] .portal-body a:hover { color: var(--vio-deep); }
/* Botões primários: cor de texto vem do tema (não herdar a cor de link).
   Esta regra tem especificidade maior que a do próprio botão, então precisa
   usar o token também — senão o branco volta por cima. */
.portal-body a.btn-primary,
.portal-body a.loja-btn-primary,
.portal-body a.portal-cta,
.portal-body a.app-signup {
  color: var(--on-accent);
}
.portal-body a.btn-primary:hover,
.portal-body a.loja-btn-primary:hover,
.portal-body a.portal-cta:hover,
.portal-body a.app-signup:hover {
  color: var(--on-accent);
}
.portal-body img { max-width: 100%; }
.portal-body ::selection { background: rgba(255, 168, 0, 0.35); }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Topbar ---------- */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 13, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
html[data-theme="light"] .app-nav {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.app-nav-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 20px 0 16px;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--tx);
  text-decoration: none;
  flex: none;
  margin-right: 4px;
}
.app-logo:hover { color: var(--tx); }
.app-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 6px 18px rgba(255, 168, 0, 0.35);
}
.app-logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-logo-text {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.app-logo-text em { font-style: normal; color: var(--vio-2); }

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
.app-nav-links a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
  color: var(--tx-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.app-nav-links a:hover { color: var(--tx); background: rgba(255, 255, 255, 0.05); }
.app-nav-links a.is-active { color: var(--tx); }
.app-nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.app-nav-right { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }

.app-theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--tx-2);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.app-theme-toggle:hover {
  color: var(--tx);
  background: var(--panel-3);
  border-color: var(--line-2);
}
.app-theme-toggle .icon-sun,
.app-theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .app-theme-toggle .icon-sun,
html:not([data-theme]) .app-theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .app-theme-toggle .icon-moon { display: block; }

.app-cart-wrap { position: relative; }
.app-cart {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--tx);
  transition: border-color 0.15s ease;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.app-cart:hover,
.app-cart-wrap.is-open .app-cart { border-color: var(--vio); color: var(--tx); }
.app-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-accent);
  font-size: 0.66rem;
  font-weight: 800;
}
.app-cart-badge.is-empty { display: none; }

.app-cart-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: min(340px, calc(100vw - 24px));
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #17141f, #100e16);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.app-cart-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.app-cart-dropdown-head strong {
  font-size: 0.9rem;
  font-weight: 800;
}
.app-cart-dropdown-head span {
  color: var(--tx-3);
  font-size: 0.75rem;
  font-weight: 600;
}
.app-cart-dropdown-list {
  max-height: 260px;
  overflow: auto;
  padding: 0.45rem;
  display: grid;
  gap: 4px;
}
.app-cart-empty {
  padding: 1.4rem 0.8rem;
  text-align: center;
  color: var(--tx-3);
  font-size: 0.84rem;
}
.app-cart-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0.55rem 0.55rem;
  border-radius: 11px;
  text-decoration: none;
  color: inherit;
  transition: background 0.14s ease;
}
.app-cart-line:hover { background: rgba(255, 168, 0, 0.1); }
.app-cart-line img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--panel-2);
}
.app-cart-line .meta { min-width: 0; }
.app-cart-line .meta strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-cart-line .meta span {
  display: block;
  margin-top: 2px;
  color: var(--tx-3);
  font-size: 0.72rem;
  font-weight: 600;
}
.app-cart-line em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.app-cart-dropdown-foot {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
}
.app-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.app-cart-total span {
  color: var(--tx-3);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.app-cart-total strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tx);
}
.app-cart-dropdown-foot .loja-btn {
  width: 100%;
}

.app-profile { position: relative; }
.app-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.28rem 0.7rem 0.28rem 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--tx);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.app-profile-btn:hover,
.app-profile.is-open .app-profile-btn { border-color: var(--vio); }
.app-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: var(--on-accent);
  font-size: 0.8rem;
  font-weight: 800;
  flex: none;
}
.app-avatar.lg { width: 42px; height: 42px; font-size: 1rem; }
.app-profile-name { font-size: 0.86rem; font-weight: 700; }
.app-profile-role { font-size: 0.72rem; color: var(--tx-3); font-weight: 600; }
.app-caret { color: var(--tx-3); transition: transform 0.15s ease; }
.app-profile.is-open .app-caret { transform: rotate(180deg); }

.app-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 250px;
  padding: 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: 0.15s ease;
  z-index: 70;
}
.app-profile.is-open .app-dropdown { opacity: 1; visibility: visible; transform: none; }
.app-dropdown-user { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.5rem 0.7rem; }
.app-dropdown-user .nm { font-weight: 700; font-size: 0.92rem; }
.app-dropdown-user .id { font-size: 0.74rem; color: var(--tx-3); }
.app-dropdown-sep { height: 1px; background: var(--line); margin: 0.3rem 0.25rem; }
.app-dropdown-item {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  color: var(--tx-2);
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
}
.app-dropdown-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--tx); }
.app-dropdown-item.danger { color: var(--bad); }
.app-dropdown-item.danger:hover { background: var(--bad-bg); color: var(--bad); }
.app-logout-form { margin: 0; }
button.app-dropdown-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.app-login {
  padding: 0.5rem 0.8rem;
  color: var(--tx-2);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}
.app-login:hover { color: var(--tx); }
.app-signup {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: var(--grad);
  color: var(--on-accent);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(216, 138, 5, 0.35);
}
.app-signup:hover { filter: brightness(1.08); color: #fff; }

/* ---------- Layout ---------- */
.portal-main {
  /* Loja/área do cliente: largura contida (em tela cheia ficava pior; o admin é que é full) */
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 24px 70px;
}
/* ---------- Rodapé do site ---------- */
.site-foot {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--tx-2);
}
.site-foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.site-foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tx) !important;
}
.site-foot-logo img { border-radius: 9px; }
.site-foot-logo span { font-weight: 800; letter-spacing: 0.04em; font-size: 1rem; }
.site-foot-logo em { font-style: normal; color: var(--accent); }
.site-foot-brand p { margin: 14px 0 0; max-width: 340px; font-size: 0.88rem; line-height: 1.6; color: var(--tx-3); }
.site-foot-col { display: grid; align-content: start; gap: 10px; }
.site-foot-col h4 {
  margin: 4px 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tx);
}
.site-foot-col a {
  justify-self: start;
  font-size: 0.9rem;
  color: var(--tx-3) !important;
  text-decoration: none;
  transition: color 0.15s;
}
.site-foot-col a:hover { color: var(--accent) !important; }
.site-foot-bottom { border-top: 1px solid var(--line); }
.site-foot-bottom .site-foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 22px;
  font-size: 0.78rem;
  color: var(--tx-3);
}
.site-foot-legal { flex-basis: 100%; font-size: 0.72rem; opacity: 0.8; }
@media (max-width: 860px) {
  .site-foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-foot-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Botões ---------- */
.btn,
.loja-btn,
.portal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 11px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.16s ease;
  line-height: 1.2;
}
.btn-primary,
.loja-btn-primary,
.portal-cta {
  background: var(--grad);
  color: var(--on-accent);
  box-shadow: 0 10px 26px rgba(216, 138, 5, 0.32);
}
.btn-primary:hover,
.loja-btn-primary:hover,
.portal-cta:hover { filter: brightness(1.08); color: #fff; transform: translateY(-1px); }
.btn-ghost,
.loja-btn-ghost {
  background: var(--panel);
  border-color: var(--line-2);
  color: var(--tx);
}
.btn-ghost:hover,
.loja-btn-ghost:hover { border-color: var(--vio); color: var(--tx); transform: translateY(-1px); }
.btn-sm,
.loja-btn-sm,
.portal-cta-sm { padding: 0.5rem 0.9rem; font-size: 0.83rem; border-radius: 9px; }

/* ---------- Hero (Início / Loja) ---------- */
.hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--panel);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 30%;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(88deg,
      rgba(10, 11, 17, 0.96) 0%,
      rgba(10, 11, 17, 0.88) 34%,
      rgba(10, 11, 17, 0.55) 60%,
      rgba(10, 11, 17, 0.18) 100%);
}
.hero-content {
  max-width: 620px;
  padding: 52px 48px;
}
.hero--sm .hero-content { padding: 40px 48px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 194, 51, 0.4);
  background: rgba(255, 168, 0, 0.12);
  color: #ddd3ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.14;
  color: #fff;
}
.hero h1 em { font-style: normal; color: var(--vio-2); }
.hero-sub {
  margin: 0.8rem 0 0;
  max-width: 480px;
  color: rgba(226, 230, 240, 0.85);
  font-size: 0.97rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.5rem; }

/* ---------- Stat cards ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.15s ease;
}
.stat-card:hover { border-color: var(--line-2); }
.stat-ico {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 168, 0, 0.13);
  color: var(--vio-2);
}
.stat-ico svg { width: 20px; height: 20px; }
.stat-val { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.stat-lbl { color: var(--tx-3); font-size: 0.8rem; font-weight: 600; }

/* ---------- Painéis / seções ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 34px 0 14px;
}
.section-title h2 { font-size: 1.15rem; }
.section-title a { font-size: 0.84rem; font-weight: 600; }

.panel,
.portal-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.25rem 1.35rem;
}
.portal-panel { margin-top: 0.5rem; }
.panel-head,
.portal-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.panel-head h2, .portal-panel-head h2 { font-size: 1.02rem; }

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* ---------- Licenças (Início) ---------- */
.lic-list { display: grid; gap: 10px; }
.lic-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  transition: border-color 0.15s ease;
}
.lic-item:hover { border-color: var(--line-2); }
.lic-item-main { flex: 1; min-width: 0; }
.lic-key {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tx);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lic-meta { margin-top: 0.2rem; color: var(--tx-3); font-size: 0.78rem; font-weight: 600; }
.lic-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.lic-item > a { font-size: 0.82rem; font-weight: 700; white-space: nowrap; }

/* ---------- Pedidos (lista compacta) ---------- */
.order-list { display: grid; gap: 8px; }
.order-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--tx);
  font-size: 0.86rem;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.order-item:hover { border-color: var(--vio); color: var(--tx); }
.order-item .oid { font-weight: 700; color: var(--vio-2); }
.order-item .odate { color: var(--tx-3); font-size: 0.78rem; }
.order-item .ototal { font-weight: 800; }

/* ---------- Acesso rápido ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--tx);
  text-decoration: none;
  transition: 0.16s ease;
}
.quick-card:hover { border-color: var(--vio); transform: translateY(-2px); color: var(--tx); }
.quick-card .stat-ico { width: 36px; height: 36px; border-radius: 10px; }
.quick-card .stat-ico svg { width: 17px; height: 17px; }
.quick-card strong { font-size: 0.88rem; }
.quick-card span { color: var(--tx-3); font-size: 0.76rem; font-weight: 600; }

/* ---------- Badges de status ---------- */
.portal-badge,
.act-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
.portal-badge.active { background: var(--ok-bg); color: var(--ok); border-color: rgba(52, 211, 153, 0.3); }
.portal-badge.revoked { background: var(--bad-bg); color: var(--bad); border-color: rgba(251, 113, 133, 0.3); }
.portal-badge.expired { background: var(--warn-bg); color: var(--warn); border-color: rgba(251, 191, 36, 0.3); }
.act-pill.act-online { background: var(--ok-bg); color: var(--ok); border-color: rgba(52, 211, 153, 0.3); }
.act-pill.act-offline { background: var(--warn-bg); color: var(--warn); border-color: rgba(251, 191, 36, 0.3); }
.act-pill.act-none { background: rgba(154, 164, 184, 0.1); color: var(--tx-2); border-color: rgba(154, 164, 184, 0.24); }

/* ---------- Alertas ---------- */
.alert {
  margin: 0.8rem 0;
  padding: 0.75rem 1rem;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.alert.ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(52, 211, 153, 0.3); }
.alert.err { background: var(--bad-bg); color: var(--bad); border-color: rgba(251, 113, 133, 0.3); }
.muted { color: var(--tx-3); }

/* ---------- Loja ---------- */
.loja-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.loja-eyebrow {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--vio-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.loja-page-head h1 { font-size: 1.6rem; font-weight: 800; }
.loja-sub { margin: 0.3rem 0 0; color: var(--tx-2); font-size: 0.92rem; }

.loja-cat-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 1.1rem; }
.loja-cat-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--tx-2);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.15s ease;
}
.loja-cat-nav a:hover { border-color: var(--vio); color: var(--tx); }
.loja-cat-nav a span {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 168, 0, 0.14);
  color: var(--vio-2);
  font-size: 0.72rem;
}

.loja-cat { margin-bottom: 2.2rem; }
.loja-cat-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.loja-cat-head h3, .loja-cat-head h2 { font-size: 1.08rem; }
.loja-cat-head .count { color: var(--tx-3); font-size: 0.78rem; font-weight: 600; }
.loja-cat-empty {
  padding: 1.1rem;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  color: var(--tx-3);
  font-size: 0.88rem;
}

.loja-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.loja-product {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: 0.16s ease;
}
.loja-product:hover {
  transform: translateY(-3px);
  border-color: var(--vio);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
}
.loja-product-media {
  position: relative;
  height: 168px;
  display: block;
  overflow: hidden;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.loja-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  box-shadow: none;
}
.loja-product-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.loja-product-body { flex: 1; padding: 0.9rem 1rem 0; }
.loja-product-cat {
  margin-bottom: 0.25rem;
  color: var(--tx-3);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.loja-product-body h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.loja-product-body .desc {
  margin: 0;
  color: var(--tx-2);
  font-size: 0.8rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.loja-product-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 0.6rem; }
.loja-product-tags:empty { display: none; margin: 0; }
.loja-product-tags span {
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--tx-2);
  font-size: 0.68rem;
  font-weight: 600;
}
.loja-product-foot {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  border-top: 1px solid var(--line);
}
.loja-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  width: 100%;
}
.loja-price-label {
  color: var(--tx-3);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.loja-price .now {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--tx);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.loja-product-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.loja-product-actions .loja-btn-sm {
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
}
.loja-product-actions .loja-btn-ghost {
  flex: 1;
}
.loja-btn-cart {
  width: 40px;
  min-width: 40px;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
}
.loja-btn-cart svg {
  width: 17px;
  height: 17px;
  display: block;
}

body.loja-detail-lock { overflow: hidden; }

.loja-detail-back {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.loja-detail-back.open {
  opacity: 1;
  pointer-events: auto;
}

.loja-detail {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 110;
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  color: var(--tx);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
  transform: translateX(104%);
  transition: transform 220ms ease;
}
html[data-theme="light"] .loja-detail {
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.14);
}
.loja-detail.open { transform: translateX(0); }

.loja-detail-media {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 42vh;
  overflow: hidden;
  background: var(--panel-3);
  border-bottom: 1px solid var(--line);
}
.loja-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.loja-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(8, 6, 14, 0.72);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.loja-detail-close:hover { background: rgba(8, 6, 14, 0.92); }
html[data-theme="light"] .loja-detail-close {
  background: rgba(255, 255, 255, 0.92);
  color: var(--tx);
  border: 1px solid var(--line);
}
html[data-theme="light"] .loja-detail-close:hover {
  background: #fff;
}
.loja-detail-media .loja-product-flag {
  top: 12px;
  left: 12px;
}

.loja-detail-head {
  flex: none;
  padding: 1rem 1.15rem 0.35rem;
}
.loja-detail-eyebrow {
  margin-bottom: 0.3rem;
  color: var(--tx-3);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.loja-detail-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--tx);
}

.loja-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.loja-detail-desc {
  margin: 0;
  color: var(--tx-2);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.loja-detail-includes strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--tx);
  font-size: 0.84rem;
}
.loja-detail-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.loja-detail-features li {
  position: relative;
  padding: 0.55rem 0.7rem 0.55rem 1.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--tx);
  font-size: 0.82rem;
  line-height: 1.4;
}
.loja-detail-features li::before {
  content: "✓";
  position: absolute;
  left: 0.7rem;
  top: 0.55rem;
  color: var(--vio-2);
  font-weight: 800;
}

.loja-detail-foot {
  flex: none;
  padding: 0.85rem 1.15rem 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}
.loja-detail-foot .loja-price {
  flex: 1;
  min-width: 0;
}
.loja-detail-foot .loja-price .lbl {
  color: var(--tx-3);
}
.loja-detail-foot .loja-price .now {
  color: var(--tx);
}
.loja-detail-cart {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  flex: none !important;
  display: inline-grid !important;
  place-items: center;
  border-radius: 11px;
  color: #fff !important;
}
.loja-detail-cart svg {
  width: 18px;
  height: 18px;
  display: block;
}

html[data-theme="light"] .loja-detail-back {
  background: rgba(15, 23, 42, 0.4);
}

@media (max-width: 560px) {
  .loja-detail {
    width: 100%;
    height: min(92vh, 100%);
    top: auto;
    bottom: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    transform: translateY(108%);
  }
  .loja-detail.open { transform: translateY(0); }
  .loja-detail-media {
    aspect-ratio: 16 / 10;
    max-height: 34vh;
  }
}

.loja-toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--tx);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* ---------- Carrinho ---------- */
.cart-empty {
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--line-2);
  text-align: center;
}
.cart-empty h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.cart-empty p { color: var(--tx-2); margin: 0 0 1.2rem; }

.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}
.cart-items { display: grid; gap: 10px; }
.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.cart-row-main { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.cart-row-main img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: none; }
.cart-row-main .t { font-weight: 700; font-size: 0.92rem; }
.cart-row-main .s { color: var(--tx-3); font-size: 0.78rem; font-weight: 600; }
.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.15rem;
}
.cart-qty button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tx-2);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.cart-qty button:hover { background: rgba(255, 168, 0, 0.16); color: var(--tx); }
.cart-qty .q { min-width: 1.6rem; text-align: center; font-weight: 700; font-size: 0.88rem; }
.cart-line { font-weight: 800; font-size: 0.92rem; white-space: nowrap; }
.cart-remove {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--tx-3);
  font-size: 1.1rem;
  cursor: pointer;
}
.cart-remove:hover { background: var(--bad-bg); color: var(--bad); }

.cart-summary {
  position: sticky;
  top: 84px;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.cart-summary h3 { font-size: 1rem; margin-bottom: 0.8rem; }
.cart-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  color: var(--tx-2);
  font-size: 0.88rem;
}
.cart-summary .row.total {
  margin-top: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--tx);
  font-weight: 700;
}
.cart-summary .row.total .val { font-size: 1.15rem; font-weight: 800; }
.cart-summary form { margin-top: 0.9rem; }
.cart-clear {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.55rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--tx-3);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.cart-clear:hover { color: var(--bad); background: var(--bad-bg); }
.cart-hint { margin: 0.8rem 0 0; color: var(--tx-3); font-size: 0.78rem; }

/* ---------- Perfil ---------- */
.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.profile-id { display: flex; align-items: center; gap: 1rem; }
.profile-av {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--grad);
  color: var(--on-accent);
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(216, 138, 5, 0.35);
}
.profile-name-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.profile-name-row h1 { font-size: 1.3rem; }
.profile-badge {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 168, 0, 0.14);
  border: 1px solid rgba(255, 194, 51, 0.35);
  color: var(--vio-2);
  font-size: 0.72rem;
  font-weight: 800;
}
.profile-meta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.25rem; color: var(--tx-3); font-size: 0.82rem; }
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 700;
}
.profile-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.profile-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1.1rem;
  padding: 0.3rem;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel);
  width: fit-content;
  max-width: 100%;
}
.profile-tab {
  padding: 0.5rem 0.9rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--tx-2);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.14s ease;
}
.profile-tab:hover { color: var(--tx); }
.profile-tab.is-active { background: var(--grad); color: var(--on-accent); box-shadow: 0 6px 16px rgba(216, 138, 5, 0.3); }
.profile-tab .tb {
  display: inline-flex;
  min-width: 1.15rem;
  justify-content: center;
  margin-left: 0.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.68rem;
}
.profile-tab:not(.is-active) .tb { background: rgba(255, 168, 0, 0.16); color: var(--vio-2); }
.profile-panel { display: none; }
.profile-panel.is-active { display: block; }

.profile-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.profile-card {
  padding: 1.05rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--tx);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: 0.15s ease;
}
.profile-card:hover { border-color: var(--vio); transform: translateY(-2px); color: var(--tx); }
.profile-card .n { font-size: 1.4rem; font-weight: 800; }
.profile-card .l { margin-top: 0.15rem; color: var(--tx-3); font-size: 0.8rem; font-weight: 600; }
.profile-card.is-accent { background: linear-gradient(135deg, rgba(255, 168, 0, 0.2), rgba(216, 138, 5, 0.08)); border-color: rgba(255, 194, 51, 0.35); }

.portal-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.portal-tips article {
  padding: 1rem 1.1rem;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.portal-tips h3 { font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--vio-2); }
.portal-tips p { margin: 0; color: var(--tx-2); font-size: 0.84rem; }

/* ---------- Tabelas ---------- */
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td {
  padding: 0.7rem 0.55rem;
  text-align: left;
  font-size: 0.87rem;
  border-bottom: 1px solid var(--line);
}
.profile-table th {
  color: var(--tx-3);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.profile-table tr:last-child td { border-bottom: 0; }

/* ---------- Empty states / forms ---------- */
.portal-empty { padding: 2.2rem 1rem; text-align: center; }
.portal-empty h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.portal-empty p { color: var(--tx-2); margin: 0 0 1rem; font-size: 0.9rem; }
.portal-empty-actions { display: flex; justify-content: center; gap: 0.6rem; }

.portal-form label {
  display: block;
  margin: 0.85rem 0 0.3rem;
  color: var(--tx-2);
  font-size: 0.8rem;
  font-weight: 700;
}
.portal-form input {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--tx);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.portal-form input:focus { border-color: var(--vio); box-shadow: 0 0 0 3px rgba(255, 168, 0, 0.18); }
.portal-form button[type="submit"] { margin-top: 1.1rem; }
.portal-lead { color: var(--tx-2); font-size: 0.9rem; }

/* ---------- HWID / Keys ---------- */
.hwid-wrap { display: block; }
.hwid-intro { margin: 0.4rem 0 1.1rem; }
.hwid-intro h2 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.hwid-intro p { margin: 0; color: var(--tx-2); font-size: 0.9rem; max-width: 640px; }

.hwid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.hwid-card {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.hwid-card.is-exhausted { opacity: 0.75; }
.hwid-card.is-idle { border-style: dashed; }
.hwid-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.hwid-card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.hwid-plan {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--tx-2);
  font-size: 0.71rem;
  font-weight: 700;
}
.hwid-suffix { font-family: var(--mono); color: var(--tx-3); font-size: 0.8rem; }

.hwid-key-row { display: flex; align-items: stretch; gap: 0.5rem; }
.hwid-key {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: 11px;
  border: 1px dashed var(--line-2);
  background: var(--panel-2);
  color: var(--tx);
  font: inherit;
  cursor: pointer;
  transition: 0.15s ease;
  text-align: left;
}
.hwid-key:hover { border-color: var(--vio); }
.hwid-key.is-copied { border-color: var(--ok); color: var(--ok); }
.hwid-key.is-static { cursor: default; }
.hwid-key-text {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hwid-eye {
  width: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--tx-2);
  cursor: pointer;
  transition: 0.15s ease;
}
.hwid-eye:hover { border-color: var(--vio); color: var(--tx); }
.hwid-eye svg { width: 18px; height: 18px; }
.hwid-eye .eye-closed { display: none; }
.hwid-eye.is-on .eye-open { display: none; }
.hwid-eye.is-on .eye-closed { display: block; }
.hwid-hint { margin: -0.3rem 0 0; color: var(--tx-3); font-size: 0.74rem; }

.hwid-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.hwid-stats > div {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.hwid-stats span { display: block; color: var(--tx-3); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.hwid-stats strong { font-size: 0.82rem; font-weight: 700; }
.hwid-link { font-size: 0.82rem; font-weight: 700; }

.act-box {
  padding: 0.75rem 0.9rem;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.act-box strong { display: block; font-size: 0.86rem; margin-bottom: 0.15rem; }
.act-box p { margin: 0; color: var(--tx-2); font-size: 0.78rem; line-height: 1.45; }
.act-box.act-online { border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.06); }
.act-box.act-online strong { color: var(--ok); }
.act-box.act-offline { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.05); }
.act-box.act-offline strong { color: var(--warn); }

.hwid-meter-block { display: block; }
.hwid-meter-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  color: var(--tx-2);
  font-weight: 600;
}
.hwid-meter-head strong { color: var(--tx); }
.hwid-meter {
  height: 7px;
  border-radius: 999px;
  background: var(--panel-3);
  overflow: hidden;
}
.hwid-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  transition: width 0.3s ease;
}
.hwid-meter span.is-warn { background: linear-gradient(135deg, #fbbf24, #d97706); }
.hwid-meter span.is-full { background: linear-gradient(135deg, #fb7185, #e11d48); }
.hwid-meter-note { margin: 0.4rem 0 0; color: var(--tx-3); font-size: 0.76rem; }
.hwid-disabled { margin: 0; color: var(--tx-3); font-size: 0.8rem; font-style: italic; }

.hwid-reset-btn {
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 11px;
  background: var(--grad);
  color: var(--on-accent);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
  box-shadow: 0 8px 20px rgba(216, 138, 5, 0.3);
}
.hwid-reset-btn:hover { filter: brightness(1.08); }
.hwid-reset-btn.is-disabled {
  background: var(--panel-3);
  color: var(--tx-3);
  cursor: not-allowed;
  box-shadow: none;
}
.hwid-actions { display: block; }
.hwid-actions .hwid-reset-btn { width: 100%; }

/* ---------- Pedido ---------- */
.admin-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.pay-box {
  padding: 1rem 1.1rem;
  border-radius: 13px;
  border: 1px solid rgba(255, 194, 51, 0.3);
  background: rgba(255, 168, 0, 0.07);
}
.pay-label {
  margin: 0 0 0.5rem;
  color: var(--vio-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pay-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.3rem 0;
  font-size: 0.88rem;
}
.pay-line span { color: var(--tx-2); }
.pay-key { font-family: var(--mono); font-size: 0.84rem; word-break: break-all; }
.pay-box .portal-cta { margin-top: 0.7rem; }

.key-deliveries { display: grid; gap: 10px; }
.key-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.06);
}
.key-card p { margin: 0; font-size: 0.88rem; }
.key-plain {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ok);
  word-break: break-all;
}
.buy-hint { color: var(--tx-2); font-size: 0.84rem; }
.buy-hint-warn {
  padding: 0.7rem 0.9rem;
  border-radius: 11px;
  background: var(--warn-bg);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--warn);
}
.buy-hint code { font-family: var(--mono); font-size: 0.8em; }

/* ---------- Modal de confirmação ---------- */
body.ui-confirm-open { overflow: hidden; }
.ui-confirm[hidden] { display: none !important; }
.ui-confirm { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.ui-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 9, 0.72);
  backdrop-filter: blur(4px);
}
.ui-confirm-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  box-shadow: var(--shadow);
}
.ui-confirm-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 168, 0, 0.14);
  color: var(--vio-2);
}
.ui-confirm.is-danger .ui-confirm-icon { background: var(--bad-bg); color: var(--bad); }
.ui-confirm-icon svg { width: 22px; height: 22px; }
.ui-confirm-title { font-size: 1.05rem; margin-bottom: 0.35rem; }
.ui-confirm-msg { margin: 0; color: var(--tx-2); font-size: 0.9rem; line-height: 1.55; white-space: pre-line; }
.ui-confirm-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.3rem; }
.ui-confirm-btn {
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.14s ease;
}
.ui-confirm-btn.ghost { background: var(--panel-3); color: var(--tx-2); }
.ui-confirm-btn.ghost:hover { color: var(--tx); }
.ui-confirm-btn.primary { background: var(--grad); color: var(--on-accent); }
.ui-confirm-btn.primary:hover { filter: brightness(1.08); }
.ui-confirm.is-danger .ui-confirm-btn.primary { background: linear-gradient(135deg, #f43f5e, #be123c); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .admin-split, .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 860px) {
  .app-nav-inner { flex-wrap: wrap; padding: 0.5rem 16px; gap: 0.6rem; }
  .app-nav-links { order: 3; width: 100%; overflow-x: auto; }
  .app-profile-name, .app-profile-role { display: none; }
  .portal-main { padding: 20px 16px 56px; }
  .hero-content { padding: 34px 26px; }
  .profile-cards { grid-template-columns: 1fr 1fr; }
  .portal-tips { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cart-row { grid-template-columns: 1fr auto; row-gap: 0.6rem; }
  .cart-line { grid-column: 1; }
  .lic-item { flex-wrap: wrap; }
  .lic-tags { justify-content: flex-start; }
  .hwid-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.55rem; }
}

/* ---------- Tema claro: ajustes de superfícies hardcoded ---------- */
html[data-theme="light"] .app-dropdown,
html[data-theme="light"] .app-cart-dropdown {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .app-profile-btn:hover,
html[data-theme="light"] .app-cart:hover {
  background: var(--panel-3);
}
html[data-theme="light"] .stat-card,
html[data-theme="light"] .quick-card,
html[data-theme="light"] .panel,
html[data-theme="light"] .card,
html[data-theme="light"] .lic-item,
html[data-theme="light"] .loja-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .app-logo-text em,
html[data-theme="light"] .hero h1 em,
html[data-theme="light"] .panel-head a,
html[data-theme="light"] .dash-head a {
  color: var(--vio-2);
}
/* Links de conteúdo: roxo escuro legível — sem forçar nav/botões */
html[data-theme="light"] .portal-body .panel-head a,
html[data-theme="light"] .portal-body .dash-head a,
html[data-theme="light"] .portal-body .rs-panel-head a,
html[data-theme="light"] .portal-body .rs-side-balance a,
html[data-theme="light"] .portal-body .order-item .oid {
  color: var(--vio-2);
}
html[data-theme="light"] .portal-body .panel-head a:hover,
html[data-theme="light"] .portal-body .dash-head a:hover,
html[data-theme="light"] .portal-body .rs-panel-head a:hover,
html[data-theme="light"] .portal-body .rs-side-balance a:hover {
  color: var(--vio-deep);
}
html[data-theme="light"] .portal-body a.btn-primary,
html[data-theme="light"] .portal-body a.loja-btn-primary,
html[data-theme="light"] .portal-body a.portal-cta,
html[data-theme="light"] .portal-body a.app-signup,
html[data-theme="light"] .portal-body a.admin-chip.solid {
  color: #fff !important;
}
html[data-theme="light"] .portal-body a.btn-ghost,
html[data-theme="light"] .portal-body a.loja-btn-ghost {
  color: var(--tx);
}
html[data-theme="light"] .portal-body .app-nav-links a {
  color: var(--tx-2);
}
html[data-theme="light"] .portal-body .app-nav-links a:hover,
html[data-theme="light"] .portal-body .app-nav-links a.is-active {
  color: var(--tx);
}
html[data-theme="light"] .flash.ok {
  background: var(--ok-bg);
  color: var(--ok);
}
html[data-theme="light"] .flash.err {
  background: var(--bad-bg);
  color: var(--bad);
}

/* Aviso de key vencendo — aparece só quando faltam <= 3 dias */
.portal-expiry-alert {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius);
  background: var(--warn-bg);
}
.portal-expiry-icon {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--warn);
  color: #1a1205;
  font-weight: 800;
}
.portal-expiry-body { flex: 1; min-width: 0; }
.portal-expiry-body strong { display: block; font-size: 0.95rem; }
.portal-expiry-body p {
  margin: 3px 0 0;
  color: var(--tx-2);
  font-size: 0.84rem;
}
.portal-expiry-body code {
  font-family: var(--mono);
  font-size: 0.8rem;
}
.portal-expiry-alert .btn { flex: none; }

/* ---------- Anúncio "Seja revendedor" (Início) ----------
   Faixa escura nos dois temas, como um banner de campanha. */
.resell-ad {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  margin-top: 22px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 194, 51, 0.22);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(255, 168, 0, 0.16), transparent 65%),
    linear-gradient(135deg, #141a24 0%, #0c1018 100%);
  color: #eef1f6;
  box-shadow: 0 18px 50px rgba(8, 10, 16, 0.28);
}
.resell-ad-copy { position: relative; z-index: 1; padding: 34px 36px 32px; }
.resell-ad-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffc233;
}
.resell-ad-kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.resell-ad h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.15;
  color: #fff;
  max-width: 560px;
}
.resell-ad h2 em { font-style: normal; color: #ffc233; }
.resell-ad-copy > p { margin: 0; max-width: 520px; color: #a8b1c0; font-size: 0.97rem; line-height: 1.6; }
.resell-ad-perks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px 26px;
}
.resell-ad-perks li { display: flex; align-items: center; gap: 9px; font-size: 0.92rem; color: #dfe4ec; }
.resell-ad-perks svg {
  width: 18px;
  height: 18px;
  flex: none;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255, 194, 51, 0.14);
  fill: none;
  stroke: #ffc233;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.resell-ad-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px 28px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.resell-ad-price { display: grid; gap: 2px; }
.resell-ad-price span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8590a2; }
.resell-ad-price strong { font-size: 1.85rem; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.resell-ad-price small { font-size: 0.8rem; color: #9aa4b5; }
.resell-ad-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.resell-ad .btn-ghost,
html[data-theme="light"] .resell-ad .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #eef1f6 !important;
}
.resell-ad .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.resell-ad-msg { flex-basis: 100%; margin: 0; font-size: 0.85rem; color: #fca5a5; }
.resell-ad-art { position: relative; min-height: 100%; }
.resell-ad-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* funde a arte com o fundo do texto */
.resell-ad-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #11161f 0%, rgba(17, 22, 31, 0.55) 22%, transparent 55%);
}
@media (max-width: 900px) {
  .resell-ad { grid-template-columns: 1fr; }
  .resell-ad-art { order: -1; height: 190px; }
  .resell-ad-art::before { background: linear-gradient(0deg, #12171f 0%, transparent 60%); }
  .resell-ad-copy { padding: 24px 22px 26px; }
}
@media (max-width: 520px) {
  .resell-ad-perks { grid-template-columns: 1fr; }
}

/* ---------- Menu da conta (refeito) ---------- */
.app-dropdown { width: 264px; padding: 6px; }
.app-dropdown-user { padding: 10px 10px 12px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.app-dropdown-user .id { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.app-role-pill { padding: 1px 7px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; color: var(--accent); background: rgba(255, 168, 0, 0.12); }
.app-dropdown-group { display: grid; gap: 1px; padding: 4px 0; }
.app-dropdown-sep { margin: 2px 6px; }
.app-dropdown .app-dropdown-item,
html[data-theme="light"] .app-dropdown .app-dropdown-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 10px; border-radius: 9px; border: 0; background: transparent;
  color: var(--tx-2); font: 600 0.87rem/1.2 var(--font); text-decoration: none; text-align: left; cursor: pointer;
}
.app-dropdown .app-dropdown-item:hover,
.app-dropdown .app-dropdown-item:focus-visible { background: var(--panel-3); color: var(--tx); outline: none; }
.app-dropdown .app-mi { flex: none; color: var(--tx-3); transition: color 0.15s; }
.app-dropdown .app-dropdown-item:hover .app-mi { color: var(--accent); }
.app-dropdown .app-dropdown-item.danger,
html[data-theme="light"] .app-dropdown .app-dropdown-item.danger { color: var(--bad); }
.app-dropdown .app-dropdown-item.danger .app-mi { color: var(--bad); }
.app-dropdown .app-dropdown-item.danger:hover { background: var(--bad-bg); }
/* Interruptor do tema: ligado = tema escuro */
.app-theme-row span:not(.app-switch) { flex: 1; }
.app-switch { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); transition: background 0.15s; flex: none; }
.app-switch i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.15s; }
html[data-theme="dark"] .app-switch, html:not([data-theme]) .app-switch { background: var(--accent); }
html[data-theme="dark"] .app-switch i, html:not([data-theme]) .app-switch i { transform: translateX(14px); }
html[data-theme="light"] .app-dropdown .app-dropdown-item:hover { background: rgba(15, 23, 42, 0.05); }
/* Texto do tema: escuro quando o tema atual é o escuro (o botão diz "Tema escuro" para ativar) */
html[data-theme="light"] .app-theme-row .app-switch { background: var(--line-2); }
html[data-theme="light"] .app-theme-row .app-switch i { transform: none; }

/* Avatares (personagens do jogo) e cabeçalho mais enxuto */
.app-profile-btn { gap: 0.5rem; padding: 0.2rem 0.6rem 0.2rem 0.22rem; }
.app-avatar { width: 28px; height: 28px; overflow: hidden; font-size: 0.78rem; }
.app-avatar.lg { width: 46px; height: 46px; font-size: 1.05rem; }
.app-avatar img, .profile-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-dropdown-edit { display: inline-block; margin-top: 2px; font-size: 0.78rem; color: var(--vio-2, var(--tx-3)); text-decoration: none; font-weight: 600; }
.app-dropdown-edit:hover { text-decoration: underline; }
.profile-av { position: relative; overflow: hidden; border: 0; padding: 0; cursor: pointer; width: 72px; height: 72px; border-radius: 50%; }
.profile-av-edit { position: absolute; inset: auto 0 0 0; display: grid; place-items: center; height: 24px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.8rem; opacity: 0; transition: opacity 0.15s; }
.profile-av:hover .profile-av-edit, .profile-av:focus-visible .profile-av-edit { opacity: 1; }

.av-dlg { width: min(640px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--tx); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.av-dlg::backdrop { background: rgba(4, 8, 14, 0.7); backdrop-filter: blur(3px); }
.av-form { display: grid; gap: 14px; padding: 22px; }
.av-form header h3 { margin: 0; font-size: 1.25rem; }
.av-form header p { margin: 5px 0 0; color: var(--tx-3); font-size: 0.88rem; }
.av-scroll { max-height: min(52vh, 460px); overflow: auto; padding-right: 6px; }
.av-scroll h4 { margin: 14px 0 8px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-3); }
.av-scroll h4:first-child { margin-top: 0; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.av-grid label { position: relative; cursor: pointer; }
.av-grid input { position: absolute; opacity: 0; pointer-events: none; }
.av-grid span { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 2px solid var(--line); background: var(--grad); transition: transform 0.12s, border-color 0.12s; }
.av-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-grid label:hover span { transform: translateY(-2px); }
.av-grid input:checked + span { border-color: var(--vio-2, #ffc233); box-shadow: 0 0 0 3px rgba(255, 194, 51, 0.35); }
.av-grid input:focus-visible + span { outline: 2px solid var(--vio-2, #ffc233); outline-offset: 2px; }
.av-form footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.av-spacer { flex: 1; }

/* Perfil personalizável: cor do avatar, banner e janela de escolha */
.app-avatar, .profile-av, .av-preview-av { background: var(--av-bg, var(--grad)); }
.profile-head { position: relative; overflow: hidden; }
.profile-head > * { position: relative; z-index: 1; }
.profile-head .profile-banner { position: absolute; inset: 0; z-index: 0; }
.profile-head.has-banner::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(6, 9, 16, 0.78), rgba(6, 9, 16, 0.35) 70%, rgba(6, 9, 16, 0.15)); }
.profile-head.has-banner { border-color: rgba(255, 255, 255, 0.14); min-height: 150px; }
.profile-head.has-banner h1, .profile-head.has-banner .profile-name-row h1 { color: #fff; }
.profile-head.has-banner .profile-meta, .profile-head.has-banner .profile-meta span { color: rgba(255, 255, 255, 0.82); }
.profile-head.has-banner .profile-status { color: #7af0ae; }
.profile-head.has-banner .loja-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(6, 9, 16, 0.35); }
.profile-av { width: 84px; height: 84px; border: 3px solid rgba(255, 255, 255, 0.9); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.profile-av-edit { inset: auto 0 0 0; height: 30px; }
.profile-av-edit svg { display: block; }

.av-dlg { width: min(720px, calc(100vw - 28px)); }
.av-form { gap: 12px; }
.av-preview { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background-size: cover; color: #fff; }
.av-preview strong { font-size: 1.15rem; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.av-preview-av { width: 68px; height: 68px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%; border: 3px solid #fff; font-size: 1.6rem; font-weight: 800; color: var(--on-accent, #fff); }
.av-preview-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.av-chip { position: relative; cursor: pointer; }
.av-chip input { position: absolute; opacity: 0; pointer-events: none; }
.av-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 0.82rem; font-weight: 700; }
.av-chip input:checked + span { border-color: var(--vio-2, #8b5cf6); box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25); background: rgba(139, 92, 246, 0.08); }
.av-chip input:focus-visible + span { outline: 2px solid var(--vio-2, #8b5cf6); outline-offset: 2px; }
.av-dot { width: 20px; height: 20px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0, 0, 0, 0.15); }
.av-dot-none { background: var(--grad); }
.av-letter { display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: var(--on-accent, #fff); }
.av-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.av-grid span { background: var(--av-pick, linear-gradient(135deg, #8b5cf6, #5b21b6)); }
.av-banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.av-banners label { position: relative; cursor: pointer; }
.av-banners input { position: absolute; opacity: 0; pointer-events: none; }
.av-banners span { display: block; position: relative; overflow: hidden; border-radius: 10px; border: 2px solid var(--line); aspect-ratio: 300 / 70; }
.av-banners img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-banners em { position: absolute; inset: auto 0 0 0; padding: 14px 8px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); color: #fff; font-size: 0.7rem; font-style: normal; font-weight: 700; }
.av-banners input:checked + span { border-color: var(--vio-2, #8b5cf6); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35); }
.av-banners input:focus-visible + span { outline: 2px solid var(--vio-2, #8b5cf6); outline-offset: 2px; }
.av-scroll { max-height: min(48vh, 440px); }
.av-letter { color: #fff; }
.av-grid span { background: var(--av-pick, var(--grad)); }

/* Caixa de cores (amostras redondas, sem texto) e ajuste do banner */
.av-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(127, 127, 140, 0.07); }
.av-palette label { position: relative; cursor: pointer; display: block; }
.av-palette input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.av-sw { display: block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); transition: transform 0.12s, box-shadow 0.12s; }
.av-palette label:hover .av-sw { transform: scale(1.12); }
.av-palette input:checked + .av-sw { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--vio-2, #8b5cf6); transform: scale(1.08); }
.av-palette input:focus-visible + .av-sw { outline: 2px solid var(--vio-2, #8b5cf6); outline-offset: 3px; }
.av-sw-default { background: var(--grad); }
.av-sw-none { background: repeating-linear-gradient(45deg, #3a3f4b 0 5px, #2a2e38 5px 10px); position: relative; }
.av-sw-none::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; background: #ef4444; transform: rotate(45deg); }
.av-sw-custom { background: conic-gradient(#f43f5e, #f59e0b, #84cc16, #06b6d4, #6366f1, #d946ef, #f43f5e); }
.av-custom input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

.av-preview { position: relative; aspect-ratio: 6.5 / 1; min-height: 92px; background-size: cover; background-repeat: no-repeat; }
.av-preview.is-image { cursor: grab; touch-action: none; user-select: none; }
.av-preview.is-drag { cursor: grabbing; }
.av-move { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.av-move[hidden], .av-move-tip[hidden] { display: none; }
.av-move button { width: 30px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 8px; background: rgba(6, 9, 16, 0.6); color: #fff; cursor: pointer; backdrop-filter: blur(4px); }
.av-move button:hover { background: rgba(6, 9, 16, 0.85); border-color: #fff; }
.av-move-tip { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: rgba(6, 9, 16, 0.6); color: #e5e9f0; font-size: 0.68rem; font-weight: 600; pointer-events: none; white-space: nowrap; }
.av-preview-av { flex: none; }
.av-form footer { align-items: center; }
.av-grid .av-letter { display: grid; place-items: center; }

/* Menu da conta com o banner do perfil */
.app-dropdown-user.has-banner { position: relative; overflow: hidden; border-radius: 12px 12px 0 0; background-size: cover; background-position: center; }
.app-dropdown-user.has-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 9, 16, 0.78), rgba(6, 9, 16, 0.3)); }
.app-dropdown-user.has-banner > * { position: relative; }
.app-dropdown-user.has-banner .nm { color: #fff; }
.app-dropdown-user.has-banner .app-dropdown-edit { color: rgba(255, 255, 255, 0.85); }
.app-dropdown-user.has-banner .app-avatar { border: 2px solid rgba(255, 255, 255, 0.9); }

/* Visão geral do perfil */
.profile-panel[data-panel="overview"] { display: none; }
.profile-panel[data-panel="overview"].is-active { display: grid; gap: 1.1rem; }
.ov-empty { padding: 2.2rem 1.4rem; border-radius: var(--radius); border: 1px dashed var(--line); background: var(--panel); text-align: center; }

/* Perfil em tela cheia (como as Estatísticas) */
body.wide-page .portal-main { max-width: 1840px; padding: 28px 40px 72px; }
@media (max-width: 900px) { body.wide-page .portal-main { padding: 20px 16px 56px; } }


/* selo "Novo" no menu */
.nav-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: linear-gradient(135deg, #34d399, #10b981); color: #052e1f; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px; box-shadow: 0 0 12px rgba(52, 211, 153, 0.45); }
.nav-new { animation: novoPulse 1.6s ease-in-out infinite; }
@keyframes novoPulse { 0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(52, 211, 153, 0.5); transform: scale(1); } 50% { opacity: 0.55; box-shadow: 0 0 16px rgba(52, 211, 153, 0.9); transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .nav-new { animation: none; } }
