/* LongaVita - identidade do logo (teal suave + rosa coral) | fonte Nunito (legivel p/ idoso) */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #2E9E96;        /* teal suave (Longa) */
    --primary-dark: #237D77;   /* hover / links */
    --secondary: #EF8E8B;      /* rosa coral (Vita) */
    --secondary-dark: #D96E6B; /* texto sobre rosa / preco */
    --dark: #33403F;           /* titulos (cinza-petroleo, nao preto) */
    --text: #4A5654;           /* corpo */
    --light: #F7FBFA;          /* fundo da pagina (off-white com toque teal) */
    --soft-teal: #EAF6F3;      /* fundo de secao clarinho */
    --soft-pink: #FDEEEC;      /* fundo de secao rosa clarinho */
    --success: #2E9E96;
    --card-shadow: 0 4px 18px rgba(46,158,150,0.10);
}

html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; color: var(--text); line-height: 1.7; font-size: 17px;
    background: linear-gradient(165deg, #FBFCFB 0%, #F1F8F4 60%, #FDF2F1 100%); background-attachment: fixed; min-height: 100vh; }

/* HEADER (Liquid Glass - opcao C) */
header { background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 14px rgba(46,158,150,0.06); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; max-width: 1400px; margin: 0 auto; gap: 1rem; flex-wrap: wrap; }
.logo { font-size: 1.9rem; font-weight: 800; text-decoration: none; display: flex; align-items: center; gap: 0.6rem; letter-spacing: -0.5px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { display: flex; }
.logo-tagline { font-size: 0.6rem; font-weight: 400; color: var(--primary); letter-spacing: 0.6px; margin-top: 3px; white-space: nowrap; }
.logo-longa { color: var(--primary); }
.logo-vita { color: var(--secondary); }
.logo-lotus { height: 50px; width: auto; display: block; }
nav { display: flex; gap: 0.4rem; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--text); font-weight: 700; font-size: 0.95rem; padding: 0.5rem 1rem;
    border-radius: 999px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); transition: all 0.2s ease; }
nav a:hover { background: rgba(255, 255, 255, 0.85); color: var(--primary); }
nav a.active { background: rgba(255, 255, 255, 0.78); color: var(--primary); border-color: rgba(46,158,150,0.28); }

.btn-primary { background: var(--primary); color: white; padding: 0.8rem 1.6rem; border-radius: 12px; border: none;
    cursor: pointer; font-weight: 700; font-size: 1.02rem; transition: all 0.2s ease; text-decoration: none; display: inline-block; font-family: inherit; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(46,158,150,0.28); }
.btn-secondary { background: white; color: var(--primary); padding: 0.8rem 1.6rem; border-radius: 12px;
    border: 2px solid var(--primary); cursor: pointer; font-weight: 700; font-size: 1.02rem; transition: all 0.2s ease; text-decoration: none; display: inline-block; font-family: inherit; }
.btn-secondary:hover { background: var(--soft-teal); }

