* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1A4FA0;
  --blue-mid: #2563C0;
  --blue-light: #EEF3FB;
  --yellow: #FFE000;
  --yellow-dark: #E8C900;
  --yellow-light: #FFF8B0;
  --yellow-text: #7a6400;
  --white: #ffffff;
  --bg: #f0f4fb;
  --text: #1a1a2e;
  --muted: #6b7a99;
  --border: #dde6f5;
  --card-bg: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 68px;
}

@media (min-width: 700px) {
  body { padding-bottom: 0; }
}

.top-nav {
  background: var(--blue);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px; height: 34px;
  background: var(--yellow);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 900; font-size: 17px; line-height: 1;
}
.logo-text .w { color: #fff; }
.logo-text .y { color: var(--yellow); }

.desk-tabs {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

@media (min-width: 700px) { .desk-tabs { display: flex; } }

.desk-tab {
  color: rgba(255,255,255,0.7);
  font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 7px;
  cursor: pointer; border: none; background: none;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.desk-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }
.desk-tab.active { background: rgba(255,255,255,0.15); color: var(--yellow); }

.nav-right {
  display: flex; align-items: center;
  gap: 10px; margin-left: auto;
}

.nav-icon-btn {
  background: rgba(255,255,255,0.12);
  border: none; border-radius: 9px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer; position: relative;
  transition: background 0.15s;
}
.nav-icon-btn:hover { background: rgba(255,255,255,0.22); }

.nav-badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--yellow); color: var(--yellow-text);
  font-size: 9px; font-weight: 900;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif;
}

.btn-entrar {
  background: var(--yellow); color: var(--yellow-text);
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 13px; padding: 7px 16px;
  border-radius: 8px; border: none; cursor: pointer;
  white-space: nowrap; text-decoration: none;
  transition: background 0.15s;
}
.btn-entrar:hover { background: var(--yellow-dark); }

.btn-publicar {
  background: rgba(255,255,255,0.15); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 13px; padding: 7px 16px;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  display: none; transition: background 0.15s;
}
.btn-publicar:hover { background: rgba(255,255,255,0.25); }

@media (min-width: 700px) { .btn-publicar { display: flex; } }

.search-bar {
  background: var(--blue);
  padding: 0 16px 14px;
}

.search-wrap {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  display: flex; align-items: center;
  height: 42px; padding: 0 14px; gap: 10px;
  transition: border-color 0.15s;
  max-width: 640px; margin: 0 auto;
}
.search-wrap:focus-within { border-color: var(--yellow); }

.search-wrap input {
  background: none; border: none; outline: none;
  color: #fff; font-family: 'Nunito Sans', sans-serif;
  font-size: 13px; flex: 1;
}
.search-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.search-icon { font-size: 15px; opacity: 0.6; }

/* Filter row inside search-bar */
.filter-row {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 10px auto 0;
  flex-wrap: wrap;
}

.filter-row select {
  flex: 1;
  min-width: 120px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px;
  padding: 7px 10px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.filter-row select option { color: var(--text); background: white; }

.species-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.bar-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0 16px; margin-bottom: 10px;
}

.species-list {
  display: flex; gap: 12px; padding: 0 16px;
  overflow-x: auto; scrollbar-width: none;
}
.species-list::-webkit-scrollbar { display: none; }

.sp-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  flex-shrink: 0; cursor: pointer;
  text-decoration: none;
}

.sp-bubble {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--blue-light);
  border: 2.5px solid #c5d7f5;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; transition: border-color 0.15s, background 0.15s;
}
.sp-item:hover .sp-bubble,
.sp-item.active .sp-bubble { border-color: var(--yellow); background: #fff8d0; }

.sp-name {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-align: center; line-height: 1.25; max-width: 62px;
}
.sp-item.active .sp-name { color: var(--blue); }

.stats-bar {
  display: flex; background: var(--white);
  border-bottom: 1px solid var(--border);
}

.stat {
  flex: 1; padding: 12px 8px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Nunito', sans-serif;
  font-weight: 900; font-size: 18px; color: var(--blue);
}
.stat-label { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }

.info-bar {
  background: var(--yellow-light);
  border-bottom: 1px solid #f0e000;
  padding: 7px 16px;
  display: flex; gap: 20px;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
}
.info-bar::-webkit-scrollbar { display: none; }

.info-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: var(--yellow-text); flex-shrink: 0;
}

