@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Backgrounds */
  --bg:           #FFFFFF;
  --bg-soft:      #F7F7F5;
  --bg-warm:      #F0EFED;
  --bg-dark:      #1A1917;

  /* Borders */
  --border:       #E8E7E4;
  --border-dark:  #D4D3CF;

  /* Text */
  --text:         #1A1917;
  --text-2:       #6B6860;
  --text-3:       #A8A59F;

  /* Accent */
  --blue:         #1A6BFF;
  --blue-light:   #EEF3FF;
  --blue-dark:    #0041CC;
  --orange:       #FF4D00;
  --orange-light: #FFF3EE;

  /* Status */
  --green:        #16A34A;
  --green-light:  #F0FDF4;
  --red:          #DC2626;
  --red-light:    #FEF2F2;
  --yellow:       #D97706;
  --yellow-light: #FFFBEB;

  /* Platform colors */
  --c-instagram:  #E1306C;
  --c-youtube:    #FF0000;
  --c-facebook:   #1877F2;
  --c-linkedin:   #0A66C2;
  --c-x:          #000000;
  --c-threads:    #000000;
  --c-bluesky:    #0085FF;
  --c-reddit:     #FF4500;
  --c-substack:   #FF6719;

  /* Radii */
  --r-sm:  4px;
  --r:     8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 24px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 
               0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 6px rgba(0,0,0,0.05), 
               0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 
               0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 
               0 10px 10px rgba(0,0,0,0.04);

  /* Transitions */
  --t: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--blue-light);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 3px;
}

/* Animations */
@keyframes fadeUp { 
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); } 
}
@keyframes shimmer { 
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin { 
  to { transform: rotate(360deg); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes checkmark {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.fadeUp { 
  opacity: 1; 
}
.js-ready .fadeUp {
  opacity: 0; 
  animation: fadeUp 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards; 
}
.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 160ms; }
.delay-3 { animation-delay: 240ms; }
.delay-4 { animation-delay: 320ms; }

.scroll-reveal { 
  opacity: 1; 
  transform: none;
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), 
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1); 
  will-change: opacity, transform;
}
.js-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(12px);
}
.scroll-reveal.revealed { 
  opacity: 1; 
  transform: translateY(0);
}

/* Typography Utilities */
.hero-head {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 64px;
  color: var(--text);
  line-height: 1.05;
}
.hero-sub {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 48px;
}
.section-head { 
  font-family: 'Inter', sans-serif;
  font-weight: 700; 
  font-size: 28px; 
  line-height: 1.3; 
  color: #1A1917;
}
.page-head { font-weight: 700; font-size: 36px; line-height: 1.2; }
.body-text { 
  font-family: 'Inter', sans-serif;
  font-size: 15px; 
  color: #6B6860; 
  line-height: 1.7; 
}
.ui-label { 
  font-family: 'Inter', sans-serif;
  font-weight: 600; 
  font-size: 11px; 
  color: var(--blue) !important;
  letter-spacing: 0.08em; 
  text-transform: uppercase;
}
.caption { font-size: 13px; color: var(--text-3); }
/* Buttons (Fix 1, 9) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r);
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: var(--t); border: none; outline: none;
  font-family: 'Inter', sans-serif;
  text-decoration: none; user-select: none;
}
.btn-primary { 
  background: var(--blue); color: white;
  box-shadow: 0 1px 2px rgba(26,107,255,0.2), 0 2px 4px rgba(26,107,255,0.1);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,107,255,0.3); }
.btn-primary:active { transform: translateY(0); }

.btn-primary-dark {
  background: white; color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.btn-primary-dark:hover { background: #f9f9f9; transform: translateY(-1px); }

.btn-secondary { 
  background: white; color: var(--text-2); border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--bg-soft); color: var(--text); border-color: var(--border-dark); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }

.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-icon-only { padding: 0; width: 40px; }
.btn-icon-only.btn-sm { width: 32px; }

/* Cards (Fix 3, 5, 6, 7, 10, 11) */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow);
}

