/* ── BASE VARS ─────────────────────────────────────────── */
:root {
  --bg: #07090f;
  --bg-2: #0d1117;
  --bg-3: #121826;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.07);
  --border-2: rgba(255,255,255,0.13);
  --text: #e8eaf6;
  --muted: #5a6480;
  --muted-2: #8892b0;
  --accent: #6366f1;
  --accent-2: #a5b4fc;
  --accent-soft: rgba(99,102,241,0.12);
  --green: #10b981;
  --green-soft: rgba(16,185,129,0.12);
  --red: #f43f5e;
  --yellow: #f59e0b;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 56px rgba(0,0,0,0.65);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --sidebar-w: 230px;
  /* compat aliases */
  --ink: var(--text);
  --line: var(--border);
  --rust: var(--accent-2);
  --sun: var(--yellow);
  --surface-strong: var(--surface-2);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ── GLOW ORBS ─────────────────────────────────────────── */
.aura {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
}
.aura-1 { width: 52rem; height: 52rem; top: -26rem; right: -16rem; background: #5b21b6; opacity: 0.07; }
.aura-2 { width: 46rem; height: 46rem; left: -22rem; bottom: -22rem; background: #064e3b; opacity: 0.07; }

/* ── APP LAYOUT ────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── SIDEBAR ───────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.75rem;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.65rem 1.1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.9rem;
}

.sidebar-brand .brand-dot { display: none; }

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-brand h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}


.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--muted-2);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  margin-top: 0.9rem;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  text-align: left;
  transition: background .15s;
}
.sidebar-user:hover { background: var(--surface-2); }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-chevron { flex-shrink: 0; color: var(--muted); opacity: 0; transition: opacity .15s; }
.sidebar-user:hover .sidebar-user-chevron { opacity: 1; }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #4338ca);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-username {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.sidebar-email {
  margin: 0;
  font-size: 0.73rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout { width: 100%; padding: 0.5rem 1rem; font-size: 0.83rem; }

.sidebar-plan-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.48rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(99,102,241,0.18);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: background 0.15s;
}
.sidebar-plan-badge:hover { background: rgba(99,102,241,0.2); }
.sidebar-plan-name { font-size: 0.8rem; font-weight: 700; color: var(--accent-2); }
.sidebar-plan-cta { font-size: 0.7rem; color: var(--muted-2); font-weight: 500; }

/* ── MAIN AREA ─────────────────────────────────────────── */
.main-area { flex: 1; min-width: 0; overflow-x: hidden; }

.shell {
  padding: 1.75rem 2rem 3rem;
  display: grid;
  gap: 1.5rem;
  max-width: 1100px;
}

/* ── SECTIONS ──────────────────────────────────────────── */
.dash-section { display: none; }
.dash-section.active { display: grid; gap: 1.5rem; }

.page-header h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* ── STATS ROW ─────────────────────────────────────────── */
.stats-row { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.stat-card {
  flex: 1;
  min-width: 100px;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ── OVERVIEW GRID ─────────────────────────────────────── */
.overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.overview-card { padding: 1.35rem; }
.overview-card h3 { margin: 0.25rem 0 0.55rem; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }

/* ── TWO PANE ──────────────────────────────────────────── */
.two-pane { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.25rem; align-items: start; }
.pane-card { padding: 1.35rem; }

/* ── CREATE PANEL ──────────────────────────────────────── */
.create-panel { overflow: visible; }
.create-panel-header { padding: 1.35rem 1.6rem 1rem; border-bottom: 1px solid var(--border); }
.create-panel-header h3 { margin: 0.2rem 0 0; font-size: 0.97rem; font-weight: 600; color: var(--text); }
.create-panel-form { padding: 0 1.6rem 1.25rem; }

.form-section {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0 1.5rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: none; }

.form-section-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-step { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; color: var(--accent-2); text-transform: uppercase; }

.form-section-fields { display: grid; gap: 0.7rem; align-items: start; }
.form-section-fields.cols-2 { grid-template-columns: repeat(2, 1fr); }
.form-section-fields.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-section-fields.cols-4 { grid-template-columns: repeat(4, 1fr); }

.create-panel-footer { padding: 1rem 0 0.25rem; display: flex; justify-content: flex-end; }

.form-section-col2 { display: flex; flex-direction: column; }
.form-section-hint { margin: -.25rem 0 .85rem; font-size: .83rem; color: var(--muted-2); }

/* ── Profile selector (in automation form) ── */
.form-step-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2); flex-shrink: 0;
}
.profile-selector { display: flex; flex-wrap: wrap; gap: .5rem; }
.profile-sel-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--muted-2); border-radius: 999px;
  padding: .35rem .85rem .35rem .45rem;
  font-size: .85rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.profile-sel-btn:hover { border-color: var(--border-2); color: var(--text); background: var(--surface-2); }
.profile-sel-btn--active {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2);
}
.profile-sel-avatar {
  width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #4338ca);
  color: #fff; font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.profile-sel-name { line-height: 1; }

/* ── Topics chip field ── */
.topics-chip-wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: 10px; padding: .45rem .65rem; min-height: 2.75rem;
  cursor: text; transition: border-color .15s;
}
.topics-chip-wrap:focus-within { border-color: var(--accent); }
.topic-chip {
  display: inline-flex; align-items: center; gap: .25rem;
  background: var(--accent-soft); border: 1px solid rgba(99,102,241,.25);
  color: var(--accent-2); font-size: .8rem; font-weight: 600;
  padding: .22rem .55rem .22rem .65rem; border-radius: 999px;
  white-space: nowrap;
}
.topic-chip-label { line-height: 1.3; }
.topic-chip-x {
  background: none; border: none; cursor: pointer; padding: 0 .1rem;
  color: var(--accent-2); opacity: .65; font-size: 1rem; line-height: 1;
  display: flex; align-items: center; transition: opacity .1s;
}
.topic-chip-x:hover { opacity: 1; }
.topics-add-input {
  border: none; background: transparent; color: var(--text);
  font-size: .88rem; font-family: inherit; outline: none;
  flex: 1; min-width: 140px; padding: .1rem 0;
}
.topics-add-input::placeholder { color: var(--muted); font-size: .82rem; }

/* ── Network selector (step 05) ── */
.net-select-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .65rem; }
.net-sel-card { min-width: 0; }
.net-sel-card {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: .85rem .6rem .75rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface);
  cursor: pointer; transition: border-color .15s, background .15s;
  position: relative; text-align: center;
  user-select: none;
}
.net-sel-card input[type="checkbox"] {
  position: absolute; top: .55rem; right: .55rem;
  accent-color: var(--accent); width: 14px; height: 14px;
}
.net-sel-card:not(.net-sel-card--soon):has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft);
}
.net-sel-card:not(.net-sel-card--soon):hover { border-color: var(--border-2); background: var(--surface-2); }
.net-sel-card--soon { opacity: .45; cursor: not-allowed; }
.net-sel-card--warn { border-color: rgba(245,158,11,.4); }
.net-sel-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.net-sel-icon svg { width: 18px; height: 18px; }
.net-sel-icon--linkedin { background: rgba(10,102,194,.18); color: #0a66c2; }
.net-sel-icon--whatsapp { background: rgba(37,211,102,.15); color: #25d366; }
.net-sel-icon--instagram { background: rgba(225,48,108,.15); color: #e1306c; }
.net-sel-icon--facebook { background: rgba(24,119,242,.15); color: #1877f2; }
.net-sel-icon--x { background: rgba(255,255,255,.08); color: var(--text); }
.net-sel-icon--tiktok { background: rgba(105,201,208,.12); color: #69c9d0; }
.net-sel-name { font-size: .8rem; font-weight: 700; color: var(--text); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.net-sel-badge { font-size: .67rem; font-weight: 600; padding: .2rem .45rem; border-radius: 999px; }
.net-sel-badge--ok { background: var(--green-soft); color: var(--green); }
.net-sel-badge--warn { background: rgba(245,158,11,.12); color: var(--yellow); }
.net-sel-badge--info { background: var(--surface-2); color: var(--muted-2); }
.net-sel-badge--soon { background: var(--surface-2); color: var(--muted); }

/* ── Auto card network badges ── */
.auto-card-networks { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .7rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border); }
.auto-net-badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.auto-net-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .22rem .55rem; border-radius: 999px; }
.auto-net-badge--linkedin { background: rgba(10,102,194,.18); color: #6fb6ff; }
.auto-net-badge--whatsapp { background: rgba(37,211,102,.12); color: #4ade80; }
.auto-net-badge--instagram { background: rgba(225,48,108,.12); color: #f9a8d4; }
.auto-net-badge--facebook { background: rgba(24,119,242,.12); color: #93c5fd; }
.auto-net-badge--x { background: var(--surface-2); color: var(--muted-2); }
.auto-net-badge--tiktok { background: rgba(105,201,208,.1); color: #67e8f9; }

/* ── AUTOMATION GRID ───────────────────────────────────── */
.automation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; align-items: start; }
.auto-card { padding: 1.25rem 1.35rem; }
.auto-card--paused { opacity: 0.5; }

.auto-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.auto-card-title h4 { margin: 0 0 0.2rem; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.auto-card-topics { margin: 0; font-size: 0.8rem; color: var(--muted); max-width: 22ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.auto-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.85rem;
}

.auto-meta-item { display: flex; flex-direction: column; gap: 0.12rem; font-size: 0.83rem; }
.auto-meta-key { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }

.auto-card-schedule { margin-bottom: 0.7rem; }
.auto-card-schedule .auto-meta-key { display: block; margin-bottom: 0.35rem; }
.schedule-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.schedule-pill { padding: 0.18rem 0.5rem; background: var(--accent-soft); color: var(--accent-2); border-radius: 999px; font-size: 0.75rem; font-weight: 600; border: 1px solid rgba(99,102,241,0.18); }

.auto-card-batch { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.85rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border); }
.auto-card-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.auto-card-actions .generate-form { flex: 1; display: contents; }
.auto-delete-btn { color: var(--red) !important; border-color: transparent; padding: .4rem .55rem; margin-left: auto; }
.auto-delete-btn:hover { border-color: var(--red) !important; background: rgba(244,63,94,.1) !important; }
.generate-form { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.45rem; }

/* ── SUGGESTION GRID ───────────────────────────────────── */
.suggestion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.1rem; align-items: start; }
.suggestion-card { padding: 1.25rem; }
.suggestion-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.7rem; }

.pill-status-approved { background: var(--green-soft); color: #6ee7b7; border-color: rgba(16,185,129,0.2); }
.pill-status-draft { background: rgba(245,158,11,0.1); color: #fcd34d; border-color: rgba(245,158,11,0.2); }
.pill-status-rework_requested { background: rgba(244,63,94,0.1); color: #fda4af; border-color: rgba(244,63,94,0.2); }

/* ── ACTION BUTTONS ────────────────────────────────────── */
.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c4f);
  color: #fff; border-color: transparent;
  padding: 0.65rem 1.1rem; border-radius: 999px;
  font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 0.45rem;
  transition: transform 0.18s, box-shadow 0.18s;
}
.whatsapp-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,211,102,.28); }

.linkedin-btn {
  background: linear-gradient(135deg, #0a66c2, #004182);
  color: #fff; border-color: transparent;
  padding: 0.65rem 1.1rem; border-radius: 999px;
  font-weight: 700; cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.linkedin-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(10,102,194,.28); }

.linkedin-badge {
  width: 48px; height: 48px; border-radius: 12px;
  background: #0a66c2; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900; font-style: italic;
}

/* ── LOGS ──────────────────────────────────────────────── */
.log-list { display: grid; gap: 0.7rem; }
.log-card { padding: 0.95rem 1.15rem; }
.log-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

/* ── SHARED PANEL ──────────────────────────────────────── */
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.section-head { margin-bottom: 0.9rem; }
.section-head h3 { margin: 0.2rem 0 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }

.eyebrow, .stat-label {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--accent-2);
  font-weight: 700;
}

.two-col { display: flex; gap: 0.8rem; }
.two-col > * { flex: 1; }
.meta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0.35rem 0; font-size: 0.86rem; color: var(--muted-2); }
.button-row { display: flex; gap: 0.55rem; flex-wrap: wrap; }

label { display: grid; gap: 0.35rem; color: var(--muted-2); font-size: 0.86rem; font-weight: 500; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  padding: 0.75rem 1rem;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  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='%235a6480' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: rgba(99,102,241,0.05); }
select option { background: var(--bg-2); color: var(--text); }
textarea { resize: vertical; }

.checkbox { display: flex; align-items: center; gap: 0.75rem; padding-top: 1.8rem; }
.checkbox input { width: auto; margin: 0; }

/* ── Auto-publish toggle ── */
/* ── WhatsApp phone group ── */
.whatsapp-phone-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.whatsapp-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: .875rem;
  color: var(--text-2);
  cursor: pointer;
}

/* ── Frequency combo ── */
.freq-combo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.freq-count-input {
  width: 56px;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-1);
  font-size: .875rem;
  -moz-appearance: textfield;
}
.freq-count-input::-webkit-inner-spin-button,
.freq-count-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.freq-x {
  font-size: .875rem;
  color: var(--text-3);
  font-weight: 600;
}
.freq-period-select {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-1);
  font-size: .875rem;
}

.auto-publish-toggle-row {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.auto-publish-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}
.auto-publish-toggle input[type="checkbox"] { display: none; }
.auto-publish-toggle-track {
  flex-shrink: 0;
  width: 44px; height: 24px;
  border-radius: 999px;
  background: var(--border-2);
  position: relative;
  transition: background .2s;
}
.auto-publish-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
.auto-publish-toggle input:checked ~ .auto-publish-toggle-track {
  background: var(--accent);
}
.auto-publish-toggle input:checked ~ .auto-publish-toggle-track::after {
  transform: translateX(20px);
}
.auto-publish-toggle-label {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
}
.auto-publish-toggle-label small {
  font-weight: 400;
  font-size: .78rem;
  color: var(--muted-2);
}

button {
  cursor: pointer;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  font-family: inherit;
  line-height: 1.4;
}
button:hover { transform: translateY(-1px); }

.primary-btn { background: linear-gradient(135deg, #6366f1, #4338ca); color: #fff; box-shadow: 0 4px 18px rgba(99,102,241,0.32); }
.primary-btn:hover { box-shadow: 0 8px 28px rgba(99,102,241,0.5); }

.secondary-btn { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); }
.secondary-btn:hover { background: rgba(255,255,255,0.1); }

.ghost-btn { background: transparent; border: 1px solid var(--border-2); color: var(--muted-2); }
.ghost-btn:hover { color: var(--text); background: var(--surface); }

.pill { padding: 0.22rem 0.6rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.76rem; white-space: nowrap; color: var(--muted-2); }
.pill-live { background: var(--green-soft); color: #6ee7b7; border-color: rgba(16,185,129,0.2); }
.pill-off { background: rgba(244,63,94,0.1); color: #fda4af; border-color: rgba(244,63,94,0.2); }

.stack-form { display: grid; gap: 0.85rem; }
.hook { font-weight: 600; margin: 0.5rem 0 0.25rem; color: var(--text); }
.body-copy { color: var(--muted-2); margin: 0.25rem 0; font-size: 0.88rem; }

/* ── CAROUSEL BLOCK ────────────────────────────────────── */
.carousel-block { margin: 0.85rem 0 0.5rem; padding: 0.9rem; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid rgba(99,102,241,0.15); }
.carousel-slides { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.45rem; }
.carousel-slide { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.7rem 0.5rem; border-radius: 9px; background: var(--bg-3); border: 1px solid var(--border); text-align: center; }
.carousel-slide-num { width: 24px; height: 24px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), #4338ca); color: #fff; font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.carousel-slide-text { font-size: 0.76rem; line-height: 1.35; color: var(--muted-2); font-weight: 500; }
.quality { font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.subtle { color: var(--muted); font-size: 0.86rem; margin: 0.2rem 0; }

.empty-state { padding: 1.35rem; border-radius: var(--radius-sm); border: 1px dashed var(--border-2); background: var(--surface); }
.empty-state h4 { margin: 0 0 0.35rem; font-weight: 600; color: var(--text); }
.empty-state p { margin: 0; color: var(--muted); }

code { background: rgba(99,102,241,0.1); padding: 0.13em 0.38em; border-radius: 5px; font-size: 0.86em; font-family: "JetBrains Mono", "Fira Code", Consolas, monospace; color: var(--accent-2); }

/* ── TOAST ─────────────────────────────────────────────── */
#toast-root { position: fixed; bottom: 1.5rem; right: 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; z-index: 9999; pointer-events: none; }

.toast {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 0.86rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast--in { opacity: 1; transform: translateY(0); }
.toast--error { border-color: rgba(244,63,94,0.3); max-width: 420px; }
.toast-icon { width: 20px; height: 20px; border-radius: 999px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; flex-shrink: 0; }
.toast-msg { flex: 1; word-break: break-word; pointer-events: all; user-select: text; }
.toast-copy { pointer-events: all; margin-left: .25rem; background: none; border: 1px solid var(--border-2); border-radius: 5px; color: var(--text-muted); cursor: pointer; font-size: .8rem; padding: .15rem .4rem; flex-shrink: 0; }
.toast-copy:hover { background: var(--surface-2); color: var(--text); }

/* ── PUBLIC NAVBAR ─────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem max(2rem, calc((100% - 1200px) / 2 + 2rem));
  border-bottom: 1px solid var(--border);
  background: rgba(7,9,15,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .3s, border-color .3s, box-shadow .3s;
}

.topbar h1 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }

.brand-link { text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 0.6rem; }
.topbar-link { text-decoration: none; }
.text-btn { text-decoration: none; }
.auth-footer a { text-decoration: none; }

.brand-dot { display: none; }

.topbar-note { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }

.topbar-note span { padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.8rem; color: var(--muted-2); }

.topbar-link { padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.83rem; font-weight: 500; color: var(--muted-2); transition: color 0.15s; }
.topbar-link:hover { color: var(--text); }

.topbar-link-strong { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text) !important; font-weight: 600; padding: 0.42rem 1.1rem; }
.topbar-link-strong:hover { background: rgba(255,255,255,0.1); }

.auth-body .shell { display: grid; gap: 1.25rem; padding-bottom: 2rem; }

/* landing: libera o shell para largura total */
.auth-body main.shell {
  max-width: 100%;
  width: 100%;
  padding: 0;
  display: block;
  gap: 0;
}

/* ── AUTH PAGES ────────────────────────────────────────── */
.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 60px);
  padding: 2rem 1rem;
}

.auth-card {
  width: min(460px, 100%);
  padding: 2rem 2.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #4338ca);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; font-size: 1.1rem; color: #fff;
}

.auth-entry-panel { padding: 1.5rem; }
.full-width-btn { width: 100%; margin-top: 0.5rem; text-align: center; display: flex; justify-content: center; }

.alert-box { padding: 0.85rem 1rem; border-radius: var(--radius-sm); border: 1px solid rgba(244,63,94,0.25); background: rgba(244,63,94,0.08); color: #fda4af; font-size: 0.86rem; }

.auth-footer { margin: 1rem 0 0; color: var(--muted); font-size: 0.85rem; text-align: center; }
.auth-footer a { color: var(--accent-2); font-weight: 600; }

.inline-form { margin: 0; }

/* ── LANDING PAGE v2 ──────────────────────────────────────────────────────── */

/* topbar scroll state */
.topbar--scrolled { background: rgba(7,9,15,0.97); border-bottom-color: rgba(255,255,255,.1); }

/* shared reveal helpers */
.lp-reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: none;
}
.lp-hero-in {
  animation: lp-fade-up 0.7s cubic-bezier(.22,.68,0,1.2) both;
}
.lp-reveal-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(.22,.68,0,1.1) var(--d, 0ms),
              transform 0.65s cubic-bezier(.22,.68,0,1.1) var(--d, 0ms);
}
.lp-reveal-scroll.lp-in { opacity: 1; transform: none; }

@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.lp-wrap { overflow-x: hidden; width: 100%; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem clamp(1.5rem, 6vw, 4rem) 4rem;
  overflow: hidden;
}

.lp-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.lp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.lp-orb-1 {
  width: min(700px, 90vw); height: min(700px, 90vw);
  top: -20%; right: -15%;
  background: radial-gradient(circle, rgba(99,102,241,.22) 0%, transparent 70%);
  animation: lp-orb-float 18s ease-in-out infinite;
}
.lp-orb-2 {
  width: min(600px, 80vw); height: min(600px, 80vw);
  bottom: -10%; left: -12%;
  background: radial-gradient(circle, rgba(6,78,59,.28) 0%, transparent 70%);
  animation: lp-orb-float 22s ease-in-out infinite reverse;
}
.lp-orb-3 {
  width: min(400px, 60vw); height: min(400px, 60vw);
  top: 40%; left: 40%;
  background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
  animation: lp-orb-float 14s ease-in-out infinite 4s;
}

@keyframes lp-orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-40px) scale(1.05); }
}