.main {
  padding: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.sec-head {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 12px;
}

.sec-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 15px; color: var(--text);
  display: flex; align-items: center; gap: 7px;
}

.sec-dot {
  width: 4px; height: 16px;
  background: var(--yellow); border-radius: 2px; display: inline-block;
}

.sec-link {
  font-size: 12px; color: var(--blue-mid); font-weight: 700;
  cursor: pointer; text-decoration: none;
  background: none; border: none;
}
.sec-link:hover { text-decoration: underline; }

.bird-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 20px;
}
@media (min-width: 860px) { .bird-grid { grid-template-columns: 1fr 1fr 1fr; } }

.bird-card {
  background: var(--card-bg);
  border-radius: 14px; border: 1px solid var(--border);
  overflow: hidden; cursor: pointer;
  text-decoration: none; display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bird-card:hover {
  border-color: #a0bfea;
  box-shadow: 0 4px 18px rgba(26,79,160,0.10);
}

/* ── header usado fora dos cards (detalhe, perfil) ── */
.bc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.owner-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue-light); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.owner-name { font-weight: 700; font-size: 13px; color: var(--text); }
.owner-city { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ── badges ── */
.badge {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  flex-shrink: 0;
}
.badge-troca { background: #fff3cd; color: #a07000; }
.badge-venda { background: #d1fae5; color: #065f46; }
.badge-expo  { background: var(--blue-light); color: var(--blue-mid); }

/* ── imagem do card ── */
.bc-img {
  background: linear-gradient(135deg, #e8f0fb 0%, #f5f8ff 100%);
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; position: relative;
}
.bc-quality {
  position: absolute; top: 8px; right: 8px;
  background: var(--yellow); color: var(--yellow-text);
  font-size: 10px; font-weight: 900;
  padding: 3px 8px; border-radius: 20px;
  font-family: 'Nunito', sans-serif;
}
.bc-type-badge {
  position: absolute; top: 8px; left: 8px;
  margin-left: 0;
}

/* ── corpo do card ── */
.bc-body { padding: 9px 11px 11px; }

.sp-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--blue-light); color: var(--blue);
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; margin-bottom: 5px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.bird-name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 13px; color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bc-location {
  font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}

.bc-price {
  font-size: 13px; font-weight: 800; color: #065f46;
  margin-bottom: 4px;
}

.bc-creator {
  font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}

.bird-desc {
  font-size: 12px; color: var(--muted);
  line-height: 1.55; margin-bottom: 12px;
}

.bc-footer {
  display: flex; align-items: center; justify-content: space-between;
}

.bird-meta { display: flex; gap: 10px; }

.meta-item {
  font-size: 11px; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 3px;
}

.btn-contact {
  background: var(--yellow); color: var(--yellow-text);
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 12px; padding: 7px 16px;
  border-radius: 9px; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-contact:hover { background: var(--yellow-dark); }
.btn-contact.blue { background: var(--blue); color: #fff; }
.btn-contact.blue:hover { background: var(--blue-mid); }

.gene-promo {
  background: var(--blue); border-radius: 18px;
  padding: 20px; display: flex; align-items: center;
  gap: 16px; margin-bottom: 20px;
  overflow: hidden; position: relative;
}

.gene-circles {
  position: absolute; right: -24px; top: -24px;
  width: 100px; height: 100px; border-radius: 50%;
  border: 22px solid rgba(255,255,255,0.05);
}

.gene-bird { font-size: 52px; flex-shrink: 0; }

.gene-badge {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
}

.gene-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900; font-size: 17px; color: #fff;
  line-height: 1.25; margin-bottom: 10px;
}
.gene-title em { color: var(--yellow); font-style: normal; }

.gene-btn {
  background: var(--yellow); color: var(--yellow-text);
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 12px; padding: 8px 16px;
  border-radius: 9px; border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background 0.15s;
}
.gene-btn:hover { background: var(--yellow-dark); }

.criadores-list {
  display: flex; gap: 12px; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 4px; margin-bottom: 20px;
}
.criadores-list::-webkit-scrollbar { display: none; }

.criador-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 12px; min-width: 128px;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  cursor: pointer; flex-shrink: 0;
  text-decoration: none;
  transition: border-color 0.15s;
}
.criador-card:hover { border-color: #a0bfea; }

.cr-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-light); border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}

.cr-name { font-weight: 700; font-size: 12px; color: var(--text); text-align: center; line-height: 1.3; }
.cr-city { font-size: 11px; color: var(--muted); text-align: center; }

.cr-tag {
  background: var(--blue-light); color: var(--blue);
  font-size: 10px; font-weight: 700;
  padding: 2px 9px; border-radius: 20px;
}

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--border);
  display: flex; align-items: center; height: 60px;
  z-index: 100; padding: 0 8px;
}

