/* ============================================================
   styles.css — Tema do Sistema UECCO
   Design próprio inspirado nos tokens estudados do RCCSystem:
   fundo grafite #191b1f, superfícies #202327, bordas #3b3f45,
   dourado #eaa506 como cor de destaque, raio 12px, DM Sans.
   Todas as classes estruturais do painel continuam as mesmas.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Silkscreen:wght@400;700&family=Ubuntu+Condensed&display=swap');

/* Volter (Goldfish) - a fonte pixel clássica do Habbo (freeware, auto-hospedada) */
@font-face {
  font-family: 'Volter';
  src: url('/fonts/volter-goldfish.ttf?v=2') format('truetype');
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #191b1f;
  --surface: #202327;
  --surface-2: #26292e;
  --surface-3: #2d3036;
  --line: #3b3f45;
  --line-soft: #2a2d33;
  --text: #e2e6e9;
  --muted: #9aa1a9;
  --accent: #eaa506;
  --accent-hover: #d09405;
  --accent-2: #f8a34f;
  --accent-soft: rgba(234, 165, 6, .12);
  --ok: #35c46a;
  --warn: #f8a34f;
  --danger: #e5484d;
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; }
b { font-weight: 600; }

/* ---------------- App shell ---------------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  height: 58px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.brandmark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #191b1f; display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
}
.search {
  flex: 1;
  max-width: 420px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}
.search input {
  width: 100%; background: none; border: none; color: var(--text);
  font: inherit; outline: none; padding: 0;
}
.search input::placeholder { color: var(--muted); }
.top-actions { display: flex; gap: 6px; margin-left: auto; }
.iconbtn {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted);
  font-size: 14px; cursor: pointer;
}
.iconbtn:hover { color: var(--accent); border-color: var(--accent); }
.account { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.avatar {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--surface-3); display: inline-block;
  object-fit: cover; object-position: top center;
  image-rendering: pixelated; flex-shrink: 0;
}
.acct-lines { display: flex; flex-direction: column; line-height: 1.25; }
.acct-lines b { font-size: 13px; }
.acct-lines span { font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ---------------- Layout ---------------- */
.layout { flex: 1; display: flex; align-items: flex-start; }

.sidebar {
  width: 226px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 14px 10px 30px;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
}
.side-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); padding: 16px 10px 6px; font-weight: 700;
}
.side-label:first-child { padding-top: 4px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: #c3c9cf; font-size: 13.5px;
}
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #4a4f57; flex-shrink: 0;
}
.side-link.active .side-dot { background: var(--accent); }
.side-link .count {
  margin-left: auto; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 6px;
}

.main { flex: 1; min-width: 0; padding: 22px 26px 60px; }

/* ---------------- Breadcrumbs e cabeçalho ---------------- */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); margin-bottom: 16px;
}
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs .atual { color: var(--accent); font-weight: 600; }

