:root {
  /* ===== DARK / INSTITUTIONAL PALETTE ===== */
  --color-bg-dark: #0D2138;
  --color-primary-dark: #14304F;
  --color-surface-dark: #1B3A5F;
  --color-border-dark: #2B4E76;
  --color-seal-dark: #8B6914;
  --color-gold: #C9A227;
  --color-gold-mid: #D9B44A;
  --color-gold-light: #E8CD7A;

  /* ===== LIGHT / PAPER PALETTE ===== */
  --color-bg-light: #FFFFFF;
  --color-surface-light: #FFFFFF;
  --color-border-light: #E5E7EB;
  --color-text-primary: #1A2230;
  --color-text-secondary: #8A93A0;
  --color-seal-licensed: #2F6B4F;
  --color-seal-licensed-text: #FFFFFF;
  --color-warning: #A63E2E;

  /* ===== SEMANTIC MAPPINGS ===== */
  --color-primary: var(--color-gold);
  --color-primary-hover: var(--color-gold-mid);
  --color-primary-light: rgba(201, 162, 39, 0.15);
  --color-accent: var(--color-gold);
  --color-accent-hover: var(--color-gold-mid);
  --color-accent-light: var(--color-gold-light);

  --color-text: var(--color-text-primary);
  --color-text-secondary: var(--color-text-secondary);
  --color-text-tertiary: var(--color-text-secondary);
  --color-text-muted: var(--color-text-secondary);

  --color-border: var(--color-border-light);
  --color-border-hover: var(--color-gold);

  --color-surface: var(--color-surface-light);
  --color-surface-alt: var(--color-bg-light);
  --color-surface-raised: #FFFFFF;

  --color-success: var(--color-seal-licensed);
  --color-success-light: #E8F5ED;
  --color-success-text: var(--color-seal-licensed);

  --color-warning: var(--color-warning);
  --color-warning-light: #FDECEA;
  --color-warning-text: var(--color-warning);

  --color-error: var(--color-warning);
  --color-error-light: var(--color-warning-light);
  --color-error-text: var(--color-warning);

  --color-info: var(--color-border-dark);
  --color-info-light: #E8EFF5;
  --color-info-text: var(--color-primary-dark);

  --white: #FFFFFF;
  --black: #1A2230;

  /* ===== TYPOGRAPHY ===== */
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Courier New", Consolas, "Liberation Mono", Menlo, monospace;

  --text-xs: 0.7rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --header-height: 72px;
  --max-width: 1360px;
  --content-padding: var(--space-6);

  --color-bg-body: var(--color-bg-light);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: #FFFFFF;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-primary-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  font-weight: var(--weight-normal);
  color: var(--color-text);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section-padding {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section-alt {
  background: var(--color-surface-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-normal);
  margin-bottom: var(--space-3);
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  max-width: 640px;
  margin-bottom: var(--space-10);
  font-family: var(--font-body);
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.accent-line {
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  margin-bottom: var(--space-5);
}

.text-center .accent-line {
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: var(--font-body);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-text-primary);
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-gold-mid);
  border-color: var(--color-gold-mid);
  color: var(--color-text-primary);
}

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

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-gold);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(201, 162, 39, 0.1);
  color: var(--color-gold);
}

.btn-accent {
  background: var(--color-gold);
  color: var(--color-text-primary);
  border-color: var(--color-gold);
}

.btn-accent:hover {
  background: var(--color-gold-mid);
  border-color: var(--color-gold-mid);
  color: var(--color-text-primary);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.card-hover {
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card-hover:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13, 33, 56, 0.08);
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  width: 100%;
  transition: border-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-tertiary);
}

label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-1);
  color: var(--color-text-secondary);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-sm);
  line-height: 1.4;
  font-family: var(--font-body);
}

.badge-licensed {
  background: var(--color-seal-licensed);
  color: var(--color-seal-licensed-text);
}

.badge-active {
  background: var(--color-success-light);
  color: var(--color-success-text);
}

.badge-pending {
  background: var(--color-warning-light);
  color: var(--color-warning-text);
}

.badge-judicial {
  background: var(--color-warning);
  color: #fff;
}

.badge-federal {
  background: var(--color-primary-dark);
  color: #fff;
}

.badge-estadual {
  background: var(--color-gold);
  color: var(--color-text-primary);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text-secondary);
  background: var(--color-bg-light);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag:hover,
