/* ==========================================================================
   POLÍCIA CIVIL DO ESTADO DE SÃO PAULO — DESIGN SYSTEM OFICIAL (PCSP / SISP)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap");

:root {
  --pc-blue-dark: #00122b;
  --pc-blue: #002b66;
  --pc-blue-medium: #003e92;
  --pc-blue-light: #f0f5ff;
  --pc-gold-dark: #9e7d20;
  --pc-gold: #c8a951;
  --pc-gold-light: #fffdf5;
  --pc-red-dark: #990000;
  --pc-red: #cc0000;
  --pc-red-light: #fff0f0;
  --pc-green: #008744;
  --pc-green-light: #edf9f2;
  --pc-orange: #c25b00;
  --pc-orange-light: #fff3e8;

  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f8fafc;
  --gray-50: #ffffff;

  --font-heading: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

.central-ciente {
  color: var(--pc-green);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.45rem;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.5;
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pc-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pc-gold-dark);
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* GOV STRIPE */
.gov-stripe {
  background: var(--pc-blue-dark);
  color: #ffffff;
  font-size: 0.78rem;
  padding: 0.45rem 0;
  border-bottom: 3px solid var(--pc-gold);
}

.gov-stripe-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gov-stripe-links {
  display: flex;
  gap: 1.25rem;
}

.gov-stripe-links a {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.gov-stripe-links a:hover {
  color: var(--pc-gold);
}

.gov-sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
  font-family: var(--font-heading);
}

.sp-flag-mini {
  width: 22px;
  height: 15px;
  background-image: url("../assets/sp_flag.png");
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  display: inline-block;
}

/* SITE HEADER */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  padding: 1.1rem 0;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--pc-blue-dark);
  letter-spacing: 1px;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--pc-gold-dark);
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-top: 0.15rem;
}

.brand-separator {
  width: 1px;
  height: 42px;
  background: var(--gray-300);
}

.brand-dept {
  display: flex;
  flex-direction: column;
}

.brand-dept-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pc-blue);
}

.brand-dept-desc {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.header-sp-flag-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--pc-gold-light);
  border: 1px solid var(--pc-gold);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  margin-left: auto;
}

.header-sp-flag-img {
  width: 36px;
  height: 24px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* MAIN NAVIGATION */
.main-nav {
  background: linear-gradient(
    180deg,
    var(--pc-blue) 0%,
    var(--pc-blue-dark) 100%
  );
  border-top: 2px solid var(--pc-gold);
  border-bottom: 3px solid var(--pc-blue-dark);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  gap: 0.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.8rem 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--pc-gold);
}

.nav-menu i {
  font-size: 0.82rem;
  color: var(--pc-gold);
}

.nav-services {
  position: relative;
}
.nav-services details {
  height: 100%;
}
.nav-services summary {
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 0.35rem;
  height: 100%;
  list-style: none;
  padding: 0.8rem 0.75rem;
  white-space: nowrap;
}
.nav-services summary::-webkit-details-marker {
  display: none;
}
.nav-services summary i {
  color: var(--pc-gold);
  font-size: 0.78rem;
}
.nav-services[open] summary,
.nav-services summary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.nav-services-menu {
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  left: 0;
  min-width: 330px;
  padding: 0.45rem;
  position: absolute;
  top: 100%;
  z-index: 1200;
}
.nav-services-menu a {
  align-items: center;
  border-radius: 4px;
  color: var(--pc-blue-dark);
  display: flex;
  font-size: 0.78rem;
  gap: 0.5rem;
  padding: 0.7rem;
}
.nav-services-menu a:hover,
.nav-services-menu a.active {
  background: var(--pc-blue-light);
  color: var(--pc-blue);
}
.nav-services-menu a i {
  color: var(--pc-gold-dark);
  width: 16px;
}

.nav-user-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-user-badge {
  max-width: 265px;
}

.nav-user-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(200, 169, 81, 0.4);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.8rem;
}

.nav-user-chip strong {
  color: var(--pc-gold);
}

/* BREADCRUMB */
.breadcrumb {
  background: var(--gray-200);
  padding: 0.55rem 0;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--gray-300);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  color: var(--gray-600);
}

.breadcrumb-list a {
  color: var(--pc-blue);
  font-weight: 500;
}

/* SEÇÃO PRINCIPAL E PÁGINAS */
.page-section {
  padding: 2.5rem 0 3.5rem 0;
}

.bg-light {
  background-color: var(--gray-100);
  background-image:
    linear-gradient(rgba(246, 248, 251, 0.94), rgba(246, 248, 251, 0.94)),
    url("/assets/logo.png");
  background-position:
    center,
    32px 28px;
  background-repeat: repeat, repeat;
  background-size:
    auto,
    148px 148px;
}

.page-section.bg-light {
  position: relative;
}

.page-section.bg-light > .container {
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.8rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--pc-blue-light);
  color: var(--pc-blue);
  border: 1px solid var(--pc-blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pc-blue-dark);
  line-height: 1.2;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 0.3rem;
}

/* HERO HOMEPAGE */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--pc-blue-dark) 0%,
    var(--pc-blue) 60%,
    #00122b 100%
  );
  color: #ffffff;
  padding: 3rem 0 3.5rem 0;
  border-bottom: 4px solid var(--pc-gold);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-title span {
  color: var(--pc-gold);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 169, 81, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.hero-stat-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
}

.hero-stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--pc-gold);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.featured-banner-section {
  background: #071426;
  padding: 3.25rem 0;
}

.featured-banner-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.35rem;
}

.featured-banner-heading h2 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0.45rem;
}

.featured-banner-heading p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  max-width: 410px;
}

.section-label-light {
  background: rgba(200, 169, 81, 0.12);
  border-color: rgba(200, 169, 81, 0.5);
  color: #e8cf82;
}

.featured-banner-media {
  background: #03070d;
  border: 1px solid rgba(200, 169, 81, 0.38);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
  margin: 0;
  overflow: hidden;
}

.featured-banner-media img {
  display: block;
  height: auto;
  width: 100%;
}

