/* ==========================================================================
   SPR - SOCIEDADE PARANAENSE DE REUMATOLOGIA
   Design System de Alto Padrão Visual (Senior UX/UI & Web Designer)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --spr-navy-deep: #03242D;
  --spr-navy-dark: #063B49;
  --spr-navy-main: #063B49;
  --spr-navy-bright: #0C4F60;
  
  --spr-teal-dark: #03242D;
  --spr-teal-main: #063B49;
  --spr-teal-bright: #0C4F60;
  --spr-cyan-glow: #C65C28;
  
  --spr-gold-main: #C65C28;
  --spr-gold-glow: #C65C28;

  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-elevated: #FAF7F2;

  --text-title: #063B49;
  --text-body: #2C2C2C;
  --text-muted: #6B7280;
  --text-white: #ffffff;

  --font-display: 'Poppins', sans-serif;
  --font-text: 'Open Sans', sans-serif;

  --radius-xs: 4px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(6, 59, 73, 0.05);
  --shadow-md: 0 8px 24px rgba(6, 59, 73, 0.08);
  --shadow-lg: 0 16px 40px rgba(6, 59, 73, 0.12);
  --shadow-glow: 0 0 25px rgba(198, 92, 40, 0.25);

  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-text);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-title);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TOP BAR INSTITUCIONAL DE LUXO
   ========================================================================== */
.top-bar-luxury {
  background: linear-gradient(90deg, #02181E 0%, #001933 50%, #03242D 100%);
  color: #94a3b8;
  font-size: 0.80rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-bar-luxury .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}
.top-bar-contacts a:hover {
  color: var(--spr-cyan-glow);
}
.top-bar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-badge-portal {
  background: rgba(13, 148, 136, 0.2);
  color: #5eead4;
  border: 1px solid rgba(13, 148, 136, 0.4);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   HEADER PRINCIPAL & LOGO OFICIAL COM DESTAQUE MÁXIMO
   ========================================================================== */
.main-header-luxury {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 26, 53, 0.06);
}
.main-header-luxury .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
}
.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 28px;
}
.brand-link img.official-logo {
  height: 76px !important;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.brand-link:hover img.official-logo {
  transform: scale(1.03);
}

.nav-links-luxury {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  flex-wrap: nowrap;
}
.nav-links-luxury li {
  white-space: nowrap;
}
.nav-links-luxury a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #063B49;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links-luxury a:hover, .nav-links-luxury a.active {
  color: #C65C28;
}
.nav-links-luxury a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #C65C28;
  border-radius: 2px;
}

/* ==========================================================================
   SUPER MENU EXECUTIVO (MEGA MENU 3 COLUNAS) - A SPR
   ========================================================================== */
.has-dropdown {
  position: relative;
}
.dropdown-menu-luxury {
  position: absolute;
  top: 100%;
  left: -40px;
  width: 1010px;
  max-width: 96vw;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 25px 60px -12px rgba(0, 20, 50, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 22px 24px;
  display: grid !important;
  grid-template-columns: 295px 335px 310px;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}
/* Ponte de hover invisível para não fechar o menu ao mover o mouse */
.dropdown-menu-luxury::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  width: 100%;
  height: 18px;
  background: transparent;
}
.has-dropdown:hover .dropdown-menu-luxury {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(6px);
}

.dropdown-col-divider {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.dropdown-header-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--spr-teal-main);
  padding: 4px 8px 8px;
  border-bottom: 1.5px solid #f1f5f9;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dropdown-link-item {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px !important;
  border-radius: 12px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.dropdown-link-item:hover {
  background: #f8fafc;
  transform: translateX(4px);
}
.dropdown-link-item::after {
  display: none !important;
}

.dropdown-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(6, 59, 73, 0.05);
  color: var(--spr-navy-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.dropdown-link-item:hover .dropdown-link-icon {
  background: var(--spr-navy-main);
  color: #ffffff !important;
}

.dropdown-link-item > div:last-child {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--spr-navy-deep);
  line-height: 1.3;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}
.dropdown-link-item:hover .dropdown-item-title {
  color: var(--spr-teal-main);
}
.dropdown-item-desc {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Card Executivo de Filiação no Super Menu */
.dropdown-promo-card {
  background: linear-gradient(145deg, #063B49 0%, #03242D 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 20px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(6, 59, 73, 0.3);
  min-width: 0;
  box-sizing: border-box;
}
.dropdown-promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #2dd4bf;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
}
.dropdown-promo-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #cbd5e1;
  margin-bottom: 7px;
  line-height: 1.3;
}
.dropdown-promo-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.2);
  color: #2dd4bf;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Dropdown Simples (ex: Menu Conteúdos) */
.dropdown-menu-simple {
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 16px 36px -6px rgba(0, 20, 50, 0.16);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}
.dropdown-menu-simple::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 16px;
  background: transparent;
}
.has-dropdown:hover .dropdown-menu-simple {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(4px);
}
.dropdown-link-simple {
  display: flex !important;
  flex-direction: column !important;
  padding: 8px 12px !important;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.18s ease, transform 0.15s ease;
}
.dropdown-link-simple:hover {
  background: #f8fafc;
  transform: translateX(3px);
}
.dropdown-link-simple::after {
  display: none !important;
}
.dropdown-link-simple strong {
  font-size: 0.88rem;
  color: var(--spr-navy-deep, #063B49);
  font-weight: 700;
  line-height: 1.3;
}
.dropdown-link-simple span {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
  font-weight: 500;
}
.dropdown-link-simple:hover strong {
  color: var(--spr-teal-main, #0d9488);
}

/* ==========================================================================
   HEADER ACTIONS & BOTÕES SOFISTICADOS
   ========================================================================== */
.header-action-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botão de Busca Redondo / Minimalista */
.btn-search-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--spr-navy-main);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-search-icon:hover {
  background: #e0f2fe;
  color: var(--spr-navy-bright);
  border-color: #bae6fd;
  transform: scale(1.05);
}

/* Botão Área do Associado / Login */
.btn-associado-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--spr-navy-main);
  border: 1.5px solid #cbd5e1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}
.btn-associado-login:hover {
  background: #f0fdfa;
  color: var(--spr-teal-main);
  border-color: var(--spr-teal-main);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

/* Botão Pílula Elegante Associe-se à SPR */
.btn-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--spr-navy-main) 0%, var(--spr-teal-main) 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 51, 102, 0.18);
  letter-spacing: 0.2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-cta-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
  color: #ffffff;
}

