/* instablack — tema preto + ouro metálico */
:root {
  --bg: #050505;
  --sidebar: #050505;
  --card: #050505;
  --card-hover: #0a0a0a;
  --border: rgba(255, 255, 255, 0.06);
  --border-pink: rgba(201, 162, 39, 0.2);
  --primary: #C9A227;
  --primary-hover: #E8D48B;
  --primary-dim: rgba(201, 162, 39, 0.12);
  --accent-purple: #C9A227;
  --ig-gradient: linear-gradient(135deg, #F5E08A 0%, #C9A227 45%, #8B6914 100%);
  --card-gradient:
    radial-gradient(ellipse 100% 75% at 50% 115%, rgba(201, 162, 39, 0.07) 0%, transparent 55%),
    #050505;
  --text: #f4f8ff;
  --muted: #6b7280;
  --text-sec: #9ca3af;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #fbbf24;
  --sidebar-w: 58px;
  --sidebar-w-open: 248px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --motion: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow: hidden;
}
body.login-body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Impede SVGs de explodirem o layout */
svg { display: block; flex-shrink: 0; overflow: visible; }
.nav-svg { width: 18px; height: 18px; }
.icon-btn svg { width: 20px; height: 20px; }
.kpi-icon-wrap svg { width: 18px; height: 18px; }
.inline-icon { width: 16px; height: 16px; }
.gauge-svg { width: 130px; height: 72px; max-width: 130px; max-height: 72px; }
.chart-svg { width: 100%; height: 100%; max-height: 280px; }

a { color: var(--primary-hover); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* Fundo preto sólido — sem grid */
.ambient-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: #050505;
}

.app { position: relative; z-index: 1; display: flex; height: 100%; min-height: 100%; overflow: hidden; }

/* ===== SIDEBAR — colapsada, expande no HOVER ===== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar);
  border-right: 1px solid rgba(255,255,255,0.04);
  display: flex; flex-direction: column;
  padding: 18px 8px;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 35;
  overflow: hidden;
  height: 100vh;
  transition: width var(--motion);
}
.sidebar-top { flex-shrink: 0; }
.sidebar-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 4px -4px;
  padding: 0 4px;
}
.sidebar-scroll::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
.sidebar-bottom {
  flex-shrink: 0;
  margin-top: auto;
  padding: 12px 6px 4px;
  display: flex;
  justify-content: center;
}
.sidebar-pin-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: #1a1a1a;
  color: #f3f4f6;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.sidebar-pin-btn .lucide {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.92;
}
.sidebar-pin-btn:hover {
  color: #fff;
  background: #222222;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.sidebar-pin-btn.is-active {
  color: #fff;
  background: #232323;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.45);
}
.sidebar-pin-btn.is-active .lucide { color: #F5E08A; stroke: #F5E08A; }
.sidebar-pin-label { white-space: nowrap; }
/* Colapsada: mesmo tamanho/eixo dos nav-links (34px), levemente à esquerda */
.sidebar:not(:hover):not(.is-pinned) .sidebar-bottom {
  padding: 12px 0 4px;
}
.sidebar:not(:hover):not(.is-pinned) .sidebar-pin-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  max-width: 34px;
  padding: 0;
  margin: 0 0 0 -2px;
  gap: 0;
  justify-content: center;
  border-radius: 999px;
}
.sidebar:not(:hover):not(.is-pinned) .sidebar-pin-label { display: none; }

/* Card de usuário no topo da sidebar (estilo SharkBot) */
.sidebar-user-card {
  margin: 0 4px 14px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.sidebar-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #C9A227, #A67C00);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.sidebar-user-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-user-meta { flex: 1; min-width: 0; }
.sidebar-user-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-power-form { margin: 0; flex-shrink: 0; }
.sidebar-power-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.12);
  color: #f87171;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.sidebar-power-btn .lucide { width: 15px; height: 15px; }
