/* Clan Gamer — sistema desktop. Cores e fonte vêm do app (Nunito, roxo do clã, azul-marinho). */

:root {
  --primary: #7669d6;
  --primary-strong: #4d409e;
  --accent: #2ee6d6;

  --bg: #0e0f24;
  --surface: #14153a;
  --card: #1c1e48;
  --card-2: #25285e;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5ff;
  --muted: #9ea1cf;
  --soft: rgba(255, 255, 255, 0.06);
  --shadow: 0 18px 40px rgba(3, 4, 20, 0.45);
  --shadow-soft: 0 8px 24px rgba(3, 4, 20, 0.3);

  --ok: #3ddc84;
  --gold: #f5c242;
  --danger: #ff5c7a;
  --flame: #ff8a3d;

  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-modo="claro"] {
  --bg: #eef0f8;
  --surface: #ffffff;
  --card: #ffffff;
  --card-2: #f2f3fb;
  --line: rgba(23, 24, 58, 0.08);
  --line-strong: rgba(23, 24, 58, 0.16);
  --text: #17183a;
  --muted: #6b6e96;
  --soft: rgba(23, 24, 58, 0.05);
  --shadow: 0 18px 40px rgba(40, 42, 90, 0.12);
  --shadow-soft: 0 8px 22px rgba(40, 42, 90, 0.08);
}

