/* ═══════════════════════════════════════════════════════════════════════════
   Fast Tool Nest – WordPress Plugin Styles
   Pixel-identical to the React/Tailwind original
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
.ftn-wrap, .ftn-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
.ftn-wrap {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  margin: 1.5rem 0;
  width: 100%;
  clear: both;
}
.ftn-wrap code, .ftn-wrap pre, .ftn-wrap .ftn-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace;
}
.ftn-wrap button { cursor: pointer; border: none; background: none; font-family: inherit; }
.ftn-wrap input, .ftn-wrap textarea, .ftn-wrap select { font-family: inherit; }

/* ── Hero Section ──────────────────────────────────────────────────────────── */
.ftn-hero {
  display: none !important;
}

/* ── 3-Panel Grid ──────────────────────────────────────────────────────────── */
.ftn-grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.75rem !important;
  overflow: hidden;
  background: #fff;
}
@media (min-width: 1024px) {
  .ftn-grid {
    grid-template-columns: 1fr 1fr 1fr;
    height: 640px;
  }
}

/* ── Panel: Input ──────────────────────────────────────────────────────────── */
.ftn-panel-input {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  min-height: 300px;
}
@media (min-width: 1024px) {
  .ftn-panel-input {
    border-bottom: none;
    border-right: 1px solid #e5e7eb;
    min-height: 0;
  }
}
.ftn-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  background: #f9fafb;
  flex-shrink: 0;
}
@media (min-width: 640px) { .ftn-panel-header { padding: 0.75rem 1.25rem; } }
.ftn-panel-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ftn-step-badge {
  width: 1.25rem; height: 1.25rem;
  border-radius: 9999px;
  background: #7c3aed;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.ftn-step-badge-green { background: #22c55e; }
.ftn-panel-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ftn-btn-clear-inline {
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s;
}
.ftn-btn-clear-inline:hover { color: #ef4444; }
.ftn-btn-clear-inline svg { width: 0.75rem; height: 0.75rem; }
.ftn-input-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ftn-textarea {
  width: 100%;
  flex: 1;
  min-height: 220px;
  padding: 1rem;
  font-size: 0.875rem;
  color: #1f2937;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  border: none;
  resize: vertical;
  outline: none;
  line-height: 1.625;
}
@media (min-width: 1024px) {
  .ftn-textarea { min-height: 0; resize: none; }
}
@media (min-width: 640px) { .ftn-textarea { padding: 1rem 1.25rem; } }
.ftn-textarea::placeholder { color: #d1d5db; font-family: 'Montserrat', sans-serif; }
.ftn-textarea-sans { font-family: 'Montserrat', sans-serif; }
.ftn-textarea-sans::placeholder { font-family: 'Montserrat', sans-serif; }
.ftn-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-top: 1px solid #f3f4f6;
  background: #f9fafb;
  flex-shrink: 0;
}
@media (min-width: 640px) { .ftn-input-footer { padding: 0.5rem 1.25rem; } }
.ftn-input-footer-stats { font-size: 0.75rem; color: #9ca3af; }
.ftn-badge-empty { font-size: 0.75rem; font-weight: 600; color: #d1d5db; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.ftn-badge-ready { font-size: 0.75rem; font-weight: 600; color: #16a34a; background: #f0fdf4; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.ftn-badge-long { font-size: 0.75rem; font-weight: 600; color: #d97706; background: #fffbeb; padding: 0.125rem 0.5rem; border-radius: 9999px; }

/* ── Panel: Settings ───────────────────────────────────────────────────────── */
.ftn-panel-settings {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}
@media (min-width: 1024px) {
  .ftn-panel-settings {
    border-bottom: none;
    border-right: 1px solid #e5e7eb;
  }
}
.ftn-actions-bar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}
@media (min-width: 640px) { .ftn-actions-bar { padding: 0.75rem 1.25rem; } }
.ftn-settings-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  flex-shrink: 0;
}
@media (min-width: 640px) { .ftn-settings-heading { padding: 0.75rem 1.25rem; } }
.ftn-settings-body {
  overflow-y: auto;
  padding: 1rem;
  flex: 1;
}
@media (min-width: 640px) { .ftn-settings-body { padding: 1.25rem; } }
.ftn-settings-body > * + * { margin-top: 1.25rem; }
.ftn-settings-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}
@media (min-width: 640px) { .ftn-settings-footer { padding: 0.75rem 1.25rem; } }

/* ── Panel: Output ─────────────────────────────────────────────────────────── */
.ftn-panel-output {
  display: flex;
  flex-direction: column;
  background: #0f172a;
  min-height: 280px;
}
.ftn-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #334155;
  background: #1e293b;
  flex-shrink: 0;
}
@media (min-width: 640px) { .ftn-output-header { padding: 0.75rem 1.25rem; } }
.ftn-output-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ftn-output-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ftn-output-body {
  flex: 1;
  overflow: auto;
  padding: 1rem;
}
@media (min-width: 640px) { .ftn-output-body { padding: 1.25rem; } }
.ftn-wrap .ftn-output-pre,
.ftn-wrap pre.ftn-output-pre,
.ftn-wrap pre.ftn-output-pre * {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  color: #c4b5fd !important;
  text-shadow: none !important;
  font-size: 0.875rem !important;
  line-height: 1.625 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}