.sidebar-power-btn:hover { background: rgba(239,68,68,0.22); color: #fca5a5; }
.sidebar-manage-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sidebar-manage-btn .lucide { width: 14px; height: 14px; opacity: 0.7; }
.sidebar-manage-btn:hover { color: #fff; border-color: rgba(201,162,39,0.35); }
.sidebar:not(:hover):not(.is-pinned) .sidebar-user-card {
  padding: 6px;
  margin: 0 auto 10px;
  width: 46px;
}
.sidebar:not(:hover):not(.is-pinned) .sidebar-user-meta,
.sidebar:not(:hover):not(.is-pinned) .sidebar-power-form,
.sidebar:not(:hover):not(.is-pinned) .sidebar-manage-btn { display: none; }
.sidebar:not(:hover):not(.is-pinned) .sidebar-user-row { margin: 0; justify-content: center; }
.sidebar::before {
  content: ""; position: absolute; right: -1px; width: 1.5px; height: 300px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(201, 162, 39, 0.05) 10%,
    #C9A227 36%,
    #E8D48B 50%,
    #A67C00 64%,
    #C9A227 88%,
    transparent
  );
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.45), 0 0 16px rgba(201, 162, 39, 0.2);
  pointer-events: none; z-index: 4; border-radius: 99px;
  animation: sidebar-beam 2.35s linear infinite;
}
@keyframes sidebar-beam {
  0% { top: -300px; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.sidebar:hover,
.sidebar.is-pinned { width: var(--sidebar-w-open); }

.sidebar:not(:hover):not(.is-pinned) .brand-text,
.sidebar:not(:hover):not(.is-pinned) .btn-new-label,
.sidebar:not(:hover):not(.is-pinned) .nav-text,
.sidebar:not(:hover):not(.is-pinned) .nav-section-label { display: none; }
.sidebar:not(:hover):not(.is-pinned) .brand-mark { justify-content: center; }
.sidebar:not(:hover):not(.is-pinned) .btn-new,
.sidebar:not(:hover):not(.is-pinned) .btn-story,
.sidebar:not(:hover):not(.is-pinned) .btn-calendar {
  width: 34px; height: 34px; min-width: 34px; padding: 0; margin: 0 auto 8px;
  border-radius: 10px; justify-content: center;
}
.sidebar:not(:hover):not(.is-pinned) .btn-story .btn-new-label,
.sidebar:not(:hover):not(.is-pinned) .btn-calendar .btn-new-label { display: none; }

.btn-calendar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin-bottom: 10px; border-radius: 12px;
  background: rgba(201, 162, 39, 0.12); border: 1px solid rgba(201, 162, 39, 0.35);
  color: #F5E08A; font-weight: 600; font-size: 13px;
  transition: background 0.15s;
}
.btn-calendar:hover { background: rgba(201, 162, 39, 0.2); color: #FFF3C4; }

/* Lucide — ícones profissionais */
.lucide, [data-lucide] { flex-shrink: 0; stroke-width: 1.75; }
.sidebar:not(:hover):not(.is-pinned) .nav-link {
  width: 34px; height: 34px; min-width: 34px; padding: 0; margin: 2px auto;
  justify-content: center; border: none; box-shadow: none;
}
.sidebar:not(:hover):not(.is-pinned) .nav-icon,
.sidebar:not(:hover):not(.is-pinned) .nav-svg { width: 18px; height: 18px; }

/* Lucide icons */
.lucide, [data-lucide] { flex-shrink: 0; }
.nav-icon, .nav-link .lucide { width: 18px; height: 18px; stroke-width: 2; color: #ffffff; stroke: #ffffff; }
.icon-btn .lucide { width: 20px; height: 20px; }
.brand-icon .lucide { width: 18px; height: 18px; }
.btn-new-icon .lucide { width: 18px; height: 18px; }
.bottom-tab .lucide { width: 20px; height: 20px; margin-bottom: 2px; }

.brand-mark { display: flex; align-items: center; gap: 10px; padding: 2px 4px 16px; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: transparent;
  display: flex; align-items: center; justify-content: center; color: #fff;
  overflow: visible;
  box-shadow: none;
}
.brand-icon--ghost {
  background: transparent;
  padding: 0;
}
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(201, 162, 39, 0.35));
}
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand-accent { color: var(--primary-hover); }

.btn-new {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; margin-bottom: 8px; border-radius: 12px;
  background: var(--ig-gradient);
  color: #fff; font-weight: 600; font-size: 13px;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
  transition: filter 0.15s;
}
.btn-new:hover { filter: brightness(1.1); color: #fff; }
.btn-new-icon { font-size: 18px; font-weight: 400; }

.btn-story {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin-bottom: 10px; border-radius: 12px;
  background: rgba(201, 162, 39, 0.12); border: 1px solid rgba(201, 162, 39, 0.35);
  color: #F5E6A8; font-weight: 600; font-size: 13px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-story:hover { background: rgba(201, 162, 39, 0.2); color: #FFF3C4; border-color: rgba(201, 162, 39, 0.5); }
.sidebar:not(:hover):not(.is-pinned) .btn-story {
  width: 34px; height: 34px; min-width: 34px; padding: 0; margin: 0 auto 10px;
  border-radius: 10px; justify-content: center;
}
.sidebar:not(:hover):not(.is-pinned) .btn-story .btn-new-label { display: none; }

.page-header-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-story-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  background: rgba(236, 72, 153, 0.1); border: 1px solid rgba(236, 72, 153, 0.35);
  color: #f9a8d4; font-weight: 600; font-size: 13px;
}
.btn-story-outline:hover { background: rgba(236, 72, 153, 0.18); color: #fbcfe8; }
.btn-calendar-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  background: rgba(201, 162, 39, 0.1); border: 1px solid rgba(201, 162, 39, 0.35);
  color: #F5E08A; font-weight: 600; font-size: 13px;
}
.btn-calendar-outline:hover { background: rgba(201, 162, 39, 0.18); color: #FFF3C4; }
.type-badge--cal { background: rgba(201,162,39,0.2); color: #F5E08A; }
.auto-card { background: var(--card-gradient); border: 1px solid rgba(201, 162, 39, 0.16); border-radius: 16px; padding: 18px; box-shadow: 0 8px 24px rgba(201, 162, 39, 0.08); }
.btn-story-outline .lucide, .page-header-actions .btn-primary .lucide { width: 16px; height: 16px; }
.page-header-sub { margin: 4px 0 0; font-size: 13px; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-section-label {
  padding: 14px 14px 6px; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #ffffff;
}
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  color: #ffffff; font-size: 13px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
  border: none; background: none; cursor: pointer; width: 100%; text-align: left;
  font-family: inherit;
}
.nav-link:hover, .nav-link.active { background: var(--primary-dim); color: #ffffff; }
.nav-link.active { box-shadow: inset 3px 0 0 var(--primary); }
.nav-svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 1; color: #ffffff; stroke: #ffffff; }
.nav-text { white-space: nowrap; }

.sidebar-plan {
  margin-top: auto; padding: 12px 10px;
  border-top: 1px solid var(--border); font-size: 12px;
  white-space: nowrap; overflow: hidden;
}
.sidebar:not(:hover):not(.is-pinned) .sidebar-plan { display: none; }
.sidebar-plan strong { display: block; color: #ffffff; font-size: 13px; }
.sidebar-plan span { color: rgba(255, 255, 255, 0.72); display: block; margin: 4px 0 8px; }
.plan-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; }
.plan-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-hover)); border-radius: 99px; }

.sidebar-logout { margin-top: 8px; }

/* Main wrap — empurrado pela sidebar; altura travada para o scroll ficar no painel */
.main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1;
  width: calc(100% - var(--sidebar-w));
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: margin-left var(--motion), width var(--motion);
}
.app:has(.sidebar:hover) .main-wrap,
.app:has(.sidebar.is-pinned) .main-wrap {
  margin-left: var(--sidebar-w-open);
  width: calc(100% - var(--sidebar-w-open));
}

/* Topbar */
.topbar {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(5,5,5,0.92); backdrop-filter: blur(12px);
  position: relative; z-index: 20;
  flex-shrink: 0;
}
.topbar-center { text-align: center; }
.greeting {
  margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600;
}
.greeting-name {
  background: linear-gradient(
    105deg,
    #ffffff 0%,
    #f5f0e6 18%,
    #F5E08A 38%,
    #C9A227 52%,
    #F5E08A 66%,
    #f5f0e6 82%,
    #ffffff 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  animation: greeting-shine 5s linear infinite;
}
@keyframes greeting-shine {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}
.greeting-date {
  margin: 2px 0 0; font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.topbar-right { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.topbar-left { display: flex; align-items: center; }
.mobile-only-refresh { display: none; }

.icon-btn {
  background: none; border: none; color: var(--text-sec); cursor: pointer;
  padding: 8px; border-radius: 10px; position: relative;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.is-active {
  color: #F5E08A;
  background: rgba(201, 162, 39, 0.16);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

/* Desfoca @ das contas Instagram (prints) */
body.privacy-blur-handles .ig-handle {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
  transition: filter 0.15s ease;
}
body.privacy-blur-handles .ig-handle * {
  filter: inherit;
}
/* Insights / listas que esqueceram a classe — @ no início do texto */
body.privacy-blur-handles .og-dash-list-body > strong:not(.ig-handle) {
  filter: blur(7px);
  user-select: none;
}

.notif-dot {
  position: absolute; top: 6px; right: 6px; width: 7px; height: 7px;
  background: var(--danger); border-radius: 50%; border: 2px solid var(--bg);
}
.notif-dot.notif-dot--alert {
  width: 8px;
  height: 8px;
  background: #C9A227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}
.notif-wrap { position: relative; }
.notif-card {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 80;
  width: min(360px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  background: #050505;
  border: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 40px rgba(201,162,39,0.08);
  display: flex; flex-direction: column; max-height: min(420px, calc(100dvh - 120px));
  overflow: hidden;
}
.notif-card[hidden] { display: none !important; }
.notif-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.notif-card-head strong { font-size: 13px; }
.notif-card-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.notif-mark-read {
  background: none; border: none; color: #C9A227; font-size: 11px;
  cursor: pointer; font-family: inherit; font-weight: 600;
}
.notif-card-push {
  padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.notif-list {
  list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.notif-list::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
.hide-scrollbar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.hide-scrollbar::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
.notif-list li {
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.notif-list li.unread { background: rgba(201, 162, 39, 0.06); }
.notif-list strong { display: block; font-size: 12px; margin-bottom: 2px; }
.notif-list span { font-size: 11px; color: var(--muted); line-height: 1.4; display: block; }
.notif-list time { font-size: 10px; color: #6b7280; margin-top: 4px; display: block; }
.notif-empty { text-align: center; color: var(--muted); font-size: 12px; padding: 28px 14px !important; }
.notif-kind-metadata strong { color: #F5E08A; }
.notif-kind-publish strong { color: #86efac; }
.notif-kind-warmup strong { color: #fbbf24; }
.notif-kind-warning strong { color: #fca5a5; }

.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ig-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.user-avatar-link {
  display: flex; text-decoration: none; border-radius: 50%;
  transition: box-shadow 0.2s;
}
.user-avatar-link:hover { box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.45); }
.user-avatar-img { object-fit: cover; border: 2px solid rgba(201, 162, 39, 0.35); }

/* Fat pill (topbar left) */
.shark-fat-pill {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 16px; min-width: 160px;
}
.fat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-dim); color: var(--primary-hover);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.fat-label { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.fat-value { font-size: 20px; font-weight: 700; line-height: 1.2; }
.fat-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 99px; margin: 4px 0; overflow: hidden; }
.fat-bar-fill { height: 100%; background: var(--primary); border-radius: 99px; }
.fat-sub { font-size: 11px; color: var(--muted); }

/* Content — scroll visível à direita do painel (não no html/body) */
.shark-content {
  padding: 20px 28px 100px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 39, 0.7) rgba(255, 255, 255, 0.06);
}
.shark-content::-webkit-scrollbar {
  width: 10px;
  display: block !important;
  background: transparent;
}
.shark-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  margin: 6px 0;
}
.shark-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #E8D48B, #C9A227);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
  min-height: 40px;
}
.shark-content::-webkit-scrollbar-thumb:hover { background: #C9A227; background-clip: padding-box; }

/* Period pills — alinhado à direita como referência OnlyChat */
.dash-toolbar {
  display: flex; align-items: center; justify-content: flex-end;
  margin-bottom: 20px; flex-wrap: wrap;
}
.period-pills {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.dash-toolbar-label { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; font-weight: 600; margin-right: 4px; }
.period-pill {
  padding: 7px 14px; border-radius: 99px; font-size: 12px; font-weight: 500;
  background: var(--card); border: 1px solid var(--border); color: var(--text-sec);
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.period-pill:hover { border-color: var(--border-pink); color: var(--text); }
.period-pill.active { background: rgba(255,255,255,0.08); color: var(--text); border-color: rgba(255,255,255,0.12); }

/* Dashboard grid */
.dash-main-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start;
}
.dash-kpi-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
.dash-bottom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Glow cards — cantos pontudos + glow rosa */
.dash-glow-card, .shark-kpi-card, .shark-card, .shark-chart-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(201, 162, 39, 0.12);
  border-radius: 0;
  padding: 18px 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.08),
    0 8px 32px rgba(201, 162, 39, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dash-glow-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ig-gradient);
  opacity: 0.6;
  pointer-events: none;
}
.dash-glow-card:hover, .shark-kpi-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.15),
    0 12px 48px rgba(201, 162, 39, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.5);
}
.dash-glow-card > * { position: relative; z-index: 1; }

.kpi-icon-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-dim); color: var(--primary-hover);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.kpi-icon-wrap svg { width: 18px; height: 18px; }
.kpi-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.kpi-value { font-size: 28px; font-weight: 700; font-family: var(--font-display); line-height: 1.1; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Gauge */
.gauge-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 4px; max-width: 100%; }
.gauge-svg { width: 130px; height: 72px; max-width: 130px; max-height: 72px; }
.gauge-track { fill: none; stroke: rgba(201,162,39,0.12); stroke-width: 10; stroke-linecap: round; }
.gauge-fill { fill: none; stroke: var(--og-purple, #C9A227); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.gauge-value { font-size: 22px; font-weight: 700; margin-top: -6px; }

/* Chart */
.shark-chart-card { min-height: 420px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-head h3 { margin: 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-head h3 svg { flex-shrink: 0; }
.chart-sub { font-size: 10px; letter-spacing: 0.06em; }
.chart-wrap { position: relative; height: 280px; }
.chart-svg { width: 100%; height: 100%; }
.chart-bar { fill: rgba(201,162,39,0.2); transition: fill 0.2s; cursor: pointer; }
.chart-bar:hover { fill: rgba(201,162,39,0.55); }
.chart-line { fill: none; stroke: var(--primary-hover); stroke-width: 2; stroke-linecap: round; }
.chart-label { fill: var(--muted); font-size: 11px; }
.chart-tooltip {
  position: absolute; background: #050505; border: 1px solid var(--border-pink);
  border-radius: 0; padding: 6px 10px; font-size: 12px; pointer-events: none;
  opacity: 0; transition: opacity 0.15s; z-index: 10; white-space: nowrap;
}
.chart-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* Activity / instances */
.badge-live {
  font-size: 10px; padding: 3px 8px; border-radius: 0;
  background: rgba(201,162,39,0.12); color: var(--primary-hover);
  border: 1px solid rgba(201,162,39,0.25);
}
.activity-list {
  list-style: none; padding: 0; margin: 0; max-height: 240px; overflow-y: auto;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.activity-list::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
.activity-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.activity-time { color: var(--muted); min-width: 44px; font-size: 12px; font-variant-numeric: tabular-nums; }
.instances-stat { margin: 8px 0 12px; }
.instances-big { font-size: 36px; font-weight: 700; font-family: var(--font-display); }
.instances-sub { color: var(--muted); font-size: 13px; margin-left: 8px; }
.mini-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.mini-list li { padding: 5px 0; border-bottom: 1px solid var(--border); }
.empty-state { color: var(--muted); font-size: 13px; margin: 0; }
.inline-icon { width: 16px; height: 16px; vertical-align: -3px; flex-shrink: 0; }

/* Badges */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 99px;
  font-size: 10px; font-weight: 600; border: 1px solid var(--border); color: var(--muted);
}
.badge.active, .badge.success { color: var(--success); border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.1); }
.badge.paused, .badge.skipped, .badge.completed { color: var(--warning); border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.08); }
.badge.failed, .badge.banned, .badge.needs_login, .badge.proxy_down {
  color: var(--danger); border-color: rgba(255,77,109,0.3); background: rgba(255,77,109,0.08);
}

/* Forms */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-header h2 { margin: 0; font-family: var(--font-display); font-size: 20px; }
.form-card, .panel {
  background: var(--card-gradient);
  border: 1px solid var(--border-pink);
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.08);
  border-radius: 0; padding: 22px;
}
.form-card--premium {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  width: 100%;
  overflow: hidden;
}
.form-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.06);
}
.form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 2px;
}
.form-section-head .lucide {
  width: 20px; height: 20px; color: #F5E08A; flex-shrink: 0; margin-top: 2px;
}
.form-section-head h3 {
  margin: 0; font-size: 15px; font-weight: 700; color: #fff;
}
.form-section-head p {
  margin: 2px 0 0; font-size: 12px; color: var(--muted);
}
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
.form-grid input, .form-grid select, .form-grid textarea {
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: #050505; color: var(--text); font: inherit;
  width: 100%; max-width: 100%; box-sizing: border-box;
}
.form-card--premium .form-grid input,
.form-card--premium .form-grid select,
.form-card--premium .form-grid textarea {
  background: rgba(12,12,16,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.form-card--premium .form-grid input:focus,
.form-card--premium .form-grid select:focus,
.form-card--premium .form-grid textarea:focus {
  outline: none;
  border-color: rgba(201,162,39,0.65);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
}
.form-grid fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.form-card--premium fieldset {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
}
.dropzone-field { position: relative; }
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 110px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(240, 208, 96,0.35);
  background: linear-gradient(180deg, rgba(201,162,39,0.1), rgba(201,162,39,0.03));
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}
.dropzone--sm { min-height: 84px; }
.dropzone .lucide { width: 22px; height: 22px; color: #F5E08A; }
.dropzone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.dropzone:hover { border-color: rgba(201,162,39,0.55); background: rgba(201,162,39,0.14); }
.btn-gradient-lg {
  width: 100%;
  justify-content: center;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #C9A227 0%, #A67C00 55%, #8B6914 100%);
  box-shadow: 0 10px 28px rgba(201,162,39,0.35);
}
.auto-playlist-details details {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.2);
  padding: 8px 10px;
}
.auto-playlist-details summary {
  cursor: pointer;
  color: #F5E08A;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
}
.auto-playlist-details summary::-webkit-details-marker { display: none; }
.auto-playlist-preview {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--muted);
}
.auto-playlist-preview .is-current { color: #E8D48B; font-weight: 600; }
.auto-playlist-more { margin: 6px 0 0; font-size: 11px; }
.official-api-card {
  display: block;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201,162,39,0.13), rgba(255,255,255,0.025));
}
.official-api-card h3 { margin: 8px 0 4px; }
.official-api-card p { margin: 0; max-width: 680px; font-size: 13px; }
.official-api-actions {
  display: block;
}
.meta-token-cell { min-width: 220px; max-width: 320px; }
.meta-token-reveal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.meta-token-value {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.4;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  user-select: none;
  transition: filter 0.2s ease, user-select 0.2s;
}
.meta-token-value.token-blurred {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  cursor: default;
}
.meta-token-reveal[data-revealed="1"] .meta-token-value {
  filter: none;
  -webkit-filter: none;
  user-select: text;
  white-space: normal;
  word-break: break-all;
}
.meta-token-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.meta-app-cell strong { font-weight: 600; }
.meta-token-connect { width: 100%; max-width: 480px; }
.meta-token-connect > summary { list-style: none; cursor: pointer; }
.meta-token-connect > summary::-webkit-details-marker { display: none; }
.meta-token-connect[open] {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}
.meta-token-connect form { margin-top: 10px; text-align: left; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-row label { flex-direction: row; align-items: center; color: var(--text); cursor: pointer; }

.account-pick-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 12px;
}
.account-pick-hint { font-size: 12px; }
.account-pick-grid { gap: 8px; }
.account-pick {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  margin: 0;
}
.account-pick-user { font-weight: 600; font-size: 13px; }
.account-pick-status { font-size: 10px !important; }
.account-pick--active {
  border-color: rgba(61, 186, 122, 0.35);
}
.account-pick--needs_login {
  border-color: rgba(224, 90, 90, 0.55);
  background: rgba(224, 90, 90, 0.08);
}
.account-pick--needs_login .account-pick-user { color: #f5a8a8; }
.account-pick--proxy_down,
.account-pick--banned {
  border-color: rgba(224, 90, 90, 0.45);
  background: rgba(224, 90, 90, 0.06);
}
.account-pick--paused {
  border-color: rgba(201, 162, 39, 0.4);
  background: rgba(201, 162, 39, 0.06);
}
.account-pick:has(input:checked) {
  box-shadow: inset 0 0 0 1px rgba(232, 212, 139, 0.55);
  border-color: rgba(232, 212, 139, 0.65);
}

/* Checkbox custom — azul com degradê */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  margin: 0;
  padding: 0 !important;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
input[type="checkbox"]:hover { border-color: rgba(201,162,39,0.55); }
input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201,162,39,0.25);
}
input[type="checkbox"]:checked {
  border-color: transparent;
  background: linear-gradient(135deg, #E8D48B 0%, #C9A227 55%, #A67C00 100%);
  box-shadow: 0 4px 14px rgba(201,162,39,0.45);
}
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 2.5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px;
  border: 1px solid var(--border); background: #0b0b0b; color: var(--text);
  cursor: pointer; font: inherit; transition: border-color 0.15s;
}
.btn:hover { border-color: var(--border-pink); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #A67C00); border-color: transparent; color: #0a0a0a; font-weight: 700; }
.btn-primary:hover { filter: brightness(1.08); color: #0a0a0a; }
.btn-danger { border-color: rgba(255,77,109,0.4); color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; }
.alert-error { background: rgba(255,77,109,0.1); border: 1px solid rgba(255,77,109,0.3); color: #fca5a5; }
.alert-ok { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.muted { color: var(--muted); }

/* Table */
.table-wrap { overflow-x: auto; scrollbar-width: none; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.table tr:hover td { background: rgba(201,162,39,0.03); }

/* Auto cards */
.auto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.auto-card {
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.96), rgba(10, 10, 12, 0.98));
  border: 1px solid rgba(201, 162, 39, 0.14);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.auto-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.65), transparent);
}
.auto-card--active { border-color: rgba(201, 162, 39, 0.28); }
.auto-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; gap: 10px; min-width: 0; }
.auto-card-identity { display: flex; gap: 12px; min-width: 0; align-items: flex-start; }
.auto-card-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(201, 162, 39, 0.12);
  color: #e8d48b;
  border: 1px solid rgba(201, 162, 39, 0.2);
}
.auto-card-icon .lucide { width: 18px; height: 18px; }
.auto-card-titles { min-width: 0; }
.auto-card-header h3 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auto-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.type-badge--camu { background: rgba(201,162,39,0.12); color: #E8D48B; }
.type-badge--reply { background: rgba(56,189,248,0.12); color: #7DD3FC; }
.auto-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.auto-card-stats strong { display: block; font-size: 13px; color: #f4f0e8; margin-top: 2px; }
.auto-card-stat-label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #8b9099; }
.auto-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
  display: grid;
  gap: 8px;
}
.auto-meta li {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.auto-meta .inline-icon { width: 14px; height: 14px; margin-top: 2px; color: #c9a227; flex-shrink: 0; }
.auto-actions--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
  margin-top: 4px;
}
.page-header--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.form-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.auto-caption {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  line-height: 1.45;
  color: #b8bcc4;
}
.auto-acc-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ddd;
}
.auto-acc-chip--more { color: #e8d48b; border-color: rgba(201, 162, 39, 0.3); }
.auto-playlist-bar-wrap { display: block !important; }
.auto-playlist-bar-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.auto-playlist-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.auto-playlist-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c9a227, #f0dc78);
}
.auto-caption {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  margin: 0 0 12px;
  font-size: 13px;
  color: #cfcfcf;
  line-height: 1.45;
}
.auto-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.auto-more-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.type-badge { font-size: 10px; padding: 2px 8px; border-radius: 99px; background: var(--primary-dim); color: var(--primary-hover); text-transform: uppercase; }

.account-folder-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 10px;
}
.account-folder-picks-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b9099;
  margin-right: 4px;
}
.folder-pick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: rgba(201, 162, 39, 0.08);
  color: #e8d48b;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.folder-pick-chip .lucide { width: 13px; height: 13px; }
.folder-pick-chip span { color: #aaa; font-size: 11px; }
.folder-pick-chip:hover { border-color: rgba(201, 162, 39, 0.5); }

.acc-folder-board {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 12, 0.7);
}
.acc-folder-board--premium {
  position: relative;
  margin-bottom: 20px;
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background:
    linear-gradient(145deg, rgba(201, 162, 39, 0.07) 0%, rgba(10, 10, 12, 0.92) 42%),
    rgba(8, 8, 10, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.acc-folder-board--premium::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 212, 139, 0.45), transparent);
  pointer-events: none;
}
.acc-folder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.acc-folder-head-text {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.acc-folder-head-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.22), rgba(201, 162, 39, 0.06));
  border: 1px solid rgba(201, 162, 39, 0.28);
  color: #e8d48b;
  flex-shrink: 0;
}
.acc-folder-head-icon .lucide { width: 20px; height: 20px; }
.acc-folder-title {
  display: block;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f5f0e6;
}
.acc-folder-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #8b9099;
}
.acc-folder-total {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8d48b;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.22);
}
.acc-folder-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px 20px 8px;
}
.acc-folder-board--premium .acc-folder-rail {
  gap: 8px;
}
.acc-folder-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #ddd;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.15s, box-shadow 0.18s;
}
.acc-folder-board--premium .acc-folder-chip {
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.07);
}
.acc-folder-chip:hover {
  border-color: rgba(201, 162, 39, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.acc-folder-chip .lucide { width: 13px; height: 13px; color: #c9a227; flex-shrink: 0; }
.acc-folder-chip.is-on,
.acc-folder-chip.is-drop {
  border-color: rgba(201, 162, 39, 0.55);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.08));
  color: #f4e4a4;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.15) inset;
}
.acc-folder-count {
  min-width: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  background: rgba(0, 0, 0, 0.25);
}
.acc-folder-chip.is-on .acc-folder-count {
  color: #e8d48b;
  background: rgba(0, 0, 0, 0.2);
}
.acc-folder-icon-btn {
  border: 0;
  background: transparent;
  color: #888;
  padding: 0 2px;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.65;
  transition: opacity 0.15s, color 0.15s;
}
.acc-folder-chip:hover .acc-folder-icon-btn { opacity: 1; }
.acc-folder-icon-btn .lucide { width: 12px; height: 12px; }
.acc-folder-icon-btn:hover { color: #e8d48b; }
.acc-folder-icon-btn--danger:hover { color: #f87171; }
.acc-folder-create-wrap {
  padding: 4px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.15);
}
.acc-folder-create {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: stretch;
}
.acc-folder-create-field {
  flex: 1;
  min-width: min(100%, 240px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.acc-folder-create-field:focus-within {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.08);
}
.acc-folder-create-field .lucide {
  width: 16px;
  height: 16px;
  color: #c9a227;
  flex-shrink: 0;
}
.acc-folder-create-field input,
.acc-folder-create input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #eee;
  padding: 11px 0;
  font: inherit;
  outline: none;
}
.acc-folder-create-btn {
  align-self: stretch;
  border-radius: 14px !important;
  padding-inline: 18px !important;
}
.acc-folder-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12px;
  color: #7a808a;
}
.acc-folder-hint .lucide { width: 14px; height: 14px; color: #666; flex-shrink: 0; }
.acc-drag-handle { cursor: grab; }
.acc-drag-handle:active { cursor: grabbing; }
tr.is-hidden-folder { display: none; }
.admin-kpi-row { margin-bottom: 16px; }

/* Profile preview */
.profile-preview { display: flex; gap: 16px; align-items: flex-start; }
.profile-topbar-preview {
  display: flex; align-items: center; gap: 14px; margin-top: 12px;
}
.profile-preview-panel {
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.1), 0 8px 32px rgba(201, 162, 39, 0.1);
}
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 0; cursor: pointer; font-size: 13px;
  transition: border-color 0.15s, background 0.15s;
}
.radio-pill:has(input:checked) {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.08);
}
.radio-pill input { accent-color: var(--primary); }
.profile-preview-img.placeholder {
  background: var(--primary-dim); display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: var(--primary-hover);
}

