/* =====================================================================
   SLOOVA — SISTEMA DE DESIGN
   Fonte única de cores, tipografia, espaçamentos e componentes.
   Carregado pelo layout/header.php DEPOIS do bootstrap e do style.css.

   Regra para páginas novas: NÃO declarar :root nem [data-theme="dark"]
   na view. Use as variáveis e classes daqui (.sl-*).
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKENS — modo claro
   --------------------------------------------------------------------- */
:root {
  /* Tipografia */
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xxs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 24px;

  /* Superfícies */
  --bg-body:  #f4f4f6;
  --bg-card:  #ffffff;
  --bg-input: #f4f4f6;
  --bg-muted: #f7f7f8;
  --hover-bg: #f2f2f3;

  /* Texto */
  --text-main:  #0d0d0d;
  --text-muted: #6e6e73;   /* contraste AA sobre branco */
  --text-light: #a1a1a6;

  /* Bordas */
  --border:        #e6e6e8;
  --border-strong: #d1d1d6;
  --border-focus:  #0d0d0d;

  /* Marca e estados */
  --accent:      #0095f6;
  --accent-dark: #0077c2;
  --accent-soft: rgba(0, 149, 246, .10);
  --brand-gradient: linear-gradient(135deg, #ff6b4a 0%, #e1306c 50%, #833ab4 100%);

  --success:      #15803d;
  --success-soft: rgba(22, 163, 74, .10);
  --warning:      #b45309;
  --warning-soft: rgba(217, 119, 6, .12);
  --danger:       #ed4956;
  --danger-soft:  rgba(237, 73, 86, .10);
  --gold:         #f5a623;
  --online:       #22c55e;

  /* Botão "sólido" (invertido no escuro) */
  --btn-bg:   #0d0d0d;
  --btn-text: #ffffff;
  --btn-secondary-bg: #efeff1;

  /* Forma */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.14);

  --transition: .2s ease;

  /* Layout */
  --page-max: 935px;
  --page-max-narrow: 560px;
  --page-gap: 20px;

  /* ---- Nomes antigos usados em algumas páginas (apontam para os tokens acima) ---- */
  --bg-page: var(--bg-body);
  --bg: var(--bg-body);
  --bg-white: var(--bg-card);
  --surface: var(--bg-card);
  --border-color: var(--border);
  --border-color-soft: var(--border);
  --border-light: var(--border);
  --hover: var(--hover-bg);
  --active: var(--hover-bg);
  --text-primary: var(--text-main);
  --text-secondary: var(--text-muted);
  --text-gray: var(--text-muted);
  --primary: var(--accent);
  --primary-dark: var(--accent-dark);
  --primary-color: var(--text-main);
  --accent-color: var(--accent);
  --danger-red: var(--danger);
  --gold-premium: var(--gold);
  --radius: 12px;
  --radius-msg: 22px;
  --shadow: var(--shadow-sm);
  --gradient: var(--brand-gradient);
  --gradient-msg: linear-gradient(135deg, #0095f6, #0064d2);
  --invert-icon: 0;
}

/* ---------------------------------------------------------------------
   2. TOKENS — modo escuro
   --------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-body:  #0b0b0c;
  --bg-card:  #161618;
  --bg-input: #232326;
  --bg-muted: #1c1c1f;
  --hover-bg: #232326;

  --text-main:  #f5f5f7;
  --text-muted: #a1a1a6;
  --text-light: #6e6e73;

  --border:        #2a2a2d;
  --border-strong: #3a3a3e;
  --border-focus:  #f5f5f7;

  --success: #22c55e;
  --warning: #f59e0b;
  --accent-soft:  rgba(0, 149, 246, .18);
  --success-soft: rgba(22, 163, 74, .18);
  --warning-soft: rgba(217, 119, 6, .20);
  --danger-soft:  rgba(237, 73, 86, .18);

  --btn-bg:   #f5f5f7;
  --btn-text: #0d0d0d;
  --btn-secondary-bg: #2a2a2d;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 8px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.6);

  --invert-icon: 1;
  color-scheme: dark;
}

/* ---------------------------------------------------------------------
   3. BASE
   --------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text-main);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   4. BOOTSTRAP → tokens (tudo que usa classes do Bootstrap fica igual)
   --------------------------------------------------------------------- */
.text-muted, .text-secondary { color: var(--text-muted) !important; }
.text-dark   { color: var(--text-main) !important; }
.bg-white, .bg-light { background-color: var(--bg-card) !important; }
.border, .border-top, .border-bottom, .border-start, .border-end { border-color: var(--border) !important; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
}
.card-header, .card-footer { background: transparent; border-color: var(--border); }

.form-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.form-control, .form-select {
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control::placeholder { color: var(--text-light); }
.form-control:focus, .form-select:focus {
  background-color: var(--bg-card);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-soft);
  color: var(--text-main);
}
.form-control:disabled, .form-select:disabled { background-color: var(--bg-muted); opacity: .7; }
.form-text { color: var(--text-muted); font-size: var(--fs-xs); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }

/* Bootstrap 5.2 usa variáveis por botão: assim .btn-sm/.btn-lg continuam funcionando */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: var(--radius-sm); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.btn-dark:hover { background: var(--btn-bg); color: var(--btn-text); opacity: .88; }
.btn-light, .btn-secondary { background: var(--btn-secondary-bg); border-color: transparent; color: var(--text-main); }
.btn-light:hover, .btn-secondary:hover { background: var(--hover-bg); color: var(--text-main); }
.btn-outline-dark, .btn-outline-secondary { border-color: var(--border-strong); color: var(--text-main); }
.btn-outline-dark:hover, .btn-outline-secondary:hover { background: var(--hover-bg); border-color: var(--border-strong); color: var(--text-main); }
.btn-danger { background: var(--danger); border-color: var(--danger); }

.modal-content { background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.modal-header, .modal-footer { border-color: var(--border); }
[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

.dropdown-menu { background: var(--bg-card); border-color: var(--border); color: var(--text-main); }
.dropdown-item { color: var(--text-main); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--hover-bg); color: var(--text-main); }
.dropdown-divider { border-color: var(--border); }

.table { --bs-table-bg: transparent; --bs-table-color: var(--text-main); color: var(--text-main); border-color: var(--border); }
.table > :not(caption) > * > * { border-bottom-color: var(--border); }
.table thead th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 700; }

.nav-tabs { border-color: var(--border); }
.nav-tabs .nav-link { color: var(--text-muted); border: 0; font-weight: 600; }
.nav-tabs .nav-link.active { color: var(--text-main); background: transparent; border-bottom: 2px solid var(--text-main); }

.alert { border-radius: var(--radius-sm); border: 1px solid transparent; font-size: var(--fs-md); }
.alert-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.alert-danger  { background: var(--danger-soft);  color: var(--danger);  border-color: transparent; }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.alert-info    { background: var(--accent-soft);  color: var(--accent);  border-color: transparent; }

.badge { font-weight: 600; border-radius: var(--radius-pill); }
.list-group-item { background: var(--bg-card); color: var(--text-main); border-color: var(--border); }
.pagination .page-link { background: var(--bg-card); border-color: var(--border); color: var(--text-main); }
.pagination .page-item.active .page-link { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }

/* ---------------------------------------------------------------------
   5. COMPONENTES SLOOVA (.sl-*)
   --------------------------------------------------------------------- */

/* Página */
.sl-page { max-width: var(--page-max); margin: 0 auto; padding: 24px 16px 40px; }
.sl-page--narrow { max-width: var(--page-max-narrow); }
.sl-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sl-page-title { font-size: var(--fs-2xl); font-weight: 800; margin: 0; line-height: 1.2; }
.sl-page-sub { color: var(--text-muted); font-size: var(--fs-md); margin: 4px 0 0; }

/* Card */
.sl-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.sl-card + .sl-card { margin-top: 16px; }
.sl-card-title { font-size: var(--fs-lg); font-weight: 700; margin: 0 0 12px; }

/* Botões */
.sl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: inherit; font-size: var(--fs-md); font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--transition), opacity var(--transition), transform .1s ease;
}
.sl-btn:active { transform: scale(.98); }
.sl-btn:disabled, .sl-btn.is-disabled { opacity: .55; pointer-events: none; }
.sl-btn--primary   { background: var(--accent); color: #fff; }
.sl-btn--primary:hover { background: var(--accent-dark); color: #fff; }
.sl-btn--dark      { background: var(--btn-bg); color: var(--btn-text); }
.sl-btn--dark:hover { opacity: .88; color: var(--btn-text); }
.sl-btn--secondary { background: var(--btn-secondary-bg); color: var(--text-main); }
.sl-btn--secondary:hover { background: var(--hover-bg); color: var(--text-main); }
.sl-btn--outline   { background: transparent; border-color: var(--border-strong); color: var(--text-main); }
.sl-btn--outline:hover { background: var(--hover-bg); color: var(--text-main); }
.sl-btn--ghost     { background: transparent; color: var(--text-main); }
.sl-btn--ghost:hover { background: var(--hover-bg); }
.sl-btn--danger    { background: var(--danger); color: #fff; }
.sl-btn--brand     { background: var(--brand-gradient); color: #fff; }
.sl-btn--sm { padding: 7px 14px; font-size: var(--fs-sm); }
.sl-btn--lg { padding: 14px 26px; font-size: var(--fs-lg); }
.sl-btn--block { display: flex; width: 100%; }

/* Formulários */
.sl-field { margin-bottom: 16px; }
.sl-label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 6px; color: var(--text-main); }
.sl-input, .sl-select, .sl-textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg-input); color: var(--text-main);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: var(--fs-md);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.sl-input:focus, .sl-select:focus, .sl-textarea:focus { outline: none; background: var(--bg-card); border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-soft); }
.sl-textarea { min-height: 110px; resize: vertical; }
.sl-help { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 6px; }
.sl-error { font-size: var(--fs-xs); color: var(--danger); margin-top: 6px; }

/* Selos */
.sl-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 700; background: var(--hover-bg); color: var(--text-muted); }
.sl-badge--success { background: var(--success-soft); color: var(--success); }
.sl-badge--warning { background: var(--warning-soft); color: var(--warning); }
.sl-badge--danger  { background: var(--danger-soft);  color: var(--danger); }
.sl-badge--accent  { background: var(--accent-soft);  color: var(--accent); }
.sl-badge--vip     { background: linear-gradient(135deg, #f5a623, #f7c948); color: #3b2600; }

/* Avisos */
.sl-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: var(--fs-md); background: var(--hover-bg); }
.sl-alert--success { background: var(--success-soft); color: var(--success); }
.sl-alert--warning { background: var(--warning-soft); color: var(--warning); }
.sl-alert--danger  { background: var(--danger-soft);  color: var(--danger); }
.sl-alert--info    { background: var(--accent-soft);  color: var(--accent); }

/* Avatar */
.sl-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-input); flex-shrink: 0; }
.sl-avatar--sm { width: 32px; height: 32px; }
.sl-avatar--lg { width: 72px; height: 72px; }

