/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ffffff;
  --bg2:       #f8f9fa;
  --bg3:       #f1f3f4;
  --border:    #e8eaed;
  --border2:   #dadce0;
  --gold:      #c8861a;
  --gold-bg:   #fef7e0;
  --text:      #202124;
  --text2:     #5f6368;
  --text3:     #9aa0a6;
  --blue:      #1a73e8;
  --green:     #1e8e3e;
  --red:       #d93025;
  --orange:    #e8710a;
  --tiktok:    #010101;
  --radius:    12px;
  --radius-sm: 8px;
  --sidebar:   260px;
  --font:      'Inter', system-ui, sans-serif;
  --shadow:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
}

/* ── Sidebar ───────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar);
  min-height: 100vh;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
}

.brand {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 1.25rem 1.25rem;
}
.brand-icon  { font-size: 1.5rem; }
.brand-title { font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.brand-sub   { font-size: 0.65rem; color: var(--text3); }

.nav-section { padding: 0 0.75rem; flex: 1; }

.nav-group-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--text3);
  padding: 0.5rem 0.75rem 0.25rem;
}

.nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text2); cursor: pointer;
  border: none; background: none; width: 100%;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  font-family: var(--font);
  text-decoration: none;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--gold-bg); color: var(--gold); font-weight: 600; }
.nav-icon { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; }

.nav-divider { height: 1px; background: var(--border); margin: 0.5rem 1.25rem; }

.sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.5rem;
}
.health-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text3); flex: 1; }
.health-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text3); flex-shrink: 0; transition: background 0.3s; }
.health-dot.ok  { background: var(--green); }
.health-dot.err { background: var(--red); }
.health-dot.green { background: var(--green); }

.admin-lock-btn {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.9rem; padding: 0.2rem 0.4rem;
  transition: background 0.15s, border-color 0.15s;
}
.admin-lock-btn:hover { background: var(--bg3); }
.admin-lock-btn.unlocked { border-color: var(--green); }

/* ── Main ──────────────────────────────────────────────────────── */
.main { margin-left: var(--sidebar); flex: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ── Creative Warning Bar ──────────────────────────────────────── */
.creative-warning-bar {
  background: #fff4e4;
  border-bottom: 1px solid #f5c47a;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.creative-warnings { flex: 1; font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.warning-flag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: #fff; border: 1px solid #f5c47a;
  border-radius: 6px; padding: 0.25rem 0.6rem;
  font-size: 0.78rem; color: var(--text);
}
.warning-flag.error { border-color: #f28b82; background: #fce8e6; }
.warning-dismiss {
  background: none; border: none; cursor: pointer;
  color: var(--text3); font-size: 1rem; padding: 0; flex-shrink: 0;
}
.warning-dismiss:hover { color: var(--text); }

/* ── Status Bar ────────────────────────────────────────────────── */
.status-bar {
  display: flex; background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.status-bar::-webkit-scrollbar { display: none; }
.status-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1.1rem; border-right: 1px solid var(--border);
  flex-shrink: 0; min-width: 140px;
}
.status-label { font-size: 0.65rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; line-height: 1; margin-bottom: 0.2rem; }
.status-val   { font-size: 0.78rem; color: var(--text); font-weight: 500; white-space: nowrap; }
.status-dot   { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.status-dot.green  { background: var(--green); }
.status-dot.orange { background: var(--orange); }
.status-icon { font-size: 1rem; flex-shrink: 0; }

/* ── Action Bar ────────────────────────────────────────────────── */
.action-bar {
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg); position: sticky; top: 0; z-index: 10; flex-wrap: wrap;
}
.action-bar-title { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-right: auto; }
.action-buttons { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.topbar-stats { display: flex; gap: 1.5rem; padding-left: 1rem; border-left: 1px solid var(--border); }
.tstat { text-align: center; }
.tstat-val { font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1; }
.tstat-lbl { font-size: 0.65rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; }

.content { padding: 1.75rem 2rem; flex: 1; }

/* ── Section Headers ───────────────────────────────────────────── */
.section-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.section-header h2 { font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }

/* ── Tab Panels ────────────────────────────────────────────────── */
.tab-panel { display: none; animation: fadeIn 0.2s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }

.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.panel-header h2 { font-size: 1.05rem; font-weight: 600; color: var(--text); }

/* ── Video Grid ────────────────────────────────────────────────── */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.video-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.video-card:hover { box-shadow: var(--shadow-md); border-color: var(--border2); }
.video-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg3); display: block; }
.video-thumb-placeholder { width: 100%; aspect-ratio: 16/9; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.video-body { padding: 0.875rem 1rem 1rem; }
.video-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; background: var(--gold-bg); color: var(--gold);
  font-size: 0.65rem; font-weight: 700; border-radius: 50%; margin-bottom: 0.4rem;
}
.video-title {
  font-size: 0.875rem; font-weight: 500; line-height: 1.4; color: var(--text); margin-bottom: 0.6rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-stats { display: flex; gap: 0.875rem; font-size: 0.75rem; color: var(--text2); }
.video-stat  { display: flex; align-items: center; gap: 0.25rem; }

/* ── Style Profile Grid ────────────────────────────────────────── */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.875rem; }
.profile-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; transition: box-shadow 0.2s, border-color 0.2s;
}
.profile-card:hover { box-shadow: var(--shadow-md); border-color: var(--border2); }
.profile-name { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.6rem; }
.profile-attrs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.6rem; }
.profile-attr {
  background: var(--bg3); border-radius: 4px;
  font-size: 0.68rem; color: var(--text2); padding: 0.15rem 0.45rem; font-weight: 500;
}
.profile-attr.mood  { background: var(--gold-bg); color: var(--gold); }
.profile-attr.color { background: #e8f0fe; color: #1a73e8; }
.profile-hook { font-size: 0.75rem; color: var(--text3); line-height: 1.5; font-style: italic; }

/* ── Asset Grid ────────────────────────────────────────────────── */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.asset-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s;
}
.asset-card:hover { box-shadow: var(--shadow-md); border-color: var(--border2); }
.asset-preview {
  width: 100%; aspect-ratio: 9/16;
  background: var(--bg3); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; overflow: hidden; position: relative;
  max-height: 420px;
}
.asset-preview img, .asset-preview video {
  width: 100%; height: 100%; object-fit: cover;
}
.asset-preview audio {
  width: 100%; position: absolute; bottom: 0; left: 0;
}
.asset-body { padding: 0.75rem; }
.asset-name { font-size: 0.8rem; font-weight: 500; color: var(--text); margin-bottom: 0.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-meta { font-size: 0.7rem; color: var(--text3); display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.5rem; }
.asset-footer { display: flex; gap: 0.4rem; }
.asset-footer .btn { font-size: 0.7rem; padding: 0.3rem 0.6rem; }

/* ── Filter Bar ────────────────────────────────────────────────── */
.filter-bar { margin-bottom: 1.5rem; }
.filter-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.filter-select { flex: 1; min-width: 140px; max-width: 200px; }

/* ── Anti-Boring Guard ─────────────────────────────────────────── */
.boring-flag {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.875rem 1rem; border-radius: var(--radius);
  margin-bottom: 0.5rem; font-size: 0.83rem;
}
.boring-flag.warning { background: #fff4e4; border: 1px solid #f5c47a; color: var(--text); }
.boring-flag.error   { background: #fce8e6; border: 1px solid #f28b82; color: var(--text); }
.boring-flag-icon    { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }

/* ── Platform Cards ────────────────────────────────────────────── */
.platform-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; margin-bottom: 0.5rem; }
.platform-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.platform-card:hover { box-shadow: var(--shadow-md); border-color: var(--border2); }
.platform-card-header { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1rem; }
.platform-logo {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; flex-shrink: 0;
}
.youtube-logo { background: #ff0000; color: #fff; }
.tiktok-logo  { background: var(--tiktok); color: #fff; letter-spacing: -1px; }
.platform-name { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.platform-sub  { font-size: 0.75rem; color: var(--text3); }
.platform-rules { display: flex; flex-direction: column; gap: 0.4rem; }
.rule-item { font-size: 0.82rem; color: var(--text2); }

.creator-info {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  font-size: 0.82rem; color: var(--text2); margin-bottom: 0.875rem;
}

/* ── Publish Tool ──────────────────────────────────────────────── */
.publish-tool {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  margin-bottom: 0.5rem;
}
.compliance-note {
  font-size: 0.75rem; color: var(--text3); max-width: 320px; line-height: 1.5;
}

/* ── Publish History ───────────────────────────────────────────── */
.publish-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.83rem;
}
.publish-table th {
  text-align: left; font-size: 0.7rem; font-weight: 600;
  color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border); padding: 0.5rem 0.75rem;
}
.publish-table td {
  padding: 0.75rem; border-bottom: 1px solid var(--border);
  color: var(--text2); vertical-align: middle;
}
.publish-table tr:last-child td { border-bottom: none; }
.publish-table tr:hover td { background: var(--bg2); }

/* ── Status Badges ─────────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.55rem; border-radius: 20px;
  font-size: 0.72rem; font-weight: 500;
}
.status-badge.published { background: #e6f4ea; color: var(--green); }
.status-badge.pending   { background: var(--bg3); color: var(--text2); }
.status-badge.failed    { background: #fce8e6; color: var(--red); }
.status-badge.uploaded  { background: #e8f0fe; color: var(--blue); }
.status-badge.publishing{ background: var(--gold-bg); color: var(--gold); }

/* ── Chips ─────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 20px;
  font-size: 0.72rem; color: var(--text2); padding: 0.2rem 0.65rem; font-weight: 500;
}
.chip-warn  { background: #fff4e4; border-color: #f5c47a; color: var(--orange); }
.chip-green { background: #e6f4ea; border-color: #81c995; color: var(--green); }
.chip-red   { background: #fce8e6; border-color: #f28b82; color: var(--red); }
.chip-blue  { background: #e8f0fe; border-color: #aecbfa; color: var(--blue); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: 1px solid var(--border2); border-radius: var(--radius-sm);
  color: var(--text2); font-family: var(--font); font-size: 0.8rem; font-weight: 500;
  padding: 0.45rem 0.9rem; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.btn:hover { background: var(--bg3); color: var(--text); }
.btn-primary  { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #1557b0; border-color: #1557b0; color: #fff; }
.btn-danger   { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: #fce8e6; }
.btn-copy.copied { color: var(--green); border-color: var(--green); }

/* ── Queue ─────────────────────────────────────────────────────── */
.queue-form { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.queue-form label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text2); margin-bottom: 0.5rem; }
.input-row { display: flex; gap: 0.75rem; }
.topic-input {
  flex: 1; background: var(--bg); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); color: var(--text); font-family: var(--font);
  font-size: 0.875rem; padding: 0.6rem 0.875rem; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s; width: 100%;
}
.topic-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,115,232,0.1); }
.topic-input::placeholder { color: var(--text3); }
select.topic-input { cursor: pointer; }

