@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200;12..96,400;12..96,600;12..96,800&family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --carbon:    #08090A;
  --carbon-2:  #0D0F11;
  --panel:     rgba(20,23,26,.72);
  --line:      rgba(232,180,76,.14);
  --line-soft: rgba(255,255,255,.06);
  --gold:      #E8B44C;
  --gold-hot:  #FFD584;
  --gold-dim:  rgba(232,180,76,.55);
  --ink:       #F2EFE9;
  --muted:     #8B9089;
  --danger:    #E86A4C;
  --ok:        #7DC98F;
  --blue:      #4C8CE8;
  --r:         14px;

  --font-sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--carbon);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hot); }

/* ─── LAYOUT ─── */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  background: var(--carbon-2);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: -0.5px;
}

.sidebar-logo span { color: var(--ink); font-weight: 400; font-size: 14px; }

.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s, color .18s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,.04); color: var(--ink); }
.nav-item.active { background: rgba(232,180,76,.08); color: var(--gold); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.nav-section {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 20px 12px 6px;
  opacity: .6;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line-soft);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.sidebar-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}

.sidebar-user-name { color: var(--ink); font-weight: 600; font-size: 13px; }
.sidebar-user-email { color: var(--muted); font-size: 11px; font-family: var(--font-mono); }

.main-content {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
}