.ftn-output-empty {
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #475569;
}
.ftn-output-empty svg { width: 2.5rem; height: 2.5rem; color: #334155; margin-bottom: 0.25rem; }
.ftn-output-empty p:first-of-type { font-size: 0.875rem; font-weight: 500; color: #64748b; }
.ftn-output-empty p:last-of-type { font-size: 0.75rem; color: #475569; }

/* ── Error Box ─────────────────────────────────────────────────────────────── */
.ftn-error-box {
  margin: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  flex-shrink: 0;
}
.ftn-error-box svg { width: 1rem; height: 1rem; color: #f87171; flex-shrink: 0; margin-top: 0.125rem; }
.ftn-error-title { font-size: 0.75rem; font-weight: 600; color: #f87171; margin-bottom: 0.125rem; }
.ftn-error-msg { font-size: 0.75rem; color: #fca5a5; font-family: monospace; line-height: 1.625; word-break: break-all; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.ftn-wrap .ftn-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  background: #7c3aed !important;
  background-color: #7c3aed !important;
  color: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem !important;
  transition: background 0.15s !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}
.ftn-wrap .ftn-btn-primary:hover {
  background: #6d28d9 !important;
  background-color: #6d28d9 !important;
  color: #ffffff !important;
}
.ftn-wrap .ftn-btn-primary svg { width: 0.875rem; height: 0.875rem; }
.ftn-wrap .ftn-btn-primary.ftn-indigo { background: #4f46e5 !important; background-color: #4f46e5 !important; }
.ftn-wrap .ftn-btn-primary.ftn-indigo:hover { background: #4338ca !important; background-color: #4338ca !important; }
.ftn-wrap .ftn-btn-primary.ftn-slate { background: #334155 !important; background-color: #334155 !important; }
.ftn-wrap .ftn-btn-primary.ftn-slate:hover { background: #475569 !important; background-color: #475569 !important; }
.ftn-wrap .ftn-btn-primary.ftn-success { background: #22c55e !important; background-color: #22c55e !important; }

.ftn-wrap .ftn-btn-outline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  border: 1px solid #d1d5db !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #4b5563 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.5rem !important;
  transition: all 0.15s !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.ftn-wrap .ftn-btn-outline:hover {
  background: #fef2f2 !important;
  background-color: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #ef4444 !important;
}
.ftn-wrap .ftn-btn-outline svg { width: 0.875rem; height: 0.875rem; }

.ftn-wrap .ftn-btn-copy {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  padding: 0.375rem 0.75rem !important;
  border-radius: 0.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  transition: all 0.15s !important;
  background: #7c3aed !important;
  background-color: #7c3aed !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}
.ftn-wrap .ftn-btn-copy:hover {
  background: #8b5cf6 !important;
  background-color: #8b5cf6 !important;
  color: #ffffff !important;
}
.ftn-wrap .ftn-btn-copy:disabled { opacity: 0.3 !important; cursor: not-allowed !important; background: #475569 !important; background-color: #475569 !important; }
.ftn-wrap .ftn-btn-copy.copied { background: #22c55e !important; background-color: #22c55e !important; }
.ftn-wrap .ftn-btn-copy svg { width: 0.875rem; height: 0.875rem; }

.ftn-wrap .ftn-btn-download {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  padding: 0.375rem 0.75rem !important;
  border-radius: 0.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  border: 1px solid #475569 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #cbd5e1 !important;
  transition: all 0.15s !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.ftn-wrap .ftn-btn-download:hover { border-color: #8b5cf6 !important; color: #c4b5fd !important; }
.ftn-wrap .ftn-btn-download:disabled { opacity: 0.3 !important; cursor: not-allowed !important; }
.ftn-wrap .ftn-btn-download svg { width: 0.875rem; height: 0.875rem; }

.ftn-btn-reset {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #9ca3af !important;
  padding: 0.375rem 0;
  border-radius: 0.5rem;
  transition: all 0.15s;
  text-decoration: none !important;
}
.ftn-btn-reset:hover { color: #374151 !important; background: #fff; }
.ftn-btn-reset svg { width: 0.75rem; height: 0.75rem; }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.ftn-badge-valid {
  font-size: 10px;
  background: rgba(34,197,94,0.2);
  color: #4ade80;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.ftn-badge-valid svg { width: 0.75rem; height: 0.75rem; }
.ftn-badge-ready-dark {
  font-size: 10px;
  background: rgba(34,197,94,0.2);
  color: #4ade80;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}
.ftn-badge-count {
  font-size: 10px;
  background: rgba(139,92,246,0.2);
  color: #a78bfa;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}
.ftn-badge-chars {
  font-size: 10px;
  background: #334155;
  color: #94a3b8;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.ftn-badge-seo-good {
  font-size: 10px;
  background: rgba(34,197,94,0.2);
  color: #4ade80;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}
.ftn-badge-seo-long {
  font-size: 10px;
  background: rgba(245,158,11,0.2);
  color: #fbbf24;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}

/* ── Setting Controls ──────────────────────────────────────────────────────── */
.ftn-setting-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.ftn-option-grid { display: grid; gap: 0.5rem; }
.ftn-option-grid-2 { grid-template-columns: 1fr 1fr; }
.ftn-option-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.ftn-option-grid-4 { grid-template-columns: 1fr 1fr; }

.ftn-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  border: 2px solid #e5e7eb;
  background: #fff;
  transition: all 0.15s;
  cursor: pointer;
}
.ftn-option-btn:hover { border-color: #c4b5fd; }
.ftn-option-btn.active { border-color: #8b5cf6; background: #f5f3ff; }
.ftn-option-btn-value {
  font-size: 1.25rem;
  font-family: monospace;
  font-weight: 700;
  margin-bottom: 0.125rem;
  color: #9ca3af;
}
.ftn-option-btn.active .ftn-option-btn-value { color: #7c3aed; }
.ftn-option-btn-label {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
}
.ftn-option-btn.active .ftn-option-btn-label { color: #8b5cf6; }

.ftn-option-btn-flat {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.15s;
  cursor: pointer;
  text-align: center;
}
.ftn-option-btn-flat:hover { border-color: #c4b5fd; }
.ftn-option-btn-flat.active { border-color: #8b5cf6; background: #f5f3ff; color: #6d28d9; }

/* Toggle Switch */
.ftn-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: 0.75rem;
  cursor: pointer;
  border: 2px solid #f3f4f6;
  background: #fff;
  transition: all 0.15s;
}
.ftn-toggle-card:hover { border-color: #e5e7eb; }
.ftn-toggle-card.active { border-color: #ddd6fe; background: #f5f3ff; }
.ftn-toggle-title { font-size: 0.75rem; font-weight: 600; color: #4b5563; }
.ftn-toggle-card.active .ftn-toggle-title { color: #6d28d9; }
.ftn-toggle-desc { font-size: 10px; color: #9ca3af; font-family: monospace; margin-top: 0.125rem; }

.ftn-toggle-switch {
  position: relative;
  display: inline-flex;
  width: 2.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 2px solid transparent;
  transition: background 0.15s;
  background: #d1d5db;
  cursor: pointer;
}
.ftn-toggle-switch.on { background: #7c3aed; }
.ftn-toggle-knob {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: transform 0.15s;
  transform: translateX(0);
}
.ftn-toggle-switch.on .ftn-toggle-knob { transform: translateX(1rem); }

/* Text Input */
.ftn-text-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  outline: none;
  font-family: monospace;
  transition: border-color 0.15s;
}
.ftn-text-input:focus { border-color: #a78bfa; }

/* Range Slider */
.ftn-range-input {
  width: 100%;
  accent-color: #7c3aed;
  cursor: pointer;
}
.ftn-range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.ftn-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9ca3af;
  margin-top: 0.25rem;
}
.ftn-range-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.ftn-range-badge-default { background: #f3f4f6; color: #9ca3af; }
.ftn-range-badge-active { background: #ede9fe; color: #7c3aed; }

/* Info Boxes */
.ftn-info-box {
  border-radius: 0.75rem;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  padding: 1rem;
}
.ftn-info-box-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ftn-info-box-text { font-size: 0.75rem; color: #1d4ed8; line-height: 1.6; }
.ftn-info-box ol { list-style: none; padding: 0; }
.ftn-info-box ol li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #1d4ed8;
}
.ftn-info-box ol li + li { margin-top: 0.375rem; }
.ftn-info-box ol li span { font-weight: 700; flex-shrink: 0; }
.ftn-info-box ul { list-style: none; padding: 0; }
.ftn-info-box ul li { font-size: 0.75rem; color: #1d4ed8; font-family: monospace; }
.ftn-info-box ul li + li { margin-top: 0.25rem; }

.ftn-info-box.amber { border-color: #fde68a; background: #fffbeb; }
.ftn-info-box.amber .ftn-info-box-title { color: #b45309; }
.ftn-info-box.amber ul li { color: #b45309; }

.ftn-info-box.green { border-color: #bbf7d0; background: #f0fdf4; }
.ftn-info-box.green .ftn-info-box-title { color: #15803d; }
.ftn-info-box.green pre { font-size: 0.75rem; color: #166534; line-height: 1.625; white-space: pre-wrap; margin: 0; }
.ftn-info-box.green p { font-size: 0.75rem; color: #15803d; margin-top: 0.5rem; }

/* Standard preview */
.ftn-standard-note {
  margin-top: 0.5rem;
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: center;
}
.ftn-standard-note span { font-size: 10px; color: #9ca3af; }
.ftn-standard-note code { font-size: 0.75rem; color: #7c3aed; font-family: monospace; }

/* Upload button */
.ftn-upload-bar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
  flex-shrink: 0;
}
@media (min-width: 640px) { .ftn-upload-bar { padding: 0.75rem 1.25rem; } }
.ftn-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #6d28d9;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.15s;
}
.ftn-upload-label:hover { background: #ede9fe; }
.ftn-upload-label svg { width: 0.875rem; height: 0.875rem; }
.ftn-upload-label input { display: none; }
.ftn-upload-hint { margin-left: 0.5rem; font-size: 0.75rem; color: #9ca3af; }

/* ── Tab Bar ───────────────────────────────────────────────────────────────── */
.ftn-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  padding: 0 1rem;
  flex-shrink: 0;
  overflow-x: auto;
}
.ftn-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: #9ca3af;
  transition: all 0.15s;
  white-space: nowrap;
}
@media (min-width: 640px) { .ftn-tab { font-size: 0.875rem; padding: 0.75rem 1.25rem; } }
.ftn-tab:hover { color: #374151; }
.ftn-tab.active { border-color: #7c3aed; color: #7c3aed; }
.ftn-tab svg { width: 1rem; height: 1rem; }

/* ── Slug Output Special ───────────────────────────────────────────────────── */
.ftn-slug-output-big {
  display: block;
  font-size: 1.25rem;
  font-family: monospace;
  color: #fff;
  font-weight: 700;
  word-break: break-all;
  line-height: 1.625;
  text-align: center;
}
@media (min-width: 640px) { .ftn-slug-output-big { font-size: 1.5rem; } }
.ftn-slug-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 0.5rem 1rem;
  flex-shrink: 0;
}
@media (min-width: 640px) { .ftn-slug-browser-bar { padding: 0.5rem 1.25rem; } }
.ftn-browser-dots { display: flex; gap: 0.25rem; flex-shrink: 0; }
.ftn-browser-dots span { width: 0.625rem; height: 0.625rem; border-radius: 9999px; }
.ftn-browser-dots span:nth-child(1) { background: rgba(239,68,68,0.6); }
.ftn-browser-dots span:nth-child(2) { background: rgba(234,179,8,0.6); }
.ftn-browser-dots span:nth-child(3) { background: rgba(34,197,94,0.6); }
.ftn-browser-url {
  flex: 1;
  background: rgba(51,65,85,0.5);
  border-radius: 0.375rem;
  padding: 0.25rem 0.75rem;
  min-width: 0;
  overflow: hidden;
}
.ftn-browser-url-domain {
  font-size: 11px;
  color: #64748b;
  font-family: monospace;
}
.ftn-browser-url-slug {
  font-size: 11px;
  color: #c4b5fd;
  font-family: monospace;
  font-weight: 600;
  word-break: break-all;
}

/* Bulk slug rows */
.ftn-slug-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(30,41,59,0.6);
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  transition: background 0.15s;
}
.ftn-slug-row:hover { background: rgba(51,65,85,0.6); }
.ftn-slug-row + .ftn-slug-row { margin-top: 0.375rem; }
.ftn-slug-row-num {
  font-size: 10px;
  color: #475569;
  width: 1.25rem;
  text-align: right;
  flex-shrink: 0;
  font-family: monospace;
}
.ftn-slug-row-code {
  font-size: 0.875rem;
  color: #c4b5fd;
  font-family: monospace;
  flex: 1;
  word-break: break-all;
  line-height: 1.625;
}
.ftn-slug-row-copy {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  background: rgba(51,65,85,0.5);
  color: #64748b;
  opacity: 0;
}
.ftn-slug-row:hover .ftn-slug-row-copy { opacity: 1; }
.ftn-slug-row-copy:hover { background: #7c3aed; color: #fff; }
.ftn-slug-row-copy.copied { background: #22c55e; color: #fff; opacity: 1; }
.ftn-slug-row-copy svg { width: 0.875rem; height: 0.875rem; }

/* ── Table Preview (JSON to Excel) ─────────────────────────────────────────── */
.ftn-preview-table {
  overflow-x: auto;
}
.ftn-preview-table table {
  font-size: 0.75rem;
  min-width: 100%;
  border-collapse: collapse;
}
.ftn-preview-table th {
  background: #7c3aed;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  text-align: left;
  white-space: nowrap;
  border: 1px solid #6d28d9;
}
.ftn-preview-table td {
  padding: 0.375rem 0.75rem;
  color: #cbd5e1;
  font-family: monospace;
  white-space: nowrap;
  border: 1px solid rgba(71,85,105,0.4);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ftn-preview-table tr:nth-child(even) { background: #1e293b; }
.ftn-preview-table tr:nth-child(odd) { background: rgba(51,65,85,0.6); }
.ftn-preview-note { font-size: 0.75rem; color: #64748b; margin-top: 0.75rem; text-align: center; }

/* ── SVG Icons (inline) ────────────────────────────────────────────────────── */
.ftn-icon { display: inline-flex; width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.ftn-icon svg { width: 100%; height: 100%; }