/* Lista de pessoas / itens */
.sl-list { list-style: none; margin: 0; padding: 0; }
.sl-list-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.sl-list-item:last-child { border-bottom: 0; }
.sl-list-body { flex: 1; min-width: 0; }
.sl-list-title { font-weight: 700; font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-list-sub { font-size: var(--fs-sm); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Linhas de resumo (chave → valor) */
.sl-summary { background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 6px 18px; text-align: left; }
.sl-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: var(--fs-md); border-bottom: 1px solid var(--border); }
.sl-summary-row:last-child { border-bottom: 0; }
.sl-summary-row span:first-child { color: var(--text-muted); }
.sl-summary-row span:last-child { font-weight: 700; text-align: right; }

/* Estado vazio */
.sl-empty { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.sl-empty i { font-size: 44px; display: block; margin-bottom: 10px; color: var(--text-light); }
.sl-empty-title { font-size: var(--fs-lg); font-weight: 700; color: var(--text-main); margin-bottom: 4px; }

/* Página de resultado (sucesso / cancelado / aguardando) */
.sl-status { max-width: 480px; margin: 48px auto; padding: 32px 24px; text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.sl-status-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 34px; }
.sl-status-icon--success { background: var(--success-soft); color: var(--success); }
.sl-status-icon--danger  { background: var(--danger-soft);  color: var(--danger); }
.sl-status-icon--warning { background: var(--warning-soft); color: var(--warning); }
.sl-status-title { font-size: var(--fs-xl); font-weight: 800; margin: 0 0 8px; }
.sl-status-text { color: var(--text-muted); font-size: var(--fs-md); line-height: 1.6; margin: 0 0 24px; }
.sl-status .sl-summary { margin-bottom: 24px; }
.sl-status-actions { display: flex; flex-direction: column; gap: 10px; }

/* Abas */
.sl-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.sl-tabs::-webkit-scrollbar { display: none; }
.sl-tab { padding: 12px 16px; font-weight: 700; font-size: var(--fs-md); color: var(--text-muted); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; text-decoration: none; }
.sl-tab:hover { color: var(--text-main); }
.sl-tab.is-active { color: var(--text-main); border-bottom-color: var(--text-main); }

/* Carregando */
.sl-skeleton { background: linear-gradient(90deg, var(--bg-input) 25%, var(--hover-bg) 50%, var(--bg-input) 75%); background-size: 200% 100%; animation: sl-shimmer 1.2s infinite; border-radius: var(--radius-sm); }
@keyframes sl-shimmer { to { background-position: -200% 0; } }
.sl-spinner { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--text-main); border-radius: 50%; animation: sl-spin .7s linear infinite; display: inline-block; }
@keyframes sl-spin { to { transform: rotate(360deg); } }

/* Utilitários */
.sl-muted { color: var(--text-muted); }
.sl-divider { height: 1px; background: var(--border); border: 0; margin: 16px 0; }
.sl-stack { display: flex; flex-direction: column; gap: 12px; }
.sl-row { display: flex; align-items: center; gap: 12px; }

@media (max-width: 576px) {
  .sl-page { padding: 16px 12px 32px; }
  .sl-page-title { font-size: var(--fs-xl); }
  .sl-card { padding: 16px; border-radius: var(--radius-sm); }
  .sl-status { margin: 24px 12px; padding: 28px 18px; }
}

/* ---------------------------------------------------------------------
   6. FOLHA DE AÇÃO (sl-sheet) — modal central e compacto usado para
   confirmações e pequenas decisões: deixar de seguir, denunciar,
   compartilhar, assinar um plano. Uma única aparência para todos.
   --------------------------------------------------------------------- */
.sl-sheet-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(0,0,0,.6);
    align-items: center; justify-content: center;
    backdrop-filter: blur(3px);
    padding: 16px;
}
.sl-sheet-overlay.is-open { display: flex; }
.sl-sheet {
    background: var(--bg-card);
    width: 380px; max-width: 100%;
    border-radius: var(--radius-md);
    text-align: center;
    overflow: hidden;
    max-height: calc(100vh - 32px);
    display: flex; flex-direction: column;
    animation: sl-sheet-pop .2s cubic-bezier(.175,.885,.32,1.275);
    border: 1px solid var(--border);
}
@keyframes sl-sheet-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.sl-sheet-header { padding: 26px 20px 14px; flex-shrink: 0; }
.sl-sheet-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; border: 1px solid var(--border); display: block; }
.sl-sheet-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; font-size: 26px;
    background: var(--hover-bg); color: var(--text-main);
}
.sl-sheet-icon--danger  { background: var(--danger-soft);  color: var(--danger); }
.sl-sheet-icon--accent  { background: var(--accent-soft);  color: var(--accent); }
.sl-sheet-title { font-size: 16px; font-weight: 700; color: var(--text-main); margin: 0 0 4px; }
.sl-sheet-text  { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* Corpo rolável: opções de denúncia, resumo do plano, etc. */
.sl-sheet-body { padding: 0 20px 18px; text-align: left; overflow-y: auto; }

.sl-sheet-options { display: flex; flex-direction: column; gap: 8px; }
.sl-sheet-option {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-card); font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-main);
    cursor: pointer; text-align: left; width: 100%;
    transition: background var(--transition), border-color var(--transition);
}
.sl-sheet-option:hover { background: var(--hover-bg); }
.sl-sheet-option.is-selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.sl-sheet-option .sl-sheet-radio {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong);
    flex-shrink: 0; position: relative;
}
.sl-sheet-option.is-selected .sl-sheet-radio { border-color: var(--accent); }
.sl-sheet-option.is-selected .sl-sheet-radio::after {
    content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent);
}

