/* Variáveis de cor - Light Mode (padrão) */
:root {
  --bg-body: #f2f2f5;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #777777;
  --card-bg: #ffffff;
  --card-border: #e0e0e0;
  --card-shadow: 0 2px 6px rgba(0,0,0,0.05);
  --header-bg: #f5f5f5;
  --input-bg: #f9f9f9;
  --input-border: #d0d0d0;
  --input-focus: #a0a0a0;
  --accent: #ff5f8f;
  --accent-light: #ffe4ec;
  --accent-dark: #e0457a;
  --success: #18b82d;
  --warning: #ff9f00;
  --danger: #ff0000;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --online: #22c55e;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-body: #0f0f17;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-muted: #888888;
  --card-bg: #1a1a24;
  --card-border: #2a2a38;
  --card-shadow: 0 4px 12px rgba(0,0,0,0.5);
  --header-bg: #1f1f2b;
  --input-bg: #222233;
  --input-border: #444455;
  --input-focus: #666688;
  --accent: #ff5f8f;
  --accent-light: #4a2a3a;
  --accent-dark: #ff3a70;
  --online: #4ade80;
}

/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar .logo {
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
}

.search-container {
  position: relative;
  width: 40%;
}

.search-container input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border-radius: 30px;
  border: 1px solid var(--input-border);
  outline: none;
  background: var(--input-bg);
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.search-container input:focus {
  border-color: var(--input-focus);
}

