/* ═══════════════════════════════════════════════════════════════════════
   Fuego Social — Social Media Command Center
   Brand: Plus Jakarta Sans, warm brown-blacks, #FF5A00 primary
   Design system unified with admin-dashboard
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand colors — from brand.config.ts */
  --primary: #FF5A00;
  --primary-dark: #CC4800;
  --primary-light: #FF7A2E;
  --gold: #D4A847;

  /* Backgrounds */
  --bg: #0C0A08;
  --bg-alt: #100D0A;
  --surface: #161210;
  --card: #1C1714;
  --card-hover: #221C18;

  /* Borders */
  --border: #2A211C;
  --border-light: #3A2E26;

  /* Text */
  --text: #F2EDE4;
  --text-muted: #9A8C7C;
  --text-subtle: #6A5E52;

  /* Status */
  --success: #4CAF50;
  --success-bg: rgba(76,175,80,0.12);
  --warning: #F5A623;
  --warning-bg: rgba(245,166,35,0.12);
  --error: #E53935;
  --error-bg: rgba(229,57,53,0.12);
  --info: #29B6F6;
  --info-bg: rgba(41,182,246,0.12);

  /* Spacing */
  --sidebar-w: 260px;
  --topbar-h: 56px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}
img, video { max-width: 100%; height: auto; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

/* ─── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }

/* ═══════════════════════════════════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════════════════════════════════ */

#login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  padding: 20px;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 24px rgba(255,90,0,0.4));
}

.login-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.login-sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 28px;
}

.error {
  color: var(--error);
  font-size: 0.8125rem;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════════ */

.field {
  margin-bottom: 16px;
  text-align: left;
}

.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input, .field textarea, .field select {
  width: 100%;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="date"],
input[type="datetime-local"],
textarea, select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s var(--ease);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}

input::placeholder, textarea::placeholder {
  color: var(--text-subtle);
}

textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.6;
}

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

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: rgba(255,90,0,0.08);
  border-color: var(--primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: var(--surface);
}

.btn-sm { padding: 5px 12px; font-size: 0.8125rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; width: 100%; }
.btn-full { width: 100%; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }
.btn-icon svg { width: 20px; height: 20px; }

.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s var(--ease);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  filter: drop-shadow(0 0 12px rgba(255,90,0,0.35));
}

.sidebar-title {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.wm-fuego { color: var(--primary); }
.wm-social { color: var(--text); margin-left: 2px; }

.sidebar-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.nav-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  padding: 16px 12px 6px;
}
.nav-group-label:first-child { padding-top: 4px; }

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s var(--ease);
  text-decoration: none;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.8;
}

