:root {
  --pc-blue: #1268e8;
  --pc-blue-dark: #09245f;
  --pc-teal: #08b995;
  --pc-teal-light: #ddf8f2;
  --pc-blue-light: #eaf4ff;
  --pc-bg: #f8fbff;
  --pc-text: #14213d;
  --pc-muted: #667085;
  --pc-border: #e5ebf4;
  --pc-white: #fff;
  --pc-warning: #f5a900;
  --pc-danger: #e84b5b;
  --pc-radius: 18px;
  --pc-shadow: 0 14px 40px rgba(9, 36, 95, .09);
  --pc-shadow-sm: 0 6px 20px rgba(9, 36, 95, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--pc-text); background: var(--pc-bg); font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
body.public-page { padding-top: 78px; }
h1, h2, h3, h4, h5, h6 { color: var(--pc-blue-dark); font-family: 'Segoe UI', system-ui, sans-serif; font-weight: 800; letter-spacing: -.025em; }
a { color: var(--pc-blue); text-decoration: none; }
a:hover { color: #0b4fb9; }
img { max-width: 100%; }
.text-muted { color: var(--pc-muted) !important; }
.text-teal { color: var(--pc-teal) !important; }
.text-blue { color: var(--pc-blue) !important; }
.bg-soft-blue { background: var(--pc-blue-light); }
.bg-soft-teal { background: var(--pc-teal-light); }
.section-space { padding: 76px 0; }
.section-kicker { color: var(--pc-blue); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.7rem); margin: .5rem 0 .85rem; }
.section-lead { max-width: 650px; color: var(--pc-muted); font-size: 1.05rem; }
.btn { border-radius: 12px; font-weight: 700; padding: .72rem 1.15rem; }
.btn-sm { border-radius: 10px; padding: .45rem .8rem; }
.btn-gradient { color: white; border: 0; background: linear-gradient(105deg, var(--pc-blue), var(--pc-teal)); box-shadow: 0 8px 18px rgba(18,104,232,.22); }
.btn-gradient:hover, .btn-gradient:focus { color: white; transform: translateY(-1px); box-shadow: 0 11px 23px rgba(18,104,232,.28); }
.btn-outline-primary { color: var(--pc-blue); border-color: #b9d5fb; }
.btn-outline-primary:hover { background: var(--pc-blue); border-color: var(--pc-blue); }
.form-control, .form-select { min-height: 48px; border-radius: 12px; border-color: var(--pc-border); color: var(--pc-text); box-shadow: none !important; }
.form-control:focus, .form-select:focus { border-color: var(--pc-blue); box-shadow: 0 0 0 3px rgba(18,104,232,.11) !important; }
.form-label { color: var(--pc-text); font-size: .88rem; font-weight: 700; }
.form-check-input:checked { background-color: var(--pc-blue); border-color: var(--pc-blue); }
:focus-visible { outline: 3px solid rgba(18,104,232,.35); outline-offset: 2px; }

/* Header */
.public-header { position: fixed; inset: 0 0 auto; z-index: 1030; height: 78px; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(229,235,244,.8); backdrop-filter: blur(16px); }
.public-header .navbar { height: 78px; }
.brand-logo { width: 250px; height: 58px; object-fit: contain; object-position: left center; }
.nav-link { color: var(--pc-text); font-weight: 700; font-size: .94rem; }
.nav-link:hover, .nav-link.active { color: var(--pc-blue); }
.login-link { display: inline-flex; gap: .45rem; align-items: center; color: var(--pc-blue); font-weight: 800; }

/* Home */
.hero { position: relative; min-height: 570px; overflow: hidden; background: linear-gradient(105deg, #fff 10%, #eff7ff 58%, #e4f4ff); }
.hero::before { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: 8%; top: -70px; background: radial-gradient(circle at 40% 45%, rgba(8,185,149,.23), rgba(18,104,232,.08) 55%, transparent 56%); }
.hero::after { content: ''; position: absolute; width: 170px; height: 250px; right: 2%; top: 55px; opacity: .28; background-image: radial-gradient(var(--pc-blue) 2px, transparent 2px); background-size: 20px 20px; }
.hero .container { position: relative; z-index: 1; }
.hero-copy { padding: 62px 0 155px; }
.hero-title { max-width: 700px; font-size: clamp(2.5rem, 4.5vw, 4.45rem); line-height: 1.02; margin-bottom: 1.15rem; }
.hero-title .green { color: var(--pc-teal); }
.hero-subtitle { max-width: 620px; color: var(--pc-muted); font-size: 1.1rem; line-height: 1.65; }
.hero-doctor-wrap { position: absolute; right: 5%; bottom: 0; width: 48%; height: 100%; display: flex; align-items: end; justify-content: center; }
.hero-doctor { height: 96%; width: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 24px 26px rgba(9,36,95,.14)); }
.float-health { position: absolute; z-index: 2; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 18px; color: var(--pc-blue); background: rgba(255,255,255,.94); box-shadow: var(--pc-shadow); font-size: 1.7rem; }
.float-health.one { right: 26%; top: 95px; }
.float-health.two { right: 8%; top: 190px; color: var(--pc-teal); }
.trust-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.trust-pill { display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-width: 150px; border: 1px solid #d5e7f7; border-radius: 12px; background: rgba(255,255,255,.78); font-size: .82rem; line-height: 1.25; }
.trust-pill i { color: var(--pc-teal); font-size: 1.35rem; }
.trust-pill strong { display: block; color: var(--pc-blue-dark); }
.search-panel { position: relative; z-index: 4; margin-top: -105px; padding: 22px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: var(--pc-shadow); }
.search-panel .form-control, .search-panel .form-select { background-color: #fbfdff; }
.search-panel .btn { min-height: 48px; }

.specialty-card { display: flex; height: 100%; gap: 15px; align-items: center; padding: 20px; border: 1px solid var(--pc-border); border-radius: 16px; background: white; box-shadow: 0 5px 16px rgba(9,36,95,.035); transition: .2s ease; }
.specialty-card:hover { transform: translateY(-4px); border-color: #b9d5fb; box-shadow: var(--pc-shadow-sm); }
.specialty-icon { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--pc-blue-light); color: var(--pc-blue); font-size: 1.45rem; }
.specialty-card:nth-child(3n+2) .specialty-icon { background: var(--pc-teal-light); color: var(--pc-teal); }
.specialty-card h3 { margin: 0 0 3px; font-size: .98rem; }
.specialty-card p { margin: 0; color: var(--pc-muted); font-size: .78rem; }

.professional-card { height: 100%; padding: 20px; border: 1px solid var(--pc-border); border-radius: 18px; background: white; box-shadow: var(--pc-shadow-sm); transition: .2s ease; }
.professional-card:hover { transform: translateY(-3px); box-shadow: var(--pc-shadow); }
.professional-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg,#d8ecff,#d8faf2); }
.avatar-fallback { display: grid; place-items: center; color: var(--pc-blue); font-family: 'Segoe UI', system-ui, sans-serif; font-size: 1.35rem; font-weight: 800; }
.professional-name { margin-bottom: 3px; font-size: 1.06rem; }
.specialty-name { color: var(--pc-blue); font-size: .85rem; font-weight: 800; }
.rating { color: var(--pc-warning); font-size: .85rem; }
.rating small { color: var(--pc-muted); }
.price { color: var(--pc-teal); font-family: 'Segoe UI', system-ui, sans-serif; font-size: 1.35rem; font-weight: 800; }
.time-chip { display: inline-flex; padding: .35rem .58rem; border: 1px solid #cfe2fb; border-radius: 8px; color: var(--pc-blue); background: #f8fbff; font-size: .76rem; font-weight: 700; cursor: pointer; }
.time-chip:hover, .time-chip.active { color: white; background: var(--pc-blue); }
.favorite-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--pc-border); border-radius: 50%; color: var(--pc-muted); background: white; }
.favorite-btn.active { color: #e84b6a; background: #fff1f5; border-color: #ffd0dc; }

.steps-line { position: relative; }
.step-card { position: relative; height: 100%; padding: 26px 24px; border-radius: 18px; background: white; border: 1px solid var(--pc-border); }
.step-number { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; color: var(--pc-blue); background: var(--pc-blue-light); font-size: 1.4rem; }
.step-card h3 { font-size: 1rem; }
.benefit-band { padding: 28px; border-radius: 22px; background: var(--pc-blue-dark); color: white; box-shadow: var(--pc-shadow); }
.benefit-item { display: flex; gap: 14px; align-items: center; padding: 9px 18px; border-right: 1px solid rgba(255,255,255,.16); }
.benefit-item:last-child { border-right: 0; }
.benefit-item i { color: #56e0c5; font-size: 1.65rem; }
.benefit-item strong { display: block; color: white; }
.benefit-item small { color: #c4d3ef; }
.testimonial-card { height: 100%; padding: 26px; border: 1px solid var(--pc-border); border-radius: 18px; background: white; }
.cta-pro { overflow: hidden; padding: 55px; border-radius: 28px; color: white; background: linear-gradient(120deg, #0d4eaf, var(--pc-blue) 52%, var(--pc-teal)); box-shadow: var(--pc-shadow); }
.cta-pro h2, .cta-pro h3 { color: white; }
.accordion-item { margin-bottom: 10px; border: 1px solid var(--pc-border) !important; border-radius: 14px !important; overflow: hidden; }
.accordion-button { color: var(--pc-blue-dark); font-weight: 800; box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--pc-blue); background: var(--pc-blue-light); }

/* General pages */
.page-hero { padding: 58px 0 42px; color: white; background: radial-gradient(circle at 80% 20%, rgba(8,185,149,.32), transparent 26%), linear-gradient(120deg, var(--pc-blue-dark), #0d4eaf 58%, var(--pc-blue)); }
.page-hero h1 { color: white; font-size: clamp(2rem, 4vw, 3.25rem); }
.page-hero p { max-width: 650px; color: #dbe9ff; }
.content-card { padding: 26px; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); background: white; box-shadow: var(--pc-shadow-sm); }
.filter-panel { position: sticky; top: 96px; }
.filter-title { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--pc-border); }
.filter-group { padding: 14px 0; border-bottom: 1px solid #eef2f7; }
.filter-group:last-child { border: 0; }
.mini-map { min-height: 230px; display: grid; place-items: center; border-radius: 18px; color: var(--pc-blue); background-color: #eaf4ff; background-image: linear-gradient(30deg, rgba(18,104,232,.08) 12%, transparent 12.5%, transparent 87%, rgba(18,104,232,.08) 87.5%), linear-gradient(150deg, rgba(18,104,232,.08) 12%, transparent 12.5%, transparent 87%, rgba(18,104,232,.08) 87.5%); background-size: 42px 74px; }
.profile-cover { height: 170px; border-radius: 22px 22px 0 0; background: radial-gradient(circle at 85% 40%, rgba(255,255,255,.32), transparent 20%), linear-gradient(110deg,#d8ebff,#d9faf3); }
.profile-main { margin-top: -70px; padding: 0 30px 30px; }
.profile-photo { width: 140px; height: 140px; border: 6px solid white; border-radius: 50%; object-fit: cover; background: white; box-shadow: var(--pc-shadow-sm); }
.verified-badge { color: #087d68; background: var(--pc-teal-light); }
.calendar-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.date-option { padding: 12px 5px; border: 1px solid var(--pc-border); border-radius: 12px; text-align: center; background: white; cursor: pointer; }
.date-option.active, .date-option:hover { color: white; background: var(--pc-blue); border-color: var(--pc-blue); }
.date-option small { display: block; font-size: .7rem; }
.booking-summary { position: sticky; top: 96px; }
.booking-steps { display: flex; justify-content: space-between; margin-bottom: 30px; }
.booking-step { position: relative; flex: 1; text-align: center; color: var(--pc-muted); font-size: .75rem; font-weight: 700; }
.booking-step::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: #dce5f1; z-index: 0; }
.booking-step:first-child::before { display: none; }
.booking-step span { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 50%; color: var(--pc-muted); background: #e9eef5; }
.booking-step.active span, .booking-step.done span { color: white; background: var(--pc-blue); }
.booking-step.done::before, .booking-step.active::before { background: var(--pc-blue); }
.auth-shell { min-height: 100vh; background: linear-gradient(115deg, #eff7ff, white 55%, #e8faf6); }
.auth-panel { width: min(520px, 100%); padding: 34px; border: 1px solid var(--pc-border); border-radius: 24px; background: rgba(255,255,255,.95); box-shadow: var(--pc-shadow); }
.auth-brand { width: 240px; height: 75px; object-fit: contain; }
.auth-aside { min-height: 100vh; color: white; background: radial-gradient(circle at 50% 30%, rgba(8,185,149,.28), transparent 35%), linear-gradient(145deg,var(--pc-blue-dark),#0755bd); }
.strength-track { height: 6px; border-radius: 4px; background: #e9eef5; overflow: hidden; }
.strength-bar { width: 0; height: 100%; background: var(--pc-danger); transition: .2s; }
.legal-content h2 { margin-top: 2rem; font-size: 1.35rem; }
.empty-state { padding: 52px 20px; text-align: center; }
.empty-state i { display: block; margin-bottom: 14px; color: #b9cce5; font-size: 3rem; }
.skeleton { border-radius: 10px; background: linear-gradient(90deg,#edf2f7 25%,#f8fafc 50%,#edf2f7 75%); background-size: 200% 100%; animation: shimmer 1.35s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.site-footer { overflow: hidden; padding: 58px 0 22px; border-top: 1px solid var(--pc-border); background: white; }
.footer-logo { width: 230px; height: 72px; object-fit: contain; object-position: left center; }
.footer-title { font-size: .9rem; margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; padding: 0; list-style: none; }
.footer-links a { color: var(--pc-muted); font-size: .86rem; }
.footer-links a:hover { color: var(--pc-blue); }
.social-link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--pc-blue); background: var(--pc-blue-light); }

.toast-container { z-index: 2000; }
.pagination .page-link { margin: 0 3px; border: 0; border-radius: 9px; color: var(--pc-blue); }
.pagination .active .page-link { background: var(--pc-blue); }
.badge { padding: .48em .75em; border-radius: 8px; }
.status-confirmada, .status-concluida, .status-aprovado { color: #087d68; background: #dff8f2; }
.status-pendente, .status-analise, .status-reagendada { color: #926400; background: #fff5d9; }
.status-cancelada, .status-reprovado { color: #b42335; background: #ffe8eb; }
.status-atendimento { color: #0b55b5; background: #e5f1ff; }