.page-header {
  padding: 32px 40px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.page-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.page-body { padding: 32px 40px; }

/* ─── CARDS ─── */
.card {
  background: radial-gradient(400px 200px at 50% -10%, rgba(232,180,76,.06), transparent 70%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color .2s, box-shadow .2s, transform .16s;
}
.card:hover {
  border-color: var(--gold-dim);
  box-shadow: rgba(0,0,0,.7) 0 24px 60px -20px, rgba(232,180,76,.08) 0 0 0 1px;
}
.card-flat {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 24px;
}

/* ─── STAT CARDS ─── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 20px;
  transition: border-color .2s;
}
.stat-card:hover { border-color: var(--line); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
}
.stat-change {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 6px;
}
.stat-change.up { color: var(--ok); }
.stat-change.down { color: var(--danger); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .18s;
}

.btn-gold {
  background: var(--gold);
  color: var(--carbon);
  font-size: 11px;
  padding: 12px 20px;
  border-radius: 10px;
}
.btn-gold:hover {
  box-shadow: rgba(232,180,76,.45) 0 0 38px;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.btn-ghost:hover {
  background: rgba(232,180,76,.08);
  color: var(--ink);
  border-color: var(--line);
}

.btn-danger {
  background: rgba(232,106,76,.1);
  color: var(--danger);
  font-size: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(232,106,76,.2);
  border-radius: 10px;
}
.btn-danger:hover { background: rgba(232,106,76,.2); }

.btn-sm { font-size: 9.5px; padding: 7px 12px; }

.btn-icon {
  background: none;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-icon:hover { background: rgba(255,255,255,.04); color: var(--ink); border-color: var(--line); }

/* ─── INPUTS ─── */
.input-group { margin-bottom: 20px; }

.input-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.input {
  width: 100%;
  background: rgba(8,9,10,.6);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.input:focus {
  border-color: var(--gold);
  box-shadow: rgba(232,180,76,.14) 0 0 0 3px;
}
.input::placeholder { color: var(--muted); opacity: .5; }

textarea.input { resize: vertical; min-height: 80px; line-height: 1.5; }

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B9089' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-ok { background: rgba(125,201,143,.1); color: var(--ok); border: 1px solid rgba(125,201,143,.2); }
.badge-warn { background: rgba(232,180,76,.1); color: var(--gold); border: 1px solid rgba(232,180,76,.2); }
.badge-danger { background: rgba(232,106,76,.1); color: var(--danger); border: 1px solid rgba(232,106,76,.2); }
.badge-muted { background: rgba(255,255,255,.04); color: var(--muted); border: 1px solid var(--line-soft); }

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.badge-ok .badge-dot { background: var(--ok); animation: pulse 2s infinite; }
.badge-warn .badge-dot { background: var(--gold); }
.badge-danger .badge-dot { background: var(--danger); animation: pulse 1.5s infinite; }

/* ─── TABLES ─── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r); }

table { width: 100%; border-collapse: collapse; }

th {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 14px 16px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--line-soft);
}

td {
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.03);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

td .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ─── MODALS ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,7,9,.92);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: linear-gradient(160deg, rgba(20,23,26,.95), rgba(10,12,13,.98));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 32px;
  max-width: 880px;
  width: 94%;
  max-height: 92vh;
  overflow-y: auto;
  transform: scale(.95) translateY(10px);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}

/* duas colunas: form | preview + posts */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
.modal .input-group { margin-bottom: 16px; }
.modal textarea.input { min-height: 96px; }

/* ─── PASSO A PASSO (modal de ajuda) ─── */
.step {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step:first-of-type { padding-top: 8px; }

.step-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(232,180,76,.12);
  border: 1px solid rgba(232,180,76,.3);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body { flex: 1; min-width: 0; }
.step-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.step-text { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 10px; }
.step-text strong { color: var(--ink); font-weight: 500; }

.step-warn {
  background: rgba(232,180,76,.07);
  border-left: 2px solid var(--gold);
  border-radius: 0 7px 7px 0;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 10px;
}
.step-warn strong { color: var(--gold); }

/* mensagem pronta pro cliente */
.copy-box {
  background: rgba(8,9,10,.6);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 12px 14px;
}
.copy-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  opacity: .85;
  white-space: pre-wrap;
  margin-bottom: 10px;
  max-height: 150px;
  overflow-y: auto;
}

.step-done {
  background: rgba(125,201,143,.08);
  border: 1px solid rgba(125,201,143,.2);
  border-radius: 9px;
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 18px;
}
.step-done strong { color: var(--ok); }

/* ─── SELETOR DE POST ─── */
.scope-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.scope-opt {
  flex: 1;
  background: rgba(8,9,10,.6);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 9px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.scope-opt.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(232,180,76,.08);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 178px;
  overflow-y: auto;
  padding-right: 4px;
}
.post-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: rgba(255,255,255,.04);
  transition: border-color .18s, transform .18s;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb:hover { transform: translateY(-2px); }
.post-thumb.selected { border-color: var(--gold); }
.post-thumb.selected::after {
  content: '✓';
  position: absolute;
  top: 3px; right: 4px;
  font-size: 11px;
  color: var(--carbon);
  background: var(--gold);
  width: 15px; height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-thumb .post-type {
  position: absolute;
  bottom: 3px; left: 4px;
  font-size: 9px;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-title {
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: .3; }
.empty-state h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 360px; margin: 0 auto 20px; }

/* ─── TOAST ─── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  animation: toast-in .3s cubic-bezier(.22,1,.36,1);
  backdrop-filter: blur(12px);
}
.toast.success { border-color: rgba(125,201,143,.3); }
.toast.success::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.toast.error { border-color: rgba(232,106,76,.3); }
.toast.error::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }

/* ─── LOGIN PAGE ─── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--carbon);
}

.login-card {
  background: radial-gradient(400px 200px at 50% -10%, rgba(232,180,76,.12), transparent 70%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 42px;
  max-width: 420px;
  width: 90%;
  box-shadow: rgba(0,0,0,.9) 0 40px 100px -30px;
}

.login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.login-brand h1 {
  font-weight: 800;
  font-size: 28px;
  color: var(--gold);
}
.login-brand h1 span { color: var(--ink); }

.login-brand p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.btn-google {
  width: 100%;
  background: var(--ink);
  color: #141414;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  padding: 15px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: box-shadow .18s, transform .18s;
}
.btn-google:hover {
  box-shadow: rgba(255,255,255,.15) 0 0 30px;
  transform: translateY(-1px);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

/* ─── LOGIN GATE ─── */
.login-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--carbon);
}
.login-gate .login-card {
  background: radial-gradient(400px 200px at 50% -10%, rgba(232,180,76,.12), transparent 70%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 42px;
  max-width: 400px;
  width: 90%;
  box-shadow: rgba(0,0,0,.9) 0 40px 100px -30px;
  text-align: center;
}
.login-logo {
  font-weight: 800;
  font-size: 32px;
  color: var(--gold);
  font-family: var(--font-sans);
}
.login-logo span { color: var(--ink); }
.login-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.login-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 12px;
}
.login-ok {
  color: var(--ok);
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.45;
}

/* campo + botao juntos: deixa claro que sao a MESMA acao */
.email-login {
  display: flex;
  gap: 8px;
}
.email-login .input {
  flex: 1;
  min-width: 0;
}
.email-login .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.login-hint {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.login-hint-sm {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.45;
  opacity: .8;
}

.btn-linklike {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
}
.btn-linklike:hover { color: var(--gold); }

/* itens so de admin: escondidos ate o papel ser confirmado */
.admin-only { display: none; }
body.is-admin .admin-only { display: revert; }

/* ─── AVISO DE VENCIMENTO ───
   Cresce e esquenta conforme o prazo aperta: discreto no comeco,
   impossivel de ignorar no fim. */
.trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: all .3s;
}
.trial-banner .tb-text { line-height: 1.45; }
.trial-banner .tb-title { font-weight: 600; }
.trial-banner .tb-sub { opacity: .75; margin-top: 3px; }

/* 5+ dias — so informa */
.trial-banner.calm {
  padding: 11px 16px;
  background: rgba(125,201,143,.07);
  border: 1px solid rgba(125,201,143,.18);
  font-size: 13px;
}
.trial-banner.calm .tb-title { color: var(--ok); }
.trial-banner.calm .tb-sub { font-size: 11.5px; color: var(--muted); }

/* 3-4 dias — pede atencao */
.trial-banner.warn {
  padding: 15px 20px;
  background: rgba(232,180,76,.09);
  border: 1px solid rgba(232,180,76,.28);
  font-size: 14.5px;
}
.trial-banner.warn .tb-title { color: var(--gold); font-size: 15.5px; }
.trial-banner.warn .tb-sub { font-size: 12.5px; color: var(--muted); }

/* 1-2 dias — nao da pra ignorar */
.trial-banner.urgent {
  padding: 19px 24px;
  background: rgba(232,106,76,.11);
  border: 1px solid rgba(232,106,76,.42);
  font-size: 16px;
  animation: trial-pulse 2.2s ease-in-out infinite;
}
.trial-banner.urgent .tb-title { color: var(--danger); font-size: 17.5px; }
.trial-banner.urgent .tb-sub { font-size: 13px; color: var(--ink); opacity: .7; }

/* pulsa de leve — chama o olho sem virar estrobo */
@keyframes trial-pulse {
  0%, 100% {
    border-color: rgba(232,106,76,.42);
    box-shadow: 0 0 0 0 rgba(232,106,76,0);
  }
  50% {
    border-color: rgba(232,106,76,.85);
    box-shadow: 0 0 22px -4px rgba(232,106,76,.4);
  }
}
/* respeita quem pediu menos animacao no sistema */
@media (prefers-reduced-motion: reduce) {
  .trial-banner.urgent { animation: none; border-color: rgba(232,106,76,.85); }
}

/* ─── TELA DE BLOQUEIO ─── */
.blocked-screen {
  max-width: 460px;
  margin: 8vh auto;
  text-align: center;
  background: radial-gradient(420px 200px at 50% -10%, rgba(232,106,76,.1), transparent 70%), var(--panel);
  border: 1px solid rgba(232,106,76,.25);
  border-radius: var(--r);
  padding: 44px 36px;
}
.blocked-screen h2 { font-size: 21px; margin-bottom: 10px; }
.blocked-screen p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.blocked-actions { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }

/* ─── NET PANEL (message flow canvas) ─── */
.net-panel {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(160deg, rgba(10,16,30,0.95), rgba(6,10,20,0.98));
  border: 1px solid rgba(76,140,232,.12);
}
.net-panel canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ─── PREVIEW PHONE ─── */
.preview-phone {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 16px;
  max-width: 280px;
  font-size: 13px;
}
.preview-bubble {
  background: #3a3a3a;
  color: #fff;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  margin-bottom: 8px;
  line-height: 1.4;
  word-break: break-word;
}
.preview-bubble.sent {
  background: #0095f6;
  border-radius: 16px 16px 4px 16px;
  margin-left: 40px;
}
.preview-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}

/* ─── ANIMATIONS ─── */
@keyframes pulse { 50% { opacity: .35; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.95); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.fade-in { animation: fade-in .4s cubic-bezier(.22,1,.36,1) both; }

/* ─── RESPONSIVE ─── */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 200;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .main-content { margin-left: 0; }
  .page-header { padding: 24px 20px 20px; padding-left: 64px; }
  .page-body { padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .modal { padding: 24px; }
  .login-card { padding: 28px; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.14); }

/* ─── UTILITIES ─── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.text-ok { color: var(--ok); }
.text-danger { color: var(--danger); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; font-family: var(--font-mono); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