.push-settings-block { display: grid; gap: 10px; }
.push-settings-title { margin: 0; font-size: 15px; }
.push-settings-desc { margin: 0; font-size: 13px; line-height: 1.5; }
.push-settings-tips {
  margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.55;
}
.push-status {
  margin: 0; font-size: 13px; padding: 10px 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.push-status--on {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}

.profile-page-grid { align-items: start; }
.profile-left-stack { display: grid; gap: 20px; }

.notify-prefs-form { display: grid; gap: 14px; }
.notify-prefs-head h3 { margin: 0 0 4px; font-size: 16px; }
.notify-prefs-head p { margin: 0; font-size: 13px; }
.notify-pref-list { display: grid; gap: 10px; }
.notify-pref-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.notify-pref-row:hover {
  border-color: rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.05);
}
.notify-pref-row input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--primary);
}
.notify-pref-copy { display: grid; gap: 4px; }
.notify-pref-copy strong { font-size: 14px; font-weight: 600; }
.notify-pref-copy small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.notify-prefs-actions { display: grid; gap: 10px; }
.notify-prefs-actions .btn-glow {
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.25), 0 8px 28px rgba(201, 162, 39, 0.22);
}
.notify-prefs-hint { margin: 0; font-size: 12px; line-height: 1.55; }
.notify-copy-fields {
  display: grid; gap: 10px;
  margin-top: 4px; padding: 12px 14px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.06);
}
.notify-copy-fields label { gap: 6px; }
.notify-copy-fields input {
  width: 100%;
  font-size: 13px;
}