.lp-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.lp-hero-content { position: relative; z-index: 1; max-width: 820px; width: 100%; margin: 0 auto; }

.lp-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem 1rem; border-radius: 999px;
  border: 1px solid rgba(99,102,241,.35);
  background: rgba(99,102,241,.1);
  font-size: .76rem; font-weight: 600; color: var(--accent-2);
  letter-spacing: .05em; margin-bottom: 2.5rem;
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.lp-badge:hover { background: rgba(99,102,241,.18); border-color: rgba(99,102,241,.5); transform: translateY(-1px); }

.lp-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  animation: lp-pulse 2s ease infinite;
  flex-shrink: 0;
}
@keyframes lp-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(165,180,252,.5); }
  50%       { opacity: .7; box-shadow: 0 0 0 5px rgba(165,180,252,0); }
}

.lp-hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.045em;
  margin: 0 0 1.75rem;
  color: var(--text);
}
.lp-word { display: inline; }
.lp-word--grad {
  background: linear-gradient(125deg, #a5b4fc 0%, #818cf8 40%, #6366f1 70%, #4f46e5 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: lp-grad-shift 6s ease-in-out infinite;
}
@keyframes lp-grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.lp-hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  color: var(--muted-2);
  max-width: 54ch;
  margin: 0 auto 2.75rem;
  line-height: 1.8;
}

