/* =============================================================================
   STEPONE CMS - Modern Admin Panel Design System
   Brand Identity: Obsidian Dark Surfaces, Crisp White Typography,
   and Signature StepOne Electric Lime (#b8d700) Accents.
   ============================================================================= */

:root {
  /* Surfaces & Backgrounds */
  --bg-primary: #09090b;
  --bg-secondary: #121215;
  --bg-tertiary: #18181c;
  --bg-card: #141417;
  --bg-card-hover: #1c1c22;
  --border-color: #27272a;
  --border-subtle: #1c1c22;
  
  /* Text - High Contrast WCAG AA / AAA */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* StepOne Brand Accent (Lime Green from StepOne Logo) */
  --accent-primary: #b8d700;
  --accent-primary-hover: #cbf000;
  --accent-primary-active: #9fba00;
  --accent-primary-muted: rgba(184, 215, 0, 0.12);
  --accent-primary-border: rgba(184, 215, 0, 0.28);
  
  /* Functional Accents */
  --accent-success: #b8d700;
  --accent-warning: #facc15;
  --accent-danger: #f87171;
  --accent-info: #38bdf8;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -2px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -4px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(184, 215, 0, 0.18);
  
  /* Border Radii - Standardized 8px spatial grid */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-heading: 'Oxanium', sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ─── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* ─── App Layout ───────────────────────────────────────────────────────────── */
#app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-img {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.brand-portal-pill {
  background-color: var(--accent-primary-muted);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-border);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  background: #000000;
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(184, 215, 0, 0.2);
}

.brand-text h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  font-weight: 600;
}

.sidebar-nav {
  padding: 20px 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 14px 12px 6px 12px;
  font-weight: 600;
  font-family: var(--font-heading);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.nav-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--accent-primary-muted);
  color: var(--accent-primary);
  font-weight: 600;
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

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

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-secondary);
}

.user-snippet {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.user-role-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
  line-height: 1.2;
  background-color: var(--accent-primary-muted);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-border);
}

.user-snippet .btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-snippet .btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.user-snippet .btn-icon svg {
  width: 14px;
  height: 14px;
}