@media (min-width: 700px) { .bottom-nav { display: none; } }

.nav-tab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; padding: 6px 0;
  border: none; background: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.tab-icon { font-size: 22px; }

.tab-label {
  font-size: 9px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.nav-tab.active .tab-label { color: var(--blue); }

.tab-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }

.tab-publish {
  flex: 1; display: flex; align-items: center; justify-content: center;
}

.publish-btn {
  width: 48px; height: 48px; background: var(--blue);
  border-radius: 14px; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 14px rgba(26,79,160,0.35);
  transition: background 0.15s;
}
.publish-btn:hover { background: var(--blue-mid); }

.page-header {
  background: var(--blue);
  padding: 20px 16px;
}

.page-header h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900; font-size: 22px; color: #fff;
  margin-bottom: 4px;
}

.page-header p {
  font-size: 13px; color: rgba(255,255,255,0.7);
}

.form-card {
  background: var(--card-bg);
  border-radius: 14px; border: 1px solid var(--border);
  padding: 20px; margin-bottom: 16px;
}

.form-card label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text); margin-bottom: 5px;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: 'Nunito Sans', sans-serif; font-size: 13px;
  color: var(--text); background: var(--bg);
  outline: none; transition: border-color 0.15s;
  margin-bottom: 12px;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--blue);
}

.btn-primary {
  background: var(--blue); color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 14px; padding: 11px 24px;
  border-radius: 10px; border: none; cursor: pointer;
  width: 100%; transition: background 0.15s;
}
.btn-primary:hover { background: var(--blue-mid); }

.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin: 20px 0;
}

.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text);
  text-decoration: none; transition: background 0.15s;
}

.pagination a:hover { background: var(--blue-light); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Lucide icons ── */
[data-lucide] { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── Hero da página de detalhe ── */
.detail-hero {
  width: 100%; height: 240px;
  background: linear-gradient(135deg, #e8f0fb 0%, #d6e4f7 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.detail-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.detail-hero-overlay {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px;
}
.detail-hero svg { color: #94a3b8; }

/* ── Card de detalhe ── */
.detail-card {
  background: var(--card-bg);
  border-radius: 14px; border: 1px solid var(--border);
  padding: 20px; margin-bottom: 12px;
}

.detail-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900; font-size: 22px; color: var(--text);
  margin: 6px 0 4px; line-height: 1.2;
}

/* ── Info chips (sexo, ano, anilha) ── */
.info-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 12px 0;
}
.info-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 10px;
  font-size: 12px; font-weight: 600; color: var(--text);
}
.info-chip [data-lucide] { color: var(--muted); }

/* ── Divisor ── */
.detail-divider {
  height: 1px; background: var(--border);
  margin: 16px 0;
}

/* ── Owner strip ── */
.owner-strip {
  display: flex; align-items: center; gap: 12px;
}
.owner-initial {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-decoration: none;
}
.owner-strip-name {
  font-weight: 700; font-size: 14px; color: var(--text);
  margin-bottom: 2px;
}
.owner-strip-meta {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--muted);
}
.owner-strip-meta [data-lucide] { color: var(--muted); }

/* ── Botões de ação ── */
.action-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 16px;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--border);
  border-radius: 9px; padding: 8px 14px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  cursor: pointer; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: #a0bfea; color: var(--text); }