.auth-method-panel { display: none; }
#account-add-form:has(input[name="auth_method"][value="sessionid"]:checked) #sessionid-wrap { display: block; }
#account-add-form:has(input[name="auth_method"][value="cookies"]:checked) #cookies-wrap { display: block; }
#account-add-form:has(input[name="auth_method"][value="password"]:checked) #password-wrap { display: block; }
#account-add-form:has(input[name="auth_method"][value="aiograpi"]:checked) #password-wrap { display: block; }
#account-add-form:has(input[name="auth_method"][value="import"]:checked) #import-wrap { display: block; }
#account-add-form .hint-sessionid,
#account-add-form .hint-required { display: none; }
#account-add-form:has(input[name="auth_method"][value="sessionid"]:checked) .hint-sessionid,
#account-add-form:has(input[name="auth_method"][value="cookies"]:checked) .hint-sessionid { display: inline; }
#account-add-form:has(input[name="auth_method"][value="password"]:checked) .hint-required,
#account-add-form:has(input[name="auth_method"][value="aiograpi"]:checked) .hint-required,
#account-add-form:has(input[name="auth_method"][value="import"]:checked) .hint-required { display: inline; }

.auth-method-groups {
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 14px;
  padding: 14px 14px 16px;
  margin: 0 0 12px;
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.1) 0%, rgba(0, 0, 0, 0.22) 100%);
}
.auth-method-groups > legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: #FFF3C4; }
.auth-method-group { margin-top: 16px; }
.auth-method-group:first-of-type { margin-top: 6px; }
.auth-method-group-title {
  font-size: 11px;
  font-weight: 650;
  color: rgba(232, 212, 139, 0.85);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-method-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
@media (max-width: 640px) {
  .auth-method-chips {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .auth-method-group { margin-top: 18px; }
}
.auth-method-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.auth-method-chip:hover {
  border-color: rgba(201, 162, 39, 0.55);
  background: rgba(201, 162, 39, 0.1);
  transform: translateY(-1px);
}
.auth-method-chip:has(input:checked) {
  border-color: #E8D48B;
  background: linear-gradient(155deg, rgba(201, 162, 39, 0.35) 0%, rgba(8, 8, 10, 0.95) 55%, #050505 100%);
  box-shadow:
    0 0 0 1px rgba(232, 212, 139, 0.45),
    0 0 24px rgba(201, 162, 39, 0.28),
    inset 0 1px 0 rgba(245, 215, 110, 0.2);
}
.auth-method-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.auth-method-chip-title {
  font-size: 13px;
  font-weight: 650;
  color: #f7f3e8;
  line-height: 1.25;
}
.auth-method-chip-desc {
  font-size: 11px;
  color: #C9B87A;
  line-height: 1.35;
}
.auth-method-chip:has(input:checked) .auth-method-chip-desc { color: #F5E6A8; }
.form-card:has(input[name="auth_method"][value="meta"]:checked) #non-meta-fields { display: none; }
.form-card:has(input[name="auth_method"][value="meta"]:checked) #meta-wrap { display: block; }

.form-card--connect {
  margin-bottom: 24px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background:
    linear-gradient(145deg, rgba(201, 162, 39, 0.18) 0%, rgba(8, 8, 10, 0.95) 42%, rgba(3, 3, 5, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.12) inset,
    0 18px 48px rgba(201, 162, 39, 0.18);
}
.form-card--connect h3 {
  background: linear-gradient(90deg, #fff 0%, #F5E08A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn-pulse {
  animation: connectPulse 2.2s ease-in-out infinite;
}
@keyframes connectPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.55), 0 8px 24px rgba(201, 162, 39, 0.28); }
  50% { box-shadow: 0 0 0 10px rgba(201, 162, 39, 0), 0 10px 32px rgba(201, 162, 39, 0.45); }
}

/* Login — premium privado */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; background: #030308;
  padding: 28px 16px;
}
.login-rays { position: fixed; inset: 0; z-index: 0; opacity: 0.45; }
.login-card {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  background: rgba(8, 10, 14, 0.94);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 18px; padding: 40px 34px 32px;
  backdrop-filter: blur(28px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 28px 90px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(201, 162, 39, 0.06);
}
.login-card--premium::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.55), transparent);
  pointer-events: none;
}
.login-brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.login-brand--stack {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 26px;
}
.login-brand-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff;
  box-shadow: none;
  overflow: visible;
}
.login-brand-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(201, 162, 39, 0.5));
}
.login-brand-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f7f3e8;
}
.login-badge {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #C9A227;
  background: rgba(201, 162, 39, 0.1); border: 1px solid rgba(201, 162, 39, 0.28);
  padding: 5px 12px; border-radius: 99px; margin-bottom: 14px;
}
.login-card--premium .login-badge {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.login-card h1 {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #faf7f0;
  text-align: center;
}
.login-card .subtitle { color: var(--muted); margin-bottom: 28px; font-size: 14px; line-height: 1.5; }
.login-form,
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.login-card label {
  display: flex; flex-direction: column; gap: 7px;
  color: #9ca3af; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.login-card input {
  padding: 13px 14px; border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.45); color: #f4f8ff; font: inherit;
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  width: 100%;
  padding-right: 44px;
  box-sizing: border-box;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.password-toggle:hover {
  color: #E8D48B;
  background: rgba(201, 162, 39, 0.1);
}
.password-toggle[aria-pressed="true"] { color: #C9A227; }
.password-toggle-icon {
  display: none;
  pointer-events: none;
}
.password-toggle[aria-pressed="false"] .password-toggle-icon--show,
.password-toggle[aria-pressed="true"] .password-toggle-icon--hide {
  display: block;
}
.login-card input::placeholder { color: #5b6472; }
.login-card input:focus {
  outline: none; border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
  background: rgba(0, 0, 0, 0.55);
}
/* Autofill do browser costuma deixar input branco/azul — força tema escuro */
.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f4f8ff;
  caret-color: #f4f8ff;
  box-shadow: 0 0 0 1000px #0a0a0c inset;
  transition: background-color 99999s ease-out 0s;
}
.login-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  padding: 14px 16px !important;
  border-radius: 12px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.login-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.login-footer a { color: #C9A227; font-weight: 500; }
.login-footer a:hover { color: #E8D48B; }

/* Bottom tabs mobile */
.bottom-tabs {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 64px;
  background: rgba(7,7,7,0.97); border-top: 1px solid var(--border);
  z-index: 200; backdrop-filter: blur(12px);
}
.bottom-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; color: var(--muted); font-size: 10px;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.bottom-tab.active, .bottom-tab:hover { color: var(--primary-hover); }
.bt-icon { font-size: 20px; }

.mobile-drawer { display: none; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.25s; backdrop-filter: blur(4px); }
.drawer-panel {
  position: fixed; right: -340px; top: 0; bottom: 0; width: min(340px, 90vw);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(201,162,39,0.14), transparent 55%),
    linear-gradient(180deg, rgba(16,16,20,0.99), rgba(7,7,10,0.99));
  border-left: 1px solid rgba(255,255,255,0.08); z-index: 301;
  padding: 0; transition: right 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
  box-shadow: -24px 0 56px rgba(0,0,0,0.5);
}
.mobile-drawer.open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.mobile-drawer.open .drawer-panel { right: 0; }
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(201,162,39,0.08), transparent);
}
.drawer-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drawer-user-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: linear-gradient(135deg, #C9A227, #A67C00);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
  box-shadow: 0 0 0 2px rgba(201,162,39,0.35);
}
.drawer-user-avatar--letter { font-size: 15px; }
.drawer-user-text { min-width: 0; }
.drawer-user strong {
  display: block; font-size: 15px; color: #fff; font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drawer-user span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.drawer-close {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0;
}
.drawer-close .lucide { width: 16px; height: 16px; }
.drawer-nav {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1; overflow: auto; padding: 10px 12px 8px;
  -webkit-overflow-scrolling: touch;
}
.drawer-section-label {
  font-size: 10px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(232,212,139,0.55); margin: 12px 10px 6px;
}
.drawer-section-label:first-child { margin-top: 4px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,0.88);
  background: transparent; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 500; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.drawer-nav a .lucide { width: 17px; height: 17px; color: rgba(245,224,138,0.75); flex-shrink: 0; }
.drawer-nav a:hover,
.drawer-nav a.active {
  background: rgba(201,162,39,0.1);
  border-color: rgba(201,162,39,0.18);
  color: #fff;
}
.drawer-nav a:hover .lucide,
.drawer-nav a.active .lucide { color: #F5E08A; }
.drawer-refresh {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,0.88);
  background: transparent; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 500; text-align: left;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.drawer-refresh .lucide { width: 17px; height: 17px; color: rgba(245,224,138,0.75); flex-shrink: 0; }
.drawer-refresh:hover,
.drawer-refresh:active {
  background: rgba(201,162,39,0.1);
  border-color: rgba(201,162,39,0.18);
  color: #fff;
}
.drawer-refresh:hover .lucide,
.drawer-refresh:active .lucide { color: #F5E08A; }
.drawer-refresh.is-spinning .lucide { animation: ib-refresh-spin 0.7s linear infinite; }
@keyframes ib-refresh-spin {
  to { transform: rotate(360deg); }
}
.drawer-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 6px 0; }
.drawer-logout {
  margin-top: auto; padding: 12px 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(0deg, rgba(0,0,0,0.35), transparent);
}
.drawer-logout button {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px; cursor: pointer; font: inherit;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.22); color: #fca5a5;
}
.drawer-logout .lucide { width: 16px; height: 16px; }

.content-loading { opacity: 0.5; pointer-events: none; transition: opacity 0.2s; }

/* Modal 2FA */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay--open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: 100%; max-width: 400px;
  background: #050505; border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.modal-card--reconnect { max-width: 460px; }
.modal-card h3 { margin: 0; font-size: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.twofa-connecting {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 8px 0 4px;
}
.twofa-connecting-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(201, 162, 39, 0.22);
  border-top-color: #c9a227;
  animation: profile-edit-spin 0.8s linear infinite;
}
.twofa-connecting-title {
  margin: 6px 0 0;
  font-size: 15px;
  color: #fff3c4;
}
.twofa-connecting-hint { margin: 0; font-size: 13px; }
.modal-card.twofa-modal--connecting #twofa-form-body { display: none !important; }
.modal-card.twofa-modal--connecting #twofa-connecting {
  display: flex !important;
}