.pagehead {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.pagehead h1 { font-size: 21px; }
.pagehead h1::before {
  content: ''; display: inline-block; width: 26px; height: 4px;
  background: var(--accent); border-radius: 2px; margin-right: 10px;
  vertical-align: middle;
}
.pagehead p { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 8px 14px; font: inherit; font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #191b1f; }
.btn.primary:hover { background: var(--accent-hover); color: #191b1f; }

/* ---------------- Abas ---------------- */
.tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: 16px; padding-bottom: 0;
}
.tab {
  padding: 8px 14px; font-size: 13px; color: var(--muted); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

/* ---------------- Submenu lateral (unidade) ---------------- */
.admin-layout { display: flex; gap: 18px; align-items: flex-start; }
.admin-menu {
  width: 194px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px;
}
.admin-menu .side-label { padding: 6px 8px 6px; }
.admin-menu a {
  display: block; padding: 7px 10px; border-radius: var(--radius-sm);
  color: #c3c9cf; font-size: 13px;
}
.admin-menu a:hover { background: var(--surface-2); color: var(--text); }
.admin-menu a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.admin-layout > section, .admin-layout > div:not(.admin-menu) { flex: 1; min-width: 0; }

/* ---------------- Painéis ---------------- */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
  font-weight: 700; font-size: 14px;
}
.panel-body { padding: 16px; }
.panel-body > .table-wrap { margin: -16px; }

/* ---------------- Selos ---------------- */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  background: var(--accent-soft); color: var(--accent);
}
.badge.muted { background: var(--surface-3); color: var(--muted); }

/* ---------------- Métricas ---------------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.metric { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.metric-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
a.card:hover { border-color: var(--accent); }
.card h3 { font-size: 14px; margin-top: 10px; }
.card > p { font-size: 12.5px; margin-top: 2px; }

/* ---------------- Hero ---------------- */
.hero {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(120deg, #24262b, var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 120px at 85% 0%, rgba(234,165,6,.14), transparent 70%);
  pointer-events: none;
}
.hero-art {
  width: 92px; height: 68px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #7a5a10);
  flex-shrink: 0;
}
.hero h2 { font-size: 17px; }
.hero p { color: var(--muted); font-size: 13px; margin-top: 3px; }

/* ---------------- Tabelas ---------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td {
  padding: 11px 16px; text-align: left;
  border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
.table th {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; background: var(--surface-2);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: rgba(234,165,6,.03); }

/* ---------------- Formulários ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.input, .select, .textarea,
input[type=text], input[type=password], input[type=email], input[type=number],
input[type=date], input[type=time], select, textarea {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 12px;
  color: var(--text); font: inherit; font-size: 13.5px;
  width: 100%; min-height: 38px;
}
.textarea, textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #6a7079; }
.input:empty::before, .select:empty::before { content: '—'; color: var(--muted); }
.select { color: var(--muted); }

/* ---------------- Barras de ação ---------------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar.mt16 { margin-top: 16px; margin-bottom: 0; }
.toolbar form { display: contents; }

/* ---------------- Vazios ---------------- */
.empty {
  padding: 34px 16px; text-align: center; color: var(--muted); font-size: 13px;
}
.placeholder {
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface-3) 10px, var(--surface-3) 20px);
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  min-height: 90px; display: grid; place-items: center;
  color: var(--muted); font-size: 12px;
}
.skeleton-line { height: 9px; border-radius: 5px; background: var(--surface-3); }
.w60 { width: 60%; } .w40 { width: 40%; }
.mt16 { margin-top: 16px; } .mt8 { margin-top: 8px; }
.muted { color: var(--muted); }

/* ---------------- Grades ---------------- */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }

/* ---------------- Hierarquia ---------------- */
.hierarchy { display: flex; flex-direction: column; gap: 18px; }
.tier-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); font-weight: 700; margin-bottom: 8px;
}
.tier-row { display: flex; gap: 12px; flex-wrap: wrap; }
.member {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px; min-width: 224px;
}
.member-info { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.member-info > span { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.member-meta { font-size: 11.5px; color: var(--muted); }

/* ---------------- Conversas ---------------- */
.chat-shell {
  display: grid; grid-template-columns: 260px 1fr; gap: 16px;
  align-items: stretch; min-height: 460px;
}
.chat-list {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px; display: flex;
  flex-direction: column; gap: 6px; overflow-y: auto; max-height: 560px;
}
.chat-list .member { border: none; background: transparent; padding: 8px; min-width: 0; cursor: pointer; }
.chat-list .member:hover { background: var(--surface-2); border-radius: var(--radius-sm); }
.conversation {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; flex-direction: column;
}
.messages { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 440px; }
.bubble {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 13px; font-size: 13.5px;
  max-width: 74%; align-self: flex-start;
}
.bubble.me { background: var(--accent); border-color: var(--accent); color: #191b1f; align-self: flex-end; }
.bubble.me .member-meta, .bubble.me .muted { color: rgba(25,27,31,.65); }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); }
.composer .input, .composer input { flex: 1; }

/* ============================================================
   Componentes da home (padrão RCC, marca UECCO)
   ============================================================ */

/* Saudação + chips de acesso rápido */
.greeting { margin-bottom: 16px; }
.greeting h1 { font-size: 20px; }
.greeting h1 .nick { color: var(--accent); }
.greeting .data-hora { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Grade principal da home: conteúdo + trilho direito */
.home-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: 1fr; } }