.role-super_admin {
  background-color: var(--accent-primary-muted);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-border);
}
.role-ceo {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.role-seo_user {
  background-color: rgba(234, 179, 8, 0.15);
  color: var(--accent-warning);
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.role-custom {
  background-color: rgba(161, 161, 170, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(161, 161, 170, 0.3);
}

/* Main Content Wrapper */
.main-wrapper {
  flex: 1;
  margin-left: 260px;
  min-width: 0;
  width: calc(100% - 260px);
  max-width: calc(100% - 260px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

/* Top Header */
.top-header {
  min-height: 68px;
  height: auto;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-title,
.top-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.header-title h1,
.top-header-title h1 {
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions,
.top-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.content-body {
  padding: 28px 32px;
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ─── Cards & Grid ─────────────────────────────────────────────────────────── */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(184, 215, 0, 0.3);
}

.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ─── Stats Grid (Side-by-Side & 2 per Row Responsive) ───────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

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

/* Metric / Stat Card */
.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 90px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: rgba(184, 215, 0, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: var(--accent-primary-muted);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-border);
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-icon.lime { background-color: var(--accent-primary-muted); color: var(--accent-primary); border-color: var(--accent-primary-border); }
.stat-icon.emerald { background-color: rgba(16, 185, 129, 0.15); color: #10b981; border-color: rgba(16, 185, 129, 0.35); }
.stat-icon.blue { background-color: rgba(56, 189, 248, 0.15); color: #38bdf8; border-color: rgba(56, 189, 248, 0.35); }
.stat-icon.purple { background-color: rgba(168, 85, 247, 0.15); color: #c084fc; border-color: rgba(168, 85, 247, 0.35); }
.stat-icon.amber { background-color: rgba(250, 204, 21, 0.15); color: var(--accent-warning); border-color: rgba(250, 204, 21, 0.35); }
.stat-icon.zinc { background-color: rgba(255, 255, 255, 0.08); color: #ffffff; border-color: rgba(255, 255, 255, 0.2); }

.stat-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.stat-label,
.stat-info p {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0;
}

.stat-value,
.stat-info h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin: 0;
}

/* ─── Buttons (Standardized 42px Height) ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  outline: none;
  user-select: none;
  font-family: var(--font-body);
  box-sizing: border-box;
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent-primary);
  color: #000000;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(184, 215, 0, 0.25);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 4px 18px rgba(184, 215, 0, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.btn-danger {
  background-color: var(--accent-danger);
  color: #ffffff;
  font-weight: 600;
}

.btn-danger:hover {
  background-color: #dc2626;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 0.775rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-icon:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* ─── Form Controls (Standardized 42px Height) ───────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.form-label span.req {
  color: var(--accent-danger);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

select.form-control {
  height: 42px;
  cursor: pointer;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(184, 215, 0, 0.2);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  height: auto;
  min-height: 110px;
  padding: 10px 14px;
  resize: vertical;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
}

/* Quick Reach Interactive Buttons (WCAG Touch Target) */
.quick-reach-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
}

.quick-reach-wa {
  color: #25D366;
  background-color: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
}

.quick-reach-wa:hover {
  background-color: rgba(37, 211, 102, 0.25);
  border-color: #25D366;
  color: #ffffff;
  transform: translateY(-1px);
}

.quick-reach-call {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}

.quick-reach-call:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

/* Styled Pill Select Dropdown */
.lead-status-pill-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 26px 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23cbd5e1' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  box-sizing: border-box;
}

.lead-status-pill-select.status-NEW {
  background-color: var(--accent-primary-muted);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-border);
}

.lead-status-pill-select.status-CONTACTED {
  background-color: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.lead-status-pill-select.status-IN_PROGRESS {
  background-color: rgba(234, 179, 8, 0.15);
  color: var(--accent-warning);
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.lead-status-pill-select.status-QUALIFIED {
  background-color: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.lead-status-pill-select.status-CLOSED {
  background-color: rgba(113, 113, 122, 0.18);
  color: #cbd5e1;
  border: 1px solid rgba(113, 113, 122, 0.35);
}

.lead-status-pill-select.status-ARCHIVED {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* ─── Tables ───────────────────────────────────────────────────────────────── */
.table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.table-container table,
table.data-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.885rem;
}

.table-container th,
table.data-table th {
  background-color: var(--bg-tertiary);
  padding: 14px 18px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  font-weight: 700;
  font-family: var(--font-heading);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.table-container td,
table.data-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
  line-height: 1.5;
}

.table-container tr:last-child td,
table.data-table tr:last-child td {
  border-bottom: none;
}

.table-container tbody tr,
table.data-table tbody tr {
  transition: background-color 0.15s ease;
}

.table-container tbody tr:hover td,
table.data-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-published {
  background-color: var(--accent-primary-muted);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-border);
}

.badge-draft {
  background-color: rgba(234, 179, 8, 0.15);
  color: var(--accent-warning);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

/* ─── Lead Status Badges ───────────────────────────────────────────────────── */
.lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.lead-badge-NEW {
  background-color: var(--accent-primary-muted);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-border);
  box-shadow: 0 0 10px rgba(184, 215, 0, 0.18);
}

.lead-badge-CONTACTED {
  background-color: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.lead-badge-IN_PROGRESS {
  background-color: rgba(234, 179, 8, 0.15);
  color: var(--accent-warning);
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.lead-badge-QUALIFIED {
  background-color: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.lead-badge-CLOSED {
  background-color: rgba(113, 113, 122, 0.18);
  color: var(--text-secondary);
  border: 1px solid rgba(113, 113, 122, 0.3);
}

.lead-badge-ARCHIVED {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.leads-count-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background-color: var(--accent-primary);
  color: #000000;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 215, 0, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(184, 215, 0, 0); }
}

/* ─── Modals ───────────────────────────────────────────────────────────────── */
.modal-backdrop,
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal-content,
.modal-dialog {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.9);
  position: relative;
  margin: auto;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-content.modal-lg,
.modal-dialog.modal-lg {
  max-width: 860px;
}

.modal-content.modal-xl,
.modal-dialog.modal-xl {
  max-width: 1140px;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-secondary);
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  background-color: var(--bg-primary);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background-color: var(--bg-secondary);
  flex-shrink: 0;
}

/* ─── Tabs ─────────────────────────────────────────────────────────────────── */
.tabs-header,
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  white-space: nowrap;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
  background-color: var(--accent-primary-muted);
}

/* ─── Toast Notifications ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 280px;
}

.toast.toast-success {
  border-left: 4px solid var(--accent-primary);
}
.toast.toast-error {
  border-left: 4px solid var(--accent-danger);
}
.toast.toast-info {
  border-left: 4px solid var(--accent-primary);
}

/* ─── Live Previews (SEO & Social) ─────────────────────────────────────────── */
.google-preview-box {
  background-color: #202124;
  border: 1px solid #3c4043;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 12px;
  font-family: Roboto, Arial, sans-serif;
}

.google-preview-cite {
  font-size: 12px;
  color: #bdc1c6;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-preview-title {
  font-size: 18px;
  color: #8ab4f8;
  line-height: 1.3;
  font-weight: 400;
  margin-bottom: 6px;
  cursor: pointer;
}

.google-preview-desc {
  font-size: 13px;
  color: #bdc1c6;
  line-height: 1.45;
}

.social-preview-box {
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
  background-color: #0f172a;
  margin-top: 12px;
  max-width: 480px;
}

.social-preview-img {
  width: 100%;
  height: 200px;
  background-color: #000;
  object-fit: cover;
  display: block;
}

.social-preview-content {
  padding: 14px 16px;
}

.social-preview-domain {
  font-size: 11px;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.social-preview-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.social-preview-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Animations ───────────────────────────────────────────────────────────── */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 38;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.85);
  }
  .main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .content-body {
    padding: 18px 20px !important;
  }
  .top-header {
    padding: 12px 18px;
  }
  .modal-backdrop,
  .modal-overlay {
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .top-header {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-title h1,
  .top-header-title h1 {
    font-size: 1.05rem;
  }
  .header-actions .btn {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  .content-body {
    padding: 14px 12px !important;
  }
  .table-container th,
  table.data-table th,
  .table-container td,
  table.data-table td {
    padding: 10px 12px;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* =============================================================================
   BLOCK-BASED CONTENT SECTIONS BUILDER
   ============================================================================= */

.section-builder-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.section-builder-card:hover {
  border-color: rgba(184, 215, 0, 0.4);
}

.section-builder-card.is-collapsed .section-builder-body {
  display: none;
}

.section-builder-header {
  padding: 14px 20px;
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-drag-handle {
  cursor: grab;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
}
.section-drag-handle:hover {
  color: var(--accent-primary);
}

.section-title-input {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  flex: 1;
}

.section-title-input:focus {
  background-color: var(--bg-tertiary);
  border-color: var(--accent-primary);
  outline: none;
}

.section-heading-level {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.section-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-builder-body {
  padding: 20px;
}

/* Block Item */
.block-item-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.block-item-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.block-item-card.is-collapsed .block-item-body {
  display: none;
}

.block-item-header {
  padding: 10px 16px;
  background-color: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.block-drag-handle {
  cursor: grab;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.block-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
}

.block-type-paragraph { color: #ffffff; background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15); }
.block-type-subheading { color: #38bdf8; background-color: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.3); }
.block-type-list, .block-type-bullet_list { color: #818cf8; background-color: rgba(129, 140, 248, 0.15); border: 1px solid rgba(129, 140, 248, 0.3); }
.block-type-image { color: #f472b6; background-color: rgba(244, 114, 182, 0.15); border: 1px solid rgba(244, 114, 182, 0.3); }
.block-type-grid, .block-type-image_grid { color: #fb923c; background-color: rgba(251, 146, 60, 0.15); border: 1px solid rgba(251, 146, 60, 0.3); }
.block-type-gallery { color: #a78bfa; background-color: rgba(167, 139, 250, 0.15); border: 1px solid rgba(167, 139, 250, 0.3); }
.block-type-stats, .block-type-stats_callout { color: var(--accent-primary); background-color: rgba(184, 215, 0, 0.15); border: 1px solid rgba(184, 215, 0, 0.3); }

/* Content Block Item */
.content-block-item, .block-item-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.content-block-item:hover, .block-item-card:hover {
  border-color: rgba(184, 215, 0, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.block-header, .block-item-header {
  padding: 10px 16px;
  background-color: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.block-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.block-btn-icon {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.block-btn-icon:hover:not(:disabled) {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(184, 215, 0, 0.1);
}

.block-btn-icon:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.block-body, .block-item-body {
  padding: 16px;
}

/* Add Block Menu & Buttons */
.add-block-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 14px;
  background-color: rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
}

.add-block-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.add-block-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.add-block-btn span {
  font-weight: 700;
  color: var(--accent-primary);
}

.add-block-btn:hover {
  color: #000000;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

.add-block-btn:hover span {
  color: #000000;
}

/* Formatting toolbar */
.formatting-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  background: var(--bg-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  width: fit-content;
}

.format-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.format-btn:hover {
  color: var(--accent-primary);
  background: rgba(184, 215, 0, 0.1);
  border-color: rgba(184, 215, 0, 0.3);
}

/* Image Upload Card */
.image-upload-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-secondary);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.image-upload-preview {
  width: 140px;
  height: 110px;
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bullet list builder items */
.bullet-list-builder {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullet-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bullet-dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  flex-shrink: 0;
}

/* Two-column Image Grid inputs */
.two-col-grid-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-col-box {
  background-color: var(--bg-tertiary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.image-preview-thumbnail {
  width: 100%;
  height: 120px;
  background-color: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.image-preview-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery Builder */
.gallery-builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.gallery-item-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  position: relative;
}

/* Stats Callout Builder */
.stat-builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.stat-item-box {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
}

/* Block Insertion Menu */
.block-adder-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 12px;
  background-color: rgba(255, 255, 255, 0.01);
  flex-wrap: wrap;
}

.block-adder-btn {
  font-size: 0.775rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.block-adder-btn:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
}

/* Dragging visual indicators */
.is-dragging {
  opacity: 0.4;
  border: 2px dashed var(--accent-primary) !important;
}

.drag-over-top {
  border-top: 2px solid var(--accent-primary) !important;
}

.drag-over-bottom {
  border-bottom: 2px solid var(--accent-primary) !important;
}

.section-builder-card.is-dragging,
.block-item-card.is-dragging {
  opacity: 0.45;
  background-color: var(--bg-tertiary);
}

.meta-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ─── Live Storytelling Preview Mode ───────────────────────────────────────── */
.story-live-preview {
  background-color: #ffffff;
  color: #111827;
  border-radius: var(--radius-lg);
  padding: 40px;
  font-family: var(--font-body);
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.story-preview-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #e5e7eb;
}

.story-preview-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.story-preview-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #6b7280;
  line-height: 1.3;
}

.story-preview-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #374151;
  font-size: 15px;
  line-height: 1.7;
}

.story-preview-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-top: 10px;
}

.story-preview-content ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-preview-content li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.story-preview-bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  margin-top: 8px;
  flex-shrink: 0;
}

.story-preview-full-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.story-preview-full-img img {
  width: 100%;
  height: auto;
  display: block;
}

.story-preview-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 6px 0;
}

.story-preview-two-col img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
}

.story-preview-stat-card {
  background-color: #000000;
  color: #ffffff;
  border-radius: 16px;
  padding: 16px 24px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  border: 1px solid rgba(184, 215, 0, 0.3);
}

.story-preview-stat-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-primary);
}

.story-preview-stat-lbl {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 4px;
  text-align: center;
}

/* ─── Structured Form Builder (Non-Coder Friendly) ─────────────────────────── */
.structured-section-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.structured-section-card:hover {
  border-color: rgba(184, 215, 0, 0.3);
}

.structured-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sec-order-badge {
  background: var(--accent-primary-muted);
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-primary-border);
  flex-shrink: 0;
}

.structured-field-group {
  margin-bottom: 22px;
}

.structured-field-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.structured-field-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.structured-field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Bullet Points List */
.sec-bullets-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.bullet-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bullet-dot-icon {
  color: var(--accent-primary);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.sec-bullet-item {
  flex: 1;
}

.bullet-delete-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.bullet-delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.add-bullet-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.add-bullet-btn:hover {
  background: var(--accent-primary-muted);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Section Photos Gallery */
.sec-photos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  min-height: 20px;
}

.sec-photo-card {
  position: relative;
  width: 156px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s, transform 0.15s, opacity 0.15s;
  cursor: grab;
  user-select: none;
}

.sec-photo-card:active {
  cursor: grabbing;
}

.sec-photo-card:hover {
  border-color: var(--accent-primary);
}

.sec-photo-card.dragging {
  opacity: 0.4;
  border: 2px dashed var(--accent-primary);
  transform: scale(0.96);
}

.sec-photo-preview-wrap {
  width: 100%;
  height: 110px;
  position: relative;
  background: #09090b;
}

.sec-photo-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.sec-photo-order-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(184, 215, 0, 0.4);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
  letter-spacing: 0.05em;
}

.sec-photo-remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}

.sec-photo-remove-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.sec-photo-controls {
  position: absolute;
  bottom: 5px;
  left: 5px;
  right: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(6px);
  border-radius: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.sec-photo-nav-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  width: 26px;
  height: 22px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.sec-photo-nav-btn:hover:not(:disabled) {
  background: var(--accent-primary);
  color: #000000;
  border-color: var(--accent-primary);
  transform: scale(1.08);
}

.sec-photo-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.05);
}

.sec-photo-pos-text {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  user-select: none;
}

.sec-photo-cap {
  font-size: 0.72rem;
  padding: 6px 8px;
  background: var(--bg-tertiary);
  border: none;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 0;
  cursor: text;
}

.sec-photo-cap:focus {
  outline: none;
  background: var(--bg-card);
  color: var(--text-primary);
}

.upload-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

