/* ============================================================
   SmartFlow360 — Admin Dark Theme
   Shared across: admin, campaign, new-post, new-client,
                  edit-post, edit-client, profile
   ============================================================ */

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

:root {
  --bg:         #0d1117;
  --bg-card:    #1f2937;
  --bg-nav:     #111827;
  --border:     #374151;
  --yellow:     #F8B41B;
  --green:      #4ade80;
  --blue:       #60a5fa;
  --text:       #ffffff;
  --text-sub:   #9ca3af;
  --text-muted: #6b7280;
  --error:      #ef4444;
}

body {
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  min-height: 100vh;
}

/* ── Yellow top bar ── */
.top-bar {
  height: 3px;
  background: var(--yellow);
  width: 100%;
}

/* ── Nav ── */
nav {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  line-height: 1;
  flex: 1;
}
.nav-logo span { color: var(--yellow); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-back {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
}
.nav-back:hover { color: var(--text); }

.nav-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s;
}
.nav-link:hover { color: var(--text); }

.nav-btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--yellow);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity .2s;
  display: inline-block;
}
.btn-primary:hover { opacity: .88; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s;
  display: inline-block;
  white-space: nowrap;
}
.btn-secondary:hover { opacity: .75; }

.btn-danger {
  background: var(--error);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-danger:hover { opacity: .85; }

.btn-sm {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-sm:hover { opacity: .82; }
.btn-sm-yellow { background: var(--yellow); color: #000; font-weight: 600; }
.btn-sm-green  { background: #4ade80; color: #000; font-weight: 600; }
.btn-sm-gray   { background: #374151; color: var(--text-sub); }

.btn-save {
  width: 100%;
  background: var(--yellow);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-save:hover { opacity: .88; }

/* ── Main wrapper ── */
.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px;
}

/* ── Page header ── */
.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 2px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 6px;
}
.page-title.big { font-size: 56px; }
.page-title .yellow { color: var(--yellow); }

.page-subtitle {
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 400;
  margin-top: 6px;
  margin-bottom: 36px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 20px;
}

.section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-sub {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── Alerts ── */
.alert-success {
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.3);
  color: var(--green);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 28px;
}
.alert-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: var(--error);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 28px;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}

.card-danger {
  background: rgba(239,68,68,.05);
  border: 1px solid var(--error);
  border-radius: 12px;
  padding: 24px 32px;
  margin-bottom: 24px;
}

.danger-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--error);
  margin-bottom: 8px;
}
.danger-desc { font-size: 13px; color: var(--text-sub); margin-bottom: 16px; }

/* ── Form fields ── */
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-sub);
  margin-bottom: 7px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--yellow); }
