/* Perfis e cadastro — componentes próprios, com as cores do Autoridades. */
[hidden] { display: none !important; }
header.topbar .nav-container { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
.nav-container > .logo, .nav-links-wrapper { flex-shrink: 0; }
.nav-container .header-search { flex: 0 0 240px; }
.nav-links-wrapper { white-space: nowrap; }
.profile-eyebrow { display: block; color: var(--accent-color); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; margin-bottom: .75rem; }
.profile-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--accent-color); background: var(--accent-color); color: #fff; border-radius: 9px; padding: .85rem 1.2rem; text-decoration: none; font: inherit; font-weight: 750; cursor: pointer; line-height: 1.35; }
.profile-button:hover { filter: brightness(.92); color: #fff; }
.profile-button:disabled { opacity: .55; cursor: wait; }
.profile-button:focus-visible, .profile-tabs a:focus-visible, .signup-faq summary:focus-visible { outline: 3px solid var(--accent-warm); outline-offset: 4px; }
.profile-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 2rem; }
.profile-text-link { font-weight: 700; }
.profile-admin form { display: grid; gap: 1.1rem; min-width: 0; }
.profile-admin label { display: grid; gap: .45rem; font-weight: 650; }
.profile-admin input, .profile-admin select, .profile-admin textarea { width: 100%; min-width: 0; border: 1px solid var(--border-color); border-radius: 7px; padding: .8rem; background: var(--bg-color); color: var(--text-primary); font: inherit; box-sizing: border-box; }
.profile-admin textarea { resize: vertical; }
.signup-section { margin: 0 0 4rem; }
.profile-tabs { display: flex; gap: .3rem; overflow-x: auto; white-space: nowrap; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.profile-tabs a { flex: 0 0 auto; padding: .9rem 1.1rem; text-decoration: none; color: var(--text-secondary); font-weight: 700; border-bottom: 3px solid transparent; }
.profile-tabs a[aria-current='location'] { color: var(--accent-color); border-bottom-color: var(--accent-color); }
.profile-panel { scroll-margin-top: 7rem; margin: 2rem 0; }
.profile-panel > p { color: var(--text-secondary); }
.profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.profile-section-heading h2 { margin: 0; }
.profile-feed-grid, .profile-gallery, .profile-social-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.profile-feed-grid article, .profile-social-post { padding: 1.25rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; min-width: 0; overflow-wrap: anywhere; }
.profile-feed-image { display: block; overflow: hidden; border-radius: 7px; background: var(--bg-color); aspect-ratio: 16 / 9; }
.profile-feed-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-feed-grid h3 { font-size: 1.1rem; margin: .75rem 0; }
.profile-feed-grid h3 a { color: var(--text-primary); }
.profile-feed-grid p, .profile-feed-grid time { color: var(--text-secondary); font-size: .9rem; }
.profile-video-preview { position: relative; display: block; width: 100%; border: 0; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: #112f32; color: #fff; }
.profile-video-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.profile-video-preview span { position: absolute; inset: auto 0 0; background: #112f32e8; padding: .65rem; font-weight: 700; }
.profile-video-frame { width: 100%; aspect-ratio: 16/9; border: 0; }
.profile-gallery figure { margin: 0; min-width: 0; }
.profile-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.profile-gallery figcaption { margin-top: .6rem; color: var(--text-secondary); font-size: .9rem; }
.profile-social-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-social-post > a { display: block; margin-top: 1rem; }
.profile-instagram-frame { width: 100%; height: 560px; border: 0; margin-top: 1rem; background: #fff; }
.profile-commercial { margin: 2rem 0; padding: 1.5rem; border-left: 4px solid #b88c39; background: var(--bg-card); }
.profile-commercial h2 { font-size: 1.15rem; }
.profile-commercial > p { line-height: 1.6; }
.profile-author-review { white-space: pre-line; }
.profile-verified { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent-color); font-size: .85rem; margin: .5rem 0; }
.profile-admin #profile-admin-edit, .profile-admin #profile-admin-upload { margin-top: 2.5rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.profile-admin .profile-checkbox { display: flex; align-items: center; }
.profile-admin .profile-checkbox input { width: 1.2rem; }
@media (max-width: 1000px) { .profile-feed-grid, .profile-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .profile-feed-grid, .profile-gallery, .profile-social-posts { grid-template-columns: 1fr; } }

/* Cadastro direto: uma comparação, serviços avulsos e contato. */
.signup-simple { padding: clamp(1rem, 3vw, 2.5rem) 0; }
.signup-intro { margin-bottom: 2.5rem; }
.signup-intro h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -.03em; line-height: 1.15; margin: 0 0 .8rem; }
.signup-intro > p { margin: 0 0 1rem; color: var(--text-secondary); font-size: 1.1rem; }
.signup-payment { color: var(--accent-color); font-size: 1.08rem; }
.signup-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.signup-option { padding: 2rem 2rem 2rem 0; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; scroll-margin-top: 7rem; }
.signup-option + .signup-option { border-left: 1px solid var(--border-color); padding-left: 2rem; padding-right: 0; }
.signup-option h2 { margin: 0 0 .7rem; font-size: 1.4rem; }
.signup-option-premium h2 { color: var(--accent-color); }
.signup-cost { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin: 0 0 1.25rem; }
.signup-cost strong { font-size: 2rem; line-height: 1.2; letter-spacing: -.025em; }
.signup-cost s, .signup-cost > span { color: var(--text-secondary); font-size: .9rem; }
.signup-option ul { padding-left: 1.15rem; margin: 0 0 1.75rem; flex-grow: 1; }
.signup-option li { padding-left: .25rem; margin-bottom: .7rem; line-height: 1.55; }
.signup-option li::marker { color: var(--accent-color); }
.signup-extras { margin-top: 2.25rem; }
.signup-extras > h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
.signup-extra { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-color); scroll-margin-top: 7rem; }
.signup-extra h3 { margin: 0 0 .3rem; font-size: 1rem; }
.signup-extra h3 span { font-weight: 500; }
.signup-extra p { margin: 0; font-size: .9rem; color: var(--text-secondary); }
.signup-extra > a { flex-shrink: 0; font-weight: 700; }
.signup-how { color: var(--text-secondary); margin: 1.75rem 0 1rem; }
.signup-details summary { cursor: pointer; font-size: .9rem; font-weight: 650; }
.signup-details p { color: var(--text-secondary); font-size: .9rem; line-height: 1.65; }
.signup-details summary:focus-visible { outline: 3px solid var(--accent-warm); outline-offset: 4px; }
@media (max-width: 650px) {
  .signup-intro { margin-bottom: 1.75rem; }
  .signup-options { grid-template-columns: 1fr; }
  .signup-option { padding: 1.5rem 0; }
  .signup-option + .signup-option { padding: 1.5rem 0; border-left: 0; border-top: 1px solid var(--border-color); }
  .signup-extra { align-items: flex-start; }
}

/* Cadastro: planos claros, exemplo real e respostas sob demanda. */
.signup-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .52fr); align-items: center; gap: 2rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; }
.signup-heading .signup-intro { margin: 0; }
.signup-example { display: flex; align-items: center; gap: 1rem; padding: 1.15rem; border-radius: 12px; background: var(--bg-color); }
.signup-example img { flex: 0 0 82px; width: 82px; height: 82px; object-fit: cover; border-radius: 50%; }
.signup-example span, .signup-example strong, .signup-example a { display: block; }
.signup-example span { font-size: .8rem; color: var(--text-secondary); }
.signup-example strong { margin: .2rem 0; }
.signup-example a { font-size: .9rem; font-weight: 700; }
.signup-options { gap: 1.2rem; border: 0; margin-top: 1.4rem; align-items: stretch; }
.signup-option, .signup-option + .signup-option { padding: 1.75rem; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-card); }
.signup-option-premium { border-color: var(--accent-color) !important; }
.signup-cost strong { color: var(--text-primary); }
.signup-extras { padding: 1.5rem; border: 1px solid var(--border-color); background: var(--bg-card); border-radius: 14px; }
.signup-extra:last-child { border-bottom: 0; padding-bottom: 0; }
.signup-faq-block { margin-top: 2.25rem; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; }
.signup-faq-block h2 { margin: 0 0 .75rem; font-size: 1.35rem; }
.signup-faq-block details { border-top: 1px solid var(--border-color); padding: 1rem 0; }
.signup-faq-block details:last-child { padding-bottom: 0; }
.signup-faq-block summary { cursor: pointer; font-weight: 700; line-height: 1.5; }
.signup-faq-block summary:focus-visible { outline: 3px solid var(--accent-warm); outline-offset: 3px; }
.signup-faq-block details p { color: var(--text-secondary); line-height: 1.65; margin: .75rem 0 0; }
@media (max-width: 700px) { .signup-heading { grid-template-columns: 1fr; gap: 1.4rem; } .signup-options { grid-template-columns: 1fr; } .signup-option, .signup-option + .signup-option { padding: 1.4rem; border: 1px solid var(--border-color); } .signup-option-premium { border-color: var(--accent-color) !important; } .signup-example { padding: .85rem; } }

/* Leitura contínua das seções do perfil. */
.profile-tabs { position: sticky; top: var(--profile-header-height, 70px); z-index: 20; background: var(--bg-color); padding: .2rem 0; }
.profile-flow-panel { scroll-margin-top: var(--profile-scroll-offset, 140px); }
.profile-flow-panel:not(#perfil) { padding-top: 2rem; border-top: 1px solid var(--border-color); }