/* Cartão de identificação (crachá) */
.id-card {
  background: linear-gradient(160deg, #23262b, #1c1e23);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; font-size: 12px;
}
.id-card .id-topo {
  background: var(--accent); color: #191b1f; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; font-size: 11px;
  padding: 6px 12px; text-align: center;
}
.id-card .id-sub {
  background: #14161a; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: 9.5px;
  padding: 3px 12px; text-align: center; border-bottom: 1px solid var(--line);
}
.id-card .id-corpo { display: flex; gap: 12px; padding: 12px; }
.id-card .id-foto {
  width: 64px; height: 110px; border-radius: 6px; background: var(--surface-3);
  border: 1px solid var(--line); object-fit: cover; object-position: top center;
  image-rendering: pixelated; flex-shrink: 0;
}
.id-card dl { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.id-card dt {
  font-size: 9px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 700;
}
.id-card dd {
  font-family: ui-monospace, Menlo, monospace; font-size: 12px;
  background: rgba(234,165,6,.07); border: 1px solid var(--line-soft);
  border-radius: 4px; padding: 2px 7px; overflow: hidden; text-overflow: ellipsis;
}
.id-card .id-rodape {
  border-top: 1px dashed var(--line); padding: 6px 12px;
  color: var(--muted); font-size: 10px; display: flex; justify-content: space-between;
}

/* Notícias */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.news-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.news-card:hover { border-color: var(--accent); }
.news-cover {
  height: 110px; display: grid; place-items: center; font-size: 42px;
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
  border-bottom: 1px solid var(--line-soft);
}
.news-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-body h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .02em; }
.news-meta { font-size: 11.5px; color: var(--muted); }
.news-excerpt { font-size: 12.5px; color: var(--muted); flex: 1; }
.news-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* Cartão de promoção (parabéns) */
.promo-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.promo-card .avatar { width: 40px; height: 40px; }
.promo-card b { text-transform: uppercase; font-size: 12.5px; }
.promo-card .de-para { font-size: 12px; color: var(--muted); }
.promo-card .de-para .para { color: var(--accent); font-weight: 700; }

/* Cartões de chamada (Provedoria etc.) */
.cta-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
}
.cta-card h4 { font-size: 13px; margin-bottom: 4px; }
.cta-card p { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

/* Lista "agora" (em serviço / online) */
.now-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.now-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
.now-item .avatar { width: 26px; height: 26px; border-radius: 6px; }
.now-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Atividade recente */
.activity { display: flex; flex-direction: column; }
.activity-item {
  display: flex; gap: 10px; padding: 9px 0; font-size: 12.5px;
  border-bottom: 1px solid var(--line-soft);
}
.activity-item:last-child { border-bottom: none; }
.activity-item .ico { color: var(--ok); }
.activity-item .quando { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }

/* ---------------- Rodapé institucional ---------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: auto; }
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 26px 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-brand .brandmark { width: 40px; height: 40px; font-size: 20px; }
.footer-brand b { font-size: 16px; display: block; }
.footer-brand span { color: var(--accent); font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.footer-grid p { color: var(--muted); font-size: 11.5px; }
.footer-grid h5 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin-bottom: 8px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid li a { color: #c3c9cf; font-size: 12.5px; }
.footer-grid li a:hover { color: var(--accent); }
.footer-bar {
  border-top: 1px solid var(--line-soft); padding: 12px 24px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto;
  color: var(--muted); font-size: 11px;
}

/* ---------------- Responsivo ---------------- */
@media (max-width: 900px), (pointer: coarse) and (max-width: 1080px) {
  .layout { flex-direction: column; }
  .main { padding: 16px; width: 100%; }
  .admin-layout { flex-direction: column; }
  .admin-menu { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-menu .side-label { width: 100%; }
  .chat-shell { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .pagehead h1 { font-size: 19px; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .grid3 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .now-list { grid-template-columns: 1fr; }
}

/* ---------------- Grupos expansíveis da sidebar ---------------- */
.side-group summary { list-style: none; cursor: pointer; user-select: none; }
.side-group summary::-webkit-details-marker { display: none; }
.side-group .chev {
  margin-left: auto; color: var(--muted); font-size: 14px;
  transition: transform .15s ease;
}
.side-group[open] > summary .chev { transform: rotate(90deg); }
.side-sub { display: flex; flex-direction: column; padding: 2px 0 4px; }
.side-sublink {
  display: block; padding: 6px 10px 6px 32px; border-radius: var(--radius-sm);
  color: #a8afb8; font-size: 12.5px;
}
.side-sublink:hover { background: var(--surface-2); color: var(--text); }
.side-sublink.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ============================================================
   Polimento moderno — profundidade, movimento e brilho
   ============================================================ */

/* Transições suaves em tudo que interage */
.btn, .chip, .card, .news-card, .promo-card, .side-link, .side-sublink,
.iconbtn, .tab, .panel, .member, .cta-card, .admin-menu a {
  transition: border-color .15s ease, background .15s ease, color .15s ease,
              transform .15s ease, box-shadow .15s ease;
}

/* Profundidade nos painéis e cartões */
.panel, .card, .id-card, .cta-card, .news-card, .promo-card, .member, .admin-menu {
  box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px -18px rgba(0,0,0,.7);
}

/* Elevação no hover dos cartões clicáveis */
a.card:hover, .news-card:hover, .chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 14px 34px -16px rgba(0,0,0,.8);
}

/* Botão dourado com brilho */
.btn.primary { box-shadow: 0 2px 10px -2px rgba(234,165,6,.35); }
.btn.primary:hover { box-shadow: 0 4px 16px -2px rgba(234,165,6,.5); transform: translateY(-1px); }

/* Topbar com leve translucidez */
.topbar { background: rgba(32,35,39,.92); backdrop-filter: blur(8px); }

/* Cabeçalho de painel com fio dourado sutil */
.panel-head { position: relative; }
.panel-head::after {
  content: ''; position: absolute; left: 16px; bottom: -1px;
  width: 34px; height: 2px; background: var(--accent); border-radius: 2px; opacity: .85;
}

/* Crachá com brilho de verniz */
.id-card { position: relative; overflow: hidden; }
.id-card::after {
  content: ''; position: absolute; top: 0; left: -60%;
  width: 45%; height: 100%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent);
  pointer-events: none;
}

/* Foco visível dourado nos campos */
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234,165,6,.15);
}