.lp-hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }

.lp-btn-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .82rem 1.85rem; border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff; font-size: .93rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(99,102,241,.5);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,.4);
  background: linear-gradient(135deg, #7c7ff5, #6366f1);
}
.lp-btn-primary:active { transform: translateY(0); }
.lp-btn-primary--light {
  background: #fff; color: #1e1b4b;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.lp-btn-primary--light:hover { background: #f0f0ff; box-shadow: 0 10px 35px rgba(0,0,0,.35); }

.lp-btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .8rem 1.6rem; border-radius: 999px;
  border: 1.5px solid var(--border-2);
  color: var(--muted-2); font-size: .93rem; font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s, transform .2s, background .2s;
}
.lp-btn-ghost:hover { border-color: rgba(255,255,255,.25); color: var(--text); transform: translateY(-1px); background: var(--surface); }

.lp-hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.lp-stat { text-align: center; padding: 0 2.5rem; }
.lp-stat-div { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }
.lp-stat-num {
  display: inline;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--text);
  font-family: "Iowan Old Style", Georgia, serif;
}
.lp-stat-label { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; margin-top: .3rem; }

.lp-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.lp-scroll-mouse {
  width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 11px; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 5px;
}
.lp-scroll-wheel {
  width: 3px; height: 7px; background: rgba(255,255,255,.4); border-radius: 2px;
  animation: lp-scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes lp-scroll-bounce {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%       { opacity: .3; transform: translateY(9px); }
}

/* ── TICKER ──────────────────────────────────────────────────────────────── */
.lp-ticker-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  padding: .85rem 0;
}
.lp-ticker { mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.lp-ticker-track {
  display: flex; align-items: center; gap: 2.5rem;
  white-space: nowrap;
  animation: lp-ticker 30s linear infinite;
  width: max-content;
}
.lp-ticker-track span { font-size: .82rem; font-weight: 600; color: var(--muted-2); letter-spacing: .05em; text-transform: uppercase; }
.lp-tick-dot { color: var(--accent-2) !important; font-size: .7rem !important; }
@keyframes lp-ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── STICKY FEATURES ─────────────────────────────────────────────────────── */
.lp-sticky-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
  box-sizing: border-box;
  width: 100%;
}
.lp-sticky-left {
  position: sticky;
  top: 5.5rem;
  padding-right: 2rem;
}
.lp-sticky-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: .75rem 0 1.25rem;
  color: var(--text);
}
.lp-sticky-title em { font-style: normal; color: var(--accent-2); }
.lp-sticky-body { color: var(--muted-2); font-size: 1rem; line-height: 1.75; margin: 0 0 2rem; }

.lp-sticky-cards { display: flex; flex-direction: column; gap: 1.1rem; }

/* ── Carrossel dots dentro do card ── */
.lp-carousel-dots {
  display: flex;
  gap: .45rem;
  margin-top: 1.25rem;
}
.lp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.lp-dot--active {
  background: var(--accent);
  transform: scale(1.4);
}

.lp-feat-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color .3s, box-shadow .3s, transform .12s ease-out;
  will-change: transform;
}
.lp-feat-card:hover {
  border-color: rgba(99,102,241,.35);
  box-shadow: 0 16px 50px rgba(0,0,0,.4), 0 0 0 1px rgba(99,102,241,.15);
}
.lp-feat-card-shine {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  transition: background .15s;
}
.lp-feat-card-num {
  font-size: .65rem; font-weight: 900; letter-spacing: .18em;
  color: var(--muted); margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.lp-feat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.lp-feat-icon--purple { background: rgba(99,102,241,.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,.25); }
.lp-feat-icon--blue   { background: rgba(56,189,248,.1);  color: #7dd3fc; border: 1px solid rgba(56,189,248,.2); }
.lp-feat-icon--green  { background: rgba(34,197,94,.1);   color: #86efac; border: 1px solid rgba(34,197,94,.2); }
.lp-feat-icon--amber  { background: rgba(251,191,36,.1);  color: #fde68a; border: 1px solid rgba(251,191,36,.2); }

.lp-feat-card h3 { margin: 0 0 .65rem; font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.lp-feat-card p  { margin: 0; color: var(--muted-2); font-size: .88rem; line-height: 1.75; }

/* ── PILLARS ──────────────────────────────────────────────────────────────── */
.lp-pillars {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3.5rem);
}
.lp-pillars-inner {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}
.lp-pillars-header { text-align: center; margin-bottom: 3.5rem; }
.lp-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--accent-2); font-weight: 700; margin: 0 0 .75rem; }
.lp-section-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900; letter-spacing: -.035em; margin: 0;
  color: var(--text); line-height: 1.1;
}

.lp-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.lp-pillar {
  padding: 2.5rem 2rem;
  background: var(--bg-2);
  position: relative;
  transition: background .3s;
}
.lp-pillar:hover { background: var(--bg-3); }
.lp-pillar-line {
  position: absolute; top: 0; left: 2rem; right: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.lp-pillar:hover .lp-pillar-line { opacity: 1; }
.lp-pillar svg { color: var(--accent-2); margin-bottom: 1.25rem; display: block; }
.lp-pillar h3 { margin: 0 0 .65rem; font-size: 1rem; font-weight: 700; color: var(--text); }
.lp-pillar p  { margin: 0; font-size: .86rem; color: var(--muted-2); line-height: 1.7; }

/* ── QUOTE ────────────────────────────────────────────────────────────────── */
.lp-quote-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 3.5rem);
  display: flex; justify-content: center;
}
.lp-quote-inner {
  max-width: 680px; text-align: center;
  position: relative;
}
.lp-quote-mark {
  font-size: 8rem; line-height: .5;
  font-family: Georgia, serif;
  color: rgba(99,102,241,.18);
  position: absolute; top: -.5rem; left: -2rem;
  pointer-events: none;
}
.lp-quote-text {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -.02em;
  margin: 0 0 1.5rem;
  font-style: italic;
}
.lp-quote-author { margin: 0; font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.lp-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vw, 10rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  background: linear-gradient(160deg, #1e1b4b 0%, #0f0c29 40%, #07090f 100%);
  border-top: 1px solid rgba(99,102,241,.2);
}
.lp-cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(99,102,241,.25) 0%, transparent 70%);
  pointer-events: none;
  animation: lp-glow-pulse 5s ease-in-out infinite;
}
@keyframes lp-glow-pulse {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;  transform: translate(-50%, -50%) scale(1.1); }
}
.lp-cta-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.lp-cta-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900; letter-spacing: -.04em; line-height: 1.05;
  color: #fff; margin: .75rem 0 1.25rem;
}
.lp-cta-sub { color: rgba(255,255,255,.55); font-size: .95rem; margin: 0 0 2.5rem; }
.lp-cta-actions { display: flex; justify-content: center; }

/* compat: old classes kept for other pages */
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; padding: 2rem; align-items: center; }
.hero h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; max-width: 16ch; margin: 0; letter-spacing: -0.02em; color: var(--text); }
.hero-copy { max-width: 60ch; color: var(--muted-2); }
.hero-badges { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.9rem; align-content: center; }
.badge-card, .stat-panel { padding: 1.1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.badge-card strong { display: block; font-size: clamp(1.2rem,2vw,1.7rem); margin-bottom: 0.2rem; color: var(--text); }
.landing-hero { align-items: center; }
.landing-badges .badge-card strong { font-size: 1.3rem; }
.landing-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.2rem; }
.section-eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; color: var(--accent-2); font-weight: 700; margin: 0 0 0.75rem; }

/* ── LANDING RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .lp-sticky-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .lp-sticky-left { position: static; padding-right: 0; }
  .lp-sticky-title { font-size: clamp(2rem, 6vw, 2.8rem); }
  .lp-stat { padding: 0 1.4rem; }
  .topbar { padding: 0.75rem 1.5rem; }
}
@media (max-width: 600px) {
  .lp-hero { padding: 5rem 1.25rem 3.5rem; min-height: 100svh; }
  .lp-hero-title { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .lp-hero-stats { gap: 0; }
  .lp-stat { padding: 0 .85rem; }
  .lp-stat-div { height: 28px; }
  .lp-scroll-hint { display: none; }
  .lp-feat-card { padding: 1.5rem; }
  .lp-pillars { padding: 3rem 1.25rem; }
  .lp-pillars-grid { border-radius: 14px; }
  .lp-pillar { padding: 1.75rem 1.25rem; }
  .lp-quote-mark { display: none; }
  .lp-cta-title { font-size: clamp(2rem, 8vw, 3rem); }
  .topbar { padding: 0.75rem 1.25rem; }
}
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.notes-grid strong { display: block; margin-bottom: 0.3rem; font-weight: 600; color: var(--text); }
.notes-grid p { margin: 0; color: var(--muted-2); font-size: 0.86rem; }
.notes-panel { padding: 1.5rem; }

/* ── ADMIN LAYOUT ──────────────────────────────────────── */
:root {
  --adm-bg: var(--bg);
  --adm-sidebar-bg: var(--bg-2);
  --adm-sidebar-text: var(--text);
  --adm-sidebar-muted: var(--muted);
  --adm-sidebar-border: var(--border);
  --adm-sidebar-active-bg: var(--accent-soft);
  --adm-sidebar-active-color: var(--accent-2);
  --adm-card-bg: var(--bg-2);
  --adm-card-border: var(--border);
  --adm-text: var(--text);
  --adm-text-secondary: var(--muted-2);
  --adm-text-muted: var(--muted);
  --adm-accent: var(--accent);
  --adm-green: var(--green);
  --adm-yellow: var(--yellow);
  --adm-red: var(--red);
  --adm-radius: var(--radius);
}