body.is-billing-locked {
  overflow: hidden;
}
body.is-billing-locked .app,
body.is-billing-locked .mobile-drawer,
body.is-billing-locked .bottom-nav,
body.is-billing-locked .view-as-banner {
  pointer-events: none;
  user-select: none;
  filter: blur(4px);
}
.billing-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}
.billing-lock-card {
  width: 100%;
  max-width: 420px;
  background: #0a0a0a;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 16px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.billing-lock-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(201, 162, 39, 0.12);
  color: #c9a227;
}
.billing-lock-icon svg,
.billing-lock-icon i {
  width: 24px;
  height: 24px;
}
.billing-lock-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #fff3c4;
}
.billing-lock-card p {
  margin: 0 0 10px;
  color: #d5d5d5;
  font-size: 15px;
  line-height: 1.45;
}
.billing-lock-hint {
  font-size: 13px !important;
  color: #9a9a9a !important;
}
.billing-lock-logout {
  margin-top: 16px;
}
.billing-lock-logout .btn {
  min-width: 160px;
}
.reconnect-modal-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted, #888); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
}
.reconnect-modal-divider::before,
.reconnect-modal-divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08);
}
.reconnect-cookies-hint { margin: 0; font-size: 12px; }
.creds-totp-live {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.creds-totp-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.creds-totp-code {
  font-size: 28px;
  letter-spacing: 0.2em;
  font-weight: 600;
}
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.vault-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vault-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}
.vault-card-meta { font-size: 12px; margin-top: 4px; }
.vault-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.vault-code-box { margin-top: 4px; }
.vault-hint {
  font-size: 13px;
  margin: 0 0 16px;
  max-width: 640px;
  line-height: 1.45;
}
.vault-msg {
  font-size: 12px;
  margin: 8px 0 0;
  min-height: 1.2em;
  color: var(--muted, #888);
}
.vault-msg.is-error { color: #e74c3c; font-weight: 500; }
.vault-msg.is-ok { color: #2ecc71; }

/* Painel estilo Authenticator */
.auth-panel {
  max-width: 420px;
  margin: 0 0 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.auth-panel-bar {
  background: #C9A227;
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.auth-panel-title { font-size: 15px; }
.auth-panel-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7f8fa;
  min-height: 72px;
}
.auth-empty {
  margin: 8px 4px;
  font-size: 13px;
  line-height: 1.4;
}
.auth-entry {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-entry:hover {
  border-color: #C9A227;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.12);
}
.auth-entry-main { flex: 1; min-width: 0; }
.auth-entry-label {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}
.auth-entry-sub {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}
.auth-entry-code {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #C9A227;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.auth-timer {
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
}
.auth-ring {
  width: 28px;
  height: 28px;
  transform: rotate(-90deg);
}
.auth-ring-bg {
  fill: none;
  stroke: #e6e8ec;
  stroke-width: 3.5;
}
.auth-ring-fg {
  fill: none;
  stroke: #C9A227;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.35s linear, stroke 0.2s;
}
.auth-ring-fg.is-urgent { stroke: #e74c3c; }

/* Calendário de agendamento — compacto, não ocupa a tela inteira */
.calendar-fieldset { border: 1px solid var(--border); padding: 12px; margin: 0; max-width: 360px; }
.calendar-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.calendar-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
  margin-bottom: 4px; font-size: 10px; color: var(--muted); text-align: center;
}
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
  max-width: 336px;
}
.calendar-time-row--story {
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}
.calendar-story-media {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 12px;
}
.calendar-time-row--story input[type="time"] {
  width: 140px;
  flex: 0 0 140px;
}
.cal-day {
  height: 32px; border: 1px solid rgba(255, 255, 255, 0.06);
  background: #050505; color: var(--text); font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s;
  padding: 0;
}
.cal-day:hover { border-color: rgba(201, 162, 39, 0.35); }
.cal-day--today { border-color: rgba(201, 162, 39, 0.5); font-weight: 700; }
.cal-day--selected { background: rgba(201, 162, 39, 0.25); border-color: #C9A227; color: #fff; }
.cal-day--empty { pointer-events: none; border: none; background: transparent; }

.account-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.account-actions form { display: inline; }
.proxy-update-panel { position: relative; }
.proxy-update-panel summary { list-style: none; cursor: pointer; }
.proxy-update-panel summary::-webkit-details-marker { display: none; }
.proxy-update-form {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  min-width: 280px; padding: 12px; border-radius: 10px;
  background: var(--card, #1a1a1a); border: 1px solid var(--border, #333);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.proxy-update-input {
  width: 100%; margin-bottom: 8px; font-size: 12px;
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border, #333);
  background: var(--bg, #111); color: inherit;
}
.proxy-update-actions { display: flex; gap: 6px; }
.proxy-test-result { margin: 6px 0 0; font-size: 11px; min-height: 1em; }
.proxy-test-result.ok { color: var(--green, #22c55e); }
.proxy-test-result.fail { color: var(--red, #ef4444); }
.proxy-cell-auth { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proxy-ip-cell { min-width: 140px; }
.proxy-ip-stack { display: flex; align-items: flex-start; gap: 8px; }
.proxy-ip-dot {
  width: 8px; height: 8px; border-radius: 2px; margin-top: 5px; flex-shrink: 0;
  background: var(--green, #22c55e); box-shadow: 0 0 6px rgba(34, 197, 94, 0.45);
}
.proxy-ip-value { display: block; font-size: 13px; font-weight: 500; }
.proxy-ip-geo { display: block; font-size: 11px; margin-top: 2px; }

.logs-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.logs-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.logs-filters label { flex: 1; min-width: 140px; }
.log-error-cell { font-size: 12px; max-width: 320px; display: inline-block; word-break: break-word; }

.brand-icon--ig .lucide { width: 20px; height: 20px; }

/* Responsive */
@media (max-width: 1200px) {
  .dash-main-grid { grid-template-columns: 1fr; }
  .dash-chart-col { order: -1; }
  .shark-chart-card { min-height: 280px; }
}
@media (max-width: 900px) {
  .dash-kpi-grid, .dash-bottom-row, .dash-grid-2 { grid-template-columns: 1fr; }
  .shark-fat-pill { display: none; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); width: var(--sidebar-w-open); }
  .main-wrap,
  .app:has(.sidebar:hover) .main-wrap,
  .app:has(.sidebar.is-pinned) .main-wrap {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .sidebar-pin-btn { display: none; }
  .bottom-tabs { display: flex; }
  .mobile-drawer { display: block; }
  .mobile-only-refresh { display: inline-flex; }
  .mobile-only-refresh.is-spinning .lucide { animation: ib-refresh-spin 0.7s linear infinite; }
  .shark-content { padding: 16px 16px 80px; }
  .greeting { font-size: 17px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .form-card, .panel, .auto-card { padding: 16px; }
  .auto-grid { grid-template-columns: 1fr; }
  .auto-card-header { flex-direction: column; gap: 8px; }
  .auto-card-stats { grid-template-columns: 1fr 1fr 1fr; padding: 10px; gap: 6px; }
  .auto-card-stats strong { font-size: 12px; }
  .auto-actions { gap: 6px; }
  .auto-actions .btn { flex: 1 1 auto; justify-content: center; min-width: 0; }
  .form-grid input, .form-grid select, .form-grid textarea { font-size: 16px; }
  .table th, .table td { padding: 9px 10px; font-size: 12px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .profile-preview { flex-direction: column; }
  .logs-filters { flex-direction: column; align-items: stretch; }
  .logs-filters label { min-width: 0; }
  .account-actions { flex-direction: column; align-items: stretch; }
  .account-actions .btn { width: 100%; justify-content: center; }
  .proxy-update-form { position: static; min-width: 0; margin-top: 8px; }
  .calendar-toolbar { flex-direction: column; align-items: stretch; }
  .modal-card { padding: 18px; }

  /* Card do sino: altura fixa — lista rola por dentro, card não cresce */
  .notif-card {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    height: min(52dvh, 360px);
    max-height: min(52dvh, 360px);
    z-index: 200;
  }
  .notif-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .topbar-right { position: relative; z-index: 201; }
}
@media (max-width: 640px) {
  .official-api-card { flex-direction: column; align-items: stretch; }
  .official-api-actions { align-items: stretch; min-width: 0; }
  .form-card, .form-card--premium, .panel {
    padding: 14px;
    max-width: 100%;
    overflow-x: hidden;
  }
  .form-section { padding: 14px; }
  .shark-content:has(.form-card) { padding-left: 12px; padding-right: 12px; }
  .form-grid input,
  .form-grid select,
  .form-grid textarea,
  .form-grid input[type=file],
  .form-card input,
  .form-card select,
  .form-card textarea,
  .form-card input[type=file] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .calendar-times-list input[type=time] { width: 100%; max-width: 100%; }
  .calendar-time-row--story {
    align-items: stretch !important;
    flex-direction: column;
  }
  .calendar-time-row--story input[type=time] { width: 100%; flex-basis: auto; }
  .dropzone { min-height: 96px; padding: 14px 12px; }
}
@media (max-width: 420px) {
  .login-card { padding: 28px 20px 24px; margin: 12px; }
  .btn { padding: 10px 14px; }
  .logs-stats { flex-direction: column; }
}

/* Owner view-as banner */
.view-as-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: linear-gradient(90deg, #3D2E0A, #C9A227 55%, #3D2E0A);
  color: #fff;
  font-size: 13px;
  text-align: center;
}
.view-as-banner a.view-as-exit {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.is-view-as .app {
  padding-top: 0;
}

.notes-import {
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notes-import h3 { margin: 0; font-size: 16px; }
.notes-hint { margin: 0; font-size: 13px; line-height: 1.45; max-width: 720px; }
.notes-hint code {
  font-size: 12px;
  color: #E8D48B;
  background: rgba(0,0,0,0.35);
  padding: 1px 6px;
  border-radius: 6px;
}
.notes-import-form textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.45);
  color: #f4f8ff;
  box-sizing: border-box;
}
.notes-import-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.notes-toolbar { margin: 0 0 14px; }
.notes-toolbar input[type="search"] {
  width: min(360px, 100%);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.4);
  color: #f4f8ff;
  font: inherit;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.notes-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notes-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.notes-fields { display: flex; flex-direction: column; gap: 8px; }
.notes-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}
.profile-edit-accounts {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0,0,0,0.22);
}
.profile-edit-accounts-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.profile-edit-account-list {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
}
.profile-edit-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.profile-edit-account:hover { background: rgba(255,255,255,0.04); }
.profile-edit-result-list { margin: 0; padding-left: 18px; }
.profile-edit-result-list .ok { color: #86efac; }
.profile-edit-result-list .fail { color: #fca5a5; }
.profile-edit-hint-text { margin: 4px 0 14px; font-size: 12px; line-height: 1.5; }
.profile-edit-results { margin-bottom: 16px; padding: 16px; }
.profile-edit-results h3 { margin: 0 0 10px; font-size: 16px; }
.profile-edit-busy {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.profile-edit-busy[hidden] { display: none !important; }
.profile-edit-busy-card {
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: linear-gradient(160deg, rgba(28, 24, 16, 0.98), rgba(10, 10, 12, 0.98));
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.profile-edit-busy-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 17px;
  color: #fff3c4;
}
.profile-edit-busy-card p { margin: 0; font-size: 13px; line-height: 1.45; }
.profile-edit-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(201, 162, 39, 0.22);
  border-top-color: #c9a227;
  animation: profile-edit-spin 0.8s linear infinite;
}
@keyframes profile-edit-spin {
  to { transform: rotate(360deg); }
}

.notes-copy-row { display: flex; gap: 6px; align-items: center; }
.notes-copy-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.4);
  color: #f4f8ff;
  font: inherit;
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
}
.notes-totp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(201,162,39,0.08);
  border: 1px solid rgba(201,162,39,0.2);
}
.notes-code-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  font: inherit;
}
.notes-code {
  font-size: 22px;
  letter-spacing: 0.12em;
  font-weight: 650;
  color: #FFF3C4;
}
.notes-delete-form { margin-top: 4px; }
.notes-delete { color: #fca5a5; }

/* Responder comentários (Meta) */
.comments-reply-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 8px;
}
.comments-reply-toolbar label { margin: 0; min-width: 220px; }
.comments-reply-toolbar select {
  width: 100%;
  margin-top: 6px;
}
#comments-reply-status { min-height: 18px; margin: 0 0 14px; }
#comments-reply-status.is-error { color: #f87171; }
#comments-reply-status.is-ok { color: #86efac; }
.comments-reply-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.comments-reply-panel {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 10, 12, 0.82);
  overflow: hidden;
}
.comments-reply-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.comments-reply-panel-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #f0f0f0;
}
.comments-reply-media-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  max-height: min(70vh, 640px);
  overflow: auto;
}
.comments-reply-media-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.comments-reply-media-item:hover,
.comments-reply-media-item.is-active {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.08);
}
.comments-reply-media-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
}
.comments-reply-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comments-reply-media-meta { display: grid; gap: 4px; min-width: 0; }
.comments-reply-kind {
  display: inline-flex;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8d48b;
  background: rgba(201, 162, 39, 0.14);
}
.comments-reply-cap {
  font-size: 12px;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comments-reply-when { font-size: 11px; color: #777; }
.comments-reply-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 48px 24px;
  text-align: center;
  color: #777;
}
.comments-reply-empty .lucide { width: 28px; height: 28px; color: #555; }
.comments-reply-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px 16px;
  max-height: min(70vh, 640px);
  overflow: auto;
}
.comments-reply-comment {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.comments-reply-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.comments-reply-user {
  font-size: 13px;
  font-weight: 600;
  color: #e8d48b;
}
.comments-reply-time { font-size: 11px; color: #777; }
.comments-reply-text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #ddd;
  white-space: pre-wrap;
  word-break: break-word;
}
.comments-reply-replies {
  margin: 10px 0 0 12px;
  padding-left: 12px;
  border-left: 2px solid rgba(201, 162, 39, 0.25);
  display: grid;
  gap: 8px;
}
.comments-reply-reply {
  font-size: 12px;
  color: #bbb;
}
.comments-reply-reply strong { color: #d4c48a; }
.comments-reply-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.comments-reply-form textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: #eee;
  padding: 10px 12px;
  font: inherit;
}
.comments-reply-form textarea:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.45);
}
.comments-reply-form-actions {
  display: flex;
  justify-content: flex-end;
}
.comments-reply-more { padding: 0 16px 14px; }
@media (max-width: 900px) {
  .comments-reply-layout { grid-template-columns: 1fr; }
  .comments-reply-media-list,
  .comments-reply-thread { max-height: none; }
}

/* ── Autenticador independente ── */
.auth-panel {
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(201,162,39,0.25);
  background: transparent;
}
.auth-panel-body {
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  min-height: 60px;
}
.auth-entry--card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(201,162,39,0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  cursor: default;
}
.auth-entry--card:hover {
  border-color: rgba(201,162,39,0.5);
}
.auth-entry-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.auth-entry-label {
  font-size: 14px;
  font-weight: 600;
  color: #e8e0c8;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-entry--card .auth-entry-code {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #C9A227;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.auth-entry--card .auth-entry-code:hover { opacity: 0.8; }
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.btn-icon:hover { color: #C9A227; }
.btn-icon svg { width: 14px; height: 14px; }