.legacy-city {
  background: #07090e;
  color: #fff;
}
.legacy-city + .site-footer {
  margin-top: 0;
}
.legacy-info-card .fa-discord {
  color: #5865f2;
}
.legacy-info-card .fa-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.legacy-city-hero {
  background:
    radial-gradient(
      circle at 78% 35%,
      rgba(45, 72, 107, 0.52),
      transparent 30%
    ),
    linear-gradient(120deg, #07090e 5%, #101722 60%, #07101c);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  padding: 5rem 0 4.5rem;
}
.legacy-city-grid {
  align-items: center;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 420px;
}
.legacy-kicker {
  color: #b7c4d3;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 1.2rem;
}
.legacy-city h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  letter-spacing: -2px;
  line-height: 0.82;
  margin: 0;
  text-shadow: 0 8px 35px rgba(0, 0, 0, 0.48);
}
.legacy-city h1 span {
  color: #c7a24c;
}
.legacy-city-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 1.6rem 0 2rem;
  max-width: 530px;
}
.legacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.legacy-wolf-wrap {
  height: 420px;
  position: relative;
}
.legacy-wolf {
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.6));
  height: 100%;
  object-fit: contain;
  opacity: 0.86;
  position: absolute;
  right: -5%;
  width: 100%;
}
.legacy-mark {
  height: auto;
  max-width: 150px;
  position: absolute;
}
.legacy-mark-one {
  left: 7%;
  top: 8%;
}
.legacy-mark-two {
  bottom: 8%;
  right: 4%;
}
.legacy-connect {
  background: #111723;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0;
}
.legacy-connect-grid {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 2fr 1fr;
}
.legacy-connect-title span,
.legacy-ip label {
  color: #c7a24c;
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.legacy-connect-title strong {
  display: block;
  font-size: 1.1rem;
  margin: 0.25rem 0;
}
.legacy-connect-title small,
.legacy-status small {
  color: #9da9b8;
}
.legacy-ip {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}
.legacy-ip label {
  width: 100%;
}
.legacy-ip code {
  background: #242d3f;
  border: 1px solid #3a465e;
  border-radius: 6px;
  color: #f6f8fb;
  flex: 1;
  min-width: 220px;
  padding: 0.7rem 0.8rem;
}
.legacy-status {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}
.legacy-status strong {
  display: block;
}
.legacy-status-dot {
  background: #55d887;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(85, 216, 135, 0.12);
  height: 10px;
  width: 10px;
}
.legacy-city-content {
  background: linear-gradient(180deg, #0b1019, #07090e);
}
.legacy-info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.legacy-info-card {
  background: linear-gradient(145deg, #141c29, #0d121c);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: #fff;
  min-height: 210px;
  padding: 1.45rem;
  transition: 0.2s ease;
}
.legacy-info-card:hover {
  border-color: #c7a24c;
  transform: translateY(-4px);
}
.legacy-info-card > i {
  color: #c7a24c;
  font-size: 1.6rem;
}
.legacy-info-card h3 {
  margin: 1.2rem 0 0.5rem;
}
.legacy-info-card p {
  color: #9da9b8;
  line-height: 1.5;
}
.legacy-info-card span {
  color: #d7bd78;
  font-size: 0.82rem;
  font-weight: 700;
}

.atendimento-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  max-width: 1400px;
}

.atendimento-card {
  margin-top: 1.5rem;
  overflow: hidden;
}

.atendimento-chat-header {
  align-items: center;
  justify-content: space-between;
}

.atendimento-protocolo {
  color: var(--gray-500);
  font-family: monospace;
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.atendimento-mensagens {
  background: #f4f7fb;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 360px;
  max-height: 620px;
  overflow-y: auto;
  padding: 1.25rem;
}

.atendimento-mensagem {
  border-radius: 10px;
  max-width: 82%;
  padding: 0.8rem 1rem;
}

.atendimento-mensagem p {
  color: var(--gray-800);
  line-height: 1.55;
  margin: 0.4rem 0 0;
  white-space: pre-wrap;
}

.atendimento-mensagem-cidadao {
  align-self: flex-end;
  background: #ffffff;
  border: 1px solid var(--gray-200);
}

.atendimento-mensagem-equipe {
  align-self: flex-start;
  background: var(--pc-blue-light);
  border-left: 3px solid var(--pc-blue);
}

.atendimento-mensagem-meta {
  align-items: center;
  color: var(--gray-500);
  display: flex;
  font-size: 0.75rem;
  gap: 0.55rem;
  justify-content: space-between;
}

.atendimento-reply-form {
  display: block;
}

.atendimento-attachment {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  margin: -0.2rem 0 1rem;
}

.atendimento-attachment span,
.atendimento-file-name {
  color: var(--gray-500);
  font-size: 0.76rem;
}

.atendimento-message-image-link {
  display: block;
  margin-top: 0.65rem;
}

.atendimento-message-image {
  border: 1px solid var(--gray-200);
  border-radius: 7px;
  display: block;
  max-height: 340px;
  max-width: min(100%, 480px);
  object-fit: contain;
}

.atendimento-admin-detail {
  overflow: hidden;
}

.atendimento-admin-composer {
  background: #ffffff;
  padding: 1rem 1.25rem 1.2rem;
}

.atendimento-admin-actions {
  align-items: flex-end;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.atendimento-admin-actions .atendimento-reply-form {
  min-width: 0;
}

.atendimento-close-button {
  margin-bottom: 0.05rem;
}

.atendimento-closed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.balanco-page {
  max-width: 1400px;
}

.balanco-hero {
  align-items: center;
  background:
    linear-gradient(110deg, rgba(4, 31, 68, 0.97), rgba(14, 65, 120, 0.94)),
    url("/assets/logo.png");
  background-position:
    center,
    right 2.2rem center;
  background-repeat: no-repeat;
  background-size: auto, 190px;
  border: 1px solid rgba(202, 169, 81, 0.55);
  border-bottom: 4px solid var(--pc-gold);
  border-radius: 10px 10px 0 0;
  color: #fff;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 210px;
  margin: 0 0 1.4rem;
  padding: 2.1rem 2.4rem;
}

.balanco-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0.65rem 0 0.35rem;
}

.balanco-hero p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 620px;
}

.balanco-filter {
  color: #d7bd78;
  display: grid;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.35rem;
  letter-spacing: 0.06em;
  min-width: 0;
  text-transform: uppercase;
}

.balanco-filter input {
  background: rgba(255, 255, 255, 0.96);
  color: var(--pc-blue-dark);
}

.balanco-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.balanco-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  display: grid;
  box-shadow: 0 8px 20px rgba(14, 42, 76, 0.06);
  min-height: 138px;
  padding: 1.2rem;
}

.balanco-card i {
  color: var(--pc-gold-dark);
  font-size: 1.1rem;
}

.balanco-card strong {
  align-self: end;
  color: var(--pc-blue-dark);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.balanco-card span {
  color: var(--gray-600);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.balanco-bottom {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 1rem;
}

.balanco-division {
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.balanco-division strong {
  color: var(--pc-blue-dark);
}

.balanco-division span {
  color: var(--gray-600);
  font-size: 0.82rem;
}

.balanco-notice {
  align-items: flex-start;
  background: #0a2345;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  gap: 0.8rem;
  padding: 1.3rem;
}

.balanco-notice i {
  color: var(--pc-gold);
  margin-top: 0.2rem;
}

.balanco-notice strong {
  color: #fff;
}

.balanco-notice p {
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0.4rem 0 0;
}

.atendimento-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 3.7rem;
}

.atendimento-notice {
  align-items: flex-start;
  background: #091a31;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  font-size: 0.84rem;
  gap: 0.75rem;
  line-height: 1.55;
  padding: 1.1rem;
}

.atendimento-notice i {
  color: var(--pc-gold);
  margin-top: 0.2rem;
}
.atendimento-notice strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0.2rem;
}

.chat-hub {
  max-width: 1480px;
}

.chat-hero {
  margin-bottom: 1.5rem;
}

.chat-shell {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(9, 30, 66, 0.08);
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  min-height: max(650px, calc(100vh - 330px));
  overflow: hidden;
}

.chat-sidebar {
  background: #081d3d;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
}

.chat-sidebar-title {
  color: #d7bd78;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin: 0.25rem 0 0.65rem;
  text-transform: uppercase;
}

.chat-channel {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  padding: 0.8rem;
  text-align: left;
  transition: 0.2s ease;
}

.chat-channel:hover,
.chat-channel.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(215, 189, 120, 0.55);
  color: #fff;
}

.chat-channel > i {
  color: #d7bd78;
  font-size: 1rem;
  width: 18px;
}

.chat-channel span {
  display: grid;
  gap: 0.18rem;
}

.chat-channel strong {
  font-size: 0.88rem;
}

.chat-channel small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.chat-sidebar-notice {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  line-height: 1.55;
  margin-top: auto;
  padding-top: 1rem;
}

.chat-room {
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr) auto;
  min-width: 0;
}