.queue-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.queue-item {
  display: flex; align-items: center; gap: 0.875rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  transition: border-color 0.15s;
}
.queue-item:hover { border-color: var(--border2); }
.queue-item-topic { flex: 1; font-size: 0.875rem; color: var(--text); }
.queue-item-time  { font-size: 0.72rem; color: var(--text3); }
.btn-delete { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 1rem; padding: 0.2rem; border-radius: 4px; transition: color 0.15s; }
.btn-delete:hover { color: var(--red); }

.command-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.command-card h3 { font-size: 0.85rem; font-weight: 600; color: var(--text2); margin-bottom: 0.75rem; }
.command-code {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1rem; font-family: 'SF Mono','Fira Code',monospace;
  font-size: 0.78rem; color: #1e3a5f; white-space: pre-wrap; word-break: break-all;
  margin-bottom: 0.75rem; line-height: 1.7;
}

/* ── Comments ──────────────────────────────────────────────────── */
.comments-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.meta-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.meta-num { font-size: 1.75rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 0.25rem; }
.meta-lbl { font-size: 0.72rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; }

.comment-feed { display: flex; flex-direction: column; gap: 0.75rem; }
.comment-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.comment-item:hover { border-color: var(--border2); }
.comment-author { font-size: 0.78rem; font-weight: 600; color: var(--blue); margin-bottom: 0.3rem; }
.comment-original { font-size: 0.85rem; color: var(--text2); margin-bottom: 0.5rem; padding-left: 0.75rem; border-left: 2px solid var(--border2); }
.comment-reply { font-size: 0.85rem; color: var(--text); }
.comment-reply::before { content: '↳ '; color: var(--gold); font-weight: 700; }
.comment-time { font-size: 0.7rem; color: var(--text3); margin-top: 0.35rem; }