.admin-body { background: var(--adm-bg); margin: 0; }

.adm-layout {
  display: flex;
  min-height: 100vh;
  background: var(--adm-bg);
  color: var(--adm-text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

/* Sidebar */
.adm-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--adm-sidebar-bg);
  border-right: 1px solid var(--adm-sidebar-border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.adm-brand {
  padding: 0.4rem 0.5rem 1.25rem;
  border-bottom: 1px solid var(--adm-sidebar-border);
  margin-bottom: 1.1rem;
}
.adm-brand .eyebrow { color: var(--adm-sidebar-muted); font-size: .62rem; }
.adm-brand-name {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--adm-sidebar-text);
}

.adm-nav { display: flex; flex-direction: column; gap: .2rem; flex: 1; }

.adm-nav-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--adm-sidebar-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.adm-nav-item:hover { background: rgba(255,255,255,.08); color: var(--adm-sidebar-text); }
.adm-nav-item--active {
  background: var(--adm-sidebar-active-bg);
  color: var(--adm-sidebar-active-color);
  font-weight: 700;
}

.adm-sidebar-footer {
  border-top: 1px solid var(--adm-sidebar-border);
  padding-top: .9rem;
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

/* Main area */
.adm-main { flex: 1; min-width: 0; overflow-x: hidden; }

.adm-content {
  padding: 2.25rem 2.25rem 3rem;
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
}

/* Page header */
.adm-page-header { margin-bottom: .25rem; }
.adm-page-header .eyebrow { color: var(--adm-accent); }
.adm-page-header h2 {
  margin: .2rem 0 0;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.9rem;
  letter-spacing: -.02em;
  color: var(--adm-text);
}

/* Cards */
.adm-card {
  background: var(--adm-card-bg);
  border: 1px solid var(--adm-card-border);
  border-radius: var(--adm-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
}

/* KPIs */
.adm-kpi-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.adm-kpi-card {
  padding: 1.4rem 1.5rem !important;
  background: var(--adm-card-bg) !important;
  border: 1px solid var(--adm-card-border) !important;
  border-radius: var(--adm-radius) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
  backdrop-filter: none !important;
}
.adm-kpi-label { margin: 0 0 .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--adm-text-secondary); }
.adm-kpi-num { margin: 0; font-size: 2.4rem; font-weight: 800; font-family: "Iowan Old Style", Georgia, serif; color: var(--adm-text); line-height: 1; }
.adm-kpi-num--money { font-size: 1.8rem; color: var(--adm-green); }
.adm-kpi-num--accent { color: var(--accent-2); }

/* Charts */
.adm-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.adm-chart-card { padding: 1.5rem; }
.adm-access-bars { display: flex; flex-direction: column; gap: .9rem; }
@media (max-width: 768px) { .adm-charts-row { grid-template-columns: 1fr; } }

/* Plan distribution */
.adm-plan-dist { display: flex; flex-direction: column; gap: .8rem; }
.adm-dist-row { display: flex; align-items: center; gap: .85rem; }
.adm-dist-label { width: 82px; font-size: .85rem; font-weight: 600; color: var(--adm-text-secondary); flex-shrink: 0; }
.adm-dist-bar-wrap { flex: 1; height: 9px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.adm-dist-bar { height: 100%; border-radius: 999px; transition: width .5s ease; min-width: 3px; }
.adm-dist-count { width: 30px; text-align: right; font-size: .85rem; font-weight: 700; color: var(--adm-text); }

/* Table */
.adm-table-head { padding: 1.2rem 1.5rem .8rem; border-bottom: 1px solid var(--adm-card-border); display: flex; align-items: center; justify-content: space-between; }
.adm-table-head h3 { margin: 0; font-family: "Iowan Old Style", Georgia, serif; font-size: 1.05rem; color: var(--adm-text); }
.adm-table-count { font-size: .8rem; color: var(--adm-text-muted); font-weight: 600; }
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.adm-table th { padding: .7rem 1.25rem; text-align: left; font-size: .71rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--adm-text-secondary); border-bottom: 1px solid var(--adm-card-border); background: var(--bg-3); white-space: nowrap; }
.adm-table td { padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--adm-text); }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: var(--surface); }