/* HERO */
.hero { background: linear-gradient(135deg, var(--soft-teal) 0%, var(--soft-pink) 100%); padding: 4.5rem 2rem; text-align: center; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 3rem; font-weight: 800; color: var(--dark); margin-bottom: 1rem; letter-spacing: -0.5px; line-height: 1.2; }
.hero-subtitle { font-size: 1.3rem; color: var(--text); margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* CONTAINER / SECTIONS */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
section { padding: 4rem 0; }
section h2 { font-size: 2.2rem; font-weight: 800; color: var(--dark); margin-bottom: 0.8rem; text-align: center; letter-spacing: -0.5px; }
.section-subtitle { text-align: center; color: var(--text); margin-bottom: 3rem; font-size: 1.15rem; }

/* CARDS */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.card { background: white; border-radius: 16px; padding: 2rem; box-shadow: var(--card-shadow); transition: all 0.25s ease; border-top: 4px solid var(--primary); }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(46,158,150,0.18); }
.card-icon { font-size: 2.4rem; margin-bottom: 1rem; height: 60px; display: flex; align-items: center; color: var(--primary); }
.card h3 { font-size: 1.35rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.card p { color: var(--text); font-size: 1rem; }

/* DISEASES */
.diseases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.disease-card { background: white; border-radius: 14px; padding: 1.5rem; border-left: 5px solid var(--secondary);
    box-shadow: var(--card-shadow); transition: all 0.25s ease; }
.disease-card:hover { box-shadow: 0 10px 24px rgba(239,142,139,0.2); transform: translateX(5px); }
.disease-name { font-weight: 700; font-size: 1.15rem; color: var(--dark); margin-bottom: 0.4rem; }
.disease-desc { font-size: 0.98rem; color: var(--text); }

/* MARKETPLACE */
.marketplace-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.product-card { background: white; border-radius: 14px; overflow: hidden; box-shadow: var(--card-shadow); transition: all 0.25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(46,158,150,0.18); }
.product-image { width: 100%; height: 200px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex; align-items: center; justify-content: center; font-size: 3rem; color: white; }
.product-info { padding: 1.5rem; }
.product-name { font-weight: 700; font-size: 1.15rem; color: var(--dark); margin-bottom: 0.4rem; }
.product-price { color: var(--secondary-dark); font-size: 1.4rem; font-weight: 800; margin: 0.5rem 0; }

/* PROFESSIONALS */
.professionals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.professional-card { background: white; border-radius: 16px; padding: 2rem; text-align: center; box-shadow: var(--card-shadow); transition: all 0.25s ease; border-bottom: 4px solid var(--secondary); }
.professional-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(46,158,150,0.18); }
.professional-avatar { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white; }
.professional-name { font-weight: 700; font-size: 1.15rem; color: var(--dark); margin-bottom: 0.3rem; }
.professional-specialty { color: var(--primary); font-size: 0.95rem; margin-bottom: 1rem; font-weight: 700; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; margin: 0.15rem; }
.tag-tele { background: var(--soft-teal); color: var(--primary-dark); }
.tag-agenda { background: var(--soft-pink); color: var(--secondary-dark); }
.tag-verif { background: #E3F3EC; color: #1f7a5e; }

/* COMMUNITY */
.community-section { background: linear-gradient(135deg, var(--soft-teal) 0%, var(--soft-pink) 100%); border-radius: 20px; padding: 3rem; text-align: center; }
.community-section h3 { font-size: 1.9rem; font-weight: 800; color: var(--dark); margin-bottom: 1rem; }
.community-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.community-feature { padding: 1.5rem; background: white; border-radius: 14px; box-shadow: var(--card-shadow); }
.community-feature i { font-size: 2rem; color: var(--secondary); margin-bottom: 0.5rem; }
.community-feature h4 { font-weight: 700; color: var(--dark); }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; margin: 2rem 0; }
.stat { text-align: center; padding: 2rem; background: white; border-radius: 14px; box-shadow: var(--card-shadow); }
.stat-number { font-size: 2.6rem; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text); font-size: 0.95rem; margin-top: 0.5rem; }

/* FOOTER */
footer { background: var(--dark); color: white; padding: 3rem 2rem; margin-top: 4rem; }
.footer-content { max-width: 1400px; margin: 0 auto 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-section h4 { margin-bottom: 1rem; font-size: 1.15rem; font-weight: 700; }
.footer-section a { display: block; color: rgba(255,255,255,0.75); text-decoration: none; margin-bottom: 0.5rem; transition: all 0.2s ease; }
.footer-section a:hover { color: var(--secondary); padding-left: 5px; }
.footer-section p { color: rgba(255,255,255,0.75); }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a { width: 42px; height: 42px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; margin: 0; }
.social-links a:hover { background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 2rem; text-align: center; }
.footer-bottom p { opacity: 0.75; margin-bottom: 0.5rem; }
.disclaimer { font-size: 0.9rem; opacity: 0.85; max-width: 700px; margin: 0 auto 1rem; }

.empty { text-align: center; padding: 2rem; opacity: 0.6; }

/* ===== PAGINAS DE DETALHE ===== */
.detail { max-width: 860px; margin: 0 auto; padding: 3rem 2rem; }
.breadcrumb { font-size: 0.95rem; margin-bottom: 1.5rem; opacity: 0.85; }
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.detail h1 { font-size: 2.4rem; font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; line-height: 1.2; letter-spacing: -0.5px; }
.detail .lead { font-size: 1.2rem; color: var(--text); margin-bottom: 2rem; }
.detail .body { font-size: 1.1rem; line-height: 1.85; white-space: pre-line; }
.detail-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; }
.detail-avatar { width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: white; }
.detail-icon { font-size: 2.4rem; color: var(--primary); }
.divider { border: none; border-top: 1px solid #e3ece9; margin: 2rem 0; }
.sub-list { list-style: none; display: grid; gap: 0.8rem; }
.sub-list a { display: block; background: white; border-radius: 12px; padding: 1rem 1.25rem; box-shadow: var(--card-shadow); text-decoration: none; color: var(--dark); border-left: 4px solid var(--secondary); transition: all 0.2s ease; }
.sub-list a:hover { transform: translateX(4px); box-shadow: 0 8px 18px rgba(239,142,139,0.2); }
.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.5rem 0; }
.thread-post { background: white; border-radius: 14px; padding: 1.5rem; box-shadow: var(--card-shadow); margin-bottom: 1rem; }
.thread-post.op { border-left: 4px solid var(--primary); border-radius: 0 14px 14px 0; }
.thread-meta { font-size: 0.9rem; opacity: 0.75; margin-bottom: 0.6rem; }
.thread-meta strong { color: var(--primary); }
.price-box { font-size: 2.1rem; font-weight: 800; color: var(--secondary-dark); margin: 1rem 0; }
a.card-link { text-decoration: none; color: inherit; display: block; }