.btn-ghost.danger:hover { border-color: #fca5a5; color: #dc2626; }
.btn-ghost [data-lucide] { color: inherit; }

/* ── CTA de contato ── */
.contact-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  background: #25D366; color: #fff;
  border-radius: 12px; border: none;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.contact-cta:hover { background: #1ebe5d; }
.contact-cta.blue { background: var(--blue); }
.contact-cta.blue:hover { background: var(--blue-mid); }
.contact-cta [data-lucide] { color: #fff; }

/* ── Preço destacado ── */
.detail-price {
  font-family: 'Nunito', sans-serif;
  font-weight: 900; font-size: 24px; color: #065f46;
  margin: 4px 0 12px;
}

/* ── Info row (aceita troca, interesse, views) ── */
.detail-info-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--muted);
  padding: 10px 12px; background: var(--bg);
  border-radius: 8px; margin-bottom: 8px;
}
.detail-info-row [data-lucide] { margin-top: 1px; flex-shrink: 0; }
.detail-info-row strong { color: var(--text); }

/* ── Aviso anúncio pausado ── */
.alert-warning {
  display: flex; align-items: center; gap: 10px;
  background: #fef9c3; border: 1px solid #fde047;
  border-radius: 10px; padding: 12px 16px;
  font-size: 13px; color: #854d0e; font-weight: 600;
  margin-bottom: 12px;
}

/* ── Ações do dono (pausar/excluir) ── */
.owner-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.btn-pause {
  flex: 1; padding: 10px;
  background: #fef9c3; color: #854d0e;
  border: 1px solid #fde047; border-radius: 10px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s;
}
.btn-pause.reativar {
  background: #dcfce7; color: #166534; border-color: #86efac;
}
.btn-delete {
  flex: 1; padding: 10px;
  background: #fee2e2; color: #991b1b;
  border: 1px solid #fca5a5; border-radius: 10px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s;
}

/* mantém retrocompat */
.bird-detail-header { display: none; }
.detail-quality { display: none; }

/* ── Pedigree chart (genealogia visual) ── */
.pedigree-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 20px;
}

.pedigree {
  display: flex;
  align-items: stretch;
  min-width: max-content;
  gap: 0;
}

/* Generation columns */
.pg-gen {
  display: flex;
  flex-direction: column;
}