.adm-user-cell { display: flex; align-items: center; gap: .65rem; }
.adm-avatar { width: 32px; height: 32px; border-radius: 999px; background: linear-gradient(135deg, var(--adm-accent), #0a5952); color: #fff; font-size: .82rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adm-user-name { margin: 0; font-weight: 700; font-size: .88rem; color: var(--adm-text); }
.adm-user-email { margin: 0; font-size: .78rem; color: var(--adm-text-muted); }

.adm-pill { padding: .28rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.adm-pill-free { background: var(--surface-2); color: var(--muted-2); }
.adm-pill-starter { background: rgba(245,158,11,0.12); color: var(--yellow); }
.adm-pill-pro { background: var(--green-soft); color: var(--green); }
.adm-pill-business { background: var(--accent-soft); color: var(--accent-2); }

.adm-mono { font-family: monospace; font-size: .85rem; color: var(--adm-text-secondary); }
.adm-muted { color: var(--adm-text-muted); }

.adm-status { font-size: .82rem; font-weight: 700; }
.adm-status-active { color: var(--adm-green); }
.adm-status-cancelled, .adm-status-canceled { color: var(--adm-red); }
.adm-status-past_due { color: var(--adm-yellow); }
.adm-status-none, .adm-status-— { color: var(--adm-text-muted); }

.adm-plan-form { display: flex; gap: .45rem; align-items: center; }
.adm-select { background: var(--bg-3); border: 1px solid var(--border-2); color: var(--adm-text); border-radius: 8px; padding: .38rem .6rem; font-size: .83rem; font-family: inherit; width: auto; }
.adm-select:focus { outline: 2px solid var(--adm-accent); outline-offset: 1px; }

.adm-empty { text-align: center; padding: 2.5rem; color: var(--adm-text-muted); font-size: .9rem; }

/* Config items */
.adm-config-grid { display: grid; gap: 1rem; }
.adm-config-label { margin: 0 0 .3rem; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--adm-text-secondary); }
.adm-config-value { font-size: .9rem; padding: .6rem .85rem; border-radius: 9px; border: 1px solid var(--adm-card-border); background: var(--surface); color: var(--adm-text); }
.adm-config-ok { color: var(--adm-green); background: var(--green-soft); border-color: var(--green); font-weight: 700; }
.adm-config-missing { color: var(--adm-red); background: rgba(244,63,94,0.12); border-color: var(--red); font-weight: 700; }
.adm-config-code { font-family: monospace; font-size: .83rem; color: var(--adm-text-secondary); word-break: break-all; }

/* ── User Profiles & Tag Cloud ──────────────────────────────── */
.onboarding-panel { padding: 1.75rem 2rem; }
.onboarding-head { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.5rem; }
.onboarding-icon { width: 44px; height: 44px; min-width: 44px; background: var(--accent-soft); border: 1px solid var(--border-2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--accent-2); }
.onboarding-head h3 { margin: 0 0 .25rem; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.onboarding-head p { margin: 0; font-size: .88rem; color: var(--muted-2); }

.tag-categories { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.5rem; }
.tag-category-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-chip { background: var(--surface); border: 1px solid var(--border); color: var(--muted-2); font-size: .82rem; font-weight: 500; padding: .35rem .75rem; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.tag-chip:hover { background: var(--surface-2); border-color: var(--border-2); color: var(--text); }
.tag-chip--selected { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); font-weight: 600; }

.profile-form-footer { border-top: 1px solid var(--border); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.selected-count { font-size: .84rem; color: var(--muted-2); font-weight: 500; }
.profile-name-row { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.profile-name-row label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--muted-2); flex: 1; min-width: 160px; }
.profile-name-row label input { margin: 0; }
.profile-name-row .primary-btn { margin-top: 0; white-space: nowrap; }

.profiles-section { margin-bottom: .5rem; }
.profiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.profile-card { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.profile-card-head { display: flex; align-items: center; justify-content: space-between; }
.profile-card-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.profile-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-badge { background: var(--accent-soft); border: 1px solid rgba(99,102,241,0.2); color: var(--accent-2); font-size: .75rem; font-weight: 500; padding: .2rem .6rem; border-radius: 999px; }
.profile-tone { margin: 0; font-size: .8rem; color: var(--muted); }
.profile-tone em { color: var(--muted-2); font-style: normal; }
.profile-use-btn { margin-top: auto; }

/* ── Image generation ───────────────────────────────────────── */
.suggestion-image-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; margin: .5rem 0; }
.suggestion-image { width: 100%; max-height: 280px; object-fit: cover; display: block; border-radius: var(--radius-sm); }
.suggestion-image-dl { position: absolute; top: .5rem; right: .5rem; background: rgba(0,0,0,.55); color: #fff; border-radius: 6px; padding: .35rem; display: flex; align-items: center; justify-content: center; text-decoration: none; opacity: 0; transition: opacity .2s; }
.suggestion-image-wrap:hover .suggestion-image-dl { opacity: 1; }
.suggestion-image-brief { font-size: .78rem; color: var(--muted); display: flex; align-items: flex-start; gap: .25rem; margin: .35rem 0; font-style: italic; }
.img-gen-btn { display: inline-flex; align-items: center; gap: .4rem; background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(165,180,252,.1)); border: 1px solid rgba(99,102,241,.3); color: var(--accent-2); font-size: .82rem; font-weight: 600; padding: .45rem .9rem; border-radius: 8px; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.img-gen-btn:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ── Networks grid (Conexões) ───────────────────────────────── */
.networks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.network-card { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; transition: border-color .2s; }
.network-card--soon { opacity: .8; }
.network-card-head { display: flex; align-items: center; gap: 1rem; }
.network-icon { width: 44px; height: 44px; min-width: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.network-icon svg { width: 22px; height: 22px; }
.network-icon--linkedin  { background: #0a66c2; color: #fff; }
.network-icon--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; }
.network-icon--facebook  { background: #1877f2; color: #fff; }
.network-icon--x         { background: #000; color: #fff; }
.network-icon--tiktok    { background: #010101; color: #fff; }
.network-icon--youtube   { background: #ff0000; color: #fff; }
.network-icon--whatsapp  { background: #25d366; color: #fff; }
.network-name { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); }
.network-status { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; margin-top: .2rem; }
.network-status--on   { background: var(--green-soft); color: var(--green); }
.network-status--off  { background: var(--surface-2); color: var(--muted-2); }
.network-status--soon { background: rgba(245,158,11,.12); color: var(--yellow); }
.network-desc { margin: 0; font-size: .85rem; color: var(--muted-2); flex: 1; }
.network-btn { display: inline-block; text-align: center; text-decoration: none; font-size: .85rem; font-weight: 700; padding: .6rem 1.2rem; border-radius: 8px; border: none; cursor: pointer; transition: opacity .15s, filter .15s; margin-top: auto; }
.network-btn--connect   { background: var(--net-color, var(--accent)); color: #fff; }
.network-btn--connect:hover { filter: brightness(1.12); }
.network-btn--reconnect { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); }
.network-btn--reconnect:hover { background: var(--surface); }
.network-btn--disabled  { background: var(--surface); color: var(--muted); cursor: not-allowed; }

/* Profile edit list (seção Perfis) */
.profile-edit-list { display: flex; flex-direction: column; gap: 1rem; }
.profile-edit-card { padding: 1.5rem; }
.pcard-view-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.pcard-tone-inline { font-size: .82rem; color: var(--muted-2); font-style: italic; }
.pcard-actions { display: flex; align-items: center; gap: .5rem; }
.pcard-edit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
@media (max-width: 600px) { .pcard-edit-fields { grid-template-columns: 1fr; } }
.pcard-edit-footer { display: flex; gap: .75rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.custom-tag-row { display: flex; gap: .5rem; align-items: center; }
.custom-tag-row input { flex: 1; min-width: 0; }
.subtle-link { color: var(--accent-2); text-decoration: none; }
.subtle-link:hover { text-decoration: underline; }
.profile-add-card { background: transparent; border: 1.5px dashed var(--border-2); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; min-height: 160px; cursor: pointer; transition: border-color .2s, background .2s; color: var(--muted-2); }
.profile-add-card:hover, .profile-add-card--active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.profile-add-icon { font-size: 1.75rem; font-weight: 300; line-height: 1; }
.profile-add-label { font-size: .88rem; font-weight: 600; }
.secondary-btn { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); font-size: .84rem; font-weight: 600; padding: .5rem 1rem; border-radius: 8px; cursor: pointer; transition: background .15s; }
.secondary-btn:hover { background: var(--surface); }
.icon-btn { background: transparent; border: none; cursor: pointer; font-size: .9rem; padding: .2rem .4rem; border-radius: 6px; transition: background .15s, color .15s; }
.danger-btn { color: var(--muted); }
.danger-btn:hover { background: rgba(244,63,94,.1); color: var(--red); }

/* Admin forms */
.admin-body input, .admin-body textarea, .admin-body select { background: var(--bg-3); border-color: var(--border-2); color: var(--adm-text); }
.admin-body input::placeholder, .admin-body textarea::placeholder { color: var(--adm-text-muted); }
.admin-body label { color: var(--adm-text-secondary); }
.admin-body .alert-box { background: rgba(244,63,94,0.12); border-color: var(--red); color: var(--red); }

/* Admin login */
.adm-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--adm-bg); }
.adm-login-card { background: var(--adm-card-bg) !important; border: 1px solid var(--adm-card-border) !important; box-shadow: var(--shadow) !important; border-radius: var(--adm-radius) !important; padding: 2.25rem; width: min(440px, 100%); backdrop-filter: none !important; }
.adm-login-head { margin-bottom: 1.75rem; }
.adm-login-head .eyebrow { color: var(--adm-accent); }
.adm-login-title { margin: .2rem 0 .4rem; font-family: "Iowan Old Style", Georgia, serif; font-size: 1.7rem; letter-spacing: -.02em; color: var(--adm-text); }
.adm-login-sub { margin: 0; color: var(--adm-text-muted); font-size: .9rem; }

/* Panels override for admin */
.admin-body .panel { background: var(--adm-card-bg) !important; border-color: var(--adm-card-border) !important; box-shadow: 0 1px 3px rgba(0,0,0,.06) !important; backdrop-filter: none !important; }
.admin-body h3 { color: var(--adm-text); }
.admin-body p { color: var(--adm-text-secondary); }

/* Admin toast */
#admin-toast-root { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 9999; }
.adm-toast { background: #0f766e; color: #fff; padding: .75rem 1.2rem; border-radius: 10px; font-size: .9rem; font-weight: 600; box-shadow: 0 4px 16px rgba(15,118,110,.35); opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s; }
.adm-toast--in { opacity: 1; transform: translateY(0); }

/* Plans editor */
.adm-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.adm-plan-edit-card { padding: 1.25rem; }
.adm-plan-edit-header { display: flex; align-items: center; gap: .75rem; padding-left: .75rem; margin-bottom: 1.25rem; }
.adm-plan-edit-fields { display: flex; flex-direction: column; gap: 1rem; }
.adm-plan-field { display: flex; flex-direction: column; gap: .35rem; }
.adm-plan-field-label { display: flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--adm-text-secondary); }
.adm-plan-field-input-wrap { display: flex; align-items: center; gap: .4rem; background: var(--surface); border: 1px solid var(--border-2); border-radius: 8px; padding: .1rem .6rem .1rem .5rem; }
.adm-plan-input { flex: 1; border: none; background: transparent; padding: .5rem .3rem; font-size: .95rem; font-weight: 600; color: var(--adm-text); outline: none; min-width: 0; }
.adm-plan-input--price { max-width: 90px; }
.adm-plan-input-prefix { font-size: .82rem; color: var(--adm-text-secondary); font-weight: 600; }
.adm-plan-input-unit { font-size: .78rem; color: var(--adm-text-secondary); white-space: nowrap; }
.adm-plan-hint { font-size: .75rem; color: var(--adm-text-muted); }
.adm-plans-actions { padding: .25rem 0 1.25rem; }

/* Admin responsive */
@media (max-width: 768px) {
  .adm-sidebar { position: fixed; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row; padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom, 0px)); border-right: none; border-top: 1px solid var(--adm-card-border); z-index: 100; }
  .adm-brand { display: none; }
  .adm-sidebar-footer { display: none; }
  .adm-nav { flex-direction: row; justify-content: space-around; flex: 1; }
  .adm-nav-item { flex-direction: column; gap: .15rem; font-size: .65rem; padding: .4rem .3rem; flex: 1; text-align: center; }
  .adm-content { padding: 1rem .875rem calc(70px + 1rem); }
  .adm-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── ACCOUNT MODAL ─────────────────────────────────────── */
.acct-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.acct-overlay[hidden] { display: none; }
.acct-modal {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: min(540px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.acct-modal-header {
  display: flex; align-items: center; gap: 1rem;
}
.acct-modal-avatar {
  width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #4338ca);
  color: #fff; font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.acct-modal-title { margin: 0 0 .15rem; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.acct-modal-sub { margin: 0; font-size: .82rem; color: var(--muted-2); }
.acct-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  color: var(--muted); padding: .35rem; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.acct-close:hover { background: var(--surface-2); color: var(--text); }
.acct-form { display: flex; flex-direction: column; gap: .85rem; }
.acct-section-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-2);
  padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}
.acct-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: .78em; }
.acct-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.acct-label { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--muted-2); }
.acct-input {
  background: var(--bg-3); border: 1px solid var(--border-2);
  color: var(--text); border-radius: 10px;
  padding: .55rem .75rem; font-size: .9rem; font-family: inherit;
  transition: border-color .15s;
}
.acct-input:focus { outline: none; border-color: var(--accent); }
.acct-form-footer {
  display: flex; justify-content: flex-end; gap: .65rem;
  padding-top: .75rem; border-top: 1px solid var(--border);
  margin-top: .25rem;
}
@media (max-width: 540px) { .acct-field-row { grid-template-columns: 1fr; } }

/* ── NOVA PUBLICAÇÃO card modal ─────────────────────────────── */
.nova-pub-card-wrap {
  width: min(600px, 96vw);
  max-height: 94vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.nova-pub-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.nova-pub-card-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
}
.nova-pub-card-controls {
  display: flex; align-items: center; gap: .6rem;
}
.nova-pub-label-inline {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600; color: var(--muted-2); white-space: nowrap;
}
.nova-pub-select {
  background: var(--bg-3); border: 1px solid var(--border-2);
  color: var(--text); border-radius: var(--radius-xs);
  padding: .3rem .5rem; font-size: .8rem; font-family: inherit; cursor: pointer;
}
.nova-pub-card { cursor: default; }

/* editable fields inside card */
.nova-pub-body { display: flex; flex-direction: column; gap: .55rem; padding: .25rem 0; }
.np-field {
  outline: none; border-radius: 4px; padding: .3rem .4rem;
  min-height: 1.4rem; line-height: 1.6; font-family: inherit;
  border: 1px solid transparent;
  transition: border-color .15s, background .15s;
  color: var(--text); font-size: .9rem;
  white-space: pre-wrap; word-break: break-word;
}
.np-field:empty::before {
  content: attr(data-placeholder);
  color: var(--muted); pointer-events: none;
}
.np-field:focus, .np-field--active {
  border-color: var(--border-2); background: var(--bg-3);
}
.np-title-field { font-size: 1rem; font-weight: 700; }
.np-body-field  { min-height: 5rem; }
.np-hash-field  { font-size: .82rem; color: var(--accent-2); }

/* photo area */
.np-photo-area {
  position: relative; margin: .25rem 0;
}
.np-photo-drop {
  display: flex; align-items: center; gap: .5rem;
  border: 1.5px dashed var(--border-2); border-radius: var(--radius-xs);
  padding: .75rem 1rem; cursor: pointer; font-size: .85rem; color: var(--muted-2);
  transition: border-color .15s, background .15s;
}
.np-photo-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.np-photo-preview {
  width: 100%; border-radius: var(--radius-xs); max-height: 280px; object-fit: cover;
}
.np-photo-remove {
  position: absolute; top: .4rem; right: .4rem;
  background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 50%;
  width: 24px; height: 24px; font-size: .8rem; cursor: pointer; line-height: 1;
}
.np-vision-row {
  display: flex; gap: .6rem; align-items: center; padding: .5rem 0;
}
.np-vision-row .nova-pub-input { flex: 1; }

/* footer */
.nova-pub-footer {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding-bottom: .25rem;
}
.nova-pub-footer-btns { display: flex; gap: .6rem; }
.nova-pub-status { font-size: .8rem; color: var(--red); }

/* legacy input/select used by vision row */
.nova-pub-input {
  background: var(--bg-3); border: 1px solid var(--border-2);
  color: var(--text); border-radius: var(--radius-xs);
  padding: .45rem .7rem; font-size: .85rem; font-family: inherit;
  transition: border-color .15s; width: 100%;
}
.nova-pub-input:focus { outline: none; border-color: var(--accent); }

.nova-pub-btn {
  width: 100%; display: flex; align-items: center; justify-content: center;
  gap: .45rem; padding: .55rem .7rem;
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--radius-xs); color: var(--accent-2);
  font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.nova-pub-btn:hover { background: rgba(99,102,241,.2); }

/* ── POSTS USAGE BANNER ─────────────────────────────────────── */
.posts-usage-banner {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); padding: .75rem 1rem;
  margin-bottom: .25rem;
}
.posts-usage-banner--warn { border-color: var(--yellow); background: rgba(245,158,11,.06); }
.posts-usage-banner--full { border-color: var(--red); background: rgba(244,63,94,.07); }
.posts-usage-info { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.posts-usage-text { font-size: .82rem; color: var(--muted-2); }
.posts-usage-text strong { color: var(--text); }
.posts-usage-bar { height: 4px; background: var(--border-2); border-radius: 999px; overflow: hidden; }
.posts-usage-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s; }
.posts-usage-banner--warn .posts-usage-fill { background: var(--yellow); }
.posts-usage-banner--full .posts-usage-fill { background: var(--red); }
.posts-usage-cta {
  flex-shrink: 0; font-size: .8rem; font-weight: 700;
  color: var(--accent-2); border: 1px solid var(--accent);
  border-radius: var(--radius-xs); padding: .35rem .75rem;
  text-decoration: none; transition: background .15s;
}
.posts-usage-cta:hover { background: var(--accent-soft); }

/* ── PRICING PAGE ──────────────────────────────────────── */
.pricing-page { padding: 2rem 0 4rem; }

.pricing-hero { text-align: center; padding: 2.5rem 1rem 2rem; }
.pricing-hero h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em; margin: 0.25rem 0 0.5rem; color: var(--text); }
.pricing-sub { color: var(--muted-2); margin: 0; font-size: 1rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 0 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover { transform: translateY(-3px); border-color: var(--border-2); }

.pricing-card--highlight { border-color: rgba(99,102,241,0.4); box-shadow: 0 0 0 1px rgba(99,102,241,0.2), 0 16px 48px rgba(99,102,241,0.12); }
.pricing-card--current { border-color: rgba(16,185,129,0.35); }

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent), #4338ca);
  color: #fff;
}
.pricing-badge--current { background: linear-gradient(135deg, var(--green), #047857); }
.pricing-badge--agency { background: linear-gradient(135deg, #c026d3, #7c3aed); }
.pricing-card--agency { border-color: rgba(192,38,211,0.3); }
.pricing-card--agency:hover { border-color: rgba(192,38,211,0.5); }

.pricing-card-head { display: flex; flex-direction: column; gap: 0.4rem; }
.pricing-plan-name { margin: 0; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); }

.pricing-price { display: flex; align-items: baseline; gap: 0.1rem; }
.pricing-currency { font-size: 1rem; font-weight: 700; color: var(--muted-2); margin-right: 0.1rem; }
.pricing-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.pricing-period { font-size: 0.85rem; color: var(--muted); margin-left: 0.25rem; }
.pricing-limit { margin: 0; font-size: 0.85rem; color: var(--muted-2); }
.pricing-posts-limit { margin: 0; font-size: 0.9rem; color: var(--text); font-weight: 600; }
.pricing-posts-limit strong { color: var(--accent-2); }
.pricing-annual-note { margin: 0; font-size: 0.78rem; color: var(--muted); }

.pricing-toggle {
  display: flex; align-items: center; gap: .75rem;
  justify-content: center; margin-top: 1.25rem;
}
.pricing-toggle-label { font-size: .88rem; color: var(--muted-2); display: flex; align-items: center; gap: .4rem; }
.pricing-annual-badge {
  font-size: .7rem; font-weight: 700; padding: .15rem .45rem;
  background: var(--green-soft); color: var(--green);
  border-radius: 999px; letter-spacing: .03em;
}
.pricing-toggle-btn {
  width: 44px; height: 24px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  cursor: pointer; position: relative; transition: background .2s;
}
.pricing-toggle-btn--on { background: var(--accent); border-color: var(--accent); }
.pricing-toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 999px;
  background: var(--muted-2); transition: transform .2s, background .2s;
}
.pricing-toggle-btn--on .pricing-toggle-knob { transform: translateX(20px); background: #fff; }

.pricing-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.pricing-feature { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.88rem; color: var(--muted-2); }
.pricing-feature--highlight { color: var(--text); font-weight: 600; }
.pricing-feature--locked { opacity: .4; }
.pricing-check { width: 18px; height: 18px; border-radius: 999px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; flex-shrink: 0; margin-top: 0.05rem; }
.pricing-check--accent { background: var(--accent-soft); color: var(--accent-2); }
.pricing-check--locked { background: var(--surface-2); color: var(--muted); }

.pricing-cta { margin-top: auto; }
.pricing-btn { width: 100%; text-align: center; display: block; }
.pricing-btn-disabled { display: block; width: 100%; text-align: center; padding: 0.65rem 1.25rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); background: var(--surface); cursor: default; }

.pricing-footer-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 2rem; }

/* ── PLAN INDICATOR ────────────────────────────────────── */
.plan-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(99,102,241,0.18);
  margin-bottom: 1rem;
}
.plan-indicator-left { display: flex; flex-direction: column; gap: 0.2rem; }
.plan-indicator-name { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); margin: 0; }
.plan-indicator-usage { font-size: 0.85rem; color: var(--muted-2); margin: 0; }

.plan-progress-wrap { flex: 1; max-width: 140px; }
.plan-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.plan-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.4s ease; }
.plan-progress-fill--warn { background: linear-gradient(90deg, var(--yellow), #d97706); }
.plan-progress-fill--full { background: linear-gradient(90deg, var(--red), #be123c); }

/* ── TAG PICKER ────────────────────────────────────────── */
.tag-picker-wrap { display: flex; flex-direction: column; gap: 1rem; margin: 0.75rem 0; }

.top-cats-section { }
.top-cats-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.top-cat-chip { font-size: 0.82rem !important; padding: 0.45rem 0.85rem !important; font-weight: 600 !important; }

.cat-sections { display: flex; flex-direction: column; gap: 0.35rem; }

.cat-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cat-section[open] { border-color: var(--border-2); }

.cat-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.9rem; cursor: pointer; list-style: none;
  font-size: 0.84rem; font-weight: 600; color: var(--muted-2);
  background: var(--surface);
  transition: background 0.15s, color 0.15s;
  user-select: none;
}
.cat-section-header::-webkit-details-marker { display: none; }
.cat-section-header:hover { background: var(--surface-2); color: var(--text); }
.cat-section[open] .cat-section-header { color: var(--text); background: var(--surface-2); }

.cat-arrow { transition: transform 0.2s; flex-shrink: 0; }
.cat-section[open] .cat-arrow { transform: rotate(180deg); }

.cat-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.65rem 0.9rem 0.75rem;
  border-top: 1px solid var(--border);
}

/* ── LINKEDIN FEED PREVIEW ─────────────────────────────── */
/* ── CONTENT LAYOUT ──────────────────────────────────────── */
.conteudo-layout { display: flex; gap: 1.5rem; align-items: flex-start; }
.conteudo-feed { flex: 1; min-width: 0; }

.content-profile-nav {
  width: 168px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  position: sticky;
  top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem .6rem;
}
.cpnav-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-2);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background .15s, color .15s, border-color .15s;
}
.cpnav-item:hover { background: var(--surface); color: var(--text); }
.cpnav-item--active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
}
.cpnav-avatar {
  width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #4338ca);
  color: #fff; font-size: .75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.cpnav-avatar--all {
  background: var(--surface-2);
  color: var(--accent-2);
  font-size: .9rem;
}
.cpnav-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpnav-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 0 .4rem .35rem; margin: 0;
}
.cpnav-empty { font-size: .78rem; color: var(--muted); padding: .25rem .4rem; margin: 0; }