/* ===== AUTH + CTA (Onda 05) ===== */
.nav-auth { display: flex; align-items: center; gap: 1rem; }
.nav-hi { font-weight: 700; color: var(--primary); }
.nav-login { text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.02rem; }
.nav-login:hover { color: var(--primary); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.95rem; }

.auth-wrap { max-width: 460px; margin: 0 auto; padding: 3rem 1.5rem; }
.auth-card { background: white; border-radius: 18px; padding: 2.5rem 2rem; box-shadow: var(--card-shadow); border-top: 5px solid var(--primary); }
.auth-card h1 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 0.3rem; text-align: center; }
.auth-sub { text-align: center; color: var(--text); margin-bottom: 1.8rem; }
.auth-field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.auth-field label { font-weight: 700; color: var(--dark); margin-bottom: 0.35rem; font-size: 0.98rem; }
.auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password] {
    font-family: inherit; font-size: 1.05rem; padding: 0.7rem 0.9rem; border: 2px solid #dce8e5;
    border-radius: 12px; background: var(--light); color: var(--dark); width: 100%; transition: border 0.2s; }
.auth-card input:focus { outline: none; border-color: var(--primary); background: white; }
.field-help { font-size: 0.85rem; opacity: 0.7; margin-top: 0.25rem; }
.field-err { font-size: 0.85rem; color: var(--secondary-dark); margin-top: 0.25rem; font-weight: 700; }
.auth-error { background: var(--soft-pink); color: var(--secondary-dark); padding: 0.8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 700; }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; margin: 0.5rem 0; cursor: pointer; line-height: 1.4; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.auth-foot { text-align: center; margin-top: 1.5rem; font-size: 1rem; }
.auth-foot a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.join-cta { background: linear-gradient(135deg, var(--soft-teal) 0%, var(--soft-pink) 100%); border-radius: 20px; padding: 3rem 2rem; text-align: center; }
.join-icon { font-size: 2.6rem; color: var(--secondary); margin-bottom: 0.6rem; }
.join-cta h3 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 0.6rem; }
.join-cta p { max-width: 600px; margin: 0 auto 1.6rem; font-size: 1.1rem; color: var(--text); }

/* tagline some em telas bem estreitas pra nao apertar o header */
@media (max-width: 430px) { .logo-tagline { font-size: 0.55rem; letter-spacing: 0.3px; } }

/* ===== MOBILE / RESPONSIVO (Onda 07) ===== */
.nav-toggle { display: none; background: none; border: none; color: var(--primary); font-size: 1.7rem; cursor: pointer; padding: 0.2rem 0.4rem; line-height: 1; }
.nav-wrap { display: flex; align-items: center; gap: 1.6rem; }

/* menu vira hamburguer ate 860px */
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-wrap { display: none; flex-direction: column; align-items: stretch; width: 100%; gap: 0; margin-top: 0.6rem; }
    .nav-wrap.open { display: flex; }
    .nav-wrap nav { flex-direction: column; width: 100%; gap: 0; }
    .nav-wrap nav a { padding: 0.95rem 0.4rem; border-bottom: 1px solid #eef1f0; font-size: 1.12rem; }
    .nav-wrap nav a::after { display: none; }
    .nav-auth { width: 100%; flex-direction: column; align-items: stretch; gap: 0.7rem; margin-top: 0.9rem; }
    .nav-auth .nav-login, .nav-auth .btn-primary, .nav-auth .nav-hi { width: 100%; text-align: center; }
    .nav-auth .btn-sm { padding: 0.8rem 1.1rem; font-size: 1.05rem; }
}