.sl-sheet-summary { background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 14px; }
.sl-sheet-summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.sl-sheet-summary-row:last-child { border-bottom: 0; }
.sl-sheet-summary-row span:first-child { color: var(--text-muted); }
.sl-sheet-summary-row span:last-child { font-weight: 700; text-align: right; color: var(--text-main); }
.sl-sheet-price { display: block; font-size: 24px; font-weight: 800; color: var(--accent); }
.sl-sheet-note { font-size: 11px; color: var(--text-light); margin-top: 10px; text-align: center; }

/* Rodapé: botões empilhados, largura total, separados por linha — como o de "deixar de seguir" */
.sl-sheet-actions { display: flex; flex-direction: column; border-top: 1px solid var(--border); flex-shrink: 0; }
.sl-sheet-btn {
    background: var(--bg-card); border: none; border-top: 1px solid var(--border);
    padding: 14px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-main);
    cursor: pointer; width: 100%; transition: background var(--transition), opacity var(--transition);
}
.sl-sheet-btn:first-child { border-top: 0; }
.sl-sheet-btn:hover { background: var(--bg-input); }
.sl-sheet-btn:disabled { opacity: .5; cursor: default; }
.sl-sheet-btn:disabled:hover { background: var(--bg-card); }
.sl-sheet-btn.is-primary { color: var(--accent); font-weight: 700; }
.sl-sheet-btn.is-success { color: var(--success); font-weight: 700; }
.sl-sheet-btn.is-danger  { color: var(--danger);  font-weight: 700; }