/* Node: groups a pair of branches sharing one parent */
.pg-node {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Branch: holds one card, centered vertically */
.pg-branch {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 5px 0;
}

/* Cards */
.pg-card {
  width: 142px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow .15s;
}

a.pg-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.pg-card.subject { border-left: 3px solid #16a34a; background: #f0fdf4; }
.pg-card.pai     { border-left: 3px solid var(--blue); }
.pg-card.mae     { border-left: 3px solid #b45309; }
.pg-card.avo-pat { border-left: 3px solid #93c5fd; }
.pg-card.avo-mat { border-left: 3px solid #fcd34d; }
.pg-card.vazio   { opacity: .4; border-style: dashed; }

.pg-gen-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }
.pg-emoji   { font-size: 18px; margin-bottom: 1px; }
.pg-name    { font-weight: 700; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-sp      { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Connector: 1 → 2 split ── */
.pg-conn2 {
  width: 28px;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Incoming horizontal from left at 50% */
.pg-conn2::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 2px;
  background: var(--border);
  margin-top: -1px;
}

/* Vertical spine from 25% to 75% at x≈14 */
.pg-conn2::after {
  content: '';
  position: absolute;
  left: 13px; top: 25%;
  height: 50%; width: 2px;
  background: var(--border);
}

.pg-conn2-top,
.pg-conn2-bot {
  flex: 1;
  position: relative;
}

/* Outgoing horizontals from spine to cards */
.pg-conn2-top::after,
.pg-conn2-bot::after {
  content: '';
  position: absolute;
  left: 13px; top: 50%;
  width: 15px; height: 2px;
  background: var(--border);
  margin-top: -1px;
}

/* ── Connector: 2 → 4 split (two stacked 1→2 connectors) ── */
.pg-conn4 {
  width: 28px;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.pg-conn4-grp {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pg-conn4-grp::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 2px;
  background: var(--border);
  margin-top: -1px;
}

.pg-conn4-grp::after {
  content: '';
  position: absolute;
  left: 13px; top: 25%;
  height: 50%; width: 2px;
  background: var(--border);
}

.empty-state {
  text-align: center; padding: 40px 16px;
  color: var(--muted);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; font-weight: 600; }

/* ── Galeria de fotos ── */
.foto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.foto-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
}

.foto-item.foto-principal { border-color: var(--yellow); }

.foto-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.foto-badge {
  position: absolute; bottom: 5px; left: 5px;
  background: var(--yellow); color: var(--yellow-text);
  font-size: 9px; font-weight: 900;
  padding: 2px 7px; border-radius: 20px;
  font-family: 'Nunito', sans-serif;
}

.foto-remove {
  position: absolute; top: 5px; right: 5px;
}

.foto-remove button {
  background: rgba(0,0,0,0.55); color: #fff;
  border: none; border-radius: 50%;
  width: 22px; height: 22px;
  font-size: 11px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ── Card com foto real ── */
.bc-img-foto {
  height: 120px;
  overflow: hidden;
  position: relative;
}

.bc-img-foto img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── Perfil do criador ── */
.perfil-header {
  background: var(--blue);
  padding: 24px 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.perfil-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex-shrink: 0;
  overflow: hidden;
}

.perfil-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}

.perfil-info { flex: 1; }

.perfil-nome {
  font-family: 'Nunito', sans-serif;
  font-weight: 900; font-size: 20px; color: #fff;
  margin-bottom: 4px;
}

.perfil-cidade {
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.perfil-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.badge-verificado {
  background: var(--yellow); color: var(--yellow-text);
  font-size: 10px; font-weight: 900;
  padding: 3px 10px; border-radius: 20px;
  font-family: 'Nunito', sans-serif;
}

.badge-tipo {
  background: rgba(255,255,255,0.18); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}

.badge-ibama {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8);
  font-size: 10px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
}

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366; color: #fff;
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 13px; padding: 9px 18px;
  border-radius: 10px; text-decoration: none;
  transition: background 0.15s;
}
.btn-whatsapp:hover { background: #1ebe57; }

/* ── Foto perfil no card de criador ── */
.cr-avatar-foto {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--blue);
  overflow: hidden; flex-shrink: 0;
}
.cr-avatar-foto img { width: 100%; height: 100%; object-fit: cover; }

/* ── Botão voltar ── */
.back-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  height: 38px;
  display: flex;
  align-items: center;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.back-link:hover { opacity: .75; }
.back-link svg { flex-shrink: 0; }

/* ── User menu (nav dropdown) ── */
.user-menu {
  position: relative;
}
.user-avatar-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--yellow); color: var(--blue);
  border: 2px solid rgba(255,255,255,0.35);
  font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; padding: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.user-avatar-btn:hover,
.user-menu.open .user-avatar-btn {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,224,0,0.3);
}
.user-avatar-btn img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.user-dropdown {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; min-width: 210px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 200; overflow: hidden;
}
.user-menu.open .user-dropdown { display: block; }
.ud-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.ud-name {
  font-family: 'Nunito', sans-serif; font-weight: 800;
  font-size: 14px; color: var(--text); line-height: 1.2;
}
.ud-local {
  font-size: 11px; color: var(--muted); margin-top: 2px;
}
.ud-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--text);
  text-decoration: none; transition: background 0.1s;
  cursor: pointer; border: none; background: none; width: 100%;
}
.ud-item:hover { background: var(--bg); }
.ud-item svg { flex-shrink: 0; color: var(--muted); }
.ud-item.danger { color: #dc2626; }
.ud-item.danger svg { color: #dc2626; }
.ud-sep { height: 1px; background: var(--border); margin: 4px 0; }
.ud-highlight {
  background: var(--blue); color: #fff; border-radius: 8px;
  margin: 8px; padding: 9px 12px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 13px; transition: opacity 0.15s;
}
.ud-highlight:hover { opacity: 0.9; }
.ud-highlight svg { flex-shrink: 0; }

/* ── Bottom nav Minha Conta ── */
.nav-tab-avatar {
  width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow); font-size: 11px; font-weight: 900;
  font-family: 'Nunito', sans-serif; color: var(--blue);
  flex-shrink: 0;
}
.nav-tab-avatar img { width: 100%; height: 100%; object-fit: cover; }