/* Botão Login Médico Discreto e Elegante */
.btn-login-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--spr-navy-main);
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-login-outline:hover {
  border-color: var(--spr-navy-main);
  background: rgba(0, 51, 102, 0.04);
}
.btn-luxury-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}
.btn-luxury-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
  color: #fff;
}
.btn-luxury-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}
.btn-luxury-glass:hover {
  background: #ffffff;
  color: var(--spr-navy-deep);
}

/* ==========================================================================
   HERO SECTION DE ALTO IMPACTO (FOTO REAL + GLASSMORPHISM + LOGO WATERMARK)
   ========================================================================== */
:root {
  --spr-header-total: 110px;
}

.hero-epic-spr {
  position: relative;
  min-height: calc(100vh - var(--spr-header-total, 110px));
  min-height: calc(100dvh - var(--spr-header-total, 110px));
  background-image: 
    linear-gradient(90deg, rgba(0, 15, 33, 0.96) 0%, rgba(0, 28, 59, 0.88) 45%, rgba(0, 48, 97, 0.55) 100%),
    url('../images/Desde-1971-Fortalecendo-a-Reumatologia-no-Parana.webp');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .hero-epic-spr {
    height: calc(100vh - var(--spr-header-total, 110px));
    height: calc(100dvh - var(--spr-header-total, 110px));
    max-height: calc(100vh - var(--spr-header-total, 110px));
    max-height: calc(100dvh - var(--spr-header-total, 110px));
  }
}

.hero-epic-spr::before {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-biomedical-canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
.hero-ambient-glow {
  position: absolute !important;
  border-radius: 50% !important;
  filter: blur(80px) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
.hero-ambient-glow.glow-1 {
  width: 450px !important;
  height: 450px !important;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, transparent 70%) !important;
  top: -100px !important;
  left: -100px !important;
}
.hero-ambient-glow.glow-2 {
  width: 500px !important;
  height: 500px !important;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.18) 0%, transparent 70%) !important;
  bottom: -150px !important;
  right: 10% !important;
}
.hero-epic-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(20px, 3.2vw, 42px);
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-epic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 148, 136, 0.25);
  border: 1px solid var(--spr-teal-bright);
  color: #5eead4;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: clamp(6px, 1.2vh, 12px);
}
.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.hero-epic-title {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: clamp(8px, 1.3vh, 14px);
  letter-spacing: -0.5px;
}
.hero-epic-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-epic-desc {
  font-size: clamp(0.86rem, 1vw, 1rem);
  color: #cbd5e1;
  margin-bottom: clamp(10px, 1.8vh, 18px);
  max-width: 580px;
  line-height: 1.5;
}
.hero-epic-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(12px, 2vh, 20px);
}
.hero-cta-btn {
  padding: 9px 20px !important;
  font-size: 0.88rem !important;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35) !important;
}
.hero-history-btn {
  padding: 8px 18px !important;
  font-size: 0.86rem !important;
  border-radius: var(--radius-pill) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.hero-epic-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: clamp(8px, 1.3vh, 14px);
}
.epic-stat-box h3 {
  font-size: clamp(1.4rem, 1.9vw, 1.85rem);
  color: #38bdf8;
  font-weight: 800;
  line-height: 1;
}
.epic-stat-box p {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 3px;
}

.hero-search-glass {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  border-radius: 18px;
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 20px 48px rgba(0, 15, 33, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--text-title);
}
.hero-search-glass h3 {
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  color: var(--spr-navy-deep);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-search-glass p {
  font-size: 0.80rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.3;
}
.hero-search-glass .form-field {
  margin-bottom: 8px;
}
.hero-search-glass .form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--spr-navy-main);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}
.hero-search-glass .input-control {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.84rem;
  box-sizing: border-box;
}
.hero-checkbox-field {
  margin-bottom: 10px !important;
}
.hero-checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.76rem !important;
  color: #059669 !important;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.32);
  padding: 6px 10px;
  border-radius: 8px;
}
.hero-search-glass .btn-search-submit {
  width: 100%;
  height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--spr-navy-main) 0%, #165A6E 100%);
  color: #ffffff;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.btn-search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 51, 102, 0.35);
  background: linear-gradient(135deg, #03242D 0%, var(--spr-navy-main) 100%);
}
.input-control {
  width: 100%;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: var(--font-text);
  color: var(--text-title);
  transition: var(--transition-fast);
}
.input-control:focus {
  outline: none;
  border-color: var(--spr-navy-bright);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(2, 83, 153, 0.12);
}

/* ==========================================================================
   SEÇÕES DA PÁGINA COM CARDS DE DESIGN PROFISSIONAL
   ========================================================================== */
.section-luxury {
  padding: 95px 0;
}
.section-headline {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 65px;
}
.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--spr-teal-main);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-headline h2 {
  font-size: 2.6rem;
  color: var(--spr-navy-deep);
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}
.section-headline p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Grid de Doenças com Imagens Médicas */
.disease-grid-luxury {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}
.disease-card-luxury {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.disease-card-luxury:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.disease-card-thumb {
  height: 200px;
  background: #063B49;
  position: relative;
  overflow: hidden;
}
.disease-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.disease-card-luxury:hover .disease-card-thumb img {
  transform: scale(1.08);
}
.disease-card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.disease-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--spr-teal-main);
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}
.disease-card-content h3 {
  font-size: 1.45rem;
  color: var(--spr-navy-deep);
  margin-bottom: 12px;
}
.disease-card-content p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Médicos com Fotos Reais e Selo RQE */
.doctor-grid-luxury {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.doctor-card-luxury {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 22px 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition-smooth);
  position: relative;
}
.doctor-card-luxury:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  border-color: #94a3b8;
}
.doctor-photo-frame {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #bae6fd;
  flex-shrink: 0;
  background: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.12);
}
.doctor-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doctor-info-wrap h4 {
  font-size: 1.15rem;
  color: var(--spr-navy-deep);
  margin-bottom: 4px;
  line-height: 1.25;
}
.doctor-tags-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.badge-rqe-green {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Eventos com Imagens Reais e Calendário */
.event-grid-luxury {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
}
.event-card-luxury {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.event-card-luxury:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.event-thumb-wrap {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #02181E;
}
.event-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-chip-date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--spr-navy-deep);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   BARRA DE PATROCINADORES PREMIUM (LOGOS GRANDES COM CARDS DE ELEVAÇÃO)
   ========================================================================== */
.sponsors-shelf {
  background: #ffffff;
  padding: 80px 0;
  border-top: 1px solid #e2e8f0;
}
.sponsors-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  align-items: center;
}
.sponsor-card-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sponsor-card-item:hover {
  background: #ffffff;
  border-color: #38bdf8;
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 51, 102, 0.1);
}
.sponsor-card-item img {
  max-height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}