@media (max-width: 480px) {
    .sl-sheet { width: 100%; }
}

/* ---------------------------------------------------------------------
   7. SweetAlert2 — usado só para confirmações simples (ex.: excluir post)
   e avisos rápidos. Aqui ele recebe as mesmas cores do site nos dois temas.
   --------------------------------------------------------------------- */
.swal2-popup {
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-md) !important;
    font-family: var(--font) !important;
}
.swal2-title { color: var(--text-main) !important; font-size: 18px !important; }
.swal2-html-container { color: var(--text-muted) !important; }
.swal2-actions { gap: 8px; }
.swal2-styled.swal2-confirm { background: var(--accent) !important; border-radius: var(--radius-sm) !important; font-weight: 700 !important; box-shadow: none !important; }
.swal2-styled.swal2-cancel  { background: var(--btn-secondary-bg) !important; color: var(--text-main) !important; border-radius: var(--radius-sm) !important; font-weight: 600 !important; box-shadow: none !important; }
.swal2-select, .swal2-input, .swal2-textarea {
    background: var(--bg-input) !important; color: var(--text-main) !important;
    border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important;
    font-family: var(--font) !important; box-shadow: none !important;
}
.swal2-icon.swal2-success [class^='swal2-success-line'] { background-color: var(--success) !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: var(--success-soft) !important; }
.swal2-icon.swal2-error { border-color: var(--danger) !important; }
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] { background-color: var(--danger) !important; }
.swal2-icon.swal2-warning { border-color: var(--warning) !important; color: var(--warning) !important; }
.swal2-timer-progress-bar { background: var(--accent) !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
