@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Outfit:wght@300;400;500;600;700;800;900&family=Cinzel:wght@400;700;900&family=Courier+Prime:wght@400;700&display=swap');

/* Core Variables — NaviGo Blue Edition */
:root {
  --bg-primary: #020b18;
  --bg-secondary: #071526;
  --card-bg: rgba(7, 18, 36, 0.55);
  --card-border: rgba(255, 255, 255, 0.07);
  --accent-blue: #1e90ff;
  --accent-blue-glow: rgba(30, 144, 255, 0.3);
  --accent-red: #ff4757;
  --accent-red-soft: #ff6b81;
  --accent-red-glow: rgba(255, 71, 87, 0.3);
  --accent-rust: #c05c3e;
  --accent-rust-glow: rgba(192, 92, 62, 0.3);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --cream-bg: #f9f6f0;
  --charcoal-dark: #1c1c1c;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(30, 144, 255, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 100% 60%, rgba(30, 144, 255, 0.04) 0%, transparent 60%);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  padding: 0 40px 40px;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(30, 144, 255, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* ── MASTHEAD BAR ── */
.masthead-stripe {
  position: sticky;
  top: 0;
  z-index: 500;
  width: calc(100% + 80px);
  margin-left: -40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue) 0%, rgba(30, 144, 255, 0.5) 60%, transparent 100%);
  margin-bottom: 28px;
}

/* Header */
.app-header {
  max-width: 1400px;
  margin: 0 auto 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 20px;
  border-bottom: 1px solid rgba(30, 144, 255, 0.1);
  animation: fadeInDown 0.6s ease;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(30, 144, 255, 0.12), inset 0 0 12px rgba(30, 144, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.brand-icon::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), rgba(30, 144, 255, 0.3));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1px;
}

.brand-live-badge .live-dot {
  width: 5px;
  height: 5px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: live-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 6px var(--accent-blue);
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  text-transform: uppercase;
}

.brand-name span {
  color: var(--accent-blue);
}

.brand-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-top: 2px;
}

/* Header right side stats cluster */
.header-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.header-stat .stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.header-stat .stat-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.header-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.07);
}

.app-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(30, 144, 255, 0.06);
  border: 1px solid rgba(30, 144, 255, 0.2);
  padding: 6px 14px;
  border-radius: 30px;
}

/* Grid Layout */
.dashboard-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}

/* Glassmorphic Panel */
.glass-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(30, 144, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(30, 144, 255, 0.06);
}

/* Section Titles */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(30, 144, 255, 0.1);
  padding-bottom: 12px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

input[type="text"], textarea, select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: var(--transition-smooth);
}

input[type="text"]:focus, textarea:focus, select:focus {
  border-color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 12px rgba(30, 144, 255, 0.15);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Cover Image Picker */
.cover-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.cover-option {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cover-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-option::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.cover-option.active {
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue-glow);
}

.cover-option.active::after {
  background: transparent;
}

.cover-label {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Tab controls */
.source-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}

.source-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.source-tab.active {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(30, 144, 255, 0.35);
}

#theme_editorial.active {
  background: var(--accent-rust);
  box-shadow: 0 2px 10px rgba(192, 92, 62, 0.4);
}

#theme_tech.active {
  background: var(--accent-blue);
  box-shadow: 0 2px 10px rgba(30, 144, 255, 0.4);
}

#theme_emerald.active {
  background: #00cc88;
  box-shadow: 0 2px 10px rgba(0, 204, 136, 0.4);
}

#theme_news.active {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 71, 87, 0.45);
}

#theme_custom.active {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.45);
}

/* Actions Section */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0060cc 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(30, 144, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 144, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(30, 144, 255, 0.2);
}

/* Main Display Area (Right Side) */
.workspace-display {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Carousel Deck */
.deck-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deck-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
}

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

/* Carousel Grid */
.carousel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.slide-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.slide-card:nth-child(1) { animation-delay: 0.1s; }
.slide-card:nth-child(2) { animation-delay: 0.2s; }
.slide-card:nth-child(3) { animation-delay: 0.3s; }
.slide-card:nth-child(4) { animation-delay: 0.4s; }

.slide-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #141414;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.slide-card:hover .slide-viewport {
  transform: translateY(-6px);
  border-color: rgba(30, 144, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(30, 144, 255, 0.1);
}

.slide-viewport canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slide Info & Buttons */
.slide-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
}

.btn-download-slide {
  padding: 8px 12px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-download-slide:hover {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px var(--accent-blue-glow);
}

/* History / Pipeline list */
.pipeline-panel {
  margin-top: 10px;
}

.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 6px;
}

.pipeline-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.pipeline-item:hover {
  background: rgba(30, 144, 255, 0.03);
  border-color: rgba(30, 144, 255, 0.12);
}

.item-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-num {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.item-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.item-date {
  font-size: 10px;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .carousel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding: 20px;
  }
  .carousel-grid {
    grid-template-columns: 1fr;
  }
}

/* Slide Zoom Button */
.slide-zoom-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: rgba(2, 7, 13, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  transition: var(--transition-smooth);
  z-index: 10;
}

.slide-card:hover .slide-zoom-btn {
  opacity: 1;
  transform: scale(1);
}

