:root {
  --green: #14532d;
  --green-dark: #0f3d21;
  --teal: #0d8d8a;
  --teal-dark: #0a6f6c;
  --soft-green: #edf7f0;
  --soft-teal: #eef7f8;
  --text: #17344d;
  --navy: #102f45;
  --muted: #647d8e;
  --line: #dce9eb;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(16, 47, 69, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7fbfa;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* Cabeçalho */

.topbar {
  padding: 9px 0;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--white);
  font-weight: 700;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.topbar-back:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(-3px);
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: auto;
  height: 70px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.site-nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--teal);
}

/* Garantir contraste em botões dentro da navegação */
.site-nav a.btn,
.site-nav a.btn-primary {
  color: var(--white) !important;
}

.site-nav .exclusive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.exclusive-link .mdi {
  font-size: 17px;
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 24px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline {
  border-color: var(--green);
  color: var(--green);
  background: var(--white);
}

.btn-outline:hover {
  background: var(--soft-green);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}

/* Hero */

.hero {
  overflow: hidden;
  padding: 52px 0 62px;
  background:
    linear-gradient(135deg, #eef7f8 0%, #ffffff 58%, #edf7f0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -1.8px;
}

.hero h1 strong {
  color: var(--teal);
  font-weight: 850;
}

.hero-lead {
  max-width: 580px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

/* ================== VIP MARQUEE ================== */
.destaque-slider-link {
  display: block;
  text-decoration: none;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-bottom: 2px dashed rgba(127, 206, 184, 0.4);
  background: #fcfcfc;
  transition: background 0.2s ease;
}

.destaque-slider-link:hover {
  background: #f0fdf7;
}

.destaque-slider-container {
  display: flex;
  height: 165px; /* Aumentado para acomodar fotos maiores */
  width: 100%;
  overflow: hidden;
  background: #fdfdfd;
  position: relative;
}

.destaque-slider-track {
  display: flex;
  gap: 25px; /* Espaço maior entre os itens */
  padding-left: 15px;
  align-items: center;
  animation: scrollMarquee 80s linear infinite;
  white-space: nowrap;
}

.destaque-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 25px; /* Espaço para o overlay inferior não cobrir o texto */
  position: relative; /* Necessário para o badge absolute */
}

.destaque-item span {
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.destaque-slider-track img {
  height: 95px; /* Fotos maiores */
  width: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
}

/* DESTAQUE ESPECIAL (JOGOS E HQs) */
.destaque-item.especial img {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(200, 168, 75, 0.4);
}

.badge-novo {
  position: absolute;
  top: -8px;
  right: -20px;
  color: white;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulseBadge 2s infinite alternate;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.destaque-slider-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(2px);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 4px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.hero-trust span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--green);
  font-weight: 900;
}

.hero-media {
  position: relative;
  min-width: 0;
  padding: 10px;
}

.doctor-hero {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  border-radius: 26px;
  object-fit: contain;
  object-position: center;
  box-shadow: var(--shadow);
}

.torrino-float {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 150px;
  height: auto;
  padding: 7px;
  border: 2px solid var(--white);
  border-radius: 18px;
  background: var(--white);
  object-fit: contain;
  object-position: center;
  box-shadow: var(--shadow);
}

/* Cartão do Dr. Torrino */

.torrino-banner {
  position: relative;
  z-index: 2;
  margin-top: -35px;
}

.torrino-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.torrino-card-photo {
  flex: 0 0 auto;
  width: 78px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.torrino-card-content {
  flex: 1;
}

.torrino-card h2 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 18px;
}

.torrino-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.torrino-card-arrow {
  color: var(--green);
  font-size: 25px;
}

/* Seções */

.section {
  padding: 48px 0 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 25px;
}

.section-heading h2 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.7px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Especialidades */

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.specialty-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px;
  border: 1px solid #cfe5d5;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(20, 83, 45, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(20, 83, 45, 0.1);
}

.professional-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid #cfe5d5;
  border-radius: 12px;
  background: var(--soft-green);
  color: var(--green);
  font-size: 22px;
}