.sponsor-card-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

/* ==========================================================================
   WIDGET INTERATIVO DE TRIAGEM RÁPIDA DE SINTOMAS & RESULTADO DINÂMICO
   ========================================================================== */
.triage-box {
  background: linear-gradient(135deg, #02181E 0%, #03242D 100%);
  border-radius: var(--radius-lg);
  padding: 45px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 18, 38, 0.25);
  margin-top: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}
.triage-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 35px;
}
.triage-header h3 {
  color: #fff;
  font-size: 1.85rem;
  margin-bottom: 10px;
}
.triage-header p {
  color: #94a3b8;
  font-size: 1rem;
}
.symptoms-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.symptom-toggle-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
  min-width: 0;
  box-sizing: border-box;
}
.symptom-toggle-card:hover, .symptom-toggle-card.selected {
  background: rgba(13, 148, 136, 0.25);
  border-color: var(--spr-teal-bright);
  transform: translateY(-2px);
}
.symptom-toggle-card .icon-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #cbd5e1;
  flex-shrink: 0;
  transition: all 0.2s ease;
  overflow: hidden;
}
.symptom-toggle-card .icon-check .check-icon {
  display: none;
  width: 14px;
  height: 14px;
  stroke: #ffffff;
}
.symptom-toggle-card .icon-check .plus-icon {
  display: inline-block;
  line-height: 1;
}
.symptom-toggle-card.selected .icon-check {
  background: var(--spr-teal-main);
  border-color: var(--spr-teal-bright);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.45);
}
.symptom-toggle-card.selected .icon-check .check-icon {
  display: block;
}
.symptom-toggle-card.selected .icon-check .plus-icon {
  display: none;
}
.symptom-toggle-card > div:last-child {
  min-width: 0;
  flex: 1;
}
.symptom-toggle-card h4 {
  color: #fff;
  font-size: 0.96rem;
  margin: 0 0 4px;
  font-weight: 700;
  line-height: 1.3;
}
.symptom-toggle-card span {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
  display: block;
}

/* Card de Resultado da Triagem */
.triage-result-card {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-sizing: border-box;
}
.triage-content-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 280px;
}
.triage-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}
.triage-text-wrap {
  flex: 1;
  min-width: 0;
}
.triage-text-wrap h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 4px;
  font-weight: 700;
  line-height: 1.35;
}
.triage-text-wrap p {
  color: #cbd5e1;
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}
.triage-btn-action {
  padding: 13px 26px;
  white-space: nowrap;
}

/* Responsividade Mobile da Triagem */
@media (max-width: 768px) {
  .triage-box {
    padding: 22px 14px !important;
    margin-top: 30px !important;
    border-radius: var(--radius-md) !important;
  }
  .triage-header {
    margin-bottom: 22px !important;
  }
  .triage-header h3 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }
  .triage-header p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }
  .symptoms-selector-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }
  .symptom-toggle-card {
    padding: 14px 14px !important;
  }
  .triage-result-card {
    padding: 18px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    border-radius: 14px !important;
  }
  .triage-content-wrap {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .triage-icon-badge {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 2px !important;
  }
  .triage-text-wrap h4 {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }
  .triage-text-wrap p {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
  }
  .triage-btn-action {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
}

/* ==========================================================================
   VITRINE EDITORIAL DA REVISTA REUMATIVA NA HOMEPAGE
   ========================================================================== */
.magazine-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
}
.magazine-cover-3d {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 18, 38, 0.25);
  border: 4px solid #fff;
  transition: transform 0.4s ease;
}
.magazine-cover-3d:hover {
  transform: translateY(-6px) rotate(-1deg);
}
.magazine-cover-3d img {
  width: 100%;
  height: auto;
  display: block;
}
.magazine-showcase-content {
  min-width: 0;
}
.magazine-title {
  font-size: 2.3rem;
  color: var(--spr-navy-deep);
  margin-bottom: 16px;
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.25;
}
.magazine-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.magazine-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.magazine-btn-primary {
  padding: 13px 26px;
}
.magazine-btn-secondary {
  padding: 13px 26px;
}

/* Responsividade Mobile da Revista */
@media (max-width: 900px) {
  .magazine-showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 30px 20px !important;
    text-align: center !important;
    border-radius: var(--radius-md) !important;
  }
  .magazine-cover-3d {
    max-width: 220px !important;
    margin: 0 auto 10px !important;
  }
  .magazine-title {
    font-size: 1.55rem !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }
  .magazine-desc {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
  }
  .magazine-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .magazine-btn-primary,
  .magazine-btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .magazine-showcase-grid {
    padding: 22px 14px !important;
    gap: 20px !important;
  }
  .magazine-cover-3d {
    max-width: 180px !important;
  }
  .magazine-title {
    font-size: 1.35rem !important;
  }
  .magazine-desc {
    font-size: 0.88rem !important;
  }
}

/* Botões Largos Responsivos na Home */
@media (max-width: 600px) {
  .btn-wide-responsive {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 16px !important;
    font-size: 0.90rem !important;
    box-sizing: border-box !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: normal !important;
  }
}

/* ==========================================================================
   BOTÃO FLUTUANTE DE ATENDIMENTO DIRETO VIA WHATSAPP
   ========================================================================== */
.floating-whatsapp-spr {
  display: none !important;
}
.floating-whatsapp-spr:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}
/* ==========================================================================
   RODAPÉ DE LUXO (FUNDO AZUL MARINHO PROFUNDO COM MÁXIMO CONTRASTE)
   ========================================================================== */
.footer-luxury {
  background: #02181E !important;
  color: #cbd5e1 !important;
  padding: 85px 0 35px;
  border-top: 4px solid var(--spr-teal-main);
  position: relative;
  z-index: 10;
}

.footer-luxury-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h4 {
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.3px;
}
.footer-links-styled {
  list-style: none;
}
.footer-links-styled li {
  margin-bottom: 12px;
}
.footer-links-styled a:hover {
  color: #38bdf8;
  padding-left: 6px;
}

/* ==========================================================================
   RODAPÉ INFERIOR: TERMOS, PRIVACIDADE E BADGE INTERATIVO FÁBRICA DA NET
   ========================================================================== */
.footer-luxury-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy-text {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.6;
}
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.82rem;
}
.footer-legal-links a {
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}
.footer-legal-links a:hover {
  color: #38bdf8;
}