/* Form Elements */
.input-field {
  width: 100%; height: 40px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); padding: 0 12px;
  font-size: 14px; color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.input-field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.input-lg { height: 48px; padding: 0 16px; font-size: 15px; }

.label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-2); margin-bottom: 6px;
}
/* Badges (Fix 5, 11) */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px; /* Slightly more square/premium */
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  border: 1px solid transparent;
}
.badge-default { background: #F7F7F5; color: #6B6860; border-color: #DEDEDB; }
.badge-blue { background: #EEF3FF; color: #1A6BFF; border-color: rgba(26,107,255,0.1); }
.badge-green { background: #F0FDF4; color: #16A34A; border-color: rgba(22, 163, 74, 0.2); }
.badge-red { background: #FEF2F2; color: #DC2626; border-color: rgba(220, 38, 38, 0.1); }
.badge-orange { background: #FFF3EE; color: #FF4D00; border-color: rgba(255, 77, 0, 0.1); }
.badge-yellow { background: #FFFBEB; color: #D97706; border-color: rgba(217, 119, 6, 0.2); }

/* Staggered Delays (Fix 14) */
.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 60ms; }
.stagger-3 { transition-delay: 120ms; }
.stagger-4 { transition-delay: 180ms; }

/* Platform Dot Hover (Fix 1B) */
.platform-dot-item {
  transition: all 200ms ease;
  cursor: pointer;
}
.platform-dot-item:hover .platform-dot {
  transform: scale(1.4);
}
.platform-dot-item:hover .platform-name-text.c-instagram-txt { color: var(--c-instagram); }
.platform-dot-item:hover .platform-name-text.c-linkedin-txt { color: var(--c-linkedin); }
.platform-dot-item:hover .platform-name-text.c-x-txt { color: var(--c-x); }
.platform-dot-item:hover .platform-name-text.c-threads-txt { color: var(--c-threads); }
.platform-dot-item:hover .platform-name-text.c-youtube-txt { color: var(--c-youtube); }
.platform-dot-item:hover .platform-name-text.c-facebook-txt { color: var(--c-facebook); }
.platform-dot-item:hover .platform-name-text.c-reddit-txt { color: var(--c-reddit); }
.platform-dot-item:hover .platform-name-text.c-bluesky-txt { color: var(--c-bluesky); }
.platform-dot-item:hover .platform-name-text.c-substack-txt { color: var(--c-substack); }

/* Stat Card Hover (Fix 10C) */
.stats-grid .card {
  transition: box-shadow 150ms ease;
}
.stats-grid .card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Toasts */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 18px;
  box-shadow: var(--shadow-xl);
  font-size: 14px; color: var(--text);
  max-width: 360px;
  animation: fadeUp 200ms cubic-bezier(0.4,0,0.2,1) forwards;
  position: relative; overflow: hidden;
}
.toast-success { border-left: 3px solid var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-info { border-left: 3px solid var(--blue); }

/* Modals */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--t);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-panel {
  background: var(--bg); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl); max-width: 480px; width: 100%;
  padding: 32px; margin: 24px;
  transform: scale(0.97); transition: transform var(--t);
  position: relative;
}
.modal-overlay.active .modal-panel { transform: scale(1); }
.modal-close { position: absolute; top: 16px; right: 16px; }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, 
    var(--bg-warm) 25%, var(--border) 50%, 
    var(--bg-warm) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r);
}

/* Sidebar Nav Item (Fix 9B) */
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 500; font-size: 14px; color: var(--text-2);
  transition: var(--t); cursor: pointer;
  text-decoration: none;
  height: auto;
}
.nav-item:hover { background: var(--bg-warm); color: var(--text); }
.nav-item.active {
  background: var(--blue-light); color: var(--blue);
  font-weight: 600;
}
.nav-item.active svg { color: var(--blue); }

/* Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }

.grid-2-col { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4-col { display: grid; grid-template-columns: repeat(4, 1fr); }
footer .grid-3-col { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; }

/* Platform Dots */
.platform-dot {
  display: inline-block; border-radius: 50%; width: 8px; height: 8px;
}
.c-instagram { background: var(--c-instagram); }
.c-linkedin { background: var(--c-linkedin); }
.c-x { background: var(--c-x); }
.c-facebook { background: var(--c-facebook); }
.c-threads { background: var(--c-threads); }
.c-reddit { background: var(--c-reddit); }
.c-bluesky { background: var(--c-bluesky); }
.c-youtube { background: var(--c-youtube); }
.c-substack { background: var(--c-substack); }

.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid white; border-top-color: transparent;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

/* Refined Platform Card Layout */
.platform-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pc-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pc-body {
  padding: 18px;
  flex-grow: 1;
}
.pc-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
}
.pc-footer .btn {
  flex: 1;
}

/* Action Icons */
.pc-sliders { 
  padding: 16px 18px; 
  border-top: 1px solid var(--border); 
  background: var(--bg-soft);
  display: none; /* Hidden by default */
  flex-direction: column;
  gap: 12px;
}
.pc-sliders.active {
  display: flex;
}
.tone-toggle {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--t);
  user-select: none;
}
.tone-toggle:hover {
  background: var(--bg-warm);
}
.tone-toggle span {
  font-weight: 700;
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tone-toggle svg {
  color: var(--text-3);
  transition: transform var(--t);
}
.tone-toggle.active svg {
  transform: rotate(180deg);
}

.slider-row { 
  display: grid; 
  grid-template-columns: 100px 1fr 24px; /* Widened label column to 100px */
  align-items: center; 
  gap: 12px; 
}
.slider-label { 
  font-weight: 600; 
  font-size: 10px; 
  color: var(--text-2); 
  text-transform: uppercase; 
  letter-spacing: 0.1em;
}
.slider-val { 
  font-family: 'JetBrains Mono', monospace; 
  font-size: 11px; 
  color: var(--text-2); 
  text-align: right; 
}

/* Custom Range Styling */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  cursor: pointer;
}
input[type="range"]:focus {
  outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  background: var(--border-dark);
  border-radius: 1px;
}
input[type="range"]::-webkit-slider-thumb {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: var(--text);
  -webkit-appearance: none;
  margin-top: -5px; /* Centers thumb on track */
  transition: transform var(--t);
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--border-dark);
}
input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.2);
}
input[type="range"]::-moz-range-track {
  width: 100%;
  height: 2px;
  background: var(--border-dark);
  border-radius: 1px;
}
input[type="range"]::-moz-range-thumb {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--border-dark);
  transition: transform var(--t);
}

/* Action Icons */
.textarea-actions { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.action-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--text-3); cursor: pointer; transition: var(--t); }
.action-icon:hover { background: var(--bg-warm); color: var(--text); }
.char-counter { position: absolute; right: 12px; bottom: 8px; font-size: 10px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; }