.chat-room-header {
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
}

.chat-room-header h2 {
  color: var(--pc-blue-dark);
  font-family: var(--font-heading);
  font-size: 1.22rem;
  margin: 0.18rem 0 0;
}

.chat-room-eyebrow {
  color: var(--pc-gold-dark);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.chat-live {
  color: var(--gray-500);
  font-size: 0.72rem;
}

.chat-live i {
  color: #27ae60;
  font-size: 0.48rem;
  margin-right: 0.3rem;
}

.chat-messages {
  background: #f5f7fa;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
  padding: 1.35rem 1.5rem;
}

.chat-message {
  align-items: flex-start;
  display: flex;
  gap: 0.7rem;
  max-width: min(920px, 82%);
}

.chat-avatar {
  align-items: center;
  background: #e6edf7;
  border-radius: 50%;
  color: var(--pc-blue);
  display: flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
}

.chat-message-body {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 4px 10px 10px;
  min-width: 0;
  padding: 0.7rem 0.85rem;
}

.chat-message-meta {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.chat-message-meta strong {
  color: var(--pc-blue-dark);
  font-size: 0.84rem;
}

.chat-message-meta span,
.chat-message-meta time {
  color: var(--gray-500);
  font-size: 0.7rem;
}

.chat-message-meta time {
  margin-left: auto;
}

.chat-message-body p {
  color: var(--gray-800);
  line-height: 1.55;
  margin: 0.38rem 0 0;
  white-space: pre-wrap;
}

.chat-message-image-link {
  display: block;
  margin-top: 0.65rem;
}

.chat-message-image {
  border: 1px solid var(--gray-200);
  border-radius: 7px;
  display: block;
  max-height: 340px;
  max-width: min(100%, 480px);
  object-fit: contain;
}

.chat-empty {
  align-items: center;
  color: var(--gray-500);
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
  min-height: 300px;
  text-align: center;
}

.chat-empty i {
  color: #b5c3d3;
  font-size: 2rem;
}

.chat-empty strong {
  color: var(--pc-blue-dark);
}

.chat-empty span {
  font-size: 0.83rem;
}

.chat-compose {
  border-top: 1px solid var(--gray-200);
  padding: 0.85rem 1.2rem 1rem;
}

.chat-compose textarea {
  min-height: 58px;
  resize: none;
}

[hidden] {
  display: none !important;
}

.message-composer {
  background: #fff;
}

.message-composer textarea {
  border: 0;
  box-shadow: none;
  line-height: 1.5;
  min-height: 58px;
  padding: 0.8rem 0.9rem;
  resize: none;
}

.message-composer textarea:focus {
  border: 0;
  box-shadow: none;
}

.message-composer-input {
  border: 1px solid #cbd7e6;
  border-radius: 9px;
  transition: 0.2s ease;
}

.message-composer-input:focus-within {
  border-color: var(--pc-blue);
  box-shadow: 0 0 0 3px rgba(0, 53, 107, 0.08);
}

.message-composer-footer {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.65rem;
}

.message-composer-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.message-composer-tools small {
  color: var(--gray-500);
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.composer-tool {
  align-items: center;
  background: #f1f5fa;
  border: 1px solid #d5dfeb;
  border-radius: 7px;
  color: var(--pc-blue);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  transition: 0.18s ease;
}

.composer-tool:hover {
  background: #e3ebf5;
  border-color: #9eb1c9;
}

.composer-tool.recording {
  animation: composer-record-pulse 1.3s ease-in-out infinite;
  background: #fff0f0;
  border-color: #d9363e;
  color: #b4232b;
}

.composer-send {
  border-radius: 7px;
  min-width: 105px;
}

.composer-preview {
  align-items: center;
  background: #f4f7fb;
  border: 1px solid #d5dfec;
  border-radius: 8px;
  display: flex;
  gap: 0.7rem;
  margin-top: 0.6rem;
  min-height: 52px;
  padding: 0.45rem 0.55rem;
}

.composer-preview > img {
  border-radius: 5px;
  height: 44px;
  object-fit: cover;
  width: 62px;
}

.composer-preview > i {
  align-items: center;
  background: #e4ecf6;
  border-radius: 50%;
  color: var(--pc-blue);
  display: flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.composer-preview > div {
  display: grid;
  flex: 1;
  gap: 0.18rem;
  min-width: 0;
}

.composer-preview strong {
  color: var(--pc-blue-dark);
  font-size: 0.78rem;
}

.composer-preview span {
  color: var(--gray-500);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-remove {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--pc-red);
  cursor: pointer;
  display: flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.composer-audio-preview audio,
.message-audio audio {
  height: 34px;
  max-width: 100%;
  width: 320px;
}

.message-audio {
  align-items: center;
  background: #eef3f9;
  border-radius: 8px;
  display: flex;
  gap: 0.6rem;
  margin-top: 0.65rem;
  padding: 0.45rem 0.6rem;
}

.message-audio > i {
  color: var(--pc-blue);
}

@keyframes composer-record-pulse {
  50% {
    box-shadow: 0 0 0 4px rgba(217, 54, 62, 0.14);
  }
}

.chat-image-preview {
  align-items: center;
  background: #f4f7fb;
  border: 1px solid #d5dfec;
  border-radius: 7px;
  display: flex;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding: 0.45rem;
}

.chat-image-preview img {
  border-radius: 4px;
  height: 42px;
  object-fit: cover;
  width: 58px;
}

.chat-image-preview span {
  color: var(--gray-600);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-image-remove {
  background: transparent;
  border: 0;
  color: var(--pc-red);
  cursor: pointer;
  margin-left: auto;
  padding: 0.5rem;
}

.chat-compose-tools {
  align-items: center;
  display: flex;
  gap: 0.7rem;
}

.chat-attach-button {
  align-items: center;
  border: 1px solid var(--pc-blue);
  border-radius: 4px;
  color: var(--pc-blue);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
}

.chat-attach-button:hover {
  background: var(--pc-blue-light);
}

.chat-compose-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.7rem;
}

.chat-compose-actions small {
  color: var(--gray-500);
  font-size: 0.74rem;
}

.footer-virtual-notice {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(200, 169, 81, 0.22);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  letter-spacing: 0.2px;
  padding: 0.55rem 1rem;
  text-align: center;
}

.footer-virtual-notice i {
  color: var(--pc-gold);
  margin-right: 0.35rem;
}

/* CARDS E FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--pc-blue);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.feature-card:hover {
  border-top-color: var(--pc-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--pc-blue-light);
  color: var(--pc-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feature-card:hover .feature-card-icon {
  background: var(--pc-gold-light);
  color: var(--pc-gold-dark);
}

.feature-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--pc-blue-dark);
  margin-bottom: 0.3rem;
}

.feature-card-content p {
  font-size: 0.84rem;
  color: var(--gray-600);
  line-height: 1.45;
}

/* CARD GERAL */
.card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-header-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pc-blue-dark);
}

.card-body {
  padding: 1.25rem;
}

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gold {
  background: var(--pc-gold-light);
  color: var(--pc-gold-dark);
  border: 1px solid var(--pc-gold);
}
.badge-blue {
  background: var(--pc-blue-light);
  color: var(--pc-blue);
  border: 1px solid var(--pc-blue);
}
.badge-red {
  background: var(--pc-red-light);
  color: var(--pc-red);
  border: 1px solid var(--pc-red);
}
.badge-green {
  background: var(--pc-green-light);
  color: var(--pc-green);
  border: 1px solid var(--pc-green);
}
.badge-gray {
  background: var(--gray-200);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--pc-gold) 0%, #b2913a 100%);
  color: var(--pc-blue-dark);
  border-color: #d6b75e;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #d9b95c 0%, #c4a143 100%);
  color: var(--pc-blue-dark);
}

.btn-secondary {
  background: var(--pc-blue);
  color: #ffffff;
}

.btn-secondary:hover {
  background: var(--pc-blue-medium);
  color: #ffffff;
}

.btn-outline-blue {
  background: transparent;
  border-color: var(--pc-blue);
  color: var(--pc-blue);
}

.btn-outline-blue:hover {
  background: var(--pc-blue);
  color: #ffffff;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
}
.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
}

/* FORMULÁRIOS */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  font-family: var(--font-body);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--gray-900);
}