.tag.active {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--color-primary-light);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  justify-content: center;
}

.search-bar {
  position: relative;
  max-width: 400px;
}

.search-bar input {
  padding-left: var(--space-10);
}

.search-bar::before {
  content: "";
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--color-text-tertiary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/contain no-repeat;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-6);
}

.filters-bar .search-bar {
  flex: 1;
  min-width: 240px;
}

/* ============ HEADER - LIGHT ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.header-logo-img {
  height: 44px;
  width: auto;
}

.header-logo span {
  display: none;
}

.header-center {
  display: none;
  flex: 1;
  justify-content: center;
  padding: 0 var(--space-4);
}

.header-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-2);
  height: var(--header-height);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  font-family: var(--font-heading);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease;
}

.header-nav-link:hover,
.header-nav-link.active {
  color: var(--color-gold);
}

.header-search {
  position: relative;
  width: 480px;
}

.header-search .search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.header-search .search-input {
  width: 100%;
  height: 40px;
  padding: 0 var(--space-3) 0 var(--space-10);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  background: var(--color-bg-light);
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.header-search .search-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

.header-search .search-input::placeholder {
  color: var(--color-text-tertiary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.header-right .btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.header-social {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  transition: all 0.15s ease;
}

.social-link:hover {
  background: var(--color-bg-light);
  color: var(--color-gold);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.mega-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--color-text);
}

.mega-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mega-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
}

.mega-menu-overlay.open {
  display: block;
}

.mega-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  background: #2B4E76;
  z-index: 101;
  padding: var(--space-6);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}

.mega-menu-panel.open {
  transform: translateX(0);
}

.mega-menu-panel .menu-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-6);
}

.mega-menu-panel .menu-close button {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: #fff;
}

.mega-menu-panel nav a {
  display: block;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--color-border-dark);
  text-decoration: none;
}

.mega-menu-panel nav a:hover {
  color: var(--color-gold);
}

.mega-menu-panel .header-actions-mobile {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.mobile-social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-dark);
  margin-top: var(--space-6);
}

/* ============ HERO - LIGHT ============ */
.hero {
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  background: #FFFFFF;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

/* ============ SECTION BANNER - DARK ============ */
.section-hero {
  text-align: center;
  padding: var(--space-12) 0;
  position: relative;
  background: var(--color-bg-dark);
}

.section-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

.section-hero h1 {
  color: #fff;
}

.section-hero p {
  color: rgba(255, 255, 255, 0.85);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb:empty {
  display: none;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "/";
  color: rgba(255, 255, 255, 0.5);
  font-weight: var(--weight-normal);
  user-select: none;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb-link:hover {
  color: var(--color-gold-light);
  text-decoration: underline;
}

.breadcrumb-item-current .breadcrumb-link,
.breadcrumb-item[aria-current="page"] .breadcrumb-link {
  color: var(--color-gold);
  font-weight: var(--weight-semibold);
  cursor: default;
  pointer-events: none;
}

.breadcrumb-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Light variant for auth pages */
.breadcrumb.breadcrumb-light {
  color: var(--color-text-secondary);
  justify-content: center;
  padding-top: var(--space-8);
}

.breadcrumb.breadcrumb-light .breadcrumb-link {
  color: var(--color-text-secondary);
}

.breadcrumb.breadcrumb-light .breadcrumb-link:hover {
  color: var(--color-primary);
}

.breadcrumb.breadcrumb-light .breadcrumb-item+.breadcrumb-item::before {
  color: var(--color-border);
}

.breadcrumb.breadcrumb-light .breadcrumb-item-current .breadcrumb-link,
.breadcrumb.breadcrumb-light .breadcrumb-item[aria-current="page"] .breadcrumb-link {
  color: var(--color-primary);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.hero-content h1 {
  font-size: var(--text-5xl);
}

.hero-content p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.hero-search-wrapper {
  width: 100%;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-quick-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  width: 100%;
}

.hero-quick-cards .quick-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
}

.hero-quick-cards .quick-card-icon {
  background: var(--color-primary-dark);
}

/* ============ STATS BAR ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: var(--space-10) 0;
}

.stat-card {
  text-align: center;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.stat-card-value {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-card-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ============ HOME SECTIONS ============ */
.home-section {
  padding: var(--space-16) 0;
}

.home-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.home-about-text h2 {
  margin-bottom: var(--space-4);
}

.home-about-text p {
  color: var(--color-text-secondary);
}

.home-quick-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.quick-card {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.15s ease;
  display: block;
}

.quick-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13, 33, 56, 0.08);
}

.quick-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  color: var(--color-gold);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  font-family: var(--font-heading);
}