/* Os seis temas do app (Configurações > Aparência). */
:root[data-tema="NEON"] { --primary: #14b8d4; --primary-strong: #0b6e86; --accent: #ff4fd8; }
:root[data-tema="LAVA"] { --primary: #f26b3a; --primary-strong: #a83a15; --accent: #ffc94d; }
:root[data-tema="FLORESTA"] { --primary: #22b573; --primary-strong: #13704a; --accent: #c6f432; }
:root[data-tema="SAKURA"] { --primary: #e5489b; --primary-strong: #962262; --accent: #b58cff; }
:root[data-tema="OCEANO"] { --primary: #4f7cff; --primary-strong: #2b48b5; --accent: #34e3c2; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ícones ---------- */
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.cheio { fill: currentColor; stroke: none; }

/* ---------- Estrutura ---------- */
.app {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 86px;
  height: 100vh;
}

.lateral {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
  overflow-y: auto;
}
.marca { display: flex; align-items: center; gap: 10px; padding: 0 10px 26px; font-weight: 900; font-size: 21px; letter-spacing: -0.3px; }
.marca-icone {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  color: #fff;
}
.marca b { color: var(--primary); }

.grupo { margin-bottom: 18px; }
.grupo-titulo { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px; }
.item-menu {
  position: relative; width: 100%; display: flex; align-items: center; gap: 13px;
  padding: 11px 12px; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: 14.5px;
  transition: background 0.15s, color 0.15s;
}
.item-menu:hover { background: var(--soft); color: var(--text); }
.item-menu.ativo { color: var(--text); background: color-mix(in srgb, var(--primary) 16%, transparent); }
.item-menu.ativo .ic { color: var(--primary); }
.item-menu.ativo::before {
  content: ""; position: absolute; left: -18px; top: 9px; bottom: 9px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--primary);
}
.item-menu .contagem { margin-left: auto; font-size: 11px; font-weight: 800; background: var(--primary); color: #fff; border-radius: 99px; padding: 1px 8px; }

.cartao-sequencia {
  margin-top: auto; border-radius: 20px; padding: 18px 16px 16px; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--flame) 22%, var(--card)), var(--card));
  border: 1px solid var(--line);
}
.chama {
  width: 54px; height: 54px; margin: -42px auto 8px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(160deg, #ffb35c, var(--flame)); color: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  animation: pulsar 2.4s ease-in-out infinite;
}
@keyframes pulsar { 50% { transform: scale(1.06); } }
.cartao-sequencia h4 { margin: 0; font-size: 16px; font-weight: 900; }
.cartao-sequencia p { margin: 2px 0 12px; font-size: 12.5px; color: var(--muted); }

.principal { overflow-y: auto; overflow-x: hidden; padding: 24px 34px 48px; scroll-behavior: smooth; }

/* ---------- Barra do topo ---------- */
.topo { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.setas { display: flex; gap: 2px; }
.seta { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.seta:hover { background: var(--soft); color: var(--text); }
.busca {
  flex: 0 1 440px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
  border-radius: 99px; background: var(--card); border: 1px solid var(--line-strong);
}
.busca input { flex: 1; border: 0; background: transparent; outline: none; font-size: 14px; }
.busca input::placeholder { color: var(--muted); }
.busca .ic { color: var(--muted); }
.topo-direita { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.botao-icone {
  position: relative; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  color: var(--text); transition: background 0.15s;
}
.botao-icone:hover { background: var(--soft); }
.botao-icone .ponto { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid var(--bg); }
.usuario { display: flex; align-items: center; gap: 11px; padding: 4px 6px 4px 4px; border-radius: 99px; margin-left: 6px; }
.usuario:hover { background: var(--soft); }
.usuario strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.1; }
.usuario small { display: block; font-size: 12px; color: var(--muted); }

.avatar { position: relative; flex: none; border-radius: 50%; overflow: hidden; background: var(--card-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.anel { padding: 3px; background: conic-gradient(var(--gold) calc(var(--p, 0.6) * 360deg), var(--line-strong) 0); }
.avatar.anel img { border-radius: 50%; border: 2px solid var(--surface); }
.avatar .inicial { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); }

/* ---------- Destaque (hero) ---------- */
.destaque {
  position: relative; height: 340px; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card) center/cover no-repeat; box-shadow: var(--shadow);
  isolation: isolate;
}
.destaque-fundo { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity 0.5s; z-index: -2; }
.destaque::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 10, 30, 0.92) 0%, rgba(9, 10, 30, 0.62) 42%, rgba(9, 10, 30, 0.05) 75%),
    linear-gradient(0deg, rgba(9, 10, 30, 0.6), transparent 45%);
}
.destaque-conteudo { position: absolute; left: 38px; bottom: 34px; right: 38%; color: #fff; }
.chips { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px;
  font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); color: #fff;
}
.rostos { display: flex; align-items: center; }
.rostos img, .rostos .mais { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(20, 20, 50, 0.9); margin-left: -8px; object-fit: cover; }
.rostos img:first-child { margin-left: 0; }
.rostos-texto { font-size: 12.5px; color: rgba(255, 255, 255, 0.85); margin-left: 8px; font-weight: 700; }
.destaque h1 { margin: 0 0 6px; font-size: 44px; line-height: 1.05; font-weight: 900; letter-spacing: -0.8px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4); }
.destaque .meta { font-size: 13.5px; color: rgba(255, 255, 255, 0.82); font-weight: 700; display: flex; gap: 14px; flex-wrap: wrap; }
.destaque .meta b { color: var(--ok); }
.acoes { display: flex; gap: 10px; margin-top: 20px; align-items: center; }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: 14px; font-weight: 800; font-size: 14.5px; transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.botao:active { transform: scale(0.97); }
.botao.primario { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25); }
.botao.primario:hover { background: color-mix(in srgb, var(--primary) 88%, #fff); }
.botao.vidro { background: rgba(255, 255, 255, 0.16); color: #fff; backdrop-filter: blur(8px); width: 46px; padding: 0; }
.botao.vidro:hover { background: rgba(255, 255, 255, 0.26); }
.botao.secundario { background: var(--card-2); color: var(--text); border: 1px solid var(--line-strong); }
.botao.secundario:hover { border-color: var(--primary); }
.botao.perigo { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.botao.pequeno { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.botao.cheio { width: 100%; }

.miniaturas { position: absolute; right: 26px; bottom: 26px; display: flex; gap: 10px; }
.miniatura {
  width: 92px; height: 58px; border-radius: 12px; overflow: hidden; border: 2px solid transparent;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); transition: transform 0.15s, border-color 0.15s; background: #000;
}
.miniatura img { width: 100%; height: 100%; object-fit: cover; }
.miniatura:hover { transform: translateY(-3px); }
.miniatura.ativa { border-color: #fff; }

/* ---------- Seções ---------- */
.secao { margin-top: 36px; }
.secao-topo { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.secao-topo h2 { margin: 0; font-size: 21px; font-weight: 900; letter-spacing: -0.2px; }
.secao-topo .ver { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--muted); }
.secao-topo .ver:hover { color: var(--primary); }
.trilho { width: 130px; height: 6px; border-radius: 99px; background: var(--soft); position: relative; overflow: hidden; }
.trilho span { position: absolute; top: 0; bottom: 0; width: 34%; border-radius: 99px; background: var(--muted); opacity: 0.6; transition: left 0.2s; }

.faixa { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.faixa::-webkit-scrollbar { display: none; }
.faixa > * { scroll-snap-align: start; }

/* Clãs (como as "Parties" da referência) */
.cla {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  text-align: left; transition: transform 0.15s, box-shadow 0.15s; box-shadow: var(--shadow-soft);
}
.cla:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cla-topo { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.cla-capa { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; background: var(--card-2); }
.cla h3 { margin: 0; font-size: 15px; font-weight: 900; }
.cla p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.cla .rostos img, .cla .rostos .mais { width: 24px; height: 24px; border-color: var(--card); }
.mais { display: grid; place-items: center; font-size: 10px; font-weight: 900; background: var(--card-2); color: var(--muted); }

/* Cartões de jogo (Continue jogando) */
.jogo-largo {
  background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  text-align: left; transition: transform 0.15s, box-shadow 0.15s; box-shadow: var(--shadow-soft); width: 100%;
}
.jogo-largo:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.jogo-largo .imagem { position: relative; height: 128px; background: var(--card-2) center/cover; }
.jogo-largo .selo-pts { position: absolute; top: 10px; left: 10px; }
.jogo-largo .corpo { padding: 12px 14px 14px; }
.jogo-largo h3 { margin: 0; font-size: 14.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jogo-largo .linha { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 3px 0 9px; font-weight: 700; }
.selo {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 8px;
  font-size: 11px; font-weight: 900; background: rgba(10, 10, 30, 0.62); color: #fff; backdrop-filter: blur(6px);
}
.barra { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.barra span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--accent)); width: 0; transition: width 0.9s cubic-bezier(.2, .8, .2, 1); }

/* Capas (grade) */
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 18px; }
.capa {
  text-align: left; border-radius: 16px; transition: transform 0.15s; width: 100%;
}
.capa:hover { transform: translateY(-4px); }
.capa .arte { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--card-2); box-shadow: var(--shadow-soft); }
.capa .arte img { width: 100%; height: 100%; object-fit: cover; }
.capa .arte .selo { position: absolute; left: 8px; top: 8px; }
.capa .arte .fav { position: absolute; right: 8px; top: 8px; color: #ff5c93; }
.capa h3 { margin: 9px 2px 0; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capa small { display: block; margin: 0 2px; font-size: 12px; color: var(--muted); }

/* ---------- Coluna da direita (amigos) ---------- */
.direita {
  background: var(--surface); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 26px 0; overflow-y: auto;
}
.botao-mais {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--primary); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); margin-bottom: 12px;
}
.amigo-rail { position: relative; width: 46px; height: 46px; }
.amigo-rail img, .amigo-rail .inicial { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.amigo-rail .status { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--surface); background: var(--muted); }
.amigo-rail .status.on { background: var(--ok); }
.amigo-rail .status.jogando { background: var(--primary); }
.amigo-rail:hover::after {
  content: attr(data-dica); position: absolute; right: 58px; top: 50%; transform: translateY(-50%);
  background: var(--card); color: var(--text); border: 1px solid var(--line-strong); box-shadow: var(--shadow-soft);
  padding: 7px 11px; border-radius: 10px; font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; z-index: 5;
}
.direita-vazio { font-size: 11px; color: var(--muted); text-align: center; padding: 0 8px; }

/* ---------- Telas internas ---------- */
.cabecalho-tela { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.cabecalho-tela h1 { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -0.5px; }
.cabecalho-tela p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.cabecalho-tela .direita-cab { margin-left: auto; display: flex; gap: 10px; }

.abas { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.aba {
  height: 36px; padding: 0 16px; border-radius: 99px; font-size: 13px; font-weight: 800; color: var(--muted);
  background: var(--card); border: 1px solid var(--line);
}
.aba:hover { color: var(--text); }
.aba.ativa { background: var(--primary); color: #fff; border-color: transparent; }

.painel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.painel h3 { margin: 0 0 14px; font-size: 16px; font-weight: 900; }
.colunas { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.colunas-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.numero { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: center; }
.numero .bolha { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.numero strong { display: block; font-size: 24px; font-weight: 900; line-height: 1; }
.numero small { color: var(--muted); font-size: 12.5px; font-weight: 700; }

.lista { display: flex; flex-direction: column; }
.linha-lista { display: flex; align-items: center; gap: 13px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.linha-lista:last-child { border-bottom: 0; }
.linha-lista .texto { flex: 1; min-width: 0; }
.linha-lista .texto strong { display: block; font-size: 14px; font-weight: 800; }
.linha-lista .texto small { color: var(--muted); font-size: 12.5px; }
.linha-lista .lado { font-size: 13px; font-weight: 800; color: var(--muted); }
.capinha { width: 44px; height: 58px; border-radius: 10px; object-fit: cover; background: var(--card-2); flex: none; }

.vazio { text-align: center; padding: 48px 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.vazio .ic { width: 42px; height: 42px; color: var(--primary); margin: 0 auto 10px; }
.vazio h3 { color: var(--text); margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.vazio p { margin: 0 auto 16px; max-width: 420px; font-size: 14px; }

.aviso { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.aviso .ic { color: var(--accent); }

/* Divisões e rank */
.divisao-atual { display: flex; align-items: center; gap: 22px; }
.insignia { width: 88px; height: 88px; flex: none; }
.escada { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 8px; }
.degrau { text-align: center; padding: 14px 6px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); opacity: 0.7; }
.degrau.feito { opacity: 1; }
.degrau.atual { opacity: 1; border-color: var(--primary); border-width: 2px; }
.degrau strong { display: block; font-size: 13px; font-weight: 900; margin-top: 6px; }
.degrau small { color: var(--muted); font-size: 11.5px; }
.podio { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 14px; margin: 6px 0 20px; }
.podio-lugar { text-align: center; padding: 18px 10px; border-radius: 18px; background: var(--card-2); }
.podio-lugar.primeiro { padding-top: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 28%, var(--card-2)), var(--card-2)); }
.podio-lugar .avatar { margin: 0 auto 8px; }
.podio-lugar strong { display: block; font-weight: 900; }
.podio-lugar small { color: var(--muted); font-weight: 700; }
.posicao { width: 28px; font-weight: 900; color: var(--muted); text-align: center; }
.linha-lista.voce { background: color-mix(in srgb, var(--primary) 14%, transparent); border-radius: 12px; padding-left: 8px; padding-right: 8px; }

/* Perfil */
.perfil-capa { height: 190px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--primary-strong), var(--primary)) center/cover; position: relative; overflow: hidden; }
.perfil-capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 9, 28, 0.65), transparent 70%); }
.perfil-topo { display: flex; align-items: flex-end; gap: 20px; margin: -56px 0 24px 32px; position: relative; z-index: 1; }
.perfil-topo .avatar { border: 5px solid var(--bg); }
.perfil-topo h1 { margin: 0; font-size: 28px; font-weight: 900; }
.perfil-topo .acoes { margin: 0 32px 6px auto; }
.donut { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.donut::after { content: ""; width: 84px; height: 84px; border-radius: 50%; background: var(--card); grid-area: 1 / 1; }
.donut span { grid-area: 1 / 1; z-index: 1; font-weight: 900; font-size: 15px; }
.legenda { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.legenda div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.legenda i { width: 10px; height: 10px; border-radius: 50%; }
.legenda b { margin-left: auto; }
.barras { display: flex; align-items: flex-end; gap: 12px; height: 150px; padding-top: 10px; }
.barras div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.barras span { width: 100%; max-width: 34px; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, var(--primary), var(--primary-strong)); min-height: 4px; }
.barras small { font-size: 11.5px; color: var(--muted); font-weight: 800; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 700; }

/* Configurações */
.temas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tema {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; text-align: left;
  border: 2px solid var(--line); background: var(--card-2);
}
.tema.ativo { border-color: var(--primary); }
.tema .bolinhas { display: flex; }
.tema .bolinhas i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--card-2); }
.tema .bolinhas i + i { margin-left: -7px; }
.tema strong { display: block; font-size: 14px; font-weight: 900; }
.tema small { color: var(--muted); font-size: 12px; }
.chave { width: 46px; height: 26px; border-radius: 99px; background: var(--line-strong); position: relative; flex: none; transition: background 0.2s; }
.chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.chave.ligada { background: var(--primary); }
.chave.ligada::after { transform: translateX(20px); }
.avatares { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.avatares button { border-radius: 50%; overflow: hidden; aspect-ratio: 1; border: 3px solid transparent; }
.avatares button.ativo { border-color: var(--primary); }
.avatares img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Janela (modal) ---------- */
.fundo-modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
  background: rgba(5, 6, 20, 0.62); backdrop-filter: blur(6px); animation: aparecer 0.18s ease;
}
@keyframes aparecer { from { opacity: 0; } }
.modal {
  width: min(880px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: subir 0.22s cubic-bezier(.2, .8, .2, 1);
}
.modal.estreito { width: min(460px, 100%); }
@keyframes subir { from { transform: translateY(14px) scale(0.98); opacity: 0; } }
.modal-banner { position: relative; height: 260px; background: var(--card-2) center/cover; }
.modal-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 2%, rgba(0, 0, 0, 0.05) 70%); }
.fechar { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 10, 30, 0.55); color: #fff; }
.modal-corpo { padding: 0 30px 28px; position: relative; }
.modal-cabeca { display: flex; gap: 20px; margin-top: -96px; position: relative; z-index: 1; align-items: flex-end; }
.modal-cabeca img { width: 128px; border-radius: 16px; box-shadow: var(--shadow); flex: none; }
.modal-cabeca h2 { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.1; }
.modal-cabeca p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.modal .resumo { color: var(--muted); font-size: 14px; margin: 18px 0; }
.capturas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.capturas img { border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.status-opcoes { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.campo span { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.campo input, .campo textarea, .campo select {
  height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); padding: 0 14px; outline: none;
}
.campo textarea { height: 90px; padding: 12px 14px; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--primary); }
.campo input[type="range"] { padding: 0; accent-color: var(--primary); height: 30px; border: 0; background: none; }
.estrelas { display: flex; gap: 4px; }
.estrelas button { color: var(--line-strong); }
.estrelas button.cheia { color: var(--gold); }
.estrelas .ic { width: 24px; height: 24px; }

/* Avisos rápidos */
.toast-area { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px; font-size: 14px; font-weight: 800;
  background: var(--card); color: var(--text); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: subir 0.25s ease;
}
.toast .ic { color: var(--ok); }

.notificacoes {
  position: fixed; top: 80px; right: 110px; z-index: 40; width: 360px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); padding: 10px; animation: subir 0.18s ease;
}
.notificacoes h4 { margin: 6px 10px 6px; font-size: 15px; font-weight: 900; }
.notificacao { display: flex; gap: 12px; padding: 10px; border-radius: 12px; }
.notificacao:hover { background: var(--soft); }
.notificacao .bolha { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.notificacao strong { font-size: 13.5px; font-weight: 800; display: block; }
.notificacao small { color: var(--muted); font-size: 12px; }
.notificacao.nova strong::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); margin-left: 6px; vertical-align: middle; }

/* Promoção de divisão */
.promocao { text-align: center; padding: 34px 30px 28px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 62%); }
.promocao .insignia { width: 130px; height: 130px; margin: 0 auto 6px; animation: girar-entrar 0.9s cubic-bezier(.2, .9, .2, 1.2); }
@keyframes girar-entrar { from { transform: scale(0.3) rotate(-30deg); opacity: 0; } }
.promocao h2 { margin: 8px 0 4px; font-size: 26px; font-weight: 900; }
.promocao p { color: var(--muted); margin: 0 0 20px; }

@media (max-width: 1180px) {
  .app { grid-template-columns: 232px minmax(0, 1fr); }
  .direita { display: none; }
  .numeros { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 76px minmax(0, 1fr); }
  .lateral { padding: 22px 10px; }
  .marca span, .grupo-titulo, .item-menu span, .item-menu .contagem, .cartao-sequencia { display: none; }
  .item-menu { justify-content: center; }
  .item-menu.ativo::before { left: -10px; }
  .principal { padding: 18px 18px 40px; }
  .destaque-conteudo { right: 24px; left: 24px; }
  .miniaturas { display: none; }
  .colunas, .colunas-3 { grid-template-columns: 1fr; }
  .usuario div { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