.form-control:focus {
  outline: none;
  border-color: var(--pc-blue);
  box-shadow: 0 0 0 3px rgba(0, 43, 102, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.file-input-native {
  height: 1px !important;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px !important;
}

.file-upload-control {
  align-items: center;
  background: linear-gradient(135deg, #f8fbff, #fff);
  border: 1px dashed #9eb4d1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto 1fr minmax(150px, 38%);
  min-height: 70px;
  padding: 0.7rem 0.85rem;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.file-upload-control:hover,
.file-upload-control:focus-within {
  background: #f2f7ff;
  border-color: var(--pc-blue);
  box-shadow: 0 0 0 3px rgba(14, 70, 143, 0.1);
}

.file-upload-icon {
  align-items: center;
  background: var(--pc-blue);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.file-upload-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.file-upload-copy strong {
  color: var(--pc-blue);
  font-size: 0.87rem;
}
.file-upload-copy small {
  color: var(--gray-500);
  font-size: 0.73rem;
}
.file-upload-name {
  color: var(--gray-500);
  font-size: 0.78rem;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-upload-control.has-file {
  background: #effaf4;
  border-color: var(--pc-green);
}
.file-upload-control.has-file .file-upload-icon {
  background: var(--pc-green);
}
.file-upload-control.has-file .file-upload-name {
  color: var(--pc-green);
  font-weight: 700;
}

.funcional-upload-control {
  background: linear-gradient(105deg, #062b5d, #0b3d91);
  border: 1px solid var(--pc-gold);
  color: #fff;
  grid-template-columns: auto 1fr minmax(110px, 26%) auto;
  min-height: 82px;
  padding: 0.8rem 1rem;
}

.funcional-upload-control:hover,
.funcional-upload-control:focus-within {
  background: linear-gradient(105deg, #07336e, #124ea7);
  border-color: #f0cc67;
  box-shadow: 0 0 0 3px rgba(207, 171, 68, 0.2);
}
.funcional-upload-control .file-upload-icon {
  background: var(--pc-gold);
  color: var(--pc-blue);
}
.funcional-upload-control .file-upload-copy strong {
  color: #fff;
}
.funcional-upload-control .file-upload-copy small {
  color: rgba(255, 255, 255, 0.72);
}
.funcional-upload-control .file-upload-name {
  color: rgba(255, 255, 255, 0.75);
}
.file-upload-action {
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.55rem;
}
.funcional-upload-control.has-file {
  background: linear-gradient(105deg, #073f35, #0c6655);
  border-color: #67d8b8;
}
.funcional-upload-control.has-file .file-upload-icon {
  background: #b9f1db;
  color: #075643;
}
.funcional-upload-control.has-file .file-upload-name {
  color: #d5ffef;
}

.funcional-discord-linked {
  align-items: center;
  background: #eef3ff;
  border: 1px solid #c8d5ff;
  color: #314b92;
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  padding: 0.8rem 0.9rem;
}
.funcional-discord-linked i {
  color: #5865f2;
  font-size: 1.2rem;
}

.funcional-renovacao-card {
  align-items: center;
  background: linear-gradient(110deg, #f8f4e9, #fff);
  border: 1px solid #e3d3a4;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}
.funcional-renovacao-card h3 {
  color: var(--pc-blue);
  font-size: 1rem;
  margin: 0.45rem 0 0.2rem;
}
.funcional-renovacao-card p {
  color: var(--gray-600);
  font-size: 0.86rem;
  margin: 0;
}
.funcional-renovacao-wait {
  color: var(--gray-600);
  font-size: 0.78rem;
  max-width: 230px;
  text-align: right;
}

@media (max-width: 620px) {
  .funcional-renovacao-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .funcional-renovacao-wait {
    max-width: none;
    text-align: left;
  }
}

.portal-entry {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(2, 16, 35, 0.97), rgba(4, 43, 89, 0.94)),
    url("/assets/thumbnail.png") center/cover;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1.5rem;
  position: fixed;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
  z-index: 10000;
}
.portal-entry::before {
  background: linear-gradient(
    90deg,
    rgba(3, 20, 45, 0.82),
    rgba(3, 20, 45, 0.45)
  );
  content: "";
  inset: 0;
  position: absolute;
}
.portal-entry-panel {
  background: rgba(4, 20, 44, 0.94);
  border: 1px solid rgba(207, 171, 68, 0.5);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  color: #fff;
  max-width: 900px;
  position: relative;
  width: 100%;
}
.portal-entry-brand {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 0.85rem;
  padding: 1.15rem 1.45rem;
}
.portal-entry-brand img {
  height: 45px;
  object-fit: contain;
  width: 45px;
}
.portal-entry-brand strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.portal-entry-brand span {
  color: var(--pc-gold);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-top: 0.15rem;
}
.portal-entry-content {
  padding: 2.5rem 2.8rem 2rem;
}
.portal-entry-kicker {
  color: var(--pc-gold);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.portal-entry-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1.04;
  margin: 0.75rem 0;
  max-width: 700px;
}
.portal-entry-content > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 760px;
}
.portal-entry-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.7rem 0;
}
.portal-entry-grid div {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}
.portal-entry-grid i {
  color: var(--pc-gold);
  font-size: 1.1rem;
}
.portal-entry-grid strong {
  font-size: 0.87rem;
}
.portal-entry-grid span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  line-height: 1.45;
}
.portal-entry-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
}
.portal-entry-actions a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  text-decoration: underline;
}
.portal-entry-note {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
  padding: 0.9rem 1.45rem;
}
.portal-entry-note i {
  color: var(--pc-gold);
  margin-right: 0.45rem;
}
.portal-entry-leaving {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

@media (max-width: 620px) {
  .portal-entry {
    padding: 0.75rem;
  }
  .portal-entry-content {
    padding: 1.75rem 1.3rem;
  }
  .portal-entry-grid {
    grid-template-columns: 1fr;
  }
  .portal-entry-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

.card {
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  border-color: #c9d5e5;
}

@media (max-width: 620px) {
  .file-upload-control {
    grid-template-columns: auto 1fr;
  }
  .file-upload-name {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* TABELAS */
.server-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.server-table th {
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--gray-300);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.server-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

.server-table tr:hover {
  background: var(--gray-50);
}

/* MODAIS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 18, 43, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--pc-gold);
}

.modal-lg {
  max-width: 840px;
}

.modal-header {
  background: var(--pc-blue-dark);
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--pc-gold);
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* TOASTS */
#toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
}

.toast {
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid #d9e1ec;
  border-left: 4px solid var(--pc-blue);
  box-shadow: 0 18px 42px rgba(0, 24, 59, 0.2);
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  color: var(--gray-800);
  font-size: 0.84rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 320px;
  max-width: 400px;
  animation: toastIn 0.28s ease both;
}

.toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pc-blue-light);
  color: var(--pc-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
}

.toast-content {
  display: grid;
  gap: 0.15rem;
  line-height: 1.35;
  flex: 1;
}
.toast-title {
  color: var(--pc-blue-dark);
  font-size: 0.83rem;
}
.toast-msg {
  color: var(--gray-600);
}
.toast-close {
  background: transparent;
  border: 0;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.15rem;
  line-height: 1;
}
.toast-close:hover {
  color: var(--pc-blue);
}
.toast-success {
  border-left-color: var(--pc-green);
}
.toast-success .toast-icon {
  background: var(--pc-green-light);
  color: var(--pc-green);
}
.toast-error {
  border-left-color: var(--pc-red);
}
.toast-error .toast-icon {
  background: var(--pc-red-light);
  color: var(--pc-red);
}
.toast-warning {
  border-left-color: var(--pc-gold);
}
.toast-warning .toast-icon {
  background: var(--pc-gold-light);
  color: var(--pc-gold-dark);
}

.unidade-card {
  align-items: center;
  border-top: 3px solid var(--pc-blue);
  display: flex;
  gap: 1rem;
  min-height: 150px;
  overflow: hidden;
  padding: 1rem;
}
.unidade-emblem {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 24, 59, 0.18);
  flex: 0 0 96px;
  height: 96px;
  object-fit: cover;
  width: 96px;
}
.unidade-sigla {
  color: var(--pc-gold-dark);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.unidade-card h3 {
  margin: 0.25rem 0 0.45rem;
}
.unidade-card p {
  margin: 0;
}
.unidade-responsavel {
  color: var(--pc-blue);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.65rem;
}
@media (max-width: 560px) {
  .unidade-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .unidade-emblem {
    height: 88px;
    width: 88px;
  }
}

.perfil-page {
  padding-bottom: 1rem;
}
.perfil-label {
  background: #eef4ff;
  border-color: #9ab5df;
  color: var(--pc-blue);
}
.perfil-hero {
  background: linear-gradient(120deg, #031d48 0%, #063578 62%, #08295b 100%);
  border: 1px solid rgba(200, 155, 60, 0.65);
  box-shadow: 0 18px 38px rgba(0, 27, 67, 0.18);
  color: #fff;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-top: 1.5rem;
  overflow: hidden;
  padding: 1.6rem 1.75rem;
  position: relative;
}
.perfil-hero::after {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  height: 260px;
  position: absolute;
  right: -78px;
  top: -135px;
  width: 260px;
}
.perfil-hero-main {
  align-items: center;
  display: flex;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}
.perfil-avatar-frame {
  background: linear-gradient(145deg, var(--pc-gold), #fff0b7);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.13);
  flex: 0 0 112px;
  height: 112px;
  overflow: hidden;
  padding: 4px;
  width: 112px;
}
.perfil-avatar-frame img {
  background: #061d3e;
  border-radius: 50%;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.perfil-kicker {
  color: #d7b354;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.perfil-hero h2 {
  color: #fff;
  font-size: 1.75rem;
  margin: 0.3rem 0 0.55rem;
}
.perfil-role-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.perfil-role,
.perfil-dev-badge {
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
}
.perfil-role {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}
.perfil-dev-badge {
  background: #d2aa43;
  color: #061d3e;
}
.perfil-id {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.8rem;
}
.perfil-id span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}
.perfil-id strong {
  letter-spacing: 0.06em;
}
.perfil-hero-side {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 310px;
  position: relative;
  text-align: right;
  z-index: 1;
}
.perfil-status {
  color: #dff9e8;
  font-size: 0.8rem;
  font-weight: 700;
}
.perfil-status span {
  background: #42d37d;
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin-right: 0.35rem;
  width: 8px;
}
.perfil-function-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  text-transform: uppercase;
}
.perfil-function-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.perfil-function-tags span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  font-size: 0.75rem;
  padding: 0.28rem 0.45rem;
}
.perfil-hero-side .btn {
  background: #fff;
  border-color: #fff;
  color: var(--pc-blue-dark);
}
.perfil-editor-card,
.perfil-security-card {
  border-top: 3px solid var(--pc-blue);
}
.perfil-security-card {
  border-top-color: var(--pc-gold);
}
@media (max-width: 720px) {
  .perfil-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .perfil-hero-side {
    align-items: flex-start;
    text-align: left;
  }
  .perfil-function-tags {
    justify-content: flex-start;
  }
}

body {
  animation: siteReveal 0.32s ease both;
}
.main-nav a,
.nav-services summary,
.btn,
.feature-card,
.card,
.site-footer a {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.main-nav a:not(.active):hover,
.nav-services summary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 15px rgba(0, 27, 67, 0.16);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.card {
  animation: cardEnter 0.42s ease both;
}
.card:hover {
  box-shadow: 0 10px 26px rgba(2, 29, 72, 0.09);
}
.feature-card:hover {
  border-color: rgba(200, 155, 60, 0.72);
  box-shadow: 0 12px 24px rgba(2, 29, 72, 0.1);
  transform: translateY(-3px);
}
.section-label {
  animation: labelEnter 0.35s ease both;
}
.section-title {
  animation: titleEnter 0.42s ease both;
}
.perfil-hero {
  animation: heroEnter 0.52s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.unidade-emblem {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.unidade-card:hover .unidade-emblem {
  box-shadow: 0 14px 28px rgba(0, 24, 59, 0.25);
  transform: scale(1.05) rotate(-1deg);
}
.form-control:focus {
  box-shadow: 0 0 0 3px rgba(14, 70, 143, 0.13);
  transform: translateY(-1px);
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

@keyframes siteReveal {
  from {
    opacity: 0.985;
  }
  to {
    opacity: 1;
  }
}
@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes labelEnter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes titleEnter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(13px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.central-page {
  max-width: 1400px;
}
.central-hero {
  align-items: center;
  background: linear-gradient(120deg, #05275c, #0b4689);
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 1.8rem 2rem;
}
.central-hero h1 {
  color: #fff;
  font-size: 2rem;
  margin: 0.55rem 0 0.3rem;
}
.central-hero p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 650px;
}
.central-user-chip {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  gap: 0.3rem;
  padding-left: 1.4rem;
  text-align: right;
}
.central-user-chip span {
  color: #dfbc62;
  font-size: 0.8rem;
  font-weight: 700;
}
.central-user-chip strong {
  font-size: 0.85rem;
}
.central-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr;
  margin-top: 1.25rem;
}
.central-list-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 0.7rem 0;
}
.central-list-item:last-child {
  border: 0;
}
.central-list-item strong {
  display: block;
}
.central-list-item p {
  color: var(--gray-600);
  font-size: 0.88rem;
  margin: 0.3rem 0;
}
.central-list-item small {
  color: var(--gray-500);
}
.central-metrics {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 0.65rem;
}
.central-metrics div {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 0.75rem;
}
.central-metrics strong {
  color: var(--pc-blue);
  display: block;
  font-size: 1.4rem;
}
.central-metrics span,
.central-empty {
  color: var(--gray-500);
  font-size: 0.82rem;
}
@media (max-width: 720px) {
  .central-hero,
  .central-grid {
    display: block;
  }
  .central-user-chip {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin-top: 1rem;
    padding: 1rem 0 0;
    text-align: left;
  }
  .central-grid .card + .card {
    margin-top: 1rem;
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FOOTER */
.site-footer {
  background: var(--pc-blue-dark);
  color: rgba(255, 255, 255, 0.8);
  border-top: 4px solid var(--pc-gold);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  font-size: 0.82rem;
}

/* FOOTER GRID */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--pc-gold);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li,
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--pc-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* SP FLAG LABELS */
.sp-flag-label-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--pc-blue-dark);
}
.sp-flag-label-sub {
  font-size: 0.68rem;
  color: var(--pc-gold-dark);
  font-weight: 600;
}

/* HERO BADGE */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(200, 169, 81, 0.15);
  border: 1px solid rgba(200, 169, 81, 0.4);
  color: var(--pc-gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* BTN OUTLINE GOLD */
.btn-outline-gold {
  background: transparent;
  border: 1.5px solid rgba(200, 169, 81, 0.6);
  color: rgba(255, 255, 255, 0.9);
}
.btn-outline-gold:hover {
  background: rgba(200, 169, 81, 0.15);
  border-color: var(--pc-gold);
  color: var(--pc-gold);
}

/* BTN GOLD */
.btn-gold {
  background: linear-gradient(180deg, var(--pc-gold) 0%, #b2913a 100%);
  color: var(--pc-blue-dark);
  border-color: #d6b75e;
  font-weight: 700;
}
.btn-gold:hover {
  background: linear-gradient(180deg, #d9b95c 0%, #c4a143 100%);
  color: var(--pc-blue-dark);
}

/* BTN GHOST */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* BTN DANGER */
.btn-danger {
  background: var(--pc-red);
  color: #fff;
  border-color: var(--pc-red-dark);
}
.btn-danger:hover {
  background: var(--pc-red-dark);
  color: #fff;
}

/* BTN SUCCESS */
.btn-success {
  background: var(--pc-green);
  color: #fff;
}
.btn-success:hover {
  background: #006835;
  color: #fff;
}

/* BADGE ORANGE */
.badge-orange {
  background: var(--pc-orange-light);
  color: var(--pc-orange);
  border: 1px solid var(--pc-orange);
}

/* ADMIN AUTH TABS (alias do sistema de tabs) */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  gap: 0;
  flex-wrap: wrap;
}

.auth-tab-btn {
  padding: 0.7rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  border: none;
  background: transparent;
  color: var(--gray-600);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  margin-bottom: -2px;
}

.auth-tab-btn:hover {
  color: var(--pc-blue);
  border-bottom-color: rgba(0, 43, 102, 0.2);
}
.auth-tab-btn.active {
  color: var(--pc-blue);
  border-bottom-color: var(--pc-blue);
}

/* NAV USER BADGE */
.nav-user-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 169, 81, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.8rem;
}
.user-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.82rem;
}
.user-cargo {
  font-size: 0.72rem;
  color: var(--pc-gold);
}

/* SEARCH BAR */
.search-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 220px;
}
.search-input-wrap i {
  position: absolute;
  left: 0.75rem;
  color: var(--gray-400);
  font-size: 0.85rem;
}
.search-input-wrap .form-control {
  padding-left: 2.2rem;
}

/* DOSSIER GRID */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.dossier-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.dossier-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.dossier-card-header {
  background: var(--pc-blue-dark);
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dossier-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  gap: 0.85rem;
}
.dossier-mugshot {
  width: 70px;
  height: 86px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
}
.dossier-mugshot-placeholder {
  width: 70px;
  height: 86px;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  font-size: 1.6rem;
  flex-shrink: 0;
}
.dossier-info {
  flex: 1;
}
.dossier-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pc-blue-dark);
}
.dossier-id {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}
.dossier-crimes {
  font-size: 0.8rem;
  color: var(--gray-700);
  margin-top: 0.35rem;
}
.dossier-card-footer {
  padding: 0.6rem 1rem;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 0.5rem;
}

/* WANTED CARD */
.wanted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.wanted-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--pc-red);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.wanted-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.wanted-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--gray-200);
}
.wanted-photo-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gray-400);
}
.wanted-info {
  padding: 0.85rem;
}
.wanted-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pc-blue-dark);
}
.wanted-crime {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin: 0.25rem 0;
}
.wanted-reward {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pc-green);
}
.wanted-footer {
  padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--gray-200);
  background: var(--pc-red-light);
  display: flex;
  gap: 0.5rem;
}

