/* ── HOME — AVATAR BAR ── */
.home-avatar-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 18px;
}
.home-avatar-photo {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--tiffany-bd); flex-shrink: 0;
}
.home-avatar-placeholder {
  background: var(--surface2); display: flex;
  align-items: center; justify-content: center; font-size: 22px;
}
.home-avatar-info { flex: 1; min-width: 0; }
.home-avatar-name { font-size: 16px; font-weight: 700; color: var(--text1); }
.home-avatar-handle { font-size: 12px; color: var(--text3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-avatar-edit-btn {
  font-size: 15px; color: var(--text3); text-decoration: none;
  width: 34px; height: 34px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--surface2);
  transition: border-color .15s, color .15s; flex-shrink: 0;
}
.home-avatar-edit-btn:hover { border-color: var(--tiffany-bd); color: var(--tiffany); }

/* ── HOME — LOADING / ERROR / EMPTY ── */
.home-loading {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 48px 20px; color: var(--text3);
}
.home-spinner {
  width: 36px; height: 36px; border: 3px solid var(--surface2);
  border-top-color: var(--tiffany); border-radius: 50%;
  animation: spin .8s linear infinite;
}
.home-loading-text { font-size: 13px; }
.home-error {
  background: rgba(232,122,122,.1); border: 1px solid rgba(232,122,122,.25);
  border-radius: var(--r); padding: 14px 16px; color: var(--danger);
  font-size: 13px; text-align: center; margin-top: 8px;
}
.home-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 48px 20px; text-align: center;
}
.home-empty-icon { font-size: 36px; opacity: .35; }
.home-empty-title { font-size: 15px; font-weight: 500; color: var(--text3); }
.home-empty-sub { font-size: 13px; color: var(--text4); max-width: 300px; line-height: 1.6; }
.home-cta {
  display: inline-block; padding: 11px 24px; background: var(--tiffany);
  color: #1a1a2e; border-radius: var(--r-pill); font-weight: 600;
  font-size: 14px; text-decoration: none; margin-top: 8px;
}

/* ── HOME — SUGESTÕES ── */
.home-sug-header-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.home-badge-new {
  font-size: 11px; font-weight: 700; color: var(--tiffany);
  background: var(--tiffany-bg); border: 1px solid var(--tiffany-bd);
  border-radius: 20px; padding: 4px 12px; letter-spacing: .04em;
}
.home-badge-cached {
  font-size: 11px; font-weight: 600; color: var(--text3);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px;
}
.home-regen-btn {
  font-size: 12px; font-weight: 600; color: var(--text2);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 6px 14px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.home-regen-btn:hover { border-color: var(--tiffany-bd); color: var(--tiffany); }
.home-regen-btn:disabled { opacity: .5; cursor: default; }

.home-sug-grid { display: flex; flex-direction: column; gap: 14px; }

.home-sug-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 20px;
  transition: border-color .15s;
}
.home-sug-card:hover { border-color: var(--border2); }

.home-sug-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.home-sug-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text3); flex-shrink: 0;
}
.home-sug-tipo {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid; border-radius: 20px; padding: 3px 10px;
}
.home-sug-title {
  font-size: 15px; font-weight: 700; color: var(--text1); margin-bottom: 6px; line-height: 1.4;
}
.home-sug-desc {
  font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 12px;
}
.home-sug-gancho-wrap {
  background: var(--surface2); border-radius: var(--r);
  padding: 10px 14px; margin-bottom: 10px;
}
.home-sug-gancho-label {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 5px;
}
.home-sug-gancho {
  font-size: 13px; color: var(--tiffany); line-height: 1.5; font-style: italic;
}
.home-sug-formato {
  font-size: 11.5px; color: var(--text3); line-height: 1.5;
  margin-bottom: 12px;
}
.home-sug-actions { display: flex; justify-content: flex-end; gap: 8px; }
.home-sug-btn {
  font-size: 12.5px; font-weight: 600; color: var(--tiffany);
  background: var(--tiffany-bg); border: 1px solid var(--tiffany-bd);
  border-radius: var(--r-pill); padding: 7px 16px; cursor: pointer;
  transition: opacity .15s;
}
.home-sug-btn:hover { opacity: .8; }
.home-sug-btn-sec {
  color: var(--text3); background: var(--surface2);
  border-color: var(--border);
}

/* ── Avatar picker ── */
.home-picker-title {
  font-size: 14px; font-weight: 700; color: var(--text1);
  margin-bottom: 16px;
}
.home-av-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
}
.home-av-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 12px 14px;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.home-av-card:hover { border-color: var(--tiffany-bd); background: var(--tiffany-bg); }
.home-av-photo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; }
.home-av-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-av-placeholder {
  width: 56px; height: 56px; border-radius: 50%; background: var(--surface2);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.home-av-name { font-size: 13px; font-weight: 600; color: var(--text1); margin-bottom: 4px; }
.home-av-sub  { font-size: 11px; color: var(--text3); margin-bottom: 10px; }
.home-av-select-btn {
  font-size: 11.5px; font-weight: 600; color: var(--tiffany);
  background: var(--tiffany-bg); border: 1px solid var(--tiffany-bd);
  border-radius: var(--r-pill); padding: 5px 14px; cursor: pointer; pointer-events: none;
}

/* ── ABA AVATARES — IDENTITY CARD ── */
.av-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 12px;
  transition: border-color .15s;
}
.av-card-ativo { border-color: var(--tiffany-bd); background: var(--tiffany-bg); }
.av-card-identity { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.av-card-photo {
  position: relative; width: 72px; height: 96px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0; background: var(--surface2);
}
.av-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.av-card-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.av-card-badge-ativo {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  background: var(--tiffany); color: #000; font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 20px; white-space: nowrap;
}
.av-card-meta { flex: 1; min-width: 0; }
.av-card-nome  { font-size: 15px; font-weight: 700; color: var(--text1); margin-bottom: 3px; }
.av-card-handle { font-size: 12px; color: var(--tiffany); font-family: monospace; margin-bottom: 6px; }
.av-card-traco {
  font-size: 12px; color: var(--text3); font-style: italic; line-height: 1.4;
  border-left: 2px solid var(--tiffany-bd); padding-left: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.av-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Legacy list items still used elsewhere */
.av-list-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 10px;
}
.av-list-item-ativo { border-color: var(--tiffany-bd); background: var(--tiffany-bg); }
.av-list-photo { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.av-list-photo img { width: 100%; height: 100%; object-fit: cover; }
.av-list-placeholder {
  width: 48px; height: 48px; border-radius: 50%; background: var(--surface2);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.av-list-info { flex: 1; min-width: 0; }
.av-list-name { font-size: 14px; font-weight: 600; color: var(--text1); }
.av-list-sub  { font-size: 12px; color: var(--text3); margin-top: 2px; }
.av-list-badge-ativo { font-size: 11px; font-weight: 600; color: var(--tiffany); }
.av-list-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

/* ── HOME — GALERIA DE IMAGENS ── */
.home-galeria-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.home-galeria-title {
  font-size: 13px; font-weight: 700; color: var(--text2);
  letter-spacing: .04em; text-transform: uppercase;
}
.home-galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.home-galeria-item {
  border-radius: var(--r); overflow: hidden; cursor: zoom-in;
  background: var(--surface2); aspect-ratio: 9/16;
}
.home-galeria-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .2s;
}
.home-galeria-item:hover img { transform: scale(1.04); }