.nav-item:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-item.active {
  color: var(--primary);
  background: rgba(255, 90, 0, 0.08);
  font-weight: 600;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-logout { width: 100%; justify-content: center; }

.usage-badge {
  color: var(--text-subtle);
  font-size: 0.6875rem;
  font-weight: 500;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE TOPBAR
   ═══════════════════════════════════════════════════════════════════ */

.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  z-index: 90;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mobile-logo { width: 28px; height: 28px; border-radius: 6px; }
.mobile-spacer { flex: 1; }

/* ═══════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════════ */

#main {
  margin-left: var(--sidebar-w);
  padding: 32px;
  min-height: 100vh;
}

.view { animation: fadeIn 0.2s var(--ease); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.view-header {
  margin-bottom: 28px;
}

.view-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.view-sub {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 4px;
}

.view-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════ */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-head h2 {
  font-size: 1rem;
  font-weight: 700;
}

.card-subtitle {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.link-sm {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s var(--ease), transform 0.15s var(--ease);
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--stat-accent, var(--brand));
  opacity: 0.9;
}
.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--stat-accent-bg, rgba(255,90,0,0.12));
  color: var(--stat-accent, var(--brand));
  flex-shrink: 0;
}
.stat-icon svg { width: 16px; height: 16px; }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* per-variant accents */
.stat-card--posts     { --stat-accent: #FF5A00; --stat-accent-bg: rgba(255,90,0,0.14); }
.stat-card--scheduled { --stat-accent: #3B7BFF; --stat-accent-bg: rgba(59,123,255,0.14); }
.stat-card--sent      { --stat-accent: #22C55E; --stat-accent-bg: rgba(34,197,94,0.14); }
.stat-card--drafts    { --stat-accent: #F5A623; --stat-accent-bg: rgba(245,166,35,0.14); }

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════════ */

.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.dash-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.dash-item-network {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 60px;
}

.dash-item-text {
  flex: 1;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-item-time {
  color: var(--text-subtle);
  font-size: 0.6875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════════
   CALENDAR
   ═══════════════════════════════════════════════════════════════════ */

.cal-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cal-month-label {
  font-size: 1.25rem;
  font-weight: 800;
  min-width: 200px;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cal-weekday {
  padding: 10px;
  background: var(--surface);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#cal-cells {
  display: contents;
}

.cal-cell {
  min-height: 100px;
  padding: 8px;
  background: var(--card);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.cal-cell:hover { background: var(--card-hover); }
.cal-cell.other-month { opacity: 0.35; }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--primary); }

.cal-cell-day {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cal-cell.today .cal-cell-day { color: var(--primary); font-weight: 800; }

.cal-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.cal-dot.posted { background: var(--success); }
.cal-dot.queued { background: var(--warning); }
.cal-dot.draft  { background: var(--text-subtle); }

.cal-count {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-subtle);
  margin-top: 4px;
}

/* Calendar Detail Modal */
.cal-detail {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  animation: fadeOverlay 0.2s var(--ease);
}

@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cal-detail-inner {
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: slideUp 0.25s var(--ease);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cal-detail-post {
  padding: 16px;
  margin-bottom: 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.cal-detail-post:last-child { margin-bottom: 0; }

.cal-detail-post-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cal-detail-post-network {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-detail-post-status {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-detail-post-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  line-height: 1.5;
}

.cal-detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════════
   COMPOSER
   ═══════════════════════════════════════════════════════════════════ */

.composer-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.composer-main { display: flex; flex-direction: column; gap: 16px; }
.composer-sidebar { display: flex; flex-direction: column; gap: 16px; }
.composer-actions-card { display: flex; flex-direction: column; gap: 10px; }

.composer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.char-limits {
  display: flex;
  gap: 6px;
}

.limit-tag {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-subtle);
  transition: all 0.15s var(--ease);
}

.limit-tag.over { background: var(--error-bg); color: var(--error); }
.limit-tag.near { background: var(--warning-bg); color: var(--warning); }
.limit-tag.ok   { background: var(--success-bg); color: var(--success); }

.composer-msg {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 20px;
  margin-top: 8px;
}

.template-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.template-btn {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s var(--ease);
}

.template-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255,90,0,0.06);
}

/* Post Preview */
.post-preview {
  min-height: 120px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.preview-empty {
  color: var(--text-subtle);
  font-size: 0.875rem;
  font-style: italic;
}

.preview-text {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.preview-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-subtle);
  display: flex;
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   BIBLIOTECA
   ═══════════════════════════════════════════════════════════════════ */

.lib-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease);
}

.search-box:focus-within { border-color: var(--primary); }
.search-box svg { width: 18px; height: 18px; stroke: var(--text-subtle); flex-shrink: 0; }
.search-box input {
  border: none;
  background: transparent;
  padding: 10px 0;
  flex: 1;
}
.search-box input:focus { box-shadow: none; }

.lib-filters select { min-width: 180px; }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.lib-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  cursor: default;
}

.lib-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

/* ── Card image ── */
.lib-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--surface);
}

.lib-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

/* ── Card content ── */
.lib-card-content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.lib-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lib-card-platform {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lib-card-type {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--surface);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lib-card-num {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-subtle);
}

.lib-card-hint {
  font-size: 0.6875rem;
  color: var(--text-subtle);
  font-style: italic;
}

.lib-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.lib-card-hook {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}

.lib-card-body {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

.lib-card-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lib-card-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255, 90, 0, .08);
  color: var(--primary);
}

.lib-card-cta {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
}

.lib-card-actions {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.lib-card-actions .btn-approve {
  flex: 1;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.lib-card-actions .btn-approve:hover {
  background: var(--primary-hover);
}

/* ═══════════════════════════════════════════════════════════════════
   QUEUE
   ═══════════════════════════════════════════════════════════════════ */

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-card {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 10px;
  transition: border-color 0.15s var(--ease);
}

.queue-card:hover { border-color: var(--border-light); }

.queue-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.queue-card-network {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.queue-card-time {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.queue-card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   CHANNELS
   ═══════════════════════════════════════════════════════════════════ */

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.channel-card {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.15s var(--ease);
}

.channel-card:hover { border-color: var(--border-light); }

.channel-card-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(76,175,80,0.6);
}

.channel-card-indicator.warn {
  background: var(--error);
  box-shadow: 0 0 12px rgba(229,57,53,0.6);
}

.channel-card-service {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.channel-card-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.channel-card-tz {
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.channel-card-status {
  display: inline-flex;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.channel-card-status.ok {
  background: var(--success-bg);
  color: var(--success);
}

.channel-card-status.warn {
  background: var(--error-bg);
  color: var(--error);
}

/* ═══════════════════════════════════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-error   { background: var(--error-bg);   color: var(--error);   }
.badge-info    { background: var(--info-bg);     color: var(--info);    }
.badge-muted   { background: rgba(154,140,124,0.12); color: var(--text-muted); }
.badge-primary { background: rgba(255,90,0,0.12);    color: var(--primary);    }

.status-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-posted { background: var(--success-bg); color: var(--success); }
.status-queued { background: var(--warning-bg); color: var(--warning); }
.status-draft  { background: rgba(106,94,82,0.15); color: var(--text-subtle); }

/* ═══════════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-subtle);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9375rem;
}

/* ═══════════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════════ */

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.3s var(--ease);
}

.toast.ok, .toast.toast-success { border-color: var(--success); color: var(--success); }
.toast.err, .toast.toast-error  { border-color: var(--error); color: var(--error); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   SHARED UTILITIES
   ═══════════════════════════════════════════════════════════════════ */

.muted { color: var(--text-subtle); font-size: 0.875rem; }
.text-primary { color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .composer-layout { grid-template-columns: 1fr; }
  .lib-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }

  .mobile-topbar { display: flex; }

  #main {
    margin-left: 0;
    padding: 16px;
    padding-top: calc(var(--topbar-h) + 16px);
  }

  .view-header h1 { font-size: 1.375rem; }
  .view-header p { font-size: 0.875rem; }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }
  .stat-card { padding: 14px 14px 12px; gap: 4px; }
  .stat-label { font-size: 0.6875rem; letter-spacing: 0.05em; }
  .stat-icon { width: 28px; height: 28px; border-radius: 8px; }
  .stat-icon svg { width: 14px; height: 14px; }
  .stat-value { font-size: 1.875rem; }
  .stat-sub { font-size: 0.6875rem; }
  .view-header-row { flex-direction: column; }

  .cal-grid { font-size: 0.75rem; }
  .cal-cell { min-height: 60px; padding: 4px; }
  .cal-month-label { font-size: 1.125rem; min-width: 160px; }
}

@media (max-width: 480px) {
  /* keep 2-column grid on small phones, just tighten the cards */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 12px 12px 10px; gap: 3px; }
  .stat-icon { width: 26px; height: 26px; border-radius: 7px; }
  .stat-icon svg { width: 13px; height: 13px; }
  .stat-value { font-size: 1.75rem; }
  .stat-label { font-size: 0.625rem; }
  .stat-sub { font-size: 0.625rem; }
  .cal-cell { min-height: 48px; }
  .cal-cell-day { font-size: 0.6875rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   v2 additions — modals, library v2, queue, calendar pills
   ═══════════════════════════════════════════════════════════════════ */

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  /* dvh accounts for iOS dynamic viewport (URL bar collapse) */
  max-height: min(90vh, calc(100dvh - 32px));
  min-height: 0;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  overflow: hidden; /* clip rounded corners against scrolling body */
}
.modal-head {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  flex: 0 0 auto;
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  /* critical: flex children default to min-height: auto, which blocks overflow */
  min-height: 0;
}
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
body.modal-open { overflow: hidden; }

/* Mobile: minimise outer padding so the modal can use full viewport */
@media (max-width: 640px) {
  .modal { padding: 12px; align-items: flex-end; }
  .modal-card {
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }
}

/* Field rows */
.field-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}
.row-inline { display: flex; align-items: center; gap: 8px; }

/* Composer image */
.comp-image-row {
  display: flex; gap: 16px; align-items: flex-start;
}
.comp-image-preview {
  width: 140px; height: 140px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.comp-image-preview img {
  width: 100%; height: 100%; object-fit: cover;
}
.comp-image-actions {
  display: flex; flex-direction: column; gap: 8px;
}
.comp-image-actions .btn { width: fit-content; cursor: pointer; }
.small { font-size: 0.75rem; }

/* Net badges per network */
.net-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 6px;
  font-size: 0.6875rem; font-weight: 800;
  border-radius: 6px;
  color: #fff;
  letter-spacing: 0.5px;
}
.net-instagram { background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCB045); }
.net-facebook { background: #1877F2; }
.net-linkedin { background: #0A66C2; }
.net-twitter { background: #000; }
.net-tiktok { background: #010101; }
.net-reddit { background: #FF4500; }
.net-google_business { background: #4285F4; }
.net-threads { background: #000; }
.net-youtube { background: #FF0000; }

/* Library v2 cards */
.lib-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.lib-card-media {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg);
  overflow: hidden;
}
.lib-card-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.lib-card-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}
.lib-card-status {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
}
.status-draft { background: rgba(140,140,140,0.85); }
.status-approved { background: rgba(70,140,200,0.9); }
.status-scheduled { background: rgba(212,168,71,0.9); color: #1a1208; }
.status-sent { background: rgba(70,180,120,0.9); }
.status-failed { background: rgba(220,80,80,0.95); }
.status-archived { background: rgba(80,80,80,0.85); }
.status-sending { background: rgba(255,90,0,0.9); }
.status-canceled { background: rgba(120,120,120,0.85); }
.status-dry { background: rgba(212,168,71,0.5); color: var(--text); }

.lib-card-body { padding: 14px 16px; flex: 1; }
.lib-card-net { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lib-card-title { font-size: 1rem; margin: 0 0 6px; line-height: 1.3; }
.lib-card-hook { color: var(--text-subtle); font-size: 0.875rem; margin: 0 0 8px; font-style: italic; }
.lib-card-text { color: var(--text-subtle); font-size: 0.875rem; line-height: 1.5; margin: 0 0 8px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; max-width: 100%; }
.lib-card-cta { color: var(--primary); font-size: 0.8125rem; margin: 0 0 8px; font-weight: 600; }
.lib-card-tags { color: var(--text-subtle); font-size: 0.75rem; margin: 0; }
.lib-card-actions {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.btn-danger { color: #ff6b6b; }
.btn-danger:hover { background: rgba(255,107,107,0.1); }

/* Queue */
.queue-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
}
.queue-row-main { flex: 1; min-width: 0; }
.queue-row-title { font-weight: 600; margin-bottom: 4px; }
.queue-row-sub { color: var(--text-subtle); font-size: 0.8125rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.queue-row-err { color: #ff6b6b; font-size: 0.75rem; margin-top: 4px; word-break: break-word; }
.queue-row-link { color: var(--primary); font-size: 0.8125rem; }
.queue-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Dashboard rows */
.dash-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.dash-row:last-child { border-bottom: none; }
.dash-row-main { flex: 1; min-width: 0; }
.dash-row-title { font-weight: 600; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row-sub { color: var(--text-subtle); font-size: 0.75rem; }

/* Calendar pills v2 */
.cal-pill {
  display: flex; align-items: center; gap: 4px;
  padding: 2px 6px;
  margin-top: 2px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.6875rem;
  overflow: hidden;
}
.cal-pill:hover { background: rgba(255,90,0,0.08); border-color: var(--primary); }
.cal-pill .net-badge { min-width: 22px; height: 18px; font-size: 0.5625rem; padding: 0 3px; }
.cal-pill-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-more { font-size: 0.6875rem; color: var(--text-subtle); margin-top: 2px; }
.cal-cell.today { background: rgba(255,90,0,0.06); border-color: var(--primary); }
.cal-cell.empty { background: transparent; border: none; }

/* Network checks */
.net-checks {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.net-check {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
  cursor: pointer;
}
.net-check input { margin: 0; }
.net-check:hover { background: rgba(255,255,255,0.03); }

/* Job detail */
.job-detail-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.job-detail-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.job-detail-body { white-space: pre-wrap; color: var(--text); line-height: 1.5; }

/* Toast variants */
.toast-success { border-color: #4ec27b; }
.toast-error { border-color: #ff6b6b; color: #ff9b9b; }

/* Row actions */
.row-actions { display: flex; gap: 8px; align-items: center; }

/* btn-full helper (re-affirm) */
.btn-full { width: 100%; }

.flex-spacer { flex: 1; }

/* ════════════════════════════════════════════════════════════════════
   2026-05-15 — Biblioteca tabs + Feed preview + Campaña Ads section
   ════════════════════════════════════════════════════════════════════ */

/* Sidebar accent variant for the Campaña Ads link */
.nav-item-accent {
  position: relative;
}
.nav-item-accent::after {
  content: "Ads";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 8px;
  background: var(--brand);
  color: #0C0A08;
}

/* Library tabs strip */
.lib-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  padding: 0 4px;
}
.lib-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 120ms, border-color 120ms;
}
.lib-tab:hover {
  color: var(--text);
}
.lib-tab.active {
  color: var(--text);
  border-bottom-color: var(--brand);
}
.lib-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.lib-tab.active .lib-tab-count {
  background: var(--brand);
  color: #0C0A08;
}

/* Library card — number badge over media + "publicado" overlay */
.lib-card-num {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(12, 10, 8, 0.85);
  color: var(--brand);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lib-card-used-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(78, 194, 123, 0.9);
  color: #0C0A08;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lib-card--used {
  opacity: 0.72;
}
.lib-card--used:hover {
  opacity: 1;
}
.lib-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,0.03);
  height: 100%;
  width: 100%;
}

/* Feed preview — Instagram-style 3-col grid */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 920px;
}
.feed-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  cursor: pointer;
}
.feed-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feed-tile-blank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 12px;
}
.feed-tile-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity 150ms;
}
.feed-tile:hover .feed-tile-overlay {
  opacity: 1;
}
.feed-tile-date {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .feed-grid { gap: 2px; }
}

/* Campaña Ads — meta block */
.campana-meta {
  margin-bottom: 24px;
}
.campana-meta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.campana-meta-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 880px) {
  .campana-meta-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.campana-meta-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text);
}
.campana-meta-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 24px;
  min-width: 280px;
}
.campana-meta-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.campana-meta-stats strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.campana-meta-notes {
  margin: 16px 0 0;
  padding-left: 18px;
  list-style: disc;
}
.campana-meta-notes li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 4px;
}

/* Campaña Ads — creative cards grid */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.campaign-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 150ms, border-color 150ms;
}
.campaign-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 0, 0.4);
}
.campaign-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0C0A08;
  overflow: hidden;
}
.campaign-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.campaign-card-num {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(12, 10, 8, 0.88);
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}
.campaign-card-obj {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.campaign-card-obj--awareness {
  background: rgba(78, 194, 123, 0.92);
  color: #0C0A08;
}
.campaign-card-obj--conversion {
  background: var(--brand);
  color: #0C0A08;
}
.campaign-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.campaign-card-geos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.geo-pill {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.campaign-card-headline {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  margin: 4px 0 0;
  color: var(--text);
}
.campaign-card-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.campaign-card-cta-row {
  margin-top: 4px;
}
.campaign-card-cta {
  font-size: 12px;
  color: var(--muted);
}
.campaign-card-cta strong {
  color: var(--brand);
  font-weight: 700;
}
.campaign-card-landing {
  margin-top: 4px;
  font-size: 11px;
}
.campaign-card-landing summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  padding: 4px 0;
}
.campaign-card-landing code {
  display: block;
  margin-top: 4px;
  padding: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 10px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.4;
}