/* TABS */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: 0.7rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  border: none;
  background: transparent;
  color: var(--gray-600);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  margin-bottom: -2px;
}
.tab-btn:hover {
  color: var(--pc-blue);
  border-bottom-color: var(--pc-blue-light);
}
.tab-btn.active {
  color: var(--pc-blue);
  border-bottom-color: var(--pc-blue);
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* QRR / OPERAÇÕES */
.qrr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.qrr-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--pc-blue);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  display: flex;
  flex-direction: column;
}
.qrr-code {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--pc-blue);
}
.qrr-desc {
  font-size: 0.78rem;
  color: var(--gray-600);
  margin-top: 0.2rem;
}

.ops-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.ops-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.ops-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.ops-icon.blue {
  background: var(--pc-blue-light);
  color: var(--pc-blue);
}
.ops-icon.gold {
  background: var(--pc-gold-light);
  color: var(--pc-gold-dark);
}
.ops-icon.red {
  background: var(--pc-red-light);
  color: var(--pc-red);
}
.ops-icon.green {
  background: var(--pc-green-light);
  color: var(--pc-green);
}
.ops-label {
  font-size: 0.78rem;
  color: var(--gray-500);
}
.ops-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-800);
}
.ops-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
}
.dot-green {
  background: var(--pc-green);
  box-shadow: 0 0 0 3px rgba(0, 135, 68, 0.2);
}
.dot-red {
  background: var(--pc-red);
}
.dot-gold {
  background: var(--pc-gold);
}