@media (max-width: 700px) {
  .conteudo-layout { flex-direction: column; }
  .content-profile-nav { width: 100%; flex-direction: row; flex-wrap: wrap; position: static; }
}

.lk-feed { display: flex; flex-direction: column; gap: 1.5rem; max-width: 680px; }

.lk-post-wrap { display: flex; flex-direction: column; gap: 0.4rem; }

.lk-post-meta {
  display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap;
  padding: 0 0.25rem;
}
.lk-quality-badge {
  font-size: 0.7rem; font-weight: 600; color: var(--green);
  background: var(--green-soft); border-radius: 6px; padding: 0.1rem 0.45rem;
}
.lk-campaign-ref {
  font-size: 0.7rem; color: var(--muted-2); margin-left: auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px;
}

.lk-post {
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  padding: 0;
  overflow: hidden;
}

.lk-post-header {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1rem 0.5rem;
}
.lk-post-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #4338ca);
  color: #fff; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.lk-post-author { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; }
.lk-author-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.lk-author-sub { font-size: 0.75rem; color: var(--muted-2); }
.lk-author-time { font-size: 0.72rem; color: var(--muted); display: flex; align-items: center; gap: 0.2rem; }
.lk-dots { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 0 0.25rem; min-height: unset; transition: color .15s; }
.lk-dots:hover { color: var(--text); }
.lk-dots--active { color: var(--accent-2); }