/* BADGE INTERATIVO: AO PASSAR O MOUSE GIRA E REVELA "Grupo Fábrica da Net" */
.dev-credit-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dev-credit-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  font-weight: 700;
}
.fn-interactive-badge {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.fn-interactive-badge:hover {
  background: rgba(2, 132, 199, 0.15);
  border-color: #38bdf8;
  padding: 6px 18px 6px 10px;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}
.fn-logo-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fn-interactive-badge:hover .fn-logo-spinner {
  transform: rotate(360deg);
}
.fn-badge-text-expand {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  color: #ffffff;
  letter-spacing: 0.3px;
  overflow: hidden;
  transition: max-width 0.45s ease, opacity 0.3s ease;
}
.fn-interactive-badge:hover .fn-badge-text-expand {
  max-width: 200px;
  opacity: 1;
}

@media (max-width: 992px) {
  .hero-epic-spr {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    padding: 35px 0 50px !important;
  }
  .hero-epic-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-luxury-grid { grid-template-columns: 1fr 1fr; }
  .nav-links-luxury { display: none; }
  .footer-luxury-bottom-bar { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
  .dev-credit-container { justify-content: center; }
}

/* ==========================================================================
   Ícones Vetoriais Minimalistas Personalizados SPR
   ========================================================================== */
.spr-min-svg {
  display: inline-block !important;
  width: 1.15em !important;
  height: 1.15em !important;
  max-width: 1.6em !important;
  max-height: 1.6em !important;
  vertical-align: -0.18em !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  flex-shrink: 0 !important;
  transition: transform 0.18s ease, stroke 0.18s ease;
}
svg.spr-min-svg path,
svg.spr-min-svg circle:not([fill="currentColor"]),
svg.spr-min-svg rect,
svg.spr-min-svg polygon,
svg.spr-min-svg line,
svg.spr-min-svg polyline {
  fill: none !important;
}
.spr-live-dot {
  color: #ef4444;
  animation: sprPulseRed 1.5s infinite;
}
@keyframes sprPulseRed {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   RESPONSIVIDADE MASTER: CELULAR & TABLET (SITE PÚBLICO E SISTEMA/ERP SPR)
   Auditoria 360: Breakpoints para Mobile (320px-480px), Large Mobile (481px-768px)
   e Tablets (769px-1080px).
   ========================================================================== */

/* 1. Global Box-sizing e Prevenção de Overflow */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 1080px) {
  .nav-links-luxury {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

@media (min-width: 1081px) {
  .mobile-menu-toggle,
  .mobile-drawer-overlay,
  .mobile-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* 2. Ajustes de Container e Header */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .top-bar-luxury {
    padding: 6px 0 !important;
  }
  .top-bar-luxury .container {
    justify-content: center !important;
  }
  .top-bar-meta {
    display: none !important;
  }
  .top-bar-contacts {
    gap: 12px !important;
    font-size: 0.74rem !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .main-header-luxury .container {
    height: 72px !important;
  }
  .brand-link img.official-logo {
    height: 42px !important;
  }
  .brand-link {
    margin-right: 10px !important;
  }
  .header-action-btns {
    gap: 8px !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .top-bar-luxury {
    display: none !important;
  }
  .main-header-luxury .container {
    height: 66px !important;
    padding: 0 10px !important;
  }
  .brand-link img.official-logo {
    height: 38px !important;
  }
  .brand-link {
    margin-right: 6px !important;
  }
  .btn-associado-login {
    padding: 6px 9px !important;
    font-size: 0.74rem !important;
    gap: 4px !important;
  }
  .btn-associado-login span {
    font-size: 0.72rem !important;
  }
  .mobile-menu-toggle {
    width: 38px !important;
    height: 38px !important;
    padding: 6px !important;
  }
}

/* 3. Tipografia Fluida Responsiva */
@media (max-width: 992px) {
  h1, .hero-title, .section-title-large {
    font-size: 2.1rem !important;
    line-height: 1.2 !important;
  }
  h2 {
    font-size: 1.65rem !important;
  }
  h3 {
    font-size: 1.35rem !important;
  }
}

@media (max-width: 600px) {
  h1, .hero-title, .section-title-large {
    font-size: 1.7rem !important;
    line-height: 1.25 !important;
  }
  h2 {
    font-size: 1.4rem !important;
  }
  h3 {
    font-size: 1.15rem !important;
  }
  p, .hero-lead {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }
}

/* 4. Colapso Automático de Grids de Páginas Públicas & Sistema */
@media (max-width: 992px) {
  /* Grids de 2 a 4 colunas viram 1 coluna ou 2 colunas no tablet */
  [style*="grid-template-columns: 1.2fr 0.8fr"],
  [style*="grid-template-columns: 1.25fr 0.85fr"],
  [style*="grid-template-columns: 1.3fr 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1.6fr 1fr"],
  [style*="grid-template-columns: 1fr 430px"],
  [style*="grid-template-columns: 1fr 390px"],
  [style*="grid-template-columns: 1fr 370px"],
  [style*="grid-template-columns: 1fr 340px"],
  [style*="grid-template-columns: 1fr 280px"],
  [style*="grid-template-columns: 320px 1fr"],
  [style*="grid-template-columns: 340px 1fr"],
  [style*="grid-template-columns: 280px 1fr"],
  [style*="grid-template-columns: 150px 1fr"],
  [style*="grid-template-columns: 1.15fr 0.95fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Barras de Filtros no Tablet */
  form[style*="grid-template-columns"],
  div[style*="grid-template-columns: 2fr 1.2fr 1.1fr 0.9fr auto"],
  div[style*="grid-template-columns: 2fr 1.2fr auto"],
  div[style*="grid-template-columns: 2fr 1.3fr auto"],
  div[style*="grid-template-columns: 1.8fr 1.2fr 1fr 1fr auto"],
  div[style*="grid-template-columns: 1.4fr 1.1fr 1fr auto"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  /* Cartões com padding excessivo */
  div[style*="padding: 60px"],
  div[style*="padding: 45px"],
  div[style*="padding: 50px"] {
    padding: 24px 20px !important;
  }

  /* Reset de ordem para cartões alternados */
  div[style*="grid-template-columns: 1fr 340px"] > div {
    order: initial !important;
  }
}

@media (max-width: 600px) {
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Filtros em 1 coluna no mobile */
  form[style*="grid-template-columns"],
  div[style*="grid-template-columns: 2fr 1.2fr 1.1fr 0.9fr auto"],
  div[style*="grid-template-columns: 2fr 1.2fr auto"],
  div[style*="grid-template-columns: 2fr 1.3fr auto"],
  div[style*="grid-template-columns: 1.8fr 1.2fr 1fr 1fr auto"],
  div[style*="grid-template-columns: 1.4fr 1.1fr 1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Grade de Médicos e Cards no Celular */
  .doctor-grid-luxury {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .doctor-card-luxury {
    padding: 16px 14px !important;
  }

  /* Grids com minmax maiores que a largura do celular */
  div[style*="minmax(360px, 1fr)"],
  div[style*="minmax(340px, 1fr)"],
  div[style*="minmax(330px, 1fr)"],
  div[style*="minmax(320px, 1fr)"],
  div[style*="minmax(420px, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Paddings no celular */
  div[style*="padding: 60px"],
  div[style*="padding: 45px"],
  div[style*="padding: 40px"],
  div[style*="padding: 38px 36px"],
  div[style*="padding: 36px"],
  div[style*="padding: 30px"],
  div[style*="padding: 28px"] {
    padding: 18px 14px !important;
  }
}

/* 5. ADMIN LAYOUT & SIDEBAR OFF-CANVAS RESPONSIVA */
@media (max-width: 992px) {
  .admin-layout {
    display: block !important;
    width: 100% !important;
    min-height: 100vh !important;
  }

  .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -300px !important;
    width: 285px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 10000 !important;
    box-shadow: 12px 0 45px rgba(0, 0, 0, 0.75) !important;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    background: #02181E !important;
  }

  .admin-sidebar.mobile-open {
    left: 0 !important;
  }

  .admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
  }

  .admin-sidebar-overlay.active {
    display: block !important;
  }

  .admin-sidebar-mobile-header {
    display: flex !important;
  }

  .admin-mobile-topbar {
    display: flex !important;
  }

  .admin-main {
    padding: 16px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-topbar {
    padding-bottom: 16px !important;
    gap: 12px !important;
  }

  .admin-topbar h1 {
    font-size: 1.45rem !important;
  }

  .admin-topbar p {
    font-size: 0.82rem !important;
  }

  /* Tabelas sempre roláveis horizontalmente com toque suave */
  .admin-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px 12px !important;
    border-radius: 14px !important;
    margin-bottom: 20px !important;
  }

  .admin-table {
    min-width: 580px;
  }

  .admin-table th, .admin-table td {
    padding: 9px 10px !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .floating-whatsapp-spr {
    bottom: 20px !important;
    right: 20px !important;
    padding: 12px !important;
    width: 48px !important;
    height: 48px !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }
  .floating-whatsapp-spr span {
    display: none !important;
  }
  .floating-whatsapp-spr svg {
    width: 24px !important;
    height: 24px !important;
  }
  .btn-cta-pill {
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
  }
  .footer-luxury-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .admin-main {
    padding: 12px 8px !important;
  }
}

/* 6. PAINEL DO ASSOCIADO: SUBNAV HORIZONTAL FLUIDA & CARTEIRINHA */
@media (max-width: 992px) {
  .assoc-subnav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 6px !important;
    gap: 6px !important;
    border-radius: 12px !important;
  }

  .assoc-subnav::-webkit-scrollbar {
    display: none !important;
  }

  .assoc-subnav-btn {
    padding: 8px 12px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .assoc-subpill-btn {
    padding: 7px 12px !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 600px) {
  .spr-wallet-scene {
    max-width: 100% !important;
  }

  .spr-card-official {
    padding: 16px 14px !important;
    border-radius: 16px !important;
    min-height: 250px !important;
  }

  .spr-card-official img[alt="Foto Associado"] {
    width: 68px !important;
    height: 84px !important;
  }

  .spr-card-official h3 {
    font-size: 1.05rem !important;
    margin: 2px 0 6px !important;
  }

  #dropdownNotificacoesAssoc {
    width: 290px !important;
    max-width: calc(100vw - 20px) !important;
  }
}

/* 7. LEITOR FLIPBOOK 3D RESPONSIVO */
@media (max-width: 768px) {
  .reader-editorial-header {
    padding: 10px 14px !important;
    gap: 8px !important;
  }
  .reader-editorial-header h2 {
    font-size: 1rem !important;
  }
  #readerSubStatus {
    display: none !important;
  }
  .reader-stage-wrapper {
    padding: 8px 6px 65px !important;
  }
  .side-arrow-flip {
    width: 38px !important;
    height: 38px !important;
  }
  .side-arrow-left { left: 8px !important; }
  .side-arrow-right { right: 8px !important; }
  .flipbook-floating-dock {
    padding: 6px 10px !important;
    gap: 8px !important;
    bottom: 8px !important;
  }
  .dock-btn {
    width: 30px !important;
    height: 30px !important;
  }
}

/* 8. CERTIFICADO DIGITAL OFICIAL RESPONSIVO */
@media (max-width: 1080px) {
  .cert-container {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 30px 20px !important;
    margin: 15px auto !important;
    border-width: 6px !important;
  }
  .cert-title {
    font-size: 1.7rem !important;
    letter-spacing: 2px !important;
    margin: 15px 0 8px !important;
  }
  .cert-text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
}

/* ==========================================================================
   NAVEGAÇÃO MOBILE: DRAWER & HAMBURGER OFICIAL SPR
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.mobile-menu-toggle:hover {
  background: #e2e8f0;
}
.mobile-menu-toggle .hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--spr-navy-deep, #063B49);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 14, 30, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 12px 0 35px rgba(6, 59, 73, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #fafcff;
}
.mobile-drawer-close {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mobile-drawer-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}
.mobile-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}
.mobile-quick-search {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #ccfbf1;
}
.mobile-quick-search:hover {
  background: #ccfbf1;
}
.mobile-quick-join {
  background: #063B49;
  color: #ffffff;
  border: 1px solid #063B49;
}
.mobile-quick-join:hover {
  background: #165A6E;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #1e293b;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover {
  background: #f8fafc;
  color: #0284c7;
  transform: translateX(3px);
}
.mobile-nav-link.active {
  background: rgba(2, 132, 199, 0.08);
  color: #0284c7;
  font-weight: 700;
}

.mobile-nav-accordion {
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin: 4px 0;
}
.mobile-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: transparent;
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
}
.accordion-arrow {
  transition: transform 0.25s ease;
  color: #64748b;
}
.mobile-accordion-trigger.active .accordion-arrow {
  transform: rotate(180deg);
}
.mobile-accordion-content {
  display: none;
  padding: 6px 12px 12px 36px;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}
.mobile-accordion-content.active {
  display: flex;
}
.mobile-sublink {
  padding: 6px 0;
  font-size: 0.85rem;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}
.mobile-sublink:hover {
  color: #0284c7;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}



/* ==========================================================================
   UTILITÁRIOS DE TABELAS ADMINISTRATIVAS & STATUS VISUAL ACCESSIBLE (WCAG 2.2)
   ========================================================================== */
.admin-table .col-currency,
.admin-table th.col-currency,
.admin-table td.col-currency {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.admin-table .col-actions,
.admin-table th.col-actions,
.admin-table td.col-actions {
  text-align: right !important;
}
.admin-table .col-status,
.admin-table th.col-status,
.admin-table td.col-status {
  text-align: center !important;
}

/* Badges com alto contraste e semântica clara */
.status-badge-active {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.status-badge-pending {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.status-badge-expired {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   SEÇÃO DO APLICATIVO WEB NA HOMEPAGE
   ========================================================================== */
.app-home-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
  align-items: center;
}
.app-home-content {
  min-width: 0;
}
.app-home-features-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.app-pill-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}
.app-pill-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(45, 212, 191, 0.4);
}
.app-pill-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.app-pill-item strong {
  display: block;
  font-size: 0.84rem;
  color: #ffffff;
  margin-bottom: 2px;
}
.app-pill-item span {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
}
.app-home-cta-wrap {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-app-download-home {
  background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
}
.btn-app-download-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(16, 185, 129, 0.55);
}
.btn-app-guide-home {
  color: #38bdf8;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.2s;
}
.btn-app-guide-home:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Smartphone Mockup */
.app-home-mockup-col {
  display: flex;
  justify-content: center;
}
.app-home-phone {
  width: 260px;
  height: 480px;
  background: #020712;
  border: 8px solid #1e293b;
  border-radius: 36px;
  padding: 10px 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.app-phone-notch {
  width: 50px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  margin: 0 auto 8px;
}
.app-phone-screen {
  flex: 1;
  background: #060e1c;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.screen-top-bar {
  background: #063B49;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.screen-badge-live {
  font-size: 0.55rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.screen-mockup-content {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.mock-card {
  border-radius: 10px;
  padding: 8px 10px;
}
.mock-card-teal {
  background: #03242D;
  border: 1px solid rgba(13, 148, 136, 0.4);
}
.mock-card-blue {
  background: #02181E;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.mock-card-purple {
  background: #03242D;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.mock-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #063B49;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.mock-btn-action {
  margin-top: 6px;
  background: #10b981;
  color: #031e13;
  font-size: 0.60rem;
  font-weight: 800;
  padding: 4px;
  text-align: center;
  border-radius: 4px;
}
.screen-bottom-bar {
  width: 80px;
  height: 3px;
  background: #475569;
  border-radius: 2px;
  margin: 6px auto 3px;
}

@media (max-width: 900px) {
  .app-home-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 35px !important;
  }
  .app-home-features-pills {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }
  .app-home-cta-wrap {
    flex-direction: column !important;
    width: 100% !important;
  }
  .btn-app-download-home {
    width: 100% !important;
    justify-content: center !important;
  }
  .app-home-phone {
    display: none !important;
  }
}

/* ========================================================
   ERP FINANCEIRO CONTA AZUL - RESPONSIVIDADE BLINDADA
   ======================================================== */
.erp-root-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.erp-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.erp-filtros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) 120px;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.erp-form-lote {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr auto auto;
  gap: 12px;
  align-items: end;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.erp-dre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.erp-table-responsive {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.erp-table-responsive table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

@media (max-width: 1280px) {
  .erp-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 1100px) {
  .erp-form-lote {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto auto !important;
  }
}

@media (max-width: 900px) {
  .erp-filtros-grid {
    grid-template-columns: 1fr !important;
  }
  .erp-dre-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .erp-form-lote {
    grid-template-columns: 1fr !important;
  }
}






/* ==========================================================================
   SPR HIGH CONTRAST & ACCESSIBILITY MASTER DESIGN SYSTEM (WCAG AAA)
   Garante contraste absoluto entre texto e fundo em todos os componentes.
   As letras NUNCA terão a mesma cor do fundo.
   ========================================================================== */

/* --- 1. TEMA CLARO EXECUTIVO MÉDICO (DEFAULT PARA MÉDICOS) --- */
html.theme-light,
body.theme-light {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.theme-light .admin-main,
.theme-light .admin-layout {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* 2. CARDS, PAINÉIS E CONTAINERS EM FUNDO CLARO */
.theme-light .admin-table-container,
.theme-light .admin-stat-card,
.theme-light .admin-card,
.theme-light .spr-widget-card,
.theme-light .revista-card-portal,
.theme-light .admin-table-container[style*="background: linear-gradient"],
.theme-light .admin-table-container[style*="background:linear-gradient"] {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
}

/* 3. TÍTULOS E CABEÇALHOS - CONTRASTE MÁXIMO ESCURO (#003366 / #0F172A) */
.theme-light h1,
.theme-light h2,
.theme-light h3,
.theme-light h4,
.theme-light h5,
.theme-light .admin-table-container h1,
.theme-light .admin-table-container h2,
.theme-light .admin-table-container h3,
.theme-light .admin-table-container h4,
.theme-light .admin-stat-card h1,
.theme-light .admin-stat-card h2,
.theme-light .admin-stat-card h3,
.theme-light .admin-stat-card h4,
.theme-light .admin-main h1,
.theme-light .admin-main h2,
.theme-light .admin-main h3,
.theme-light .admin-main h4 {
    color: #0f172a !important;
}

/* 4. TEXTOS, PARÁGRAFOS E DESCRIÇÕES */
.theme-light p,
.theme-light .admin-table-container p,
.theme-light .admin-main p,
.theme-light .admin-stat-card p {
    color: #334155 !important;
    line-height: 1.6 !important;
}

/* 5. ANULAÇÃO DE CORES CLARAS INLINE EM TEXTOS DENTRO DE CARDS BRANCOS */
.theme-light .admin-table-container div[style*="color: #fff"]:not(.btn-cta-pill):not([class*="btn"]):not(button):not(a.btn):not(.nav-badge):not(.badge):not([class*="badge"]),
.theme-light .admin-table-container div[style*="color: #ffffff"]:not(.btn-cta-pill):not([class*="btn"]):not(button):not(a.btn):not(.nav-badge):not(.badge):not([class*="badge"]),
.theme-light .admin-table-container div[style*="color:#fff"]:not(.btn-cta-pill):not([class*="btn"]):not(button):not(a.btn):not(.nav-badge):not(.badge):not([class*="badge"]),
.theme-light .admin-table-container div[style*="color:#ffffff"]:not(.btn-cta-pill):not([class*="btn"]):not(button):not(a.btn):not(.nav-badge):not(.badge):not([class*="badge"]),
.theme-light .admin-table-container div[style*="color: #f8fafc"]:not(.btn-cta-pill):not([class*="btn"]):not(button):not(a.btn),
.theme-light .admin-table-container span[style*="color: #fff"]:not([class*="badge"]):not([class*="btn"]):not([style*="background"]),
.theme-light .admin-table-container span[style*="color: #ffffff"]:not([class*="badge"]):not([class*="btn"]):not([style*="background"]),
.theme-light .admin-table-container strong[style*="color: #fff"],
.theme-light .admin-table-container strong[style*="color: #ffffff"],
.theme-light .admin-stat-card div[style*="color: #fff"],
.theme-light .admin-stat-card div[style*="color: #ffffff"],
.theme-light .admin-stat-card div[style*="color:#fff"],
.theme-light .admin-stat-card div[style*="color:#ffffff"],
.theme-light .admin-stat-card div[style*="color: #f8fafc"],
.theme-light .admin-stat-card span[style*="color: #fff"] {
    color: #0f172a !important;
}

/* Textos secundários inline de baixo contraste */
.theme-light .admin-table-container [style*="color: #94a3b8"]:not([class*="btn"]):not([class*="badge"]),
.theme-light .admin-table-container [style*="color: #cbd5e1"]:not([class*="btn"]):not([class*="badge"]),
.theme-light .admin-table-container [style*="color: #64748b"]:not([class*="btn"]):not([class*="badge"]),
.theme-light .admin-stat-card [style*="color: #94a3b8"],
.theme-light .admin-stat-card [style*="color: #cbd5e1"] {
    color: #475569 !important;
}

/* 6. NÚMEROS DE KPIS E ESTATÍSTICAS */
.theme-light .admin-stat-card div[style*="font-size: 2.2rem"],
.theme-light .admin-stat-card div[style*="font-size: 2rem"],
.theme-light .admin-stat-card div[style*="font-size: 1.8rem"],
.theme-light .admin-stat-card [style*="font-size: 2.2rem"],
.theme-light .admin-stat-card [style*="font-size: 2rem"] {
    color: #0369a1 !important;
    font-weight: 900 !important;
}
.theme-light .admin-stat-card:nth-child(2) div[style*="font-size: 2.2rem"],
.theme-light .admin-stat-card:nth-child(2) [style*="font-size: 2.2rem"] {
    color: #047857 !important;
}
.theme-light .admin-stat-card:nth-child(3) div[style*="font-size: 2.2rem"],
.theme-light .admin-stat-card:nth-child(3) [style*="font-size: 2.2rem"] {
    color: #6d28d9 !important;
}
.theme-light .admin-stat-card:nth-child(4) div[style*="font-size: 2.2rem"],
.theme-light .admin-stat-card:nth-child(4) [style*="font-size: 2.2rem"] {
    color: #15803d !important;
}

/* 7. SUB-CAIXAS E SUB-CARDS INTERNOS */
.theme-light div[style*="background: rgba(15, 23, 42"],
.theme-light div[style*="background: rgba(12, 26, 48"],
.theme-light div[style*="background: rgba(7, 18, 36"],
.theme-light div[style*="background: #03242D"],
.theme-light div[style*="background:#03242D"],
.theme-light div[style*="background: #0b182d"],
.theme-light div[style*="background: rgba(0,0,0,0.25)"],
.theme-light div[style*="background: rgba(0,0,0,0.3)"],
.theme-light div[style*="background: rgba(0, 0, 0, 0.25)"],
.theme-light div[style*="background: rgba(0, 0, 0, 0.3)"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: none !important;
}

.theme-light div[style*="background: rgba(15, 23, 42"] *,
.theme-light div[style*="background: rgba(12, 26, 48"] *,
.theme-light div[style*="background: #03242D"] *,
.theme-light div[style*="background: #0b182d"] *,
.theme-light div[style*="background: rgba(0,0,0,0.25)"] *,
.theme-light div[style*="background: rgba(0,0,0,0.3)"] * {
    color: #0f172a;
}

.theme-light div[style*="background: rgba(15, 23, 42"] span,
.theme-light div[style*="background: rgba(12, 26, 48"] span,
.theme-light div[style*="background: #03242D"] span,
.theme-light div[style*="background: #0b182d"] span,
.theme-light div[style*="background: rgba(0,0,0,0.25)"] span,
.theme-light div[style*="background: rgba(0,0,0,0.3)"] span {
    color: #475569 !important;
}

.theme-light div[style*="background: rgba(15, 23, 42"] strong,
.theme-light div[style*="background: rgba(12, 26, 48"] strong,
.theme-light div[style*="background: #03242D"] strong,
.theme-light div[style*="background: #0b182d"] strong,
.theme-light div[style*="background: rgba(0,0,0,0.25)"] strong,
.theme-light div[style*="background: rgba(0,0,0,0.3)"] strong {
    color: #0369a1 !important;
}

/* 8. SUBNAV HORIZONTAL DO ASSOCIADO (11 ABAS) */
.theme-light .assoc-subnav {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06) !important;
}
.theme-light .assoc-subnav-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    font-weight: 700 !important;
}
.theme-light .assoc-subnav-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
.theme-light .assoc-subnav-btn.active {
    background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}
.theme-light .assoc-subpill-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 700 !important;
}
.theme-light .assoc-subpill-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
.theme-light .assoc-subpill-btn.active {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #bae6fd !important;
    font-weight: 800 !important;
}
.theme-light #btnNotifAssoc {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0284c7 !important;
}
.theme-light #dropdownNotificacoesAssoc {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
}
.theme-light #dropdownNotificacoesAssoc * {
    color: #0f172a !important;
}

/* 9. CAMPOS DE ENTRADA, SELEÇÃO E FORMULÁRIOS */
.theme-light input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.theme-light select,
.theme-light textarea {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.theme-light input:focus,
.theme-light select:focus,
.theme-light textarea:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
    outline: none !important;
}
.theme-light input::placeholder,
.theme-light textarea::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}
.theme-light label {
    color: #1e293b !important;
    font-weight: 700 !important;
}

/* 10. TABELAS ADMINISTRATIVAS */
.theme-light .admin-table {
    border-collapse: collapse !important;
    background: #ffffff !important;
}
.theme-light .admin-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    border-bottom: 2px solid #cbd5e1 !important;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.5px;
}
.theme-light .admin-table td {
    background: #ffffff !important;
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.theme-light .admin-table tr:hover td {
    background: #f8fafc !important;
}
.theme-light .admin-table code {
    background: #e2e8f0 !important;
    color: #0369a1 !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* 11. MENU LATERAL (SIDEBAR) */
.theme-light .admin-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04) !important;
}
.theme-light .admin-brand {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.theme-light .admin-brand-title {
    color: #003366 !important;
    font-weight: 900 !important;
}
.theme-light .admin-brand-sub {
    color: #0d9488 !important;
    font-weight: 700 !important;
}
.theme-light .admin-nav-item {
    color: #334155 !important;
    font-weight: 600 !important;
}
.theme-light .admin-nav-item:hover {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
}
.theme-light .admin-nav-item.active {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: 800 !important;
    border-left: 3px solid #0284c7 !important;
}
.theme-light .admin-nav-header-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f766e !important;
}
.theme-light .group-title-text {
    color: #0f766e !important;
    font-weight: 800 !important;
}
.theme-light .sidebar-search-box input {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
.theme-light .admin-sidebar-footer,
.theme-light [class*="sidebar-footer"] {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}
.theme-light .admin-sidebar-footer * {
    color: #0f172a !important;
}
.theme-light .admin-sidebar-footer span[style*="color: #94a3b8"] {
    color: #475569 !important;
}

/* 12. PÍLULAS, BADGES E TAGS DE ALTO CONTRASTE */
.theme-light .badge-rqe-glow {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
    box-shadow: none !important;
    font-weight: 800 !important;
}
.theme-light .nav-badge-cyan,
.theme-light span[style*="color: #38bdf8"]:not(.admin-table strong) {
    color: #0284c7 !important;
}
.theme-light .nav-badge-emerald,
.theme-light span[style*="color: #34d399"] {
    color: #047857 !important;
}
.theme-light .nav-badge-purple,
.theme-light span[style*="color: #c084fc"] {
    color: #6d28d9 !important;
}
.theme-light span[style*="color: #fbbf24"] {
    color: #b45309 !important;
}
.theme-light span[style*="color: #f87171"] {
    color: #b91c1c !important;
}

/* 13. BREADCRUMBS, BARRA DE TOPO & RECENTES */
.theme-light .spr-breadcrumbs {
    color: #475569 !important;
}
.theme-light .spr-breadcrumbs a {
    color: #0284c7 !important;
    font-weight: 600 !important;
}
.theme-light .spr-breadcrumbs span {
    color: #334155 !important;
    font-weight: 700 !important;
}
.theme-light .spr-recent-pages-bar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}
.theme-light .spr-recent-pill {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}
.theme-light .btn-topbar-action {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
.theme-light .btn-topbar-action:hover {
    background: #f8fafc !important;
    color: #0284c7 !important;
    border-color: #0284c7 !important;
}

/* 14. MODAIS & JANELAS DE DIÁLOGO */
.theme-light div[id^="modal"] > div {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25) !important;
}
.theme-light div[id^="modal"] h3,
.theme-light div[id^="modal"] h4 {
    color: #003366 !important;
    font-weight: 800 !important;
}
.theme-light div[id^="modal"] p,
.theme-light div[id^="modal"] label {
    color: #334155 !important;
}
.theme-light div[id^="modal"] span[style*="color: #94a3b8"],
.theme-light div[id^="modal"] span[style*="color: #64748b"] {
    color: #475569 !important;
}
.theme-light div[id^="modal"] input,
.theme-light div[id^="modal"] select {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* 15. BOTÕES DE AÇÃO PADRÃO */
.theme-light a[style*="background: rgba(56, 189, 248, 0.15)"],
.theme-light button[style*="background: rgba(56, 189, 248, 0.15)"] {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc !important;
    font-weight: 800 !important;
}
.theme-light a[style*="background: rgba(16, 185, 129, 0.15)"],
.theme-light button[style*="background: rgba(16, 185, 129, 0.15)"] {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
    font-weight: 800 !important;
}
.theme-light a[style*="background: rgba(192, 132, 252, 0.15)"],
.theme-light button[style*="background: rgba(192, 132, 252, 0.15)"] {
    background: #f3e8ff !important;
    color: #6d28d9 !important;
    border: 1px solid #d8b4fe !important;
    font-weight: 800 !important;
}
.theme-light a[style*="background: rgba(245, 158, 11, 0.15)"],
.theme-light button[style*="background: rgba(245, 158, 11, 0.15)"] {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fcd34d !important;
    font-weight: 800 !important;
}
.theme-light a[style*="background: rgba(255,255,255,0.06)"],
.theme-light button[style*="background: rgba(255,255,255,0.06)"],
.theme-light button[style*="background: rgba(255, 255, 255, 0.06)"] {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 700 !important;
}
.theme-light button[style*="background: rgba(239, 68, 68, 0.15)"] {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fca5a5 !important;
    font-weight: 700 !important;
}



/* Carteira de Identidade Médica Oficial 3D (Preserva crachá digital com alto contraste permanente) */
.spr-card-official,
.theme-light .spr-card-official {
    background-color: #06282d !important;
    background-image: radial-gradient(circle at 88% 18%, rgba(45, 212, 191, 0.24) 0%, transparent 45%),
                      radial-gradient(circle at 12% 85%, rgba(56, 189, 248, 0.2) 0%, transparent 50%),
                      linear-gradient(135deg, #042829 0%, #091e36 55%, #063B49 100%) !important;
    border: 2px solid #2dd4bf !important;
    color: #ffffff !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25) !important;
}
.spr-card-official *,
.theme-light .spr-card-official * {
    color: #ffffff;
}
.spr-card-official [style*="color: #2dd4bf"],
.theme-light .spr-card-official [style*="color: #2dd4bf"],
.theme-light .spr-card-official [style*="color:#2dd4bf"] {
    color: #2dd4bf !important;
}
.spr-card-official [style*="color: #38bdf8"],
.theme-light .spr-card-official [style*="color: #38bdf8"] {
    color: #38bdf8 !important;
}
.spr-card-official [style*="color: #34d399"],
.theme-light .spr-card-official [style*="color: #34d399"] {
    color: #34d399 !important;
}