/* FORMULÁRIO RECRUTAMENTO */
.form-section-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pc-blue-dark);
  padding: 0.75rem 0 0.5rem;
  border-bottom: 2px solid var(--pc-gold);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.question-block {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--pc-blue);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}
.question-text {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}
.question-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.question-options label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--gray-700);
  cursor: pointer;
}

/* CERTIDÃO */
.certidao-result {
  border: 2px solid var(--pc-blue);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1.5rem;
}
.certidao-header-strip {
  background: var(--pc-blue-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.certidao-body {
  padding: 1.5rem;
  background: #fff;
}
.certidao-field {
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}
.certidao-field strong {
  color: var(--gray-800);
}
.certidao-stamp {
  text-align: center;
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--pc-green-light);
  border: 2px dashed var(--pc-green);
  border-radius: var(--radius-sm);
  color: var(--pc-green);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
}
.certidao-stamp.negativa {
  background: var(--pc-green-light);
  border-color: var(--pc-green);
  color: var(--pc-green);
}
.certidao-stamp.positiva {
  background: var(--pc-red-light);
  border-color: var(--pc-red);
  color: var(--pc-red);
}

/* DENÚNCIA */
.protocol-display {
  background: var(--pc-blue-dark);
  color: var(--pc-gold);
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-family: var(--font-heading);
}
.protocol-number {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
}
.protocol-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

/* DELEGACIA VIRTUAL */
.bo-success {
  background: var(--pc-green-light);
  border: 2px solid var(--pc-green);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  display: none;
}
.bo-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pc-green);
}