.lk-post-body { padding: 0.5rem 1rem; }
.lk-post-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin: 0 0 0.5rem; line-height: 1.4; }

.lk-post-text {
  font-size: 0.84rem; color: var(--muted-2); line-height: 1.65;
  max-height: 5rem; overflow: hidden;
  position: relative;
  transition: max-height 0.35s ease;
}
.lk-post-text::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2rem;
  background: linear-gradient(to bottom, transparent, var(--bg-2));
  pointer-events: none;
  transition: opacity 0.25s;
}
.lk-post-text.expanded { max-height: 1200px; }
.lk-post-text.expanded::after { opacity: 0; }
.lk-post-text p { margin: 0 0 0.5rem; }
.lk-post-text p:last-child { margin-bottom: 0; }

.lk-see-more {
  background: none; border: none; padding: 0.25rem 0; margin: 0.35rem 0 0;
  font-size: 0.8rem; color: var(--accent-2); cursor: pointer; min-height: unset;
  font-weight: 600; display: inline-block;
}
.lk-see-more:hover { color: var(--text); }

.lk-hashtags {
  font-size: 0.78rem; color: var(--accent-2); margin: 0.5rem 0 0;
  line-height: 1.7; word-break: break-word;
}

.lk-post-image-wrap {
  position: relative; width: 100%; max-height: 380px; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.lk-post-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.lk-post-image-open {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.55); border-radius: 6px; padding: 0.35rem;
  color: #fff; display: flex; align-items: center; text-decoration: none;
  opacity: 0; transition: opacity 0.2s;
}
.lk-post-image-wrap:hover .lk-post-image-open { opacity: 1; }

.lk-engagement {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1rem 0; font-size: 0.78rem; color: var(--muted);
}
.lk-reactions-icons { display: flex; gap: -2px; }
.lk-react { font-size: 0.9rem; }
.lk-engagement-text { font-size: 0.75rem; color: var(--muted); }

.lk-action-bar {
  display: flex; align-items: center;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.lk-action {
  flex: 1; background: none; border: none; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  font-size: 0.78rem; cursor: default; padding: 0.5rem 0.25rem; min-height: unset;
  border-radius: 6px; transition: background 0.15s, color 0.15s;
}
.lk-action:hover { background: var(--surface); color: var(--muted-2); }

/* ── Suggestion action bar ─────────────────────────── */
.suggestion-action-bar {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.65rem 1rem 0.8rem;
  background: var(--surface);
}

.sug-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.38rem 0.75rem; border-radius: 8px; font-size: 0.78rem;
  font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-height: unset; white-space: nowrap;
}

.sug-btn--approve {
  background: var(--green-soft); color: var(--green); border-color: rgba(16,185,129,0.25);
}
.sug-btn--approve:hover { background: rgba(16,185,129,0.22); }

.sug-btn--linkedin {
  background: rgba(10,102,194,0.15); color: #5ba4cf; border-color: rgba(10,102,194,0.3);
}
.sug-btn--linkedin:hover { background: rgba(10,102,194,0.25); }

.sug-btn--whatsapp {
  background: rgba(37,211,102,0.1); color: #25d366; border-color: rgba(37,211,102,0.25);
}
.sug-btn--whatsapp:hover { background: rgba(37,211,102,0.2); }

.sug-btn--facebook {
  background: rgba(24,119,242,0.1); color: #1877F2; border-color: rgba(24,119,242,0.25);
}
.sug-btn--facebook:hover { background: rgba(24,119,242,0.2); }

.sug-btn--instagram {
  background: rgba(228,64,95,0.1); color: #E4405F; border-color: rgba(228,64,95,0.25);
}
.sug-btn--instagram:hover { background: rgba(228,64,95,0.2); }

.network-btn--disconnect {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  font-size: .78rem; padding: .4rem .8rem; border-radius: 999px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.network-btn--disconnect:hover { color: var(--red); border-color: var(--red); }

.sug-btn--img {
  background: var(--accent-soft); color: var(--accent-2); border-color: rgba(99,102,241,0.25);
}
.sug-btn--img:hover { background: rgba(99,102,241,0.2); }

.sug-btn--upload {
  background: var(--surface-2); color: var(--muted-2); border-color: var(--border-2);
}
.sug-btn--upload:hover { background: var(--surface-strong); color: var(--text); }

.sug-btn--ghost {
  background: transparent; color: var(--muted); border-color: var(--border);
}
.sug-btn--ghost:hover { color: var(--muted-2); border-color: var(--border-2); }

.sug-btn--delete {
  background: transparent; color: var(--rust); border-color: transparent; margin-left: auto;
}
.sug-btn--delete:hover { background: rgba(220,38,38,.1); border-color: var(--rust); }
/* ── SUGGESTION EDIT PANEL ──────────────────────────────── */
/* ── INLINE EDIT ─────────────────────────────────────────── */
.lk-editable[contenteditable="true"] {
  outline: none;
  border-radius: var(--radius-xs);
  padding: .2rem .35rem;
  margin: -.2rem -.35rem;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  cursor: text;
  white-space: pre-wrap;
  transition: border-color .15s, background .15s;
  display: block;
}
.lk-editable[contenteditable="true"]:focus {
  border-color: var(--accent);
  background: var(--bg-2);
}
.lk-editable--active { min-height: 1.5em; }

.lk-edit-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem 1.5rem .75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-3);
  border-radius: 0 0 var(--radius) var(--radius);
  animation: slideDown .15s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lk-edit-hint { font-size: .75rem; color: var(--muted); }
.lk-edit-actions { display: flex; gap: .55rem; }

/* ── MOBILE TOPBAR ─────────────────────────────────────── */
.mobile-topbar { display: none; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 200px; }
}

@media (max-width: 768px) {

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: rgba(13,17,23,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
  }

  .mobile-brand { text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
  .mobile-brand .brand-dot { width: 26px; height: 26px; border-radius: 7px; }
  .mobile-brand-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
  .mobile-logout-form { margin: 0; }
  .mobile-avatar { width: 34px; height: 34px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), #4338ca); color: #fff; font-size: 0.88rem; font-weight: 700; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; min-height: unset; }

  .app-layout { flex-direction: column; padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }

  .sidebar {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    width: 100%; height: auto; flex-direction: row;
    padding: 0; z-index: 100;
    border-right: none; border-top: 1px solid var(--border);
    background: rgba(13,17,23,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-y: visible; align-items: stretch;
  }

  .sidebar-brand { display: none; }
  .sidebar-footer { display: none; }

  .sidebar-nav {
    flex-direction: row; width: 100%;
    justify-content: space-around;
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    gap: 0; flex: 1; align-items: flex-end;
  }

  .nav-item { flex-direction: column; gap: 0.18rem; padding: 0.45rem 0.25rem; font-size: 0.65rem; align-items: center; text-align: center; border-radius: 10px; flex: 1; min-width: 0; }
  .nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }

  .shell { padding: 1rem 0.875rem 2rem; }

  .two-pane, .overview-grid, .suggestion-grid, .automation-grid, .hero, .features-grid { grid-template-columns: 1fr; }

  .hero { padding: 1.25rem; }
  .hero h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }

  .two-col, .button-row { flex-direction: column; }

  .form-section { grid-template-columns: 1fr; }
  .form-section-label { flex-direction: row; align-items: center; padding-top: 0; gap: 0.5rem; }
  .form-section-fields.cols-2, .form-section-fields.cols-3, .form-section-fields.cols-4 { grid-template-columns: 1fr; }

  .generate-form { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; }
  .generate-form button { grid-column: 1 / -1; }

  .carousel-slides { grid-template-columns: repeat(5, minmax(100px, 1fr)); overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: none; }
  .carousel-slides::-webkit-scrollbar { display: none; }

  .stats-row { gap: 0.6rem; }
  .stat-card { min-width: calc(50% - 0.3rem); }

  #toast-root { bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 0.75rem); right: 1rem; left: 1rem; }
  .toast { max-width: 100%; }

  button { min-height: 44px; }
  input, select, textarea { font-size: 16px; }

  .hero-stats { gap: 2rem; }
  .topbar { padding: 0.8rem 1rem; }
  .pricing-grid { grid-template-columns: 1fr; padding: 0 0.75rem; }
}

@media (max-width: 420px) {
  .shell { padding: 0.875rem 0.75rem 1.5rem; }
  .nav-item { font-size: 0.6rem; }
  .nav-item svg { width: 18px; height: 18px; }
  .create-panel-header, .create-panel-form { padding-left: 1rem; padding-right: 1rem; }
  .auto-card-topics { max-width: 100%; white-space: normal; }
  .page-header h2 { font-size: 1.4rem; }
}


/* ── SUPORTE (user) ────────────────────────────────────────────────────────── */
.support-page { max-width: 900px; }
.support-header { margin-bottom: 2rem; }
.support-header h2 { font-family: "Iowan Old Style", Georgia, serif; font-size: 2rem; margin: 0 0 .5rem; }
.support-sub { color: var(--text-muted); font-size: .92rem; margin: 0; max-width: 520px; }

.support-grid { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; align-items: start; }

/* type buttons */
.support-type-row { display: flex; gap: .6rem; margin-bottom: 1.25rem; }
.support-type-btn { cursor: pointer; }
.support-type-btn input { display: none; }
.support-type-btn span {
  display: flex; align-items: center; gap: .45rem;
  padding: .45rem .9rem; border-radius: 99px;
  font-size: .82rem; font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-muted); background: var(--surface-2);
  transition: border-color .15s, color .15s, background .15s;
}
.support-type-btn input:checked + span {
  border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb, 90,140,255),.1);
}

.support-form { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.support-field-label { display: flex; flex-direction: column; gap: .45rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); position: relative; }
.support-input, .support-textarea {
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: .6rem; padding: .65rem .85rem;
  font-size: .92rem; color: var(--text); font-family: inherit;
  transition: border-color .15s;
  resize: none;
}
.support-input:focus, .support-textarea:focus { outline: none; border-color: var(--accent); }
.support-char-counter { position: absolute; right: .6rem; bottom: .55rem; font-size: .72rem; color: var(--text-muted); pointer-events: none; text-transform: none; letter-spacing: 0; }
.support-form-footer { display: flex; justify-content: flex-end; }
.support-success {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1rem; border-radius: .6rem;
  background: rgba(34,197,94,.1); border: 1.5px solid rgba(34,197,94,.35);
  color: #22c55e; font-size: .9rem; font-weight: 600;
}