.quick-card h4 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-1);
}

.quick-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ============ CATALOG SECTION ============ */
.catalog-header {
  margin-bottom: var(--space-8);
}

.catalog-header .section-title {
  margin-bottom: var(--space-2);
}

.catalog-header .last-updated {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-top: var(--space-2);
}

.catalog-disclaimer {
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-light);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

/* ============ OPERATOR CARD (REDESIGNED - exemplo_cards.png) ============ */
.operator-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.operator-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 8px 24px rgba(13, 33, 56, 0.12);
  transform: translateY(-2px);
}

.operator-card-header {
  padding: var(--space-5) var(--space-6);
  text-align: center;
}

.operator-brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}

.operator-card-body {
  padding: var(--space-5) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.operator-card-body .badge-licensed {
  align-self: flex-start;
}

.operator-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin: 0;
  color: var(--color-text-primary);
}

.operator-url {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.operator-url code {
  font-size: var(--text-sm);
  background: transparent;
  padding: 0;
  color: var(--color-text-tertiary);
}

.card-divider {
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: 0;
}

.operator-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
}

.operator-meta dt {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  margin-bottom: var(--space-1);
}

.operator-meta dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

.operator-meta dd code {
  background: transparent;
  padding: 0;
  font-size: var(--text-sm);
  color: inherit;
}

.operator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.tag-cat {
  background: var(--color-bg-light);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-light);
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-body);
  display: inline-flex;
}

.operator-card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
}

.btn-details {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color 0.15s ease;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.btn-details:hover {
  color: var(--color-gold);
}

.btn-details svg {
  flex-shrink: 0;
}

/* ============ IMPOSTOMETRO ============ */
.impostometro-hero {
  text-align: center;
  padding: var(--space-12) 0;
  position: relative;
  background: var(--color-bg-dark);
}

.impostometro-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

.impostometro-hero h1 {
  color: #fff;
}

.impostometro-hero p {
  color: rgba(255, 255, 255, 0.85);
}

.counter-display {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-dark);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin: var(--space-6) 0 var(--space-3);
  line-height: 1;
}

.counter-label {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.counter-period {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.impostometro-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  padding: var(--space-12) 0;
}

.impostometro-breakdown h3 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-5);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.breakdown-value {
  font-weight: var(--weight-semibold);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.impostometro-methodology {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  background: var(--color-bg-light);
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.impostometro-methodology h4 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

/* ============ PROJECTS ============ */
.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.project-image {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: var(--text-sm);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card h4 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
}

.project-card .badge {
  align-self: flex-start;
}

.project-summary {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  flex: 1;
}

.project-entity {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border-light);
}

/* ============ SUPPORTERS PAGE ============ */
.supporter-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.level-card {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  background: var(--color-surface);
}

.level-card.featured {
  border-color: var(--color-gold);
  position: relative;
}

.level-card.featured::before {
  content: "Destaque";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-text-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 2px var(--space-3);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.level-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}

.level-price {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  margin-bottom: var(--space-4);
}

.level-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-6);
}

.level-features li {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
}

.level-features li::before {
  content: "✓ ";
  color: var(--color-seal-licensed);
  font-weight: var(--weight-bold);
}

/* ============ RECLAME BET ============ */
.complaint-form {
  max-width: 720px;
  margin: 0 auto;
}

.complaint-form .form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-5);
}

.complaint-success {
  display: none;
  text-align: center;
  padding: var(--space-12);
}

.complaint-success.show {
  display: block;
}

.complaint-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success-light);
  color: var(--color-seal-licensed);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: var(--text-3xl);
}

/* ============ TRANSPARENCIA ============ */
.transparency-section {
  padding: var(--space-16) 0;
}

.transparency-about {
  max-width: 720px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.transparency-about h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-normal);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.transparency-about p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.transparency-about p:last-child {
  margin-bottom: 0;
}