/* ADMIN PANEL */
.admin-stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.admin-stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pc-blue-dark);
  line-height: 1;
}
.admin-stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.15rem;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

/* LOGIN PAGE */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--pc-blue-dark) 0%,
    var(--pc-blue) 100%
  );
  padding: 2rem 1rem;
}
.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}
.login-card-header {
  background: var(--pc-blue-dark);
  padding: 2rem;
  text-align: center;
  border-bottom: 3px solid var(--pc-gold);
}
.login-card-body {
  padding: 2rem;
}
.login-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.login-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.login-subtitle {
  font-size: 0.78rem;
  color: var(--pc-gold);
  font-weight: 600;
  margin-top: 0.2rem;
}
.login-divider {
  text-align: center;
  margin: 1rem 0;
  color: var(--gray-500);
  font-size: 0.82rem;
  position: relative;
}
.login-divider::before,
.login-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--gray-300);
}
.login-divider::before {
  left: 0;
}
.login-divider::after {
  right: 0;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--gray-500);
}
.empty-state i {
  font-size: 2.5rem;
  color: var(--gray-300);
  margin-bottom: 0.75rem;
}
.empty-state p {
  font-size: 0.9rem;
}

/* ALERT INFO BOXES */
.alert {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.alert-info {
  background: var(--pc-blue-light);
  color: var(--pc-blue);
  border: 1px solid var(--pc-blue);
}
.alert-warning {
  background: var(--pc-gold-light);
  color: var(--pc-gold-dark);
  border: 1px solid var(--pc-gold);
}
.alert-danger {
  background: var(--pc-red-light);
  color: var(--pc-red-dark);
  border: 1px solid var(--pc-red);
}
.alert-success {
  background: var(--pc-green-light);
  color: var(--pc-green);
  border: 1px solid var(--pc-green);
}

/* FORM GRID */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

/* RESPONSIVIDADE */
.ponto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.ponto-status-live {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}
.ponto-status-live p {
  color: var(--gray-600);
  font-size: 0.86rem;
  margin: 0.18rem 0;
}
.ponto-status-dot {
  background: var(--pc-green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--pc-green-light);
  height: 10px;
  width: 10px;
}
.ponto-status-dot.paused {
  background: var(--pc-gold);
  box-shadow: 0 0 0 5px var(--pc-gold-light);
}
.ponto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.ponto-total {
  color: var(--pc-blue);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.ponto-line {
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.ponto-line:last-child {
  border-bottom: 0;
}
.ponto-line strong,
.ponto-line small {
  display: block;
}
.ponto-line small {
  color: var(--gray-500);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}
.ponto-line > span {
  color: var(--pc-blue);
  font-weight: 700;
  white-space: nowrap;
}
.agenda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.agenda-request {
  border-bottom: 1px solid var(--gray-200);
  padding: 0.7rem 0;
}
.agenda-request:last-child {
  border: 0;
}
.agenda-request strong {
  display: inline-block;
}
.agenda-request .badge {
  float: right;
}
.agenda-request small {
  color: var(--gray-600);
  display: block;
  margin-top: 0.3rem;
}
@media (max-width: 720px) {
  .agenda-grid {
    grid-template-columns: 1fr;
  }
}
.training-card {
  align-items: flex-start;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 0;
}
.training-card:last-child {
  border: 0;
}
.training-card h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
}
.training-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0.4rem 0;
}
.training-card small {
  color: var(--gray-500);
}
@media (max-width: 640px) {
  .training-card {
    display: block;
  }
  .training-card > div + div {
    margin-top: 0.8rem;
  }
}
.perfil-discord-code {
  background: var(--pc-blue-dark);
  border-left: 4px solid #5865f2;
  color: #fff;
  font-family: monospace;
  font-size: 1rem;
  padding: 0.9rem 1rem;
}
.perfil-discord-code strong {
  color: var(--pc-gold);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .featured-banner-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
  .atendimento-layout {
    grid-template-columns: 1fr;
  }
  .atendimento-side {
    padding-top: 0;
  }
  .nav-inner {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .nav-menu {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-user-area {
    margin-left: auto;
  }
  .nav-services-menu {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: auto;
    width: auto;
  }
  .legacy-city-grid {
    grid-template-columns: 1fr;
  }
  .legacy-wolf-wrap {
    height: 300px;
  }
  .legacy-connect-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .header-sp-flag-box {
    margin-left: 0;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .form-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .ponto-grid {
    grid-template-columns: 1fr;
  }
  .brand-separator {
    display: none;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .featured-banner-section {
    padding: 2.25rem 0;
  }
  .featured-banner-heading h2 {
    font-size: 1.4rem;
  }
  .featured-banner-media {
    border-radius: 8px;
  }
  .atendimento-mensagem {
    max-width: 94%;
  }
  .atendimento-reply-form {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .page-section {
    padding: 2.2rem 0;
  }
  .card-body {
    padding: 1rem;
  }
  .nav-menu a {
    padding: 0.72rem 0.58rem;
    font-size: 0.74rem;
  }
  .nav-user-badge {
    max-width: none;
    width: 100%;
  }
  .nav-user-area {
    width: 100%;
  }
  .nav-services-menu {
    grid-template-columns: 1fr;
  }
  .nav-services summary {
    padding: 0.72rem 0.58rem;
    font-size: 0.74rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .legacy-city-hero {
    padding: 3.25rem 0;
  }
  .legacy-wolf-wrap {
    height: 220px;
  }
  .legacy-info-grid {
    grid-template-columns: 1fr;
  }
  .legacy-ip code {
    min-width: 0;
    width: 100%;
  }
  .legacy-ip .btn {
    width: 100%;
  }
  .legacy-city h1 {
    font-size: 3.25rem;
  }
}

.operation-entry {
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
}

.operation-entry:first-child {
  padding-top: 0;
}

.operation-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.operation-entry-head,
.operation-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.operation-entry p {
  color: var(--gray-600);
  margin: 0.45rem 0;
}

.operation-entry-footer small,
.timeline-item small {
  color: var(--gray-500);
}

.timeline-item {
  border-left: 3px solid var(--pc-gold);
  background: var(--gray-50);
  margin: 0.8rem 0;
  padding: 0.85rem 1rem;
}

.timeline-item .badge {
  margin-left: 0.45rem;
}

.timeline-item p {
  margin: 0.5rem 0;
  color: var(--gray-700);
}

.training-card-highlight {
  border-color: var(--pc-gold) !important;
  box-shadow: 0 0 0 4px rgba(181, 139, 29, 0.14);
}

.academia-hero {
  align-items: center;
  background: linear-gradient(120deg, #062650, #0b3d91 68%, #162e53);
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
  overflow: hidden;
  padding: 2.35rem 2.5rem;
  position: relative;
}

.academia-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0.8rem 0 0.45rem;
}
.academia-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.03rem;
  margin: 0;
  max-width: 650px;
}
.academia-hero-seal {
  align-items: center;
  border: 1px solid rgba(207, 171, 68, 0.65);
  color: var(--pc-gold);
  display: flex;
  flex-direction: column;
  font-size: 0.67rem;
  font-weight: 700;
  gap: 0.55rem;
  letter-spacing: 0.12em;
  padding: 1rem;
  text-align: center;
}
.academia-hero-seal i {
  font-size: 2.5rem;
}
.academia-summary {
  background: #fff;
  border: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1rem;
}
.academia-summary div {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.3rem;
}
.academia-summary div + div {
  border-left: 1px solid var(--gray-200);
}
.academia-summary strong {
  color: var(--pc-blue);
  font: 700 1.7rem var(--font-heading);
}
.academia-summary span {
  color: var(--gray-600);
  font-size: 0.78rem;
  text-transform: uppercase;
}
.academia-notice {
  align-items: center;
  background: #eef5ff;
  border-left: 4px solid var(--pc-blue);
  color: var(--pc-blue);
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
}
.academia-card-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.academia-card-header small {
  color: var(--gray-500);
  font-size: 0.78rem;
}
.academia-training-card {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 155px 1fr auto;
}
.academia-training-date {
  color: var(--pc-blue);
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 0.45rem;
}
.academia-training-date i {
  color: var(--pc-gold);
  font-size: 1.2rem;
}
.academia-training-content h3 {
  margin: 0.45rem 0;
}
.academia-training-content p {
  margin: 0 0 0.65rem;
}
.academia-training-content small {
  color: var(--gray-600);
}
.academia-training-content small i {
  color: var(--pc-gold);
  margin-left: 0.5rem;
}
.academia-training-content small i:first-child {
  margin-left: 0;
}
.academia-training-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (max-width: 720px) {
  .academia-hero {
    padding: 1.8rem;
  }
  .academia-hero-seal {
    display: none;
  }
  .academia-summary {
    grid-template-columns: 1fr;
  }
  .academia-summary div + div {
    border-left: 0;
    border-top: 1px solid var(--gray-200);
  }
  .academia-training-card {
    grid-template-columns: 1fr;
  }
  .academia-training-actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .balanco-hero {
    background-position: right -40px bottom -20px;
    background-size: 155px;
    gap: 1rem;
    grid-template-columns: 1fr;
    padding: 1.6rem;
  }
  .balanco-grid,
  .balanco-bottom {
    grid-template-columns: 1fr;
  }
  .chat-shell {
    grid-template-columns: 1fr;
    min-height: 720px;
  }
  .chat-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .chat-sidebar-title,
  .chat-sidebar-notice {
    display: none;
  }
  .chat-channel {
    flex: 1 1 210px;
  }
  .chat-room-header {
    align-items: flex-start;
    gap: 0.75rem;
  }
  .chat-live {
    text-align: right;
  }
  .message-composer-footer,
  .atendimento-admin-actions {
    align-items: flex-start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }
  .message-composer-footer {
    display: flex;
  }
  .message-composer-tools small {
    display: none;
  }
  .composer-send,
  .atendimento-close-button {
    justify-content: center;
    width: 100%;
  }
  .composer-audio-preview audio,
  .message-audio audio {
    width: min(230px, 100%);
  }
  .operation-entry-head,
  .operation-entry-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }
}