/* Barra de rolagem discreta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3f46; }

/* Selos com contorno sutil */
.badge { border: 1px solid transparent; }
.badge.ok { border-color: rgba(53,196,106,.25); }
.badge.warn { border-color: rgba(248,163,79,.25); }
.badge.danger { border-color: rgba(229,72,77,.25); }
.badge.muted { border-color: var(--line-soft); }

/* Notícias: capa com leve zoom no hover */
.news-cover { transition: transform .2s ease; }
.news-card:hover .news-cover { transform: scale(1.04); }
.news-card { overflow: hidden; }

/* Métricas com número dourado no hover do cartão */
.card:hover .metric { color: var(--accent); transition: color .15s ease; }

/* Linha ativa da sidebar com barra lateral dourada */
.side-link.active, .side-sublink.active { position: relative; }
.side-link.active::before, .side-sublink.active::before {
  content: ''; position: absolute; left: -10px; top: 20%;
  width: 3px; height: 60%; background: var(--accent); border-radius: 2px;
}

/* =====================================================================
   ÍCONES OFICIAIS UECCO - sprite próprio (/images/uecco-icones.svg).
   Traço herdado por CSS: os símbolos só definem geometria; a cor vem de
   currentColor, por isso o ícone acompanha o texto onde estiver.
   ===================================================================== */
.ico {
  width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.18em;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.ico-ouro { color: var(--accent); }
.ico-mudo { color: var(--muted); }
h1 > .ico:first-child, h2 > .ico:first-child, h3 > .ico:first-child,
.pagehead .ico, .side-label .ico { color: var(--accent); }
.side-ico { display: inline-flex; width: 18px; justify-content: center; }
.side-ico .ico { width: 16px; height: 16px; }
.side-link.active .side-ico { color: var(--accent); }
.side-sublink .ico { width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; opacity: .9; }
.side-sublink.active .ico { color: var(--accent); opacity: 1; }
.iconbtn .ico { width: 17px; height: 17px; }
.btn .ico { width: 14px; height: 14px; margin-right: 5px; }
.sino-item .ico { width: 15px; height: 15px; color: var(--accent); }
.busca-lupa .ico { width: 15px; height: 15px; }
/* Pontos de estado (substituem os círculos coloridos de emoji) */
.ponto-estado { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.ponto-estado.ok { background: #2ecc71; }
.ponto-estado.aviso { background: var(--accent); }
.ponto-estado.mau { background: #e05656; }
.pos-mini { display: inline-flex; min-width: 18px; justify-content: center; color: var(--muted); font-weight: 700; font-size: 12px; }
