/* ==========================================================================
   CONVERTA MINIMAL - Light Components
   Clean Conversion Deck, Minimal Format Pills, Light Tool Cards
   ========================================================================== */

/* ==========================================================================
   1. UNIVERSAL CONVERTER DECK (Clean Centerpiece)
   ========================================================================== */
.spatial-stage {
  max-width: 680px;
  margin: 0 auto 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.2s var(--ease);
}

.spatial-stage:hover {
  box-shadow: var(--shadow-hover);
}

/* Idle Dropzone State */
.stage-dropzone {
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-card);
  transition: background-color 0.15s ease;
}

.stage-dropzone:hover,
.stage-dropzone.drag-active {
  background: var(--bg-card-subtle);
}

.stage-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--text-main);
  font-size: 1.2rem;
  transition: transform 0.15s var(--ease);
}

.stage-dropzone:hover .stage-icon-wrap {
  transform: translateY(-2px);
  background: var(--text-main);
  color: #fff;
}

.stage-drop-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.stage-drop-subtitle {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 1rem;
}

.stage-drop-subtitle span {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stage-format-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.format-tag {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   2. ACTIVE CONVERSION COCKPIT (Clean File + Target Format Selector)
   ========================================================================== */
.stage-cockpit {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Flow Bar: Source -> Arrow -> Target */
.conversion-flow-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

@media (max-width: 600px) {
  .conversion-flow-bar {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.source-file-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
}

.source-file-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.source-file-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.source-file-meta {
  overflow: hidden;
}

.source-file-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-file-size {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.conversion-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Target Selector Dropdown */
.target-format-control {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.target-format-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.target-select-wrapper {
  position: relative;
}

.target-format-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 1.8rem 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.target-format-select:focus,
.target-format-select:hover {
  border-color: var(--primary);
}

.target-select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sub);
  pointer-events: none;
  font-size: 0.85rem;
}

/* Quick Format Pills Bar */
.quick-pills-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.quick-pills-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-right: 0.25rem;
}

.format-pill {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.format-pill:hover {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: #cbd5e1;
}

.format-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Options Panel */
.stage-options-panel {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.option-label {
  font-size: 0.84rem;
  color: var(--text-sub);
  font-weight: 500;
}

.option-value-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-main);
  font-weight: 600;
}

.spatial-slider {
  width: 100%;
  height: 4px;
  border-radius: var(--radius-pill);
  background: #cbd5e1;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin-top: 0.4rem;
}

.spatial-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Action Buttons */
.cockpit-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-spatial-primary {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.btn-spatial-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-spatial-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-spatial-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-spatial-ghost:hover {
  color: var(--accent-rose);
  border-color: #fecdd3;
  background: #fff1f2;
}

/* Progress Track */
.stage-progress {
  padding: 0.35rem 0;
}

.progress-track {
  width: 100%;
  height: 5px;
  background: var(--border-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: var(--radius-pill);
  transition: width 0.2s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Result Box */
.stage-result {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.result-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: #dcfce7;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.result-filename {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  word-break: break-all;
}

.result-filesize {
  font-size: 0.84rem;
  color: var(--text-sub);
  margin-bottom: 0.85rem;
}

.btn-spatial-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--accent-emerald);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
  width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-spatial-download:hover {
  opacity: 0.92;
}

.btn-reset-stage {
  margin-top: 0.65rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-reset-stage:hover {
  color: var(--text-main);
}

/* ==========================================================================
   3. TOOLS DIRECTORY (Clean & Light Grid)
   ========================================================================== */
.tools-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .tools-filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  background: var(--bg-card-subtle);
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.search-box {
  position: relative;
  min-width: 220px;
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.85rem 0.5rem 2.25rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: var(--primary);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Compact Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 1rem;
  margin-bottom: 2.25rem;
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .search-box {
    width: 100%;
    min-width: 100%;
  }
}

.tool-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.tool-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.category-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  background: var(--bg-card-subtle);
  color: var(--text-sub);
  border: 1px solid var(--border-light);
  letter-spacing: 0.04em;
}

.tool-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.tool-desc {
  font-size: 0.86rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   4. MODAL STUDIO (Light Floating Dialog)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.converter-studio {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
}

.studio-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.studio-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.studio-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.1rem;
}

.studio-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.studio-subtitle {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-top: 0.15rem;
}

.close-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.close-btn:hover {
  background: #fee2e2;
  color: var(--accent-rose);
  border-color: #fca5a5;
}

.studio-body {
  padding: 1.25rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-hover);
  transform: translateY(15px);
  opacity: 0;
  transition: all 0.2s var(--ease);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { border-left: 3px solid var(--accent-emerald); }
.toast.error { border-left: 3px solid var(--accent-rose); }

/* ==========================================================================
   INTERACTIVE CROP & BACKGROUND REMOVER / CHANGER COMPONENTS
   ========================================================================== */

/* Crop Workspace */
.crop-workspace {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.crop-aspect-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.aspect-btn {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.aspect-btn:hover {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: #cbd5e1;
}

.aspect-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.crop-viewport-wrap {
  position: relative;
  background: #090d16;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
  min-height: 220px;
  max-height: 380px;
}

.crop-image-view {
  max-width: 100%;
  max-height: 360px;
  display: block;
  user-select: none;
  pointer-events: none;
  object-fit: contain;
}

.crop-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
}

.crop-box {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #3b82f6;
  box-shadow: 0 0 0 9999px rgba(9, 13, 22, 0.65);
  cursor: move;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
}

.crop-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.handle-nw { top: -5px; left: -5px; cursor: nwse-resize; }
.handle-ne { top: -5px; right: -5px; cursor: nesw-resize; }
.handle-sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.handle-se { bottom: -5px; right: -5px; cursor: nwse-resize; }
.handle-n  { top: -5px; left: calc(50% - 5px); cursor: ns-resize; }
.handle-s  { bottom: -5px; left: calc(50% - 5px); cursor: ns-resize; }
.handle-w  { top: calc(50% - 5px); left: -5px; cursor: ew-resize; }
.handle-e  { top: calc(50% - 5px); right: -5px; cursor: ew-resize; }

.crop-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-sub);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.crop-dim-badge {
  font-family: var(--font-mono);
  color: var(--text-main);
  font-weight: 600;
}

.btn-crop-reset {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.btn-crop-reset:hover {
  text-decoration: underline;
}

/* Background Remover / Changer Workspace */
.bg-workspace {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.bg-preview-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 320px;
  background-image: 
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%), 
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%), 
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  background-color: #f8fafc;
  cursor: crosshair;
}

.bg-preview-img {
  max-width: 100%;
  max-height: 300px;
  display: block;
  object-fit: contain;
}

.bg-color-options {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.bg-color-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bg-color-btn:hover {
  background: var(--bg-card-subtle);
  border-color: #cbd5e1;
}

.bg-color-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.bg-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
}

.custom-color-picker-input {
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  vertical-align: middle;
}

/* ==========================================================================
   MULTI-FILE QUEUE (MERGE PDF / IMAGES TO PDF)
   ========================================================================== */
.multi-file-queue {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.queue-count-badge {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.btn-queue-add {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-queue-add:hover {
  opacity: 0.9;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.75rem;
  font-size: 0.86rem;
}

.queue-item-index {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.queue-item-info {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item-name {
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-size {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.queue-item-btns {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.btn-queue-arrow {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-sub);
}

.btn-queue-arrow:hover:not(:disabled) {
  background: var(--bg-card-subtle);
  color: var(--text-main);
}

.btn-queue-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-queue-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.8rem;
}

.btn-queue-remove:hover {
  color: var(--accent-rose);
}

/* ==========================================================================
   WATERMARK WORKSPACE
   ========================================================================== */
.watermark-workspace {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.spatial-text-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease;
}

.spatial-text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.watermark-preset-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.watermark-chip {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.watermark-chip:hover {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: #cbd5e1;
}

.watermark-preview-sheet {
  position: relative;
  height: 90px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.watermark-preview-sheet::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: #f1f5f9;
  border-radius: 2px;
  box-shadow: 0 8px 0 #f1f5f9, 0 16px 0 #f1f5f9, 0 24px 0 #f1f5f9;
}

.watermark-preview-stamp {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  transition: all 0.15s ease;
}

/* ==========================================================================
   SPLIT PDF WORKSPACE
   ========================================================================== */
.split-workspace {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.split-doc-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-xs);
  font-size: 0.86rem;
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   STUDIO OPTIONS PANEL - SHARED CONTROLS
   ========================================================================== */
.spatial-text-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.spatial-text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.spatial-text-input::placeholder {
  color: var(--text-muted);
}

.spatial-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border-light);
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.spatial-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.35);
  transition: transform 0.1s ease;
}

.spatial-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.spatial-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.35);
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.option-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.option-value-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   SEO CONTENT & INFORMATION SECTIONS
   ========================================================================== */
.seo-section {
  margin: 3.5rem 0;
  padding-top: 1rem;
}

.seo-section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.seo-section-subtitle {
  font-size: 0.98rem;
  color: var(--text-sub);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.25rem;
  line-height: 1.55;
}

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.55;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--border-focus);
}

.faq-summary {
  padding: 1.15rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  content: '−';
  color: var(--primary);
}

.faq-content {
  padding: 0 1.35rem 1.35rem;
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.65;
}

/* Semantic Crawlable Links Directory */
.crawlable-directory-wrap {
  margin-top: 3rem;
  padding: 2.25rem 1.75rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.directory-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.directory-cat-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.4rem;
}

.directory-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.directory-link {
  font-size: 0.88rem;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.55;
}

.directory-link:hover {
  color: var(--primary);
  text-decoration: underline;
}


