:root{
  --radius: 1.25rem;
  --radius-sm: .9rem;
  --shadow: 0 14px 40px rgba(0,0,0,.08);
  --shadow-sm: 0 10px 24px rgba(0,0,0,.06);
  --border: rgba(0,0,0,.08);
  --muted: rgba(0,0,0,.62);
  --muted2: rgba(0,0,0,.48);
  --bg: #f6f7fb;
  --glass: rgba(255,255,255,.76);
  --glass-border: rgba(0,0,0,.06);
  --footer-bg: rgba(255,255,255,.72);
}

[data-bs-theme="dark"]{
  --border: rgba(255,255,255,.10);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.56);
  --bg: #0b1220;
  --glass: rgba(17,24,39,.70);
  --glass-border: rgba(255,255,255,.10);
  --shadow: 0 18px 48px rgba(0,0,0,.38);
  --shadow-sm: 0 14px 34px rgba(0,0,0,.28);
  --footer-bg: rgba(17,24,39,.72);
}

html, body{ height: 100%; }

body{
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--bs-body-color);
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(13,110,253,.10), transparent 60%),
    radial-gradient(1000px 500px at 90% 10%, rgba(255,193,7,.12), transparent 55%),
    var(--bg);
}

.page-shell{
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.consulta-container{
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding-left: .75rem;
  padding-right: .75rem;
}

@media (min-width: 992px){
  .consulta-container{
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.topbar{
  position: sticky;
  top: .75rem;
  z-index: 1030;
}

.topbar-inner{
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: .75rem .9rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.consulta-hero{
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(13,110,253,.98), rgba(8,66,152,.95)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='360'%3E%3Cpath d='M0 250 C200 120 390 360 560 240 C690 150 780 170 900 230 L900 360 L0 360 Z' fill='rgba(255,255,255,0.10)'/%3E%3C/svg%3E");
  background-size: cover;
  color: #fff;
  padding: 1.2rem 1.2rem;
}

@media (min-width: 992px){
  .consulta-hero{ padding: 1.35rem 1.5rem; }
}

.hero-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap: .9rem;
  min-width: 260px;
}

.brand-logo{
  width: 76px;
  height: auto;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: .55rem;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  object-fit: contain;
}

.brand-title{
  margin: 0;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.2;
}

.brand-subtitle{
  margin: .15rem 0 0 0;
  opacity: .88;
  font-size: .95rem;
  line-height: 1.25;
}

.site-main{
  flex: 1 0 auto;
  width: 100%;
  margin-top: 1.5rem;
  padding-bottom: 3rem;
}

.card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.lift{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lift:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(13,110,253,.22);
}

.btn, .form-control, .input-group-text{
  border-radius: var(--radius-sm);
  min-height: 42px;
}

.btn-sm{ min-height: 34px; }

.form-control:focus, .btn:focus, .btn:focus-visible{
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.18) !important;
}

.meta, .text-muted-soft{ color: var(--muted); }
.muted-2{ color: var(--muted2); }

.chip{
  border-radius: 999px;
  padding: .45rem .75rem;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
}

.site-footer{
  margin-top: auto;
  width: 100%;
  border-top: 1px solid var(--glass-border);
  background: var(--footer-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-footer-inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem .75rem 1.4rem;
  text-align: center;
  font-size: .875rem;
  color: var(--muted);
}

@media (min-width: 992px){
  .site-footer-inner{
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.fade-in{ animation: fadeIn .35s ease both; }

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