.icon-image,
.specialty-media,
.content-media {
  display: block;
  width: 100%;
  height: auto;
  max-height: 140px;
  margin-bottom: 18px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(16, 67, 64, 0.08);
  border: 1px solid rgba(51, 129, 113, 0.1);
  background: radial-gradient(circle at top left, rgba(255,255,255,0.9), rgba(248,253,251,0.95));
  object-fit: cover;
}

.specialty-copy,
.content-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.specialty-card strong {
  color: var(--text);
  font-size: 13px;
}

/* Cards de conteúdo */

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.content-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(16, 47, 69, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.content-card .professional-icon {
  margin-bottom: 20px;
}

.content-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* CTA */

.cta {
  margin-top: 78px;
  padding: 48px 40px;
  border-radius: 24px;
  background: var(--green);
  color: var(--white);
}

.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.7px;
}

.cta p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.cta .btn {
  flex-shrink: 0;
  background: var(--white);
  color: var(--green);
}

.cta .btn:hover {
  background: var(--soft-green);
}

/* Rodapé */

footer {
  padding: 78px 0 25px;
  background: var(--navy);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 48px;
}

.footer-profile {
  display: flex;
  gap: 22px;
}

.footer-doctor-photo {
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--teal);
}

.footer-logo {
  width: auto;
  height: 60px;
  margin-bottom: 15px;
  object-fit: contain;
}

footer h3 {
  margin: 0 0 17px;
  color: var(--white);
  font-size: 18px;
}

footer p {
  margin: 0 0 12px;
  color: #c8d8df;
  font-size: 15px;
  line-height: 1.65;
}

footer a {
  display: block;
  margin-bottom: 10px;
  color: #c8d8df;
  font-size: 13px;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #c8d8df;
  font-size: 12px;
}

.whatsapp-floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  font-size: 25px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.whatsapp-floating:hover {
  transform: scale(1.08);
}

/* Responsividade */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy {
    text-align: center;
    order: 2;
  }

  .hero-media-box {
    order: 1;
    margin-bottom: -15px;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-media {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-profile {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 28px, 560px);
  }

  .topbar .wrap {
    justify-content: center;
    text-align: center;
  }

  .nav {
    min-height: 68px;
  }

  .brand img {
    height: 55px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 14px;
    left: 14px;
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding: 52px 0 70px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .torrino-float {
    right: -5px;
    width: 115px;
  }

  .torrino-card {
    align-items: flex-start;
    padding: 16px;
  }

  .torrino-card-photo {
    width: 62px;
  }

  .specialties-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 30px 22px;
  }

  .cta-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-profile {
    grid-column: auto;
    flex-direction: column;
  }

  .footer-doctor-photo {
    width: 170px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================
   ÁREA EXCLUSIVA VIP STYLES
   ================================ */

.vip-hero {
  padding: 56px 0 48px;
  background: linear-gradient(135deg, #102f45 0%, #14532d 100%);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.vip-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #bfecce;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.vip-hero h1 {
  margin: 0 auto 12px;
  max-width: 750px;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
}

.vip-hero-lead {
  max-width: 680px;
  margin: 0 auto 24px;
  color: #cce3de;
  font-size: 17px;
  line-height: 1.6;
}

.vip-user-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 10px #25d366;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.vip-section {
  padding-bottom: 78px;
}

.vip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 990px) {
  .vip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .vip-grid {
    grid-template-columns: 1fr;
  }
}

.vip-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(16, 47, 69, 0.05);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.vip-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(16, 47, 69, 0.12);
  border-color: var(--teal);
}

.vip-card.highlight {
  border: 2px solid #eab308;
  background: linear-gradient(180deg, #ffffff 0%, #fefce8 100%);
}

.vip-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.vip-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 26px;
}