/* Thread Feed Styles */
.thread-container { position: relative; padding-left: 12px; margin-top: 16px; }
.thread-item { display: flex; gap: 16px; margin-bottom: 24px; position: relative; }
.thread-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; z-index: 2; flex-shrink: 0; }
.thread-connector { position: absolute; left: 18px; top: 36px; bottom: -24px; width: 1px; background: var(--border-dark); z-index: 1; }
.thread-item:last-child .thread-connector { display: none; }
.thread-content { flex-grow: 1; background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow-xs); position: relative; }
.thread-header { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.thread-header span { color: var(--text-3); font-weight: 400; }

/* Card Tip */
.card-tip { background: #FFFBEB; border: 1px solid #FEF3C7; border-radius: var(--r); padding: 8px 12px; font-size: 12px; color: #92400E; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

/* Card Tabs */
.card-tabs { display: flex; gap: 4px; background: var(--bg-warm); padding: 3px; border-radius: 100px; margin-bottom: 20px; width: fit-content; }
.card-tab { padding: 4px 14px; border-radius: 100px; font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--t); color: var(--text-3); }
.card-tab.active { background: var(--text); color: white; }

/* Card Warning (Instagram URL Box) */
.card-warning {
  border: 1px dashed var(--red);
  background: var(--red-light);
  border-radius: var(--r);
  padding: 12px;
  margin-bottom: 20px;
}
.card-warning-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.card-warning-text {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Platform Sorting List */
#platform-order-list {
  user-select: none;
}
.sortable-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: grab;
  transition: var(--t);
}
.sortable-item:active {
  cursor: grabbing;
}
.sortable-item.dragging {
  opacity: 0.5;
  background: var(--bg-warm);
  border-style: dashed;
}
.sortable-item .handle {
  color: var(--text-3);
  margin-right: 8px;
  font-size: 14px;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero-head { font-size: 56px; }
  .grid-3-col { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  .hero-head { font-size: 44px; }
  .hero-sub { font-size: 32px; }
  .grid-2-col, .grid-3-col { grid-template-columns: 1fr !important; }
  .desktop-only { display: none !important; }
  .padded-section { padding: 64px 24px !important; }
}
@media (max-width: 480px) {
  .hero-head { font-size: 36px; }
}

/* ─── SPINNER ANIMATION ──────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Generate button spinner (white on blue bg) */
.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

/* Regenerate button spinner (dark on light bg) */
.btn-spinner-dark {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: #1A1917;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

/* ─── STYLE INSIGHT NOTIFICATION ─────────────────────────────── */
.style-insight-notif {
  position: fixed;
  bottom: 88px;
  right: 24px;
  background: white;
  border: 1px solid #E8E7E4;
  border-left: 3px solid #1A6BFF;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 1000;
  max-width: 300px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 250ms ease;
  pointer-events: all;
}
.style-insight-notif.visible {
  opacity: 1;
  transform: translateY(0);
}
.insight-icon {
  color: #1A6BFF;
  font-size: 16px;
  flex-shrink: 0;
}
.insight-text {
  font: 400 13px Inter, sans-serif;
  color: #1A1917;
  flex-grow: 1;
}
.insight-text strong {
  color: #1A6BFF;
  font-weight: 600;
}
.insight-dismiss {
  background: none;
  border: none;
  color: #A8A59F;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
}
.insight-dismiss:hover { color: #1A1917; }

/* ─── SUBREDDIT SELECTOR ─────────────────────────────────────── */
.subreddit-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.selected-subreddits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 28px;
}
.subreddit-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 28px;
}
.subreddit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font: 500 12px Inter, sans-serif;
  cursor: pointer;
  border: 1px solid #E8E7E4;
  margin: 0;
  transition: all 120ms;
  white-space: nowrap;
}
.subreddit-pill.suggestion {
  background: #F7F7F5;
  color: #6B6860;
}
.subreddit-pill.suggestion:hover {
  background: #EEF3FF;
  color: #1A6BFF;
  border-color: #1A6BFF;
}
.subreddit-pill.selected {
  background: #EEF3FF;
  color: #1A6BFF;
  border-color: #1A6BFF;
}
.remove-sub {
  cursor: pointer;
  font-weight: 700;
  opacity: 0.6;
  margin-left: 2px;
}
.remove-sub:hover { opacity: 1; }

/* ─── MEDIA URL FIELD BADGES ─────────────────────────────────── */
.media-url-field {
  margin-top: 16px;
}
.media-url-field label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.required-badge {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 100px;
  padding: 2px 8px;
  font: 600 11px Inter, sans-serif;
}
.coming-soon-badge {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: 100px;
  padding: 2px 8px;
  font: 600 11px Inter, sans-serif;
}
.field-hint {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  line-height: 1.4;
}
.media-url-field.coming-soon .input-field {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-soft);
}
/* ─── STYLE INSIGHT NOTIFICATION ────────────────────────────── */
.style-insight-notif {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: white;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 400px;
  z-index: 10000;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.style-insight-notif.visible {
  transform: translateX(0);
}
.insight-icon {
  width: 32px; height: 32px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.insight-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.insight-text strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  margin-bottom: 2px;
}
.insight-dismiss {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.insight-dismiss:hover {
  color: var(--text);
}