.slide-zoom-btn:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-blue-glow);
}

/* Slide Zoom Modal */
.zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 7, 13, 0.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  padding: 40px;
}

.zoom-modal.active {
  opacity: 1;
  pointer-events: all;
}

.zoom-modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 1010;
}

.zoom-modal-close:hover {
  background: #ff4757;
  border-color: #ff4757;
  transform: rotate(90deg);
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}

.zoom-modal-content {
  max-width: 90%;
  max-height: 82vh;
  aspect-ratio: 3/4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 40px rgba(30,144,255,0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  transform: scale(0.92);
  transition: var(--transition-smooth);
  background: #000;
}

.zoom-modal.active .zoom-modal-content {
  transform: scale(1);
}

.zoom-modal-content canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.zoom-modal-caption {
  margin-top: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  border-radius: 30px;
}

/* AI Processing Loading Overlay */
.ai-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 7, 13, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ai-loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.ai-loading-card {
  background: rgba(11, 22, 38, 0.65);
  border: 1px solid rgba(255, 71, 87, 0.25);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(255, 71, 87, 0.15);
  backdrop-filter: blur(25px);
  padding: 40px 60px;
  border-radius: 24px;
  text-align: center;
  max-width: 480px;
  width: 90%;
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ai-loading-overlay.active .ai-loading-card {
  transform: scale(1);
}

/* Spinner styling with dual rotating rings and neon red/glow theme */
.ai-spinner {
  width: 70px;
  height: 70px;
  border: 3.5px solid rgba(255, 71, 87, 0.1);
  border-top-color: #ff4757;
  border-bottom-color: #ff4757;
  border-radius: 50%;
  animation: ai-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  position: relative;
  box-shadow: 0 0 15px rgba(255, 71, 87, 0.3);
}

.ai-spinner::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 3px solid transparent;
  border-left-color: #ff6b81;
  border-right-color: #ff6b81;
  border-radius: 50%;
  animation: ai-spin-reverse 0.8s linear infinite;
  opacity: 0.8;
}

#ai_loading_title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff, #a0b0c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#ai_loading_status {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #ff4757;
  letter-spacing: 0.5px;
  animation: ai-pulse 1.5s ease-in-out infinite;
}

@keyframes ai-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ai-spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes ai-pulse {
  0%, 100% { opacity: 0.7; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* ─────────────────────────────────────────────
   DASHBOARD MODE SWITCHER
───────────────────────────────────────────── */
.mode-switcher-bar {
  max-width: 1400px;
  margin: 0 auto 24px;
}

.mode-tabs {
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 5px;
  width: fit-content;
}

.mode-tab {
  padding: 10px 26px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.mode-tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
}

.mode-tab.active {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(30, 144, 255, 0.3);
}

/* ─────────────────────────────────────────────
   SINGLE POST CREATOR — SIZE PICKER
───────────────────────────────────────────── */
.sp-size-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.sp-size-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: 'Montserrat', sans-serif;
}

.sp-size-btn i {
  font-size: 20px;
  margin-bottom: 2px;
}

.sp-size-btn span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-align: center;
}

.sp-size-btn small {
  font-size: 9px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.sp-size-btn:hover,
.sp-size-btn.active {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(30, 144, 255, 0.07);
  box-shadow: 0 0 14px rgba(30, 144, 255, 0.1);
}

/* ─────────────────────────────────────────────
   SINGLE POST CREATOR — CANVAS CONTAINER
───────────────────────────────────────────── */
.sp-canvas-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.sp-canvas-inner {
  position: relative;
  width: 100%;
  background: #0b1220;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.sp-canvas-inner:hover {
  border-color: rgba(30, 144, 255, 0.25);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(30, 144, 255, 0.1);
}

.sp-canvas-inner canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────────
   SINGLE POST CREATOR — CAPTION OUTPUT
───────────────────────────────────────────── */
.sp-caption-panel {
  padding: 22px;
}

.sp-caption-output {
  width: 100%;
  min-height: 200px;
  max-height: 420px;
  resize: vertical;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  padding: 14px 16px;
  transition: border-color 0.2s;
}

.sp-caption-output:focus {
  outline: none;
  border-color: rgba(0, 204, 136, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 204, 136, 0.08);
}

/* ─────────────────────────────────────────────
   SINGLE POST — TEXT ALIGN PICKER
───────────────────────────────────────────── */
.sp-align-picker {
  display: flex;
  gap: 6px;
}

.sp-align-btn {
  flex: 1;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-align-btn:hover,
.sp-align-btn.active {
  background: rgba(30, 144, 255, 0.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* me-1 utility (FontAwesome spacing helper) */
.me-1 { margin-right: 5px; }

/* Custom Theme Settings Card Styles */
.custom-theme-settings {
  animation: themePanelFade 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@keyframes themePanelFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-theme-settings select,
.custom-theme-settings input[type="text"] {
  height: 34px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px !important;
  color: #fff !important;
  transition: all 0.2s ease !important;
}

.custom-theme-settings select:focus,
.custom-theme-settings input[type="text"]:focus {
  border-color: #a855f7 !important;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.25) !important;
}

.custom-theme-settings input[type="color"] {
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.custom-theme-settings input[type="color"]:hover {
  transform: scale(1.08);
}