.vip-icon-box.green { background: #eef7f0; color: #14532d; }
.vip-icon-box.teal { background: #eef7f8; color: #0d8d8a; }
.vip-icon-box.blue { background: #eff6ff; color: #2563eb; }
.vip-icon-box.purple { background: #f3e8ff; color: #7e22ce; }
.vip-icon-box.gold { background: #fef9c3; color: #ca8a04; }

.vip-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.vip-tag.gold {
  background: #fef08a;
  color: #854d0e;
}

.vip-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.vip-card p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.vip-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

/* Modais VIP Overlay */
.vip-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.vip-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.vip-modal-content {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.vip-modal-overlay.active .vip-modal-content {
  transform: translateY(0);
}

.vip-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.modal-header-icon.green { background: #eef7f0; color: #14532d; }
.modal-header-icon.teal { background: #eef7f8; color: #0d8d8a; }
.modal-header-icon.blue { background: #eff6ff; color: #2563eb; }
.modal-header-icon.purple { background: #f3e8ff; color: #7e22ce; }
.modal-header-icon.gold { background: #fef9c3; color: #ca8a04; }

.modal-subtitle {
  color: var(--muted);
  margin-top: -6px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

/* Tabs & Protocolos */
.protocol-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.protocol-tab {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.protocol-tab.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.timeline-step {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border-left: 4px solid var(--teal);
}

.step-num {
  font-weight: 800;
  font-size: 12px;
  color: var(--teal);
  white-space: nowrap;
}

.step-desc strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.step-desc p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.checklist-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

/* Forms de Sintomas e Suporte */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
}

.range-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-box input {
  flex: 1;
}

.range-display {
  font-size: 18px;
  font-weight: 800;
  color: var(--teal);
}

.history-box {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-list li {
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  margin-bottom: 8px;
  font-size: 13px;
}

/* Sound Player Widget */
.sound-player-card {
  padding: 24px;
  border-radius: 20px;
  background: #0f172a;
  color: #ffffff;
}

.sound-visualizer {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.sound-visualizer .bar {
  width: 6px;
  height: 12px;
  background: #38bdf8;
  border-radius: 3px;
  transition: height 0.2s ease;
}

.sound-visualizer.playing .bar {
  animation: sound-wave 0.8s ease-in-out infinite alternate;
}

.sound-visualizer.playing .bar:nth-child(2) { animation-delay: 0.2s; }
.sound-visualizer.playing .bar:nth-child(3) { animation-delay: 0.4s; }
.sound-visualizer.playing .bar:nth-child(4) { animation-delay: 0.1s; }
.sound-visualizer.playing .bar:nth-child(5) { animation-delay: 0.3s; }

@keyframes sound-wave {
  0% { height: 10px; }
  100% { height: 42px; }
}

.sound-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.sound-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.sound-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.volume-slider-box {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.volume-slider-box input {
  flex: 1;
}

.sound-tip {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

/* E-books VIP List */
.ebooks-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ebook-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.ebook-icon {
  font-size: 32px;
  color: #7e22ce;
}

.ebook-info {
  flex: 1;
}

.ebook-info strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.ebook-info span {
  font-size: 12px;
  color: var(--muted);
}

/* Styles do Paywall & Checkout VIP */

.lock-badge {
  background: rgba(234, 179, 8, 0.2);
  color: #fef08a;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.vip-pricing-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-tag .currency {
  font-size: 14px;
  color: #bfecce;
}

.price-tag .amount {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
}

.price-tag .period {
  font-size: 13px;
  color: #cce3de;
}

.validity-badge {
  font-size: 12px;
  color: #fef08a;
  font-weight: 700;
}

.vip-paywall-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn.light-btn {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: transparent;
}

.btn.light-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.active-status {
  background: rgba(20, 83, 45, 0.4);
  border: 1px solid rgba(37, 211, 102, 0.4);
}

.btn-logout-link {
  background: none;
  border: none;
  color: #fca5a5;
  font-size: 12px;
  cursor: pointer;
  margin-left: 8px;
  text-decoration: underline;
}

.checkout-summary {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--muted);
}

.summary-item.total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text);
}

.payment-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.pay-option {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-option.active {
  border-color: var(--teal);
  background: #eef7f8;
  color: var(--teal-dark);
}

.demo-login-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

/* Styles do Portal Público de Orientações */

.orientations-hero {
  padding: 56px 0 48px;
  background: linear-gradient(135deg, #edf7f0 0%, #ffffff 60%, #eef7f8 100%);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.orientations-hero h1 {
  margin: 12px auto 14px;
  max-width: 750px;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -1.2px;
}

.orientations-nav-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.category-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.public-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  .public-video-grid {
    grid-template-columns: 1fr;
  }
}

.public-video-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(16, 47, 69, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.public-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.public-video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 47, 69, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 54px;
}

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.video-body {
  padding: 20px;
}

.video-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.video-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}

.video-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Triagem Rápida */
.triage-section {
  background: #f8fafc;
}

.triage-card {
  padding: 40px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(16, 47, 69, 0.06);
}

.green-text {
  color: var(--green) !important;
}

.triage-quiz-box {
  margin-top: 28px;
}

.quiz-step h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--text);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-btn {
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-btn:hover {
  background: var(--soft-green);
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateX(4px);
}

.quiz-result {
  text-align: center;
  padding: 24px;
}

.result-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.result-badge.red { background: #fef2f2; color: #dc2626; }
.result-badge.yellow { background: #fefce8; color: #ca8a04; }
.result-badge.green { background: #f0fdf4; color: #16a34a; }

.result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* FAQ Interativo */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 18px 24px;
  cursor: pointer;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.video-modal-box {
  max-width: 800px;
  padding: 10px;
  background: #000000;
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Styles dos Cards de Especialidades */

.specialty-grid-new {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
  gap: 16px;
}

.specialty-card-box {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(20, 83, 45, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.25s ease;
}

.specialty-card-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(16, 47, 69, 0.08);
  border-color: var(--teal);
}

.specialty-icon-header {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.specialty-icon-header.teal {
  background: linear-gradient(135deg, #2dd4bf, #0f766e);
  color: #fff;
  box-shadow: 0 10px 25px rgba(45, 212, 191, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
}
.specialty-icon-header.blue {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
}
.specialty-icon-header.purple {
  background: linear-gradient(135deg, #c084fc, #7e22ce);
  color: #fff;
  box-shadow: 0 10px 25px rgba(126, 34, 206, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
}
.specialty-icon-header.green {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  color: #fff;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
}
.specialty-icon-header.gold {
  background: linear-gradient(135deg, #fde047, #ca8a04);
  color: #fff;
  box-shadow: 0 10px 25px rgba(202, 138, 4, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
}
.specialty-icon-header.dark {
  background: linear-gradient(135deg, #94a3b8, #334155);
  color: #fff;
  box-shadow: 0 10px 25px rgba(51, 65, 85, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
}
.specialty-icon-header {
  background: linear-gradient(135deg, #cbd5e1, #64748b);
  color: #fff;
  box-shadow: 0 10px 25px rgba(100, 116, 139, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
}
.specialty-card-box:hover .specialty-icon-header {
  transform: translateY(-8px) scale(1.1) rotate(5deg);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.6);
}

.specialty-card-box h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--text);
}

.specialty-card-box p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.btn-specialty-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  transition: gap 0.2s ease, color 0.2s ease;
}

.btn-specialty-link:hover {
  color: var(--green);
  gap: 12px;
}

/* Styles da Página do Minigame Infantil */

.game-page-hero {
  padding: 48px 0 64px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  text-align: center;
}

.game-page-hero h1 {
  margin: 12px auto 16px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
}

.game-page-hero .hero-lead {
  max-width: 680px;
  margin: 0 auto 36px;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.6;
}

.game-iframe-wrapper {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 4px solid rgba(255, 255, 255, 0.15);
  background: #000000;
}

.game-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-instructions-card {
  max-width: 820px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

@media (max-width: 768px) {
  .game-instructions-card {
    grid-template-columns: 1fr;
  }
}

.instruction-col {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.instruction-col h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #38bdf8;
}

.instruction-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.instruction-col li {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Premium Single Page Architecture Styles */

.doctor-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--soft-green);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-highlights {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.hero-media-box {
  position: relative;
}

.glass-card-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(16, 47, 69, 0.12);
}

.glass-card-badge span {
  font-size: 28px;
  color: var(--teal);
}

.glass-card-badge strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.glass-card-badge small {
  font-size: 11px;
  color: var(--muted);
}

.doctor-about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .doctor-about-grid {
    grid-template-columns: 1fr;
  }
}

.doctor-photo-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.doctor-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doctor-spec-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 47, 69, 0.9) 100%);
  color: #ffffff;
}

.doctor-spec-overlay strong {
  display: block;
  font-size: 16px;
}

.doctor-spec-overlay span {
  font-size: 12px;
  color: #e2e8f0;
}

.torrino-project-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid var(--line);
  margin: 24px 0;
  text-align: center;
}

.torrino-project-box .torrino-icon img {
  width: 320px !important;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.banner-double-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  .banner-double-grid {
    grid-template-columns: 1fr;
  }
}

.promo-card {
  padding: 36px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.promo-card.game-promo {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
}

.promo-card.vip-promo {
  background: linear-gradient(135deg, #102f45 0%, #0d8d8a 100%);
  color: #ffffff;
}

.promo-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 12px;
}

.promo-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #ffffff;
}

.promo-card p {
  margin: 0 0 24px;
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.6;
  flex: 1;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

.location-info-card {
  padding: 36px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(16, 47, 69, 0.04);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-block {
  display: flex;
  gap: 16px;
}

.info-block span {
  font-size: 28px;
  color: var(--teal);
}

.info-block strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.info-block p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.location-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.map-iframe-box {
  min-height: 380px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 47, 69, 0.08);
  border: 1px solid var(--line);
}
/* Responsividade Videoteca VIP */
@media (max-width: 900px) {
  .videoteca-grid {
    grid-template-columns: 1fr !important;
  }
  .video-player-container {
    min-height: 250px;
  }
}
/* History Table UI */
.history-table-container {
    overflow-x: auto;
    margin-top: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.symptom-history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}
.symptom-history-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: left;
    padding: 10px 15px;
    font-size: 0.9rem;
    border-bottom: 2px solid #e2e8f0;
}
.symptom-history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #334155;
    vertical-align: middle;
}
.symptom-history-table tr:last-child td {
    border-bottom: none;
}
.symptom-history-table tr:nth-child(even) {
    background: #fcfcfc;
}
.history-date {
    display: block;
    font-weight: 600;
    color: #1f3b4d;
}
.history-time {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
}
.level-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    text-align: center;
    min-width: 50px;
}
.level-low { background: #dcfce7; color: #166534; }
.level-med { background: #fef08a; color: #854d0e; }
.level-high { background: #fee2e2; color: #991b1b; }
.history-notes {
    max-width: 200px;
    font-style: italic;
    color: #64748b;
}
.empty-state td {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 20px;
}
/* --- APP SHELL LAYOUT --- */
.app-shell {
    display: flex;
    min-height: 100vh;
    background-color: #f8fafc;
}
.app-sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 20px 0;
    z-index: 100;
}
.app-sidebar-logo {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}
.app-sidebar-logo img {
    height: 60px;
}
.app-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 15px;
}
.app-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}
.app-nav-item:hover {
    background: #f1f5f9;
    color: #1f3b4d;
}
.app-nav-item.active {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}
.app-nav-item .mdi {
    font-size: 1.4rem;
    margin-right: 12px;
}
.app-sidebar-footer {
    padding: 20px 15px 0;
    border-top: 1px solid #e2e8f0;
}
.app-main {
    flex-grow: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.app-page {
    display: none;
    animation: fadeIn 0.3s ease;
}
.app-page.active {
    display: block;
}
.app-header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}
.app-header-area h1 {
    font-size: 1.8rem;
    color: #1f3b4d;
    margin: 0;
}
.app-header-area p {
    color: #64748b;
    margin: 5px 0 0 0;
}
.app-content-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}
.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #1f3b4d;
    cursor: pointer;
}

/* Mobile App Shell */
@media (max-width: 900px) {
    .app-shell { flex-direction: column; }
    .app-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 10px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .app-sidebar-logo {
        padding: 0;
        margin: 0;
        border: none;
    }
    .app-sidebar-logo img { height: 40px; }
    .app-nav {
        display: none; /* Hidden by default on mobile, toggled via JS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        padding: 10px;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
    .app-nav.open { display: block; }
    .menu-toggle-btn { display: block; }
    /* removed footer hide */
    .app-main { padding: 20px; }
    .app-header-area { flex-direction: column; align-items: flex-start; gap: 15px; }
}
@media (max-width: 900px) {
    .app-sidebar {
        z-index: 9999;
    }
    .app-nav {
        z-index: 9999;
    }
    .menu-toggle-btn {
        padding: 10px;
        background: #f1f5f9;
        border-radius: 8px;
    }
}
@media (max-width: 900px) {
    .app-sidebar-logo {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    .app-nav {
        top: 100%;
        z-index: 10000;
        border-top: 1px solid #e2e8f0;
    }
}
@media (max-width: 900px) {
    .app-sidebar-footer { 
        display: flex; 
        flex-direction: column; 
        gap: 10px; 
        padding: 15px; 
        background: #f8fafc; 
        border-top: 1px solid #e2e8f0; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin-top: -10px; /* offset to attach to nav bottom if needed, actually better to just move it into nav in DOM */
    }
}

.cirurgia-secao { display: none; }
.cirurgia-secao.active { display: block; }


/* BENTO BOX VIP */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 30px;
}
.bento-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #000;
  text-decoration: none;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.bento-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.9;
  display: block;
}
.bento-card:hover img {
  transform: scale(1.05);
  opacity: 1;
}
.bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.4) 80%, transparent);
  color: #fff;
  z-index: 2;
}
.bento-content h3 {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.bento-content p {
  margin: 0;
  font-size: 11px;
  color: #cbd5e1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  display: none;
}
.bento-card .badge-bento {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e91e63;
  color: #fff;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(233,30,99,0.5);
}
.bento-card .badge-bento.novo {
  background: #c8a84b;
  color: #000;
  box-shadow: 0 2px 6px rgba(200,168,75,0.5);
}
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .bento-card img {
    height: 100px;
  }
}

/* Responsive Image & Logo Optimization Rules */
.brand img,
.footer-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.hero-media-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 480px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(16, 47, 69, 0.12);
}

.hero-doctor-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 28px;
}

.doctor-photo-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(16, 47, 69, 0.1);
  margin: 0 auto;
}

.doctor-profile-img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 28px;
}

.footer-doctor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid #c8a84b;
  flex-shrink: 0;
}

.torrino-icon img {
  width: 54px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .hero-media-box,
  .doctor-photo-card {
    max-width: 100%;
    max-height: 360px;
  }
  .hero-doctor-img,
  .doctor-profile-img {
    max-height: 360px;
  }
}

.torrino-project-box .torrino-icon img { width: 320px !important; height: auto !important; border-radius: 16px !important; object-fit: cover; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