input::placeholder, textarea::placeholder { color: #4b5563; }
input[type="text"]:disabled,
input[type="email"]:disabled { opacity: .5; cursor: not-allowed; }
select option { background: #1f2937; }
textarea { resize: vertical; }

input[type="color"] {
  width: 44px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
}

.hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

.btn-row { display: flex; gap: 12px; margin-top: 8px; }

.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type="text"] { flex: 1; }

/* ── User dropdown ── */
.user-menu { position: relative; }

.user-menu-btn {
  background: none;
  border: none;
  color: var(--text-sub);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.user-menu-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }

.user-chevron {
  transition: transform .2s;
  flex-shrink: 0;
  opacity: .7;
}
.user-menu-btn.open .user-chevron { transform: rotate(180deg); }

.dropdown-card {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  min-width: 160px;
  padding: 6px 0;
  z-index: 200;
}
.dropdown-card.open { display: block; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.dropdown-item:hover { background: #374151; color: var(--text); }
.dropdown-item.danger { color: #ef4444; }
.dropdown-item.danger:hover { background: rgba(239,68,68,.08); color: #ef4444; }
.dropdown-divider { height: 1px; background: #374151; margin: 4px 0; }

/* ── Stats row (admin) ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--text);
}
.stat-number.green  { color: var(--green); }
.stat-number.yellow { color: var(--yellow); }

.stat-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ── Client grid (admin) ── */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.client-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 1.1;
}
.client-slug { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.progress-bar-track {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 99px;
  transition: width .4s ease;
}
.progress-label { font-size: 11px; color: var(--text-sub); text-align: right; font-weight: 500; }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 99px;
}
.pill-green  { background: rgba(74,222,128,.12); color: var(--green); }
.pill-yellow { background: rgba(239,68,68,.12);  color: #ef4444; }
.pill-gray   { background: rgba(156,163,175,.1); color: var(--text-sub); }

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.card-actions .btn-primary  { flex: 1 1 auto; min-width: 120px; text-align: center; font-size: 13px; padding: 10px 12px; }
.card-actions .btn-secondary{ flex: 1 1 auto; min-width: 120px; text-align: center; font-size: 13px; padding: 9px 12px; }

.add-card {
  background: transparent;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, background .2s;
  min-height: 200px;
}
.add-card:hover { border-color: var(--yellow); background: rgba(248,180,27,.04); }
.add-icon { font-size: 32px; color: var(--text-muted); line-height: 1; font-weight: 300; }
.add-label { color: var(--text-sub); font-size: 14px; font-weight: 500; }

/* ── Logo upload ── */
.logo-upload-slot {
  position: relative;
  width: 100%;
  height: 80px;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  overflow: hidden;
}
.logo-upload-slot:hover { border-color: var(--yellow); background: rgba(248,180,27,.04); }

.logo-slot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.logo-slot-label { font-size: 13px; color: var(--text-sub); font-weight: 500; }
.logo-slot-hint  { font-size: 11px; color: var(--text-muted); }

.current-logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.current-logo-wrap img {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 4px;
}
.current-logo-label { font-size: 12px; color: var(--text-sub); }

.remove-logo-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.remove-logo-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--error); }
.remove-logo-row label {
  font-size: 12px; color: var(--error);
  text-transform: none; letter-spacing: 0;
  cursor: pointer; margin: 0;
}

.slug-pill {
  display: inline-block;
  background: rgba(248,180,27,.1);
  color: var(--yellow);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: monospace;
}

/* ── Upload slots (new-post / edit-post) ── */
.upload-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}
.upload-card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-sub);
  margin-bottom: 16px;
  display: block;
}
.upload-slots { display: flex; gap: 24px; flex-wrap: wrap; }
.upload-slot  { display: flex; flex-direction: column; gap: 8px; }
.slot-label   { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: #9ca3af; }

.drop-zone {
  width: 280px;
  height: 280px;
  border: 2px dashed #374151;
  border-radius: 12px;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, background .2s;
  user-select: none;
}
.drop-zone:hover,
.drop-zone.drag-over { border-color: #F8B41B; background: #232d3f; }

.dz-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  pointer-events: none;
}
.dz-text { font-size: 13px; color: #9ca3af; }
.dz-sub  { font-size: 11px; color: #6b7280; line-height: 1.5; }

.dz-preview,
.dz-preview-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 10px;
}

.dz-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
}
.drop-zone:hover .dz-overlay.has-file { display: flex; }

.remove-link {
  font-size: 12px;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
  text-align: left;
  display: none;
}
.remove-link:hover { color: #ef4444; }

/* ── Pass divider (profile) ── */
.pass-divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Campaign: week sections ── */
.week-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.week-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 1.5px;
}
.week-badge {
  background: rgba(248,180,27,.12);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.week-add-link {
  margin-left: auto;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.week-add-link:hover { text-decoration: underline; }

/* ── Campaign: posts grid ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta-day {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-sub);
}

.badge-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.platform-tag { font-size: 11px; color: var(--blue); font-weight: 500; margin-left: auto; }

.post-body { display: flex; gap: 12px; align-items: flex-start; }
.post-text  { flex: 1; min-width: 0; }

.post-headline {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}
.post-caption {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-time { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

.post-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.thumb-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #374151;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.thumb-placeholder svg { opacity: .3; }

.status-row { display: flex; align-items: center; gap: 8px; }
.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}
.status-approved { background: rgba(74,222,128,.12);  color: var(--green); }
.status-changes  { background: rgba(239,68,68,.15);   color: #ef4444; }
.status-pending  { background: rgba(156,163,175,.1);  color: var(--text-sub); }

.status-form { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.status-form select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  padding: 5px 8px;
  outline: none;
  cursor: pointer;
}
.status-form select option { background: #1f2937; }

.feedback-section { border-top: 1px solid var(--border); padding-top: 12px; }
.feedback-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.feedback-item {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 6px;
}
.feedback-item:last-child { margin-bottom: 0; }
.feedback-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.feedback-name    { font-size: 12px; font-weight: 600; color: var(--text); }
.feedback-date    { font-size: 11px; color: var(--text-muted); }
.feedback-comment { font-size: 13px; color: var(--text-sub); line-height: 1.5; }
.feedback-empty   { font-size: 12px; color: var(--text-muted); font-style: italic; }

.add-week-wrap { text-align: center; margin-top: 16px; }

.empty-state { text-align: center; padding: 80px 24px; color: var(--text-sub); }
.empty-state h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  color: var(--text);
}
.empty-state p { font-size: 14px; margin-bottom: 24px; }

.btn-view-post {
  background: transparent;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.btn-view-post:hover { background: var(--yellow); color: #000; }

/* ════════════════════════════════════════════
   INSTAGRAM MOCKUP (admin/campaign values)
════════════════════════════════════════════ */
.ig-mockup {
  background: #1a1a1a;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}
.ig-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.ig-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ig-user-info { flex: 1; min-width: 0; }
.ig-username { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; }
.ig-location { font-size: 11px; color: #9ca3af; line-height: 1.3; }
.ig-more     { font-size: 18px; font-weight: 700; color: #9ca3af; letter-spacing: 1px; cursor: pointer; padding: 0 4px; }
.ig-media    { position: relative; aspect-ratio: 1 / 1; background: #2d2d2d; overflow: hidden; }
.ig-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #2d2d2d;
}
.ig-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
}
.ig-actions-left { display: flex; gap: 14px; align-items: center; }
.ig-actions-left svg, .ig-actions-right svg { cursor: pointer; }
.ig-likes         { padding: 0 14px 4px; font-size: 13px; font-weight: 600; color: #fff; }
.ig-caption       { padding: 2px 14px 4px; font-size: 13px; line-height: 1.5; color: #9ca3af; }
.ig-cap-user      { font-weight: 700; color: #fff; margin-right: 4px; }
.ig-cap-text      { color: #9ca3af; }
.ig-more-link     { color: #9ca3af; font-weight: 600; cursor: pointer; }
.ig-hashtags      { padding: 2px 14px 4px; font-size: 12px; color: #60a5fa; line-height: 1.6; }
.ig-comments-link { padding: 2px 14px 4px; font-size: 13px; color: #9ca3af; cursor: pointer; }
.ig-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 12px;
}
.ig-timestamp     { font-size: 10px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }
.ig-platform-badge{ display: flex; align-items: center; gap: 4px; font-size: 10px; color: #9ca3af; }

/* ════════════════════════════════════════════
   INSTAGRAM SLIDESHOW MOCKUP
════════════════════════════════════════════ */
.ig-media         { position: relative; }
.igsl-wrap        { position: relative; width: 100%; height: 100%; overflow: hidden; background: #2d2d2d; }
.igsl-media       { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Carousel track — slides side by side, animated via JS */
.igsl-track        { display:flex; width:100%; height:100%; transition:transform 0.3s cubic-bezier(.25,.46,.45,.94); will-change:transform; }
.igsl-slide        { flex:0 0 100%; min-width:100%; height:100%; }
.igc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #111;
  z-index: 10;
  box-shadow: 0 1px 6px rgba(0,0,0,.3);
  transition: background .15s, transform .15s;
  padding: 0;
}
.igc-arrow:hover           { background: rgba(255,255,255,1); }
.igc-arrow:active          { transform: translateY(-50%) scale(.92); }
.igc-prev                  { left: 8px; }
.igc-next                  { right: 8px; }
.igc-dots {
  position: absolute;
  bottom: 8px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 4px;
  z-index: 10;
  pointer-events: none;
}
.igc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background .2s, transform .2s;
}
.igc-dot-active { background: #fff; transform: scale(1.25); }

/* ════════════════════════════════════════════
   FACEBOOK MOCKUP (admin/campaign values)
════════════════════════════════════════════ */
.fb-mockup {
  background: #ffffff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}
.fb-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.fb-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #1877f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.fb-user-info { flex: 1; min-width: 0; }
.fb-name      { font-size: 15px; font-weight: 700; color: #1c1e21; line-height: 1.3; }
.fb-sponsored { font-size: 13px; color: #65676b; line-height: 1.3; }
.fb-more      { font-size: 18px; font-weight: 700; color: #65676b; letter-spacing: 1px; cursor: pointer; padding: 0 4px; }
.fb-caption-text  { padding: 0 16px 8px; font-size: 15px; color: #1c1e21; line-height: 1.6; }
.fb-hashtags-text { padding: 0 16px 8px; font-size: 13px; color: #1877f2; line-height: 1.5; }
.fb-media         { aspect-ratio: 1.91 / 1; background: #e4e6eb; overflow: hidden; }
.fb-placeholder   { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #e4e6eb; }
.fb-reactions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 14px;
  color: #65676b;
}
.fb-reactions-left { display: flex; align-items: center; gap: 4px; }
.fb-react-count    { margin-left: 2px; }
.fb-divider        { height: 1px; background: #e4e6eb; margin: 0 16px; }
.fb-actions        { display: flex; align-items: center; padding: 4px 8px; }
.fb-action-btn {
  flex: 1; background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  color: #65676b; padding: 8px 4px; border-radius: 6px; transition: background .15s;
}
.fb-action-btn:hover { background: #f0f2f5; }
.fb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 12px;
}
.fb-timestamp     { font-size: 11px; color: #65676b; text-transform: uppercase; letter-spacing: 0.4px; }
.fb-platform-badge{ display: flex; align-items: center; gap: 4px; font-size: 11px; color: #65676b; }

/* ════════════════════════════════════════════
   DUAL MOCKUP
════════════════════════════════════════════ */
.dual-mockup { width: 100%; }
.dual-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.dual-caption-strip {
  background: rgba(255,255,255,.04);
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.dual-caption-text {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 6px;
}
.dual-hashtags { font-size: 12px; color: #60a5fa; line-height: 1.5; }
.dual-feedback-textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #ffffff;
  resize: vertical;
  min-height: 80px;
  outline: none;
}
.dual-feedback-textarea::placeholder { color: #6b7280; }
.dual-feedback-textarea:focus { border-color: #F8B41B; }

/* ════════════════════════════════════════════
   MODAL (campaign)
════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-container {
  background: #111827;
  border-radius: 16px;
  padding: 32px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #374151 transparent;
}
.modal-container::-webkit-scrollbar { width: 6px; }
.modal-container::-webkit-scrollbar-track { background: transparent; }
.modal-container::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
}
.modal-close:hover { background: rgba(255,255,255,.1); }
.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--yellow);
  margin-bottom: 24px;
}
.modal-body { display: flex; justify-content: center; margin-bottom: 28px; }
.modal-status-form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #374151;
  flex-wrap: wrap;
}
.modal-status-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #9ca3af;
}
.modal-status-select {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
  cursor: pointer;
}
.modal-status-select option { background: #1f2937; }
.modal-status-select:focus  { border-color: var(--yellow); }
.btn-update-status {
  background: var(--yellow);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-update-status:hover { opacity: .88; }

/* ════════════════════════════════════════════
   INSTAGRAM FULL PAGE MOCKUP (post-instagram-mockup.php)
════════════════════════════════════════════ */

/* SEE POST button — size override so it matches post-card scale */
.btn-see-post { font-size: 12px; padding: 6px 12px; }

/* Instagram mockup wrapper */
.igm-wrapper {
  max-width: 440px;
  background: #000;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
  overflow: hidden;
}

/* Top nav */
.igm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 6px;
}
.igm-nav-brand {
  font-size: 26px;
  color: #fff;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.igm-nav-icons { display: flex; gap: 18px; align-items: center; color: #fff; }
.igm-nav-icon { cursor: pointer; display: flex; align-items: center; }

/* Stories bar */
.igm-stories-bar {
  display: flex;
  gap: 12px;
  padding: 6px 12px 12px;
  overflow-x: hidden;
  border-bottom: 1px solid #262626;
}
.igm-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
}
.igm-story-ring {
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.igm-story-ring-seen { background: #3a3a3a; }
.igm-story-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #262626;
  border: 2.5px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.igm-story-avatar-main { background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%); }
.igm-story-avatar-a    { background: #0ea5e9; }
.igm-story-avatar-b    { background: #10b981; }
.igm-story-avatar-c    { background: #f59e0b; }
.igm-story-avatar-d    { background: #ef4444; }
.igm-story-name {
  font-size: 10px;
  color: #e5e5e5;
  max-width: 56px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Post header */
.igm-post-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
}
.igm-post-avatar-ring {
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  flex-shrink: 0;
}
.igm-post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.igm-post-userinfo { flex: 1; min-width: 0; }
.igm-post-username { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.igm-post-sub      { font-size: 11px; color: #737373; line-height: 1.3; }
.igm-follow-btn {
  background: transparent;
  border: none;
  color: #0095f6;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.igm-post-more {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  padding: 0 2px;
  letter-spacing: 1px;
}

/* Media area — 4:5 portrait (1080×1350) */
/* Media area — 4:5 portrait ratio (1080×1350) */
.igm-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #111;
  overflow: hidden;
}
.igm-media-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Carousel — absolutely fills the 4:5 media box */
.igm-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.igm-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.igm-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

/* Carousel arrows */
.igm-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  transition: opacity .2s, background .15s;
  padding: 0;
}
.igm-arrow:hover           { background: #fff; }
.igm-arrow-prev            { left: 10px; }
.igm-arrow-next            { right: 10px; }
.igm-arrow-hidden          { opacity: 0; pointer-events: none; }

/* Dots */
.igm-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
  pointer-events: none;
}
.igm-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .2s, transform .2s; }
.igm-dot-active { background: #0095f6; transform: scale(1.4); }

/* Counter badge */
.igm-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Placeholder */
.igm-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #1a1a1a; }

/* Actions */
.igm-actions { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 2px; }
.igm-actions-left { display: flex; gap: 14px; align-items: center; }
.igm-action-icon  { cursor: pointer; color: #fff; display: flex; align-items: center; }

/* Post copy */
.igm-likes         { padding: 4px 14px; font-size: 13px; font-weight: 600; color: #fff; }
.igm-caption       { padding: 2px 14px 4px; font-size: 13px; line-height: 1.5; color: #fff; }
.igm-cap-user      { font-weight: 600; margin-right: 4px; }
.igm-hashtags      { padding: 0 14px 4px; font-size: 13px; color: #0095f6; line-height: 1.5; }
.igm-view-comments { padding: 2px 14px 4px; font-size: 13px; color: #737373; cursor: pointer; }
.igm-timestamp     { padding: 4px 14px 10px; font-size: 10px; color: #737373; letter-spacing: 0.5px; }

/* Add comment row */
.igm-add-comment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid #262626;
}
.igm-comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.igm-comment-input { flex: 1; font-size: 13px; color: #737373; }
.igm-comment-emoji { font-size: 16px; cursor: pointer; }

/* ── Media queries ── */
@media (max-width: 900px) {
  .stats-row   { grid-template-columns: repeat(2, 1fr); }
  .posts-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-btn-group { display: none; }
  .card, .card-danger, .upload-card { padding: 1em; }
  .upload-slot, .drop-zone { width: 100% !important; }
}
@media (max-width: 600px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ── Bryan draft notification (admin client cards) ── */
.bryan-draft-notify {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(248,180,27,.08);
  border: 1px solid rgba(248,180,27,.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
  text-decoration: none;
  transition: background .2s;
}
.bryan-draft-notify:hover { background: rgba(248,180,27,.18); }