/* info cards */
.support-info-col { display: flex; flex-direction: column; gap: 1rem; }
.support-info-card { padding: 1rem 1.25rem; display: flex; align-items: flex-start; gap: .85rem; }
.support-info-icon { color: var(--accent); flex-shrink: 0; margin-top: .1rem; }
.support-info-title { margin: 0 0 .3rem; font-size: .88rem; font-weight: 700; color: var(--text); }
.support-info-body { margin: 0; font-size: .82rem; color: var(--text-muted); line-height: 1.55; }

/* sidebar support link highlight */
.nav-item--support { margin-top: auto; }

/* ── ADMIN SUPORTE ─────────────────────────────────────────────────────────── */
.adm-support-filters { display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.adm-filter-btn {
  display: flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem; border-radius: 99px; font-size: .8rem; font-weight: 600;
  border: 1.5px solid var(--adm-card-border); color: var(--adm-text-secondary);
  background: transparent; text-decoration: none; transition: all .15s;
}
.adm-filter-btn:hover { border-color: var(--adm-accent); color: var(--adm-accent); }
.adm-filter-btn--active { border-color: var(--adm-accent); color: var(--adm-accent); background: rgba(212,167,104,.1); }
.adm-filter-count { font-size: .72rem; background: var(--surface-2); border-radius: 99px; padding: .05rem .45rem; color: var(--adm-text-muted); }

.adm-support-list { display: flex; flex-direction: column; gap: .75rem; }
.adm-support-item { border-radius: .75rem; overflow: hidden; }
.adm-support-item--open { border-left: 3px solid var(--adm-accent); }

.adm-support-item-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; cursor: pointer; gap: 1rem;
  transition: background .15s;
}
.adm-support-item-header:hover { background: rgba(255,255,255,.04); }
.adm-support-item-left { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.adm-support-item-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.adm-support-item-meta { min-width: 0; }
.adm-support-subject { display: block; font-size: .9rem; font-weight: 700; color: var(--adm-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.adm-support-user { font-size: .78rem; color: var(--adm-text-muted); }
.adm-support-date { font-size: .75rem; color: var(--adm-text-muted); white-space: nowrap; }
.adm-support-chevron { color: var(--adm-text-muted); transition: transform .2s; flex-shrink: 0; }

.adm-support-type-badge {
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .65rem; border-radius: 99px; white-space: nowrap; flex-shrink: 0;
}
.adm-support-type--question  { background: rgba(96,165,250,.15); color: #60a5fa; }
.adm-support-type--suggestion { background: rgba(251,191,36,.15); color: #fbbf24; }
.adm-support-type--bug        { background: rgba(248,113,113,.15); color: #f87171; }

.adm-support-status-badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 99px; white-space: nowrap;
}
.adm-support-status--open     { background: rgba(212,167,104,.2); color: var(--adm-accent); }
.adm-support-status--read     { background: rgba(148,163,184,.15); color: #94a3b8; }
.adm-support-status--answered { background: rgba(34,197,94,.12); color: #22c55e; }

.adm-support-item-body { padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--adm-card-border); }
.adm-support-message { padding: 1rem 0; font-size: .9rem; color: var(--adm-text); line-height: 1.7; white-space: pre-wrap; border-bottom: 1px solid var(--adm-card-border); margin-bottom: 1rem; }

.adm-support-reply-block { background: var(--bg-3); border-radius: .5rem; padding: .85rem 1rem; margin-bottom: 1rem; }
.adm-support-reply-label { margin: 0 0 .35rem; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--adm-accent); }
.adm-support-reply-text { margin: 0; font-size: .88rem; color: var(--adm-text); white-space: pre-wrap; line-height: 1.65; }

.adm-support-reply-form { display: flex; flex-direction: column; gap: .75rem; }
.adm-support-reply-textarea {
  background: var(--bg-2); border: 1.5px solid var(--adm-card-border);
  border-radius: .55rem; padding: .65rem .85rem;
  font-size: .88rem; color: var(--adm-text); font-family: inherit;
  resize: vertical; transition: border-color .15s;
}
.adm-support-reply-textarea:focus { outline: none; border-color: var(--adm-accent); }
.adm-support-reply-actions { display: flex; gap: .6rem; justify-content: flex-end; }
.adm-btn-sm { padding: .4rem .9rem !important; font-size: .82rem !important; }

.adm-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 99px; padding: 0 .4rem;
  background: var(--adm-accent); color: #1a1208; font-size: .68rem; font-weight: 800;
}

.adm-empty-state { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 4rem 1rem; color: var(--adm-text-muted); }
.adm-empty-state p { margin: 0; font-size: .95rem; }

@media (max-width: 680px) {
  .support-grid { grid-template-columns: 1fr; }
  .support-info-col { display: none; }
  .adm-support-subject { max-width: 180px; }
  .adm-support-item-right .adm-support-date { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   CALENDÁRIO
════════════════════════════════════════════════════════════════════ */
.cal-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  max-width: 1200px;
}

/* Header */
.cal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cal-title {
  margin: 0 0 .2rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--text);
}
.cal-subtitle { margin: 0; font-size: .88rem; color: var(--muted-2); }

.cal-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cal-nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text);
  cursor: pointer; transition: background .15s, border-color .15s;
}
.cal-nav-btn:hover { background: var(--surface-2); border-color: var(--border-2); }
.cal-month-label {
  min-width: 160px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}
.cal-today-btn {
  padding: .3rem .8rem;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--accent-2);
  font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.cal-today-btn:hover { background: var(--accent-soft); }

/* Legend */
.cal-legend {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .8rem;
  color: var(--muted-2);
}
.cal-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cal-dot--published { background: #22c55e; }
.cal-dot--scheduled { background: var(--accent); }
.cal-dot--draft     { background: #f59e0b; }

/* Body: grid + detail panel */
.cal-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .cal-body { grid-template-columns: 1fr 320px; }
}

/* Grid wrap */
.cal-grid-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
}
.cal-dow {
  padding: .55rem 0;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
  min-height: 80px;
  padding: .55rem .5rem .4rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: var(--surface-2); }
.cal-cell--empty { background: transparent; cursor: default; }
.cal-cell--today .cal-day-num {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.cal-cell--selected { background: var(--accent-soft) !important; }

.cal-day-num {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}

.cal-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 0 2px;
}

/* Detail panel */
.cal-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-self: start;
  max-height: 600px;
  overflow-y: auto;
}
.cal-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem .75rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.cal-detail-date {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  text-transform: capitalize;
}
.cal-detail-close {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: none; border-radius: 6px;
  background: transparent; color: var(--muted-2);
  cursor: pointer; transition: background .12s, color .12s;
}
.cal-detail-close:hover { background: var(--surface-2); color: var(--text); }

.cal-detail-body {
  padding: .75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.cal-empty-day {
  margin: 0;
  font-size: .85rem;
  color: var(--muted-2);
  text-align: center;
  padding: .5rem 0;
}

/* Event cards */
.cal-event-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.cal-event-top {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cal-event-time { font-size: .75rem; color: var(--muted-2); }
.cal-event-title {
  margin: 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.cal-event-campaign { margin: 0; font-size: .75rem; color: var(--muted-2); }
.cal-event-actions {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .2rem;
}
.cal-action-btn {
  font-size: .73rem;
  font-weight: 600;
  padding: .25rem .55rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .12s;
}
.cal-action-btn:hover { opacity: .8; }
.cal-action-btn--danger  { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.25); color: #f87171; }
.cal-action-btn--primary { background: var(--accent-soft); border-color: rgba(99,102,241,.25); color: var(--accent-2); }
.cal-action-btn--success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.25); color: #4ade80; }

/* Tags */
.cal-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .15rem .45rem;
  border-radius: 4px;
}
.cal-tag--published { background: rgba(34,197,94,.15); color: #4ade80; }
.cal-tag--scheduled { background: var(--accent-soft); color: var(--accent-2); }
.cal-tag--draft     { background: rgba(245,158,11,.12); color: #fbbf24; }

/* Schedule zone inside detail */
.cal-detail-schedule-zone {
  border-top: 1px solid var(--border);
  padding: .75rem 1rem;
}
.cal-schedule-zone-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .5rem;
}
.cal-pick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
}
.cal-pick-item:last-child { border-bottom: none; }
.cal-pick-title {
  font-size: .82rem;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cal-pick-btn {
  flex-shrink: 0;
  font-size: .74rem;
  font-weight: 600;
  padding: .22rem .55rem;
  border-radius: 6px;
  border: 1px solid rgba(99,102,241,.3);
  background: var(--accent-soft);
  color: var(--accent-2);
  cursor: pointer;
  transition: opacity .12s;
}
.cal-pick-btn:hover { opacity: .8; }

/* Pool section */
.cal-pool-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cal-pool-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.cal-pool-title {
  margin: 0;
  font-size: .97rem;
  font-weight: 700;
  color: var(--text);
}
.cal-pool-hint { font-size: .78rem; color: var(--muted-2); }

.cal-pool-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
}
.cal-empty-pool {
  grid-column: 1 / -1;
  padding: 1.5rem;
  margin: 0;
  font-size: .9rem;
  color: var(--muted-2);
  text-align: center;
}
.cal-pool-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cal-pool-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.cal-pool-item-title {
  margin: 0;
  font-size: .87rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cal-pool-item-camp { margin: 0; font-size: .75rem; color: var(--muted-2); }

/* Schedule modal */
.cal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.cal-modal-overlay.is-open {
  display: flex;
}
.cal-modal {
  background: #1a1c2e;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cal-modal-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); }
.cal-modal-post-title {
  margin: 0;
  font-size: .88rem;
  color: var(--muted-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cal-modal-label {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted-2);
}
.cal-modal-input {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  color: var(--text);
  padding: .5rem .75rem;
  font-size: .9rem;
  width: 100%;
  box-sizing: border-box;
}
.cal-modal-input:focus { outline: none; border-color: var(--accent); }
.cal-modal-footer {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .cal-page { padding: 1rem; }
  .cal-cell { min-height: 56px; padding: .35rem .25rem .25rem; }
  .cal-day-num { font-size: .75rem; width: 20px; height: 20px; }
  .cal-month-label { min-width: 130px; font-size: .9rem; }
}