/* tamanhos confortaveis no celular ate 768px */
@media (max-width: 768px) {
    .navbar { padding: 0.9rem 1.25rem; }
    .container { padding: 0 1.25rem; }
    section { padding: 2.5rem 0; }
    .hero { padding: 3rem 1.25rem; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn-primary, .hero-cta .btn-secondary { width: 100%; }
    section h2 { font-size: 1.7rem; }
    .section-subtitle { font-size: 1.05rem; margin-bottom: 2rem; }
    .card { padding: 1.6rem; }
    .community-section, .join-cta { padding: 2.2rem 1.25rem; }
    .community-section h3, .join-cta h3 { font-size: 1.5rem; }
    .detail { padding: 2rem 1.25rem; }
    .detail h1 { font-size: 1.7rem; }
    .detail .lead { font-size: 1.1rem; }
    .detail .body { font-size: 1.05rem; }
    .detail-avatar { width: 72px; height: 72px; font-size: 1.9rem; }
    .auth-wrap { padding: 2rem 1rem; }
    .auth-card { padding: 2rem 1.5rem; }
    .stat-number { font-size: 2.1rem; }
    footer { padding: 2.5rem 1.25rem; }
}

/* select do cadastro de profissional, mesmo visual dos inputs */
.auth-card select { font-family: inherit; font-size: 1.05rem; padding: 0.7rem 0.9rem;
    border: 2px solid #dce8e5; border-radius: 12px; background: var(--light); color: var(--dark);
    width: 100%; transition: border 0.2s; cursor: pointer; }
.auth-card select:focus { outline: none; border-color: var(--primary); background: white; }
/* no mobile, os grids 2-col do cadastro viram 1-col pra nao espremer */
@media (max-width: 540px) {
    .auth-card div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ===== ONDA 10: helpers mobile + dropdown glass ===== */
.hide-mobile-extra { display: block; }   /* desktop: mostra normal */
.show-mobile-only { display: none; }      /* desktop: esconde botao "Ver todas" */
.see-all { margin: 1.5rem auto 0; display: inline-flex; align-items: center; gap: 0.5rem; }
@media (max-width: 768px) {
    .hide-mobile-extra { display: none; }  /* mobile: esconde doencas 4-6 */
    .show-mobile-only { display: inline-flex !important; }  /* mobile: mostra botao */
    .see-all { width: 100%; justify-content: center; }
}

/* dropdown do menu mobile tambem em glass */
@media (max-width: 860px) {
    .nav-wrap.open { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(14px) saturate(160%);
        -webkit-backdrop-filter: blur(14px) saturate(160%);
        border-radius: 14px; padding: 0.5rem 0.8rem 0.9rem;
        border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 8px 24px rgba(46,158,150,0.10); }
    .nav-wrap nav a { background: transparent; border: none; box-shadow: none; border-radius: 0;
        padding: 0.95rem 0.4rem; font-size: 1.12rem; }
    .nav-wrap nav a.active { background: rgba(46,158,150,0.10); border-radius: 10px; }
}

/* ===== ONDA 11: paywall + card-link em grid + espacos menores ===== */
/* card-link wrappa o card (Pilares "O que voce encontra aqui") */
a.card-link { text-decoration: none; color: inherit; display: block; }
a.card-link:hover .card { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(46,158,150,0.18); }

/* preview da doenca pra deslogado: fade no fim */
.body-preview { position: relative; max-height: 280px; overflow: hidden;
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }

/* paywall: convite gentil pra criar conta */
.paywall { background: linear-gradient(135deg, var(--soft-teal) 0%, var(--soft-pink) 100%);
    border-radius: 20px; padding: 2.2rem 1.8rem; text-align: center; margin-top: 1.2rem; }
.paywall-icon { font-size: 2.4rem; color: var(--secondary); margin-bottom: 0.5rem; }
.paywall h3 { font-size: 1.6rem; font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; }
.paywall p { max-width: 540px; margin: 0 auto 1.3rem; color: var(--text); font-size: 1.05rem; }

/* espaços menores entre secoes no mobile */
@media (max-width: 768px) {
    section { padding: 2rem 0; }
    .hero { padding: 2.5rem 1.25rem; }
}

/* ===== ONDA 13: FORUM ===== */
.forum-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.forum-cat { background: white; border-radius: 14px; padding: 1.2rem; display: flex; gap: 1rem; box-shadow: var(--card-shadow); border-left: 4px solid var(--primary); transition: all 0.2s; }
.forum-cat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(46,158,150,0.18); }
.forum-cat-icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: white; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.forum-cat-info { min-width: 0; }
.forum-cat-name { font-weight: 800; font-size: 1.1rem; color: var(--dark); margin-bottom: 0.2rem; }
.forum-cat-desc { font-size: 0.95rem; color: var(--text); margin-bottom: 0.4rem; }
.forum-cat-meta { font-size: 0.85rem; color: var(--primary); font-weight: 700; }
.forum-cat-head { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.forum-cat-head .forum-cat-icon { width: 64px; height: 64px; font-size: 1.7rem; }

.topic-list { display: flex; flex-direction: column; gap: 0.5rem; }
.topic-row { display: flex; gap: 0.9rem; padding: 1rem 1.2rem; background: white; border-radius: 12px;
    box-shadow: var(--card-shadow); text-decoration: none; color: var(--dark); transition: all 0.2s;
    border-left: 3px solid transparent; }
.topic-row:hover { border-left-color: var(--primary); transform: translateX(3px); }
.topic-row-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--soft-teal); color: var(--primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.topic-row-info { min-width: 0; flex: 1; }
.topic-row-title { font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.topic-row-meta { font-size: 0.85rem; opacity: 0.75; }

/* form de resposta no topico */
.reply-form { background: white; border-radius: 14px; padding: 1.2rem; box-shadow: var(--card-shadow); margin-top: 1.5rem; }
.reply-form textarea, .auth-card textarea { font-family: inherit; font-size: 1.05rem; padding: 0.7rem 0.9rem;
    border: 2px solid #dce8e5; border-radius: 12px; background: var(--light); color: var(--dark);
    width: 100%; transition: border 0.2s; resize: vertical; }
.reply-form textarea:focus, .auth-card textarea:focus { outline: none; border-color: var(--primary); background: white; }

/* ===== Onda 16: busca de doencas + CTA cards ===== */
[x-cloak] { display: none !important; }

/* Busca de doencas (autocomplete) */
.disease-search { position: relative; max-width: 560px; margin: 0 auto 1rem; }
.disease-search .ds-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--primary); font-size: 1rem; pointer-events: none; }
.disease-search input { width: 100%; padding: 0.9rem 2.6rem; border: 2px solid rgba(46,158,150,0.25);
    border-radius: 14px; font-family: inherit; font-size: 1.02rem; color: var(--text); background: white;
    transition: all 0.2s ease; box-sizing: border-box; }
.disease-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 6px 18px rgba(46,158,150,0.18); }
.disease-search input::placeholder { color: #9aa8a6; }
.ds-clear { position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%); background: none;
    border: none; font-size: 1.5rem; line-height: 1; color: #9aa8a6; cursor: pointer; padding: 0 0.3rem; }
.ds-clear:hover { color: var(--secondary-dark); }
.ds-count { text-align: center; color: var(--text); opacity: 0.7; font-size: 0.9rem; margin: 0 0 1.2rem; }

/* CTA cards (marketplace + sou profissional) */
.cta-card { text-align: center; max-width: 620px; margin: 0 auto; border-top-color: var(--secondary); }
.cta-card .card-icon { justify-content: center; color: var(--secondary); }
.cta-card h3 { color: var(--dark); margin-bottom: 0.5rem; }
.cta-card p { margin-bottom: 1.2rem; }
.cta-card .btn-primary { display: inline-block; }
.cta-doctor { border-top-color: var(--primary); }
.cta-doctor .card-icon { color: var(--primary); }

/* ===== Onda 19: foto do profissional no avatar ===== */
.professional-avatar img, .detail-avatar img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}

/* ===== Onda 21: inicial do nome como placeholder de avatar ===== */
.avatar-initial { font-size: 2rem; font-weight: 800; color: white; line-height: 1;
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.detail-avatar .avatar-initial { font-size: 2.4rem; }