/* ── Intelligence ──────────────────────────────────────────────── */
.intel-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.intel-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }

/* ── Offer Cards (Monetization) ────────────────────────────────── */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.offer-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: box-shadow 0.2s, border-color 0.2s; }
.offer-card:hover { box-shadow: var(--shadow-md); border-color: var(--border2); }
.offer-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.offer-card-name { font-size: 0.9rem; font-weight: 600; color: var(--text); flex: 1; }
.offer-card-meta { font-size: 0.75rem; color: var(--text3); margin-bottom: 0.75rem; display: flex; flex-direction: column; gap: 0.2rem; }
.offer-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.offer-clicks { font-size: 0.75rem; color: var(--text2); font-weight: 500; }

/* ── Compliance ────────────────────────────────────────────────── */
.compliance-banner {
  display: flex; align-items: flex-start; gap: 0.875rem;
  background: #fff4e4; border: 1px solid #f5c47a; border-radius: var(--radius);
  padding: 1rem 1.25rem; font-size: 0.85rem; color: var(--text); margin-bottom: 1.25rem; line-height: 1.5;
}
.compliance-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.compliance-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compliance-rule { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.compliance-rule:last-child { border-bottom: none; }
.compliance-rule-title { font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.compliance-rule-body { font-size: 0.82rem; color: var(--text2); line-height: 1.6; }
.banned-tag {
  display: inline-block; background: #fce8e6; border: 1px solid #f28b82; color: var(--red);
  border-radius: 4px; font-size: 0.72rem; padding: 0.1rem 0.45rem; margin: 0.15rem; font-family: monospace;
}

/* ── Upload Progress ───────────────────────────────────────────── */
.upload-progress { background: var(--bg3); border-radius: 20px; height: 6px; margin-bottom: 1rem; overflow: hidden; }
.upload-bar { background: var(--blue); height: 100%; width: 0%; transition: width 0.3s; border-radius: 20px; }

/* ── Modals ────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.35); z-index: 200; animation: fadeIn 0.15s ease;
}
.modal-backdrop.open { display: block; }
.modal {
  display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 201; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  width: 90%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  padding: 1.5rem; animation: fadeIn 0.15s ease;
}
.modal.open { display: block; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.modal-header h3 { font-size: 1rem; font-weight: 600; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text3); padding: 0.2rem; border-radius: 4px; transition: color 0.15s; }
.modal-close:hover { color: var(--text); }
.modal-desc { font-size: 0.85rem; color: var(--text2); margin-bottom: 1rem; }
.modal-actions { display: flex; gap: 0.6rem; margin-top: 1.25rem; justify-content: flex-end; }

/* ── Form Grid ─────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-full  { grid-column: 1 / -1; }
.form-group label { font-size: 0.78rem; font-weight: 500; color: var(--text2); }

/* ── Utility ───────────────────────────────────────────────────── */
.loading-pulse { color: var(--text3); font-size: 0.85rem; padding: 3rem; text-align: center; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.empty-state { text-align: center; padding: 3rem 2rem; color: var(--text3); font-size: 0.875rem; }
.empty-state .icon { font-size: 2rem; margin-bottom: 0.75rem; }
code { font-family: 'SF Mono','Fira Code',monospace; background: var(--bg3); padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.85em; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .status-bar    { display: none; }
  .action-buttons { display: none; }
  .topbar-stats  { display: none; }
}
@media (max-width: 768px) {
  .sidebar { width: 100%; min-height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border); }
  .main    { margin-left: 0; }
  body     { flex-direction: column; }
  .comments-meta { grid-template-columns: repeat(2,1fr); }
  .video-grid    { grid-template-columns: 1fr 1fr; }
  .form-grid     { grid-template-columns: 1fr; }
  .platform-cards { grid-template-columns: 1fr; }
  .asset-grid    { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
}