.transparency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.transparency-item {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.transparency-item h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.transparency-item p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.transparency-item ul {
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
  padding: var(--space-4) 0;
  font-weight: var(--weight-medium);
  font-family: var(--font-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-question::after {
  content: "+";
  font-size: var(--text-xl);
  color: var(--color-text-tertiary);
  font-family: var(--font-body);
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============ AUTH PAGES ============ */
.auth-page {
  max-width: 440px;
  margin: var(--space-16) auto;
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.auth-page h2 {
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: var(--space-2);
}

.auth-page .section-subtitle {
  text-align: center;
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}

.auth-divider {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin: var(--space-6) 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--color-border);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-links {
  text-align: center;
  font-size: var(--text-sm);
  margin-top: var(--space-6);
}

.auth-links a {
  color: var(--color-gold);
}

/* ============ FOOTER - DARK ============ */
.footer {
  border-top: 1px solid var(--color-border-dark);
  background: #251ed6;
  padding-top: var(--space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border-dark);
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gold);
}

.footer-col a {
  display: block;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) 0;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

.footer-disclaimer {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  background: var(--color-surface-dark);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  margin: var(--space-4) 0;
  text-align: center;
  line-height: var(--leading-relaxed);
  border: 1px solid var(--color-border-dark);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
  transition: all 0.15s ease;
}

.footer-social a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-dark);
  color: #fff;
  border-top: 1px solid var(--color-border-dark);
  padding: var(--space-4) var(--space-6);
  z-index: 200;
  display: none;
  font-size: var(--text-sm);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.cookie-banner.show {
  display: block;
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.cookie-inner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.cookie-inner .btn {
  flex-shrink: 0;
}

.cookie-link {
  color: var(--color-gold);
  text-decoration: underline;
}

.cookie-link:hover {
  color: var(--color-gold-mid);
}

/* ============ SECTION VISIBILITY ============ */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-8);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--text-2xl);
  cursor: pointer;
  color: var(--color-text-tertiary);
  padding: var(--space-1);
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-gold);
}

.modal-body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.modal-body dt {
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-body dd {
  margin-left: 0;
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
}

.modal-body dd code {
  background: transparent;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* ============ PARTNER GRID ============ */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  align-items: center;
  padding: var(--space-8) 0;
}

.partner-item {
  width: 140px;
  height: 60px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  background: var(--color-surface);
  padding: var(--space-3);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid .footer-brand {
    grid-column: 1 / -1;
  }

  .supporter-levels {
    grid-template-columns: 1fr;
  }

  .impostometro-details {
    grid-template-columns: 1fr;
  }

  .grid-auto {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) {
  .header-center {
    display: flex;
  }

  .header-right {
    display: flex;
  }

  .header-social {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --content-padding: var(--space-4);
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .header-nav {
    display: none;
  }

  .header-search {
    display: none;
  }

  .header-center {
    display: none;
  }

  .header-social {
    display: none;
  }

  .header-right .btn {
    display: none;
  }

  .mega-menu-toggle {
    display: block;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .stat-card-value {
    font-size: var(--text-3xl);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-content h1 {
    font-size: var(--text-4xl);
  }

  .hero-visual {
    order: -1;
  }

  .hero-quick-cards {
    max-width: 360px;
    margin: 0 auto;
  }

  .home-about {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .home-quick-cards {
    grid-template-columns: 1fr;
  }

  .grid-auto {
    grid-template-columns: 1fr;
  }

  .transparency-grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .counter-display {
    font-size: var(--text-4xl);
    word-break: break-all;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .modal-content {
    margin: var(--space-4);
    padding: var(--space-5);
  }

  .filters-bar {
    flex-direction: column;
  }

  .filters-bar .search-bar {
    width: 100%;
  }

  .auth-page {
    margin: var(--space-8) var(--space-4);
    padding: var(--space-6);
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-quick-cards {
    grid-template-columns: 1fr 1fr;
  }

  .counter-display {
    font-size: var(--text-3xl);
  }

  .grid-auto {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    font-size: var(--text-xs);
    gap: var(--space-1);
  }

  .breadcrumb-item+.breadcrumb-item::before {
    margin: 0 var(--space-1);
  }
}

@media print {

  .header,
  .footer,
  .cookie-banner,
  .mega-menu-overlay,
  .mega-menu-panel {
    display: none !important;
  }

  .page-section {
    display: block !important;
  }
}