.search-container::before {
  content: "🔍";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.topbar .top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar .credits {
  color: var(--text-secondary);
  font-weight: 500;
}

.topbar .avatar {
  width: 32px;
  height: 32px;
  background: #333;
  border-radius: 50%;
  cursor: pointer;
}

/* Responsivo topbar */
@media (max-width: 768px) {
  .topbar {
    flex-wrap: wrap;
    padding: 10px 15px;
    gap: 6px;
    align-items: center;
  }

  .topbar .logo {
    font-size: 18px;
    white-space: nowrap;
    flex-shrink: 0;
    order: 1;
  }

  .topbar .top-actions {
    margin-left: auto;
    flex-shrink: 0;
    order: 2;
  }

  /* Search desce pra segunda linha, full width */
  .topbar .search-container {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin: 2px 0 0;
    flex-basis: 100%;
  }
}

/* Layout principal */
.layout {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  gap: 20px;
  padding: 0 15px;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
}

.feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rightbar {
  width: 240px;
  flex-shrink: 0;
}

/* Cards gerais */
.card,
.wish-card,
.stat-card,
.private-card,
.earnings-section,
.balance-box,
.summary-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

h4 {
  background: var(--header-bg);
  padding: 12px 15px;
  margin: 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.card-interior {
  padding: 15px;
}

/* Sidebar */
.sidebar .card {
  margin-bottom: 15px;
}

.sidebar .profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #333;
  margin-bottom: 10px;
}

.sidebar .menu a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.sidebar .menu a.primary {
  background: var(--accent);
  color: white;
  text-align: center;
  font-weight: 600;
}

.sidebar .menu a span.badge {
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  margin-left: 5px;
  font-size: 10px;
}

/* Filters */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.filters button {
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  background: var(--header-bg);
  color: var(--text-primary);
}

.filters button.active {
  background: var(--accent);
  color: white;
}

/* Wish Card */
.wish-card {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wish-card .wish-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wish-card .wish-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  position: relative;
  cursor: pointer;
}

.wish-card .wish-header strong {
  font-weight: 600;
  color: var(--text-primary);
}

.wish-card .badge.vip {
  background: var(--gold);
  color: #000;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
}

.wish-card .badge.top {
  background: var(--warning);
  color: white;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
}

.wish-card .badge.naoverificada {
  background: var(--danger);
  color: white;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
}

.wish-card .badge.verificada {
  background: var(--success);
  color: white;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
}

.wish-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wish-card .tags span {
  background: var(--header-bg);
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.wish-card .progress {
  background: var(--input-bg);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
}

.wish-card .progress .bar {
  height: 100%;
  width: 0;
  transition: width 0.5s;
  background: #00a2ff;
}

.wish-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.wish-card .valores {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.wish-card .valores .atual {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.wish-card .valores .meta-total {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.wish-card .valores .sep {
  color: var(--text-muted);
}

/* Botões do wish-card */
.wish-card .meta button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

.wish-card .meta .outline {
  background: var(--accent-light);
  color: var(--accent);
}

/* Rightbar */
.rightbar .card {
  margin-bottom: 15px;
}

/* top-supporter redefinido abaixo */

/* FAB */
.fab {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

/* Avatar menu mobile */
.mobile-avatar-menu {
  display: none;
  position: fixed;
  top: 60px;
  right: 20px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  z-index: 1000;
  flex-direction: column;
  width: 160px;
}

.mobile-avatar-menu a {
  padding: 10px;
  border-bottom: 1px solid var(--card-border);
  font-weight: 500;
  cursor: pointer;
  display: block;
  color: var(--text-primary);
}

.mobile-avatar-menu a:last-child {
  border: none;
}

/* Posts table (painel) */
.posts-table-container {
  overflow-x: auto;
}

.posts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.posts-table th,
.posts-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

.posts-table th {
  background: var(--header-bg);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.posts-table td {
  color: var(--text-primary);
}

.posts-table .progress.small {
  height: 6px;
  background: var(--input-bg);
  border-radius: 3px;
  margin: 4px 0;
}

.posts-table .progress.small .bar {
  background: var(--accent);
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s;
}

.actions {
  white-space: nowrap;
}

.btn-view,
.btn-delete {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  margin-right: 6px;
}

.btn-view {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.btn-delete {
  background: #fee2e2;
  color: var(--danger);
}

.btn-view:hover {
  background: #bae6fd;
}

.btn-delete:hover {
  background: #fecaca;
}

/* Conteúdo privado */
.btn-add-private {
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,95,143,0.3);
  transition: all 0.2s;
}

.btn-add-private:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,95,143,0.4);
}

.private-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.private-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.private-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.private-cover {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--header-bg);
}

.private-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.private-info h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.private-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-edit,
.btn-delete {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-edit {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.btn-delete {
  background: #fee2e2;
  color: var(--danger);
}

.btn-edit:hover { background: #bae6fd; }
.btn-delete:hover { background: #fecaca; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.empty-state p {
  margin: 8px 0;
}

/* Ganhos */
.earnings-summary {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.summary-card {
  flex: 1;
  min-width: 220px;
  background: var(--header-bg);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.summary-card .label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.summary-card .total,
.summary-card .available {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.earnings-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .earnings-sections {
    grid-template-columns: 1fr;
  }
}

.earnings-section {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  padding: 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h5 {
  margin: 0;
  font-size: 18px;
  color: var(--text-primary);
}

.method-badge {
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

.method-badge.crypto {
  background: #ecfdf5;
  color: #065f46;
}

.balance-box {
  background: var(--input-bg);
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 16px;
}

.balance-box span {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}

.balance-box strong {
  font-size: 28px;
  color: var(--text-primary);
}

.balance-box small {
  color: var(--text-muted);
}

.btn-withdraw {
  margin-top: 12px;
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-withdraw.crypto {
  background: #10b981;
}

.earnings-breakdown {
  margin: 16px 0;
}

.break-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
}

.break-item:last-child {
  border-bottom: none;
}

.recent-history h6 {
  margin: 16px 0 8px;
  font-size: 14px;
  color: var(--text-primary);
}

.history-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.history-item .value {
  color: var(--success);
  font-weight: 600;
}

.history-item .date {
  color: var(--text-muted);
  font-size: 13px;
}

.earnings-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Formulário de configurações */
.profile-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 15px;
  background: var(--input-bg);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,95,143,0.15);
}

.form-group textarea {
  resize: vertical;
}

.char-count {
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.profile-photo-group .photo-preview-container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--header-bg);
  border: 3px solid var(--card-bg);
  box-shadow: var(--card-shadow);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: #333;
}

.btn-upload {
  background: var(--header-bg);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
}

.btn-upload:hover {
  background: var(--input-bg);
}

.username-wrapper {
  position: relative;
}

.username-check {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

.help-text {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn-save {
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
}

.btn-cancel {
  background: var(--header-bg);
  color: var(--text-primary);
  padding: 12px 24px;
  border: none;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
}

.form-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.form-message.success {
  background: #ecfdf5;
  color: #065f46;
}

.form-message.error {
  background: #fee2e2;
  color: var(--danger);
}

/* Verificação de identidade */
.verification-info {
  text-align: center;
  padding: 20px 0;
  max-width: 600px;
  margin: 0 auto;
}

.icon-big {
  font-size: 64px;
  margin-bottom: 16px;
  color: var(--accent);
}

.verification-main h5 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.main-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.instruction {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 16px;
}

.telegram-step {
  background: var(--header-bg);
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
  border: 1px solid var(--card-border);
}

.telegram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 20px;
  margin-bottom: 16px;
}

.telegram-icon {
  font-size: 28px;
}

.telegram-link strong {
  color: #0088cc;
  font-weight: 700;
}

.required-docs {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 420px;
  margin: 16px auto;
}

.required-docs li {
  margin: 10px 0;
  font-size: 15px;
  position: relative;
  padding-left: 28px;
  color: var(--text-secondary);
}

.required-docs li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 20px;
}

.time-estimate {
  font-size: 14px;
  color: var(--text-muted);
  margin: 16px 0;
}

.btn-telegram {
  display: inline-block;
  background: #0088cc;
  color: white;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin: 20px 0;
  transition: background 0.2s;
}

.btn-telegram:hover {
  background: #006699;
}

.note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

.current-status {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

.status-badge {
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
}

.status-badge.not-verified {
  background: var(--danger);
  color: white;
}

.status-badge.pending {
  background: var(--warning);
  color: #000;
}

.status-badge.verified {
  background: var(--success);
  color: white;
}

/* Responsivo geral */
@media (max-width: 600px) {
  .profile-photo-group .photo-preview-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .posts-table thead {
    display: none;
  }

  .posts-table tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--card-bg);
  }

  .posts-table td {
    display: flex;
    justify-content: space-between;
    border: none;
    padding: 10px 12px;
    border-bottom: 1px solid var(--header-bg);
  }

  .posts-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 10px;
    flex: 1;
  }

  .posts-table td:last-child {
    border-bottom: none;
    justify-content: center;
    gap: 8px;
  }

  .actions {
    display: flex;
    justify-content: center;
  }
}

/* Extras, sup button, top-supporter etc. (do seu HTML inline) */
.extras {
  display: flex;
  gap: 6px;
}

.extra {
  background: var(--header-bg);
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .extras {
    flex-direction: column;
  }
}

.sup button {
  width: 100%;
  padding: 10px;
  background: var(--accent-light);
  color: var(--accent);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}

/* top-supporter redefinido abaixo */

.botoes {
  display: flex;
  gap: 5px;
}

.usuarios img {
  width: 25px;
  border-radius: 50%;
  border: 2px solid var(--card-bg);
}

.usuarios img:not(:first-child) {
  margin-left: -10px;
}

.usuarios img:hover {
  z-index: 10;
  transform: scale(1.1);
}

.nome-verificado {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nome-verificado img {
  width: 15px;
}

/* .extras - chips/extras na sidebar "Minha Conta" */
.extras {
  display: flex;
  gap: 6px;
}

.extra {
  background: var(--header-bg);           /* #eee light → header-bg dark */
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);            /* cinza claro no light, cinza médio no dark */
}

/* Responsivo extras */
@media (max-width: 600px) {
  .extras {
    flex-direction: column;
  }
}

/* Botão .sup (Postar texto, Preciso de ajuda, etc.) */
.sup button {
  width: 100%;
  padding: 10px;
  background: var(--accent-light);         /* fundo claro rosa no light, mais escuro no dark */
  color: var(--accent);                    /* #ff5f8f mantido */
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.sup button:hover {
  background: var(--accent);               /* hover fica rosa forte em ambos os temas */
  color: white;
}

/* .top-supporter - lista clean sem cards */
.top-supporter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 14px;
}
.top-supporter:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.top-supporter:first-child {
  padding-top: 0;
}

/* Posição numérica */
.top-supporter .rank-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  width: 16px;
  flex-shrink: 0;
  text-align: center;
}

/* Nome */
.top-supporter .name {
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Valor */
.top-supporter span:last-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Medalhas */
.crown-gold,
.crown-silver,
.crown-bronze {
  font-size: 13px;
  flex-shrink: 0;
}

/* .botoes - grupo de botões Apoiar/Completar */
.botoes {
  display: flex;
  gap: 5px;
}

/* .usuarios - avatars sobrepostos (supporters ou apoiadores) */
.usuarios img {
  width: 25px;
  border-radius: 50%;
  border: 2px solid var(--card-bg);        /* #fff light → fundo do card no dark */
}

.usuarios img:not(:first-child) {
  margin-left: -10px;
}

.usuarios img:hover {
  z-index: 10;
  transform: scale(1.1);
  transition: transform 0.15s ease;
}

/* .nome-verificado - nome + selo de verificado */
.nome-verificado {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
}

.nome-verificado img {
  width: 15px;
}

/* ============================================
   RESPONSIVO MOBILE - INDEX (FEED)
   Adicione ao final do seu style.css
   ============================================ */

/* ── Tablets (≤ 1024px) ── */
@media (max-width: 1024px) {
  .layout {
    gap: 15px;
  }

  .sidebar {
    width: 200px;
  }

  .rightbar {
    width: 200px;
  }
}

/* ── Tablets menores / landscape mobile (≤ 900px) ── */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
    margin: 10px auto;
    padding: 0 12px;
  }

  .sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
  }

  /* Card "Minha Conta" ocupa largura toda */
  .sidebar .card:first-child {
    grid-column: 1 / -1;
  }

  .sidebar .card {
    margin-bottom: 0;
  }

  .rightbar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .rightbar .card {
    margin-bottom: 0;
  }

  .feed {
    width: 100%;
  }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {

  /* Topbar */
  .topbar {
    flex-wrap: wrap;
    padding: 10px 15px;
    gap: 8px;
  }

  .topbar .logo {
    font-size: 20px;
    order: 1;
  }

  .topbar .top-actions {
    order: 2;
    margin-left: auto;
  }

  .search-container {
    width: 100%;
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
    margin: 2px 0 0;
  }

  /* Sidebar vira stack vertical no mobile */
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  /* Sidebar "Minha Conta": layout horizontal compacto */
  .sidebar .card:first-child .card-interior {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .sidebar .profile-avatar {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* Menu da sidebar: horizontal scrollável */
  .sidebar .menu {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .sidebar .menu::-webkit-scrollbar {
    display: none;
  }

  .sidebar .menu a {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 20px;
    border-bottom: none !important;
    background: var(--header-bg);
    font-size: 14px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .sidebar .menu a:hover {
    background: var(--accent-light);
    color: var(--accent);
  }

  /* Rightbar: grid 2 colunas */
  .rightbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
  }

  .rightbar .card {
    margin-bottom: 0;
  }

  /* Filters: scroll horizontal */
  .filters {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filters button {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
    padding: 7px 12px;
  }

  /* Wish Cards */
  .wish-card {
    padding: 12px;
    gap: 8px;
  }

  .wish-card .meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .wish-card .meta .botoes,
  .wish-card .acoes {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .wish-card .meta button,
  .wish-card .acoes button {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 14px;
  }

  .wish-card .meta span {
    font-size: 14px;
  }

  /* Imagem dentro do card: largura total */
  .wish-card > img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 260px;
  }

  /* Top supporters: simplificado */
  .top-supporter {
    padding: 8px 10px;
    font-size: 13px;
  }

  .top-supporter .name {
    max-width: 80px;
  }
}

/* ── Mobile pequeno (≤ 480px) ── */
@media (max-width: 480px) {

  .layout {
    padding: 0 8px;
    margin: 8px auto;
    gap: 10px;
  }

  /* Rightbar: stack vertical no celular pequeno */
  .rightbar {
    grid-template-columns: 1fr;
  }

  /* Extras da sidebar */
  .extras {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .extra {
    font-size: 11px;
    padding: 4px 8px;
  }

  /* wish-card: fonte menor */
  .wish-card p {
    font-size: 14px;
  }

  .wish-card .tags span {
    font-size: 11px;
    padding: 4px 8px;
  }

  .wish-card .wish-header .avatar {
    width: 34px;
    height: 34px;
  }

  .wish-card .wish-header strong {
    font-size: 14px;
  }

  /* Valores meta */
  .wish-card .valores .atual {
    font-size: 15px;
  }

  .wish-card .valores .meta-total {
    font-size: 13px;
  }

  /* Filtros menores */
  .filters button {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* h4 menor */
  h4 {
    font-size: 15px;
    padding: 10px 12px;
  }

  /* Topbar compacta */
  .topbar .credits {
    font-size: 13px;
  }

  .topbar .avatar {
    width: 28px;
    height: 28px;
  }
}

/* ── FAB: mostrar só no mobile ── */
@media (max-width: 768px) {
  .fab {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
  }

  .fab::before {
    content: "✏️";
  }
}

/* ── Dark mode: ajustes de contraste mobile ── */
@media (max-width: 768px) {
  [data-theme="dark"] .sidebar .menu a {
    background: var(--header-bg);
    color: var(--text-primary);
  }

  [data-theme="dark"] .wish-card .meta button {
    border: none;
  }
}

/* ── Touch: remove hover em dispositivos touch ── */
@media (hover: none) {
  .wish-card:hover,
  .private-card:hover {
    transform: none;
    box-shadow: var(--card-shadow);
  }

  .btn-add-private:hover {
    transform: none;
  }

  .usuarios img:hover {
    transform: none;
  }
}