:root {
  --bg-main: #0b1120;
  --bg-card: #151e32;
  --bg-card-hover: #1c2742;
  --border: #212d4a;
  --border-light: #2c3b5e;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --green-bg: #064e3b;
  --green-text: #34d399;
  --red-text: #f87171;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border: #cbd5e1;
  --border-light: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --green-bg: #d1fae5;
  --green-text: #059669;
  --red-text: #dc2626;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Bar */
.header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-icon {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.brand h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.brand .badge {
  background: rgba(37, 99, 235, 0.18);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-light);
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Main Container Layout */
.main-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  gap: 1px;
}

@media (max-width: 1024px) {
  .main-container {
    flex-direction: column;
    overflow: auto;
  }
}

/* Left Queue & Preview Column */
.content-area {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

/* Dashed Drop Zone */
.drop-zone {
  border: 2px dashed rgba(37, 99, 235, 0.5);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}

.drop-icon {
  font-size: 3.2rem;
  color: #60a5fa;
  margin-bottom: 12px;
}

.drop-zone h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.drop-zone p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.btn-group {
  display: flex;
  gap: 12px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

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

.support-tag {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 16px;
}

/* Queue List Container */
.queue-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.queue-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-count {
  font-size: 1.1rem;
  font-weight: 700;
}

.summary-stats {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.summary-savings {
  color: var(--green-text);
  font-weight: 600;
}

.summary-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-text-danger {
  background: none;
  border: none;
  color: var(--red-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-text-danger:hover {
  text-decoration: underline;
}

.btn-text-action {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: .85rem;
  font-weight: 650;
  cursor: pointer;
}

.btn-text-action:hover { color: var(--primary-hover); }

/* Queue List Items */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
}

.queue-item-row {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.queue-item-row:hover, .queue-item-row.selected {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--border);
}

.item-main-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.item-filename {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.format-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.item-details-row {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.size-arrow {
  color: var(--text-dim);
}

.savings-pill {
  background: var(--green-bg);
  color: var(--green-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.output-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.btn-item-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.btn-item-remove:hover {
  color: var(--red-text);
}

/* Before / After Split Slider Preview Card */
.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.comparison-title {
  font-size: 1rem;
  font-weight: 700;
}

.comparison-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.split-slider-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
}

@media (max-width: 768px) {
  .split-slider-wrapper {
    flex-direction: column;
  }
}

.split-image-container {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 280px;
  border-radius: 10px;
  overflow: hidden;
  user-select: none;
  background: #000;
  border: 1px solid var(--border);
}

.split-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1120;
}

.split-image.left-overlay {
  clip-path: inset(0 calc(100% - var(--split-percent, 50%)) 0 0);
  z-index: 5;
}

.dropdown-wrapper {
  position: relative;
  flex: 1;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
}

.dropdown-item {
  background: transparent;
  border: none;
  color: var(--text-main);
  text-align: left;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
}

.split-badge {
  position: absolute;
  top: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 10;
}

.split-badge.left { left: 12px; }
.split-badge.right { right: 12px; }

.split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #ffffff;
  cursor: ew-resize;
  z-index: 20;
}

.handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.comparison-stats-side {
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
}

.stat-block label {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.stat-block .val {
  font-weight: 700;
  font-size: 0.95rem;
}

.stat-block .dim {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Right Conversion Settings Sidebar */
.sidebar {
  width: 440px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

@media (max-width: 1024px) {
  .sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.settings-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-label {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pill / Segmented Selector */
.pill-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.pill-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

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

.pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.format-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Quality Slider Container */
.quality-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quality-slider {
  width: 100%;
  height: 6px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.checkbox-info {
  display: flex;
  flex-direction: column;
}

.checkbox-info .sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.textarea-box {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  font-family: monospace;
  font-size: 0.8rem;
  resize: vertical;
  min-height: 100px;
}

/* Primary Big Convert Button */
.btn-convert-main {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-convert-main:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-convert-main:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-convert-sub {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
}

/* Modal Windows */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 580px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
}

.hidden {
  display: none !important;
}

/* 2026 interface refresh -------------------------------------------------- */
:root {
  --bg-main: #070b14;
  --bg-card: #0e1524;
  --bg-card-hover: #141e31;
  --surface-soft: #111a2b;
  --border: #1d293c;
  --border-light: #30415e;
  --primary: #6d5dfc;
  --primary-hover: #8174ff;
  --primary-soft: rgba(109, 93, 252, .13);
  --cyan: #45d6d0;
  --text-main: #f4f7fb;
  --text-muted: #98a6ba;
  --text-dim: #65748a;
  --green-bg: rgba(31, 193, 139, .12);
  --green-text: #49d6a4;
  --red-text: #fb7185;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

[data-theme="light"] {
  --bg-main: #f3f5fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f8fc;
  --surface-soft: #f7f8fc;
  --border: #e1e6ef;
  --border-light: #cbd3df;
  --primary: #5b4cf0;
  --primary-hover: #493bd2;
  --primary-soft: rgba(91, 76, 240, .09);
  --text-main: #142033;
  --text-muted: #5d6b7e;
  --text-dim: #8490a1;
  --green-bg: #e8f9f2;
  --green-text: #12825d;
  --shadow: 0 18px 45px rgba(31, 42, 68, .08);
}

html { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

body {
  background:
    radial-gradient(circle at 28% -10%, rgba(109, 93, 252, .10), transparent 30rem),
    var(--bg-main);
  letter-spacing: -.01em;
}

button, input, textarea { font: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(109, 93, 252, .32);
  outline-offset: 2px;
}

.header {
  height: 76px;
  padding: 0 28px;
  background: rgba(14, 21, 36, .88);
  border-bottom-color: rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 50;
}

[data-theme="light"] .header { background: rgba(255, 255, 255, .9); }
.brand { gap: 11px; }
.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}
.brand-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(25, 93, 226, .23)); }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy h1 { font-size: 1.05rem; letter-spacing: -.02em; }
.brand-copy > span { color: var(--text-dim); font-size: .7rem; letter-spacing: 0; }
.brand .badge {
  padding: 3px 7px;
  border-radius: 6px;
  color: #bcb5ff;
  border-color: rgba(109, 93, 252, .25);
  background: var(--primary-soft);
  font-size: .62rem;
  letter-spacing: .08em;
}
.privacy-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-right: 14px;
  color: var(--text-muted);
  font-size: .76rem;
  border-right: 1px solid var(--border);
}
.privacy-status > span { width: 7px; height: 7px; border-radius: 50%; background: var(--green-text); box-shadow: 0 0 0 4px var(--green-bg); }
.header .btn-secondary { padding: 8px 12px; background: transparent; }
.header .btn-secondary > span { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--border-light); border-radius: 50%; font-size: .68rem; }
.btn-icon { border-radius: 10px; background: var(--surface-soft); }

.main-container { gap: 0; overflow: auto; }
.content-area { padding: 34px clamp(22px, 3vw, 48px); gap: 24px; min-width: 0; }
.drop-zone {
  min-height: 430px;
  padding: 52px 28px;
  border: 1.5px dashed rgba(129, 116, 255, .55);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(109, 93, 252, .10), transparent 15rem),
    rgba(14, 21, 36, .62);
  box-shadow: inset 0 0 0 1px rgba(109, 93, 252, .025);
}
[data-theme="light"] .drop-zone { background: radial-gradient(circle at 50% 42%, rgba(109, 93, 252, .07), transparent 15rem), rgba(255,255,255,.72); }
.drop-zone:hover, .drop-zone.drag-over {
  transform: translateY(-2px);
  border-color: #9287ff;
  background-color: var(--primary-soft);
  box-shadow: 0 24px 70px rgba(63, 52, 170, .14), inset 0 0 0 1px rgba(129,116,255,.09);
}
.drop-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 0 19px;
  border-radius: 20px;
  color: #c0baff;
  background: linear-gradient(145deg, rgba(129,116,255,.2), rgba(69,214,208,.08));
  border: 1px solid rgba(129,116,255,.28);
  box-shadow: 0 12px 30px rgba(49, 41, 138, .18);
}
.drop-icon svg { width: 33px; height: 33px; }
.free-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 6px 10px;
  border: 1px solid rgba(73, 214, 164, .25);
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green-text);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.step-kicker { color: #9389ff; font-size: .66rem; font-weight: 800; letter-spacing: .14em; }
.drop-zone h2 { font-size: clamp(1.65rem, 2.7vw, 2.2rem); letter-spacing: -.04em; margin: 9px 0 7px; }
.drop-zone p { margin-bottom: 27px; font-size: .93rem; }
.btn-group { gap: 10px; }
.btn-primary, .btn-secondary { border-radius: 10px; min-height: 42px; }
.btn-primary {
  background: linear-gradient(135deg, #7364ff, #5647e5);
  box-shadow: 0 9px 24px rgba(82, 68, 224, .25);
  padding: 10px 18px;
}
.btn-primary:hover { background: linear-gradient(135deg, #8477ff, #6557ed); transform: translateY(-1px); }
.drop-zone .btn-secondary { padding: 10px 18px; background: var(--surface-soft); }
.support-tag { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.support-tag span { padding: 4px 7px; border: 1px solid var(--border); background: var(--surface-soft); border-radius: 6px; color: var(--text-dim); font-size: .65rem; font-weight: 700; letter-spacing: .05em; }
.local-note { margin-top: 13px; color: var(--text-dim); font-size: .73rem; }
.local-note span { color: var(--green-text); margin-right: 4px; }

.queue-container, .comparison-card {
  border-radius: 18px;
  border-color: var(--border);
  background: rgba(14, 21, 36, .82);
  box-shadow: var(--shadow);
}
[data-theme="light"] .queue-container, [data-theme="light"] .comparison-card { background: rgba(255,255,255,.92); }
.queue-container { padding: 20px; }
.queue-item-row { border-radius: 12px; background: var(--surface-soft); padding: 12px; }
.queue-item-row:hover, .queue-item-row.selected { transform: translateX(2px); border-color: rgba(129,116,255,.72); background: var(--primary-soft); }
.item-thumb { width: 58px; height: 58px; border-radius: 10px; }
.item-filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 32vw; }
.comparison-card { padding: 22px; }
.split-image-container { max-width: none; flex: 1; height: clamp(280px, 39vh, 440px); border-radius: 14px; }
.comparison-stats-side { width: 150px; padding: 8px 0; gap: 18px; }
.split-handle { width: 2px; background: rgba(255,255,255,.95); }
.handle-circle { width: 38px; height: 38px; color: #4f46d8; box-shadow: 0 6px 22px rgba(0,0,0,.35); }

.sidebar {
  width: min(430px, 36vw);
  min-width: 390px;
  padding: 30px 26px 24px;
  gap: 14px;
  background: rgba(14, 21, 36, .76);
  border-left-color: rgba(255,255,255,.06);
  box-shadow: -16px 0 50px rgba(0, 0, 0, .10);
}
[data-theme="light"] .sidebar { background: rgba(255,255,255,.76); }
.sidebar-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 8px; }
.sidebar-title { font-size: 1.25rem; letter-spacing: -.03em; margin-top: 5px; }
.recommended-chip { padding: 5px 8px; border-radius: 999px; background: var(--green-bg); color: var(--green-text); font-size: .68rem; font-weight: 700; }
.settings-card { padding: 15px; gap: 12px; border-radius: 13px; background: rgba(7,11,20,.28); }
[data-theme="light"] .settings-card { background: rgba(243,245,250,.66); }
.settings-card:hover { border-color: var(--border-light); }
.section-label { font-size: .83rem; letter-spacing: -.01em; }
.section-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: var(--primary-soft); color: #9389ff; font-size: .58rem; letter-spacing: .02em; }
.pill-selector { background: rgba(4,7,13,.35); border-radius: 10px; padding: 4px; }
[data-theme="light"] .pill-selector { background: rgba(225,230,239,.65); }
.pill-btn { min-height: 34px; border-radius: 7px; padding: 7px 8px; font-size: .76rem; }
.pill-btn.active { background: #6859ee; box-shadow: 0 5px 16px rgba(79,70,216,.22); }
.format-desc { line-height: 1.45; font-size: .74rem; }
.quality-slider { height: 4px; }
.checkbox-row { line-height: 1.35; }
.checkbox-row input[type="checkbox"] { width: 17px; height: 17px; }
.textarea-box, #customWidthVal, #seqBaseText { border-radius: 9px !important; background: var(--surface-soft) !important; color: var(--text-main) !important; }
.convert-footer { margin-top: 5px; position: sticky; bottom: -24px; padding: 10px 0 0; background: linear-gradient(transparent, var(--bg-card) 16%); z-index: 5; }
.btn-convert-main { min-height: 62px; border-radius: 13px; background: linear-gradient(135deg, #7465ff, #5042d7); box-shadow: 0 12px 28px rgba(76,61,210,.28); }
.btn-convert-main > span:first-child { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-convert-main b { font-size: 1.15rem; transition: transform .2s ease; }
.btn-convert-main:hover:not(:disabled) { background: linear-gradient(135deg, #8477ff, #5e50e3); box-shadow: 0 16px 34px rgba(76,61,210,.36); }
.btn-convert-main:hover:not(:disabled) b { transform: translateX(3px); }
.btn-convert-main:disabled { background: var(--surface-soft); border: 1px solid var(--border); color: var(--text-dim); opacity: 1; }
.creator-credit { text-align: center; margin-top: 10px; font-size: .7rem; color: var(--text-dim); }
.modal-card { border-radius: 20px; box-shadow: 0 28px 90px rgba(0,0,0,.45); }

@media (max-width: 1080px) {
  .main-container { flex-direction: column; }
  .content-area { overflow: visible; }
  .sidebar { width: 100%; min-width: 0; border-left: 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar-heading, .convert-footer { grid-column: 1 / -1; }
  .convert-footer { position: static; background: none; }
}

@media (max-width: 720px) {
  .header { height: 68px; padding: 0 16px; }
  .brand-copy > span, .brand .badge, .privacy-status, .header .btn-secondary { display: none; }
  .content-area { padding: 18px 14px; }
  .drop-zone { min-height: 390px; padding: 38px 18px; border-radius: 18px; }
  .btn-group { flex-direction: column; width: min(100%, 270px); }
  .btn-group button { justify-content: center; width: 100%; }
  .sidebar { display: flex; padding: 24px 14px; }
  .queue-summary-header, .summary-left { align-items: flex-start; flex-direction: column; }
  .summary-right { width: 100%; justify-content: space-between; }
  .queue-item-row { flex-wrap: wrap; gap: 10px; }
  .item-main-info { min-width: calc(100% - 84px); }
  .item-filename { max-width: 55vw; }
  .item-details-row { gap: 7px; flex-wrap: wrap; }
  .output-pill { margin-left: 68px; }
  .split-slider-wrapper { align-items: stretch; }
  .comparison-stats-side { width: 100%; flex-direction: row; justify-content: space-between; }
  .comparison-sub { display: block; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Search-friendly product content --------------------------------------- */
.seo-section {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-main), var(--bg-card));
  padding: 86px 24px 72px;
}

.seo-shell { width: min(1120px, 100%); margin: 0 auto; }
.seo-intro { max-width: 760px; margin-bottom: 38px; }
.seo-intro h2, .seo-two-column h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.seo-intro p, .seo-two-column p, .seo-feature-grid p, .faq-block p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.72;
}
.seo-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 70px; }
.seo-feature-grid article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}
.seo-card-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 10px; background: var(--primary-soft); color: #9389ff; font-weight: 800; }
.seo-feature-grid h3 { margin-bottom: 9px; font-size: 1rem; }
.seo-feature-grid p { font-size: .84rem; }
.seo-two-column { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 90px); align-items: start; }
.seo-two-column h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.seo-check-list { display: grid; gap: 11px; margin-top: 24px; list-style: none; }
.seo-check-list li { position: relative; padding-left: 27px; color: var(--text-muted); font-size: .88rem; }
.seo-check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green-text); font-weight: 800; }
.faq-block details { border-bottom: 1px solid var(--border); }
.faq-block summary { padding: 17px 30px 17px 0; color: var(--text-main); font-size: .92rem; font-weight: 700; cursor: pointer; position: relative; list-style: none; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: "+"; position: absolute; right: 4px; color: var(--primary-hover); font-size: 1.2rem; font-weight: 500; }
.faq-block details[open] summary::after { content: "−"; }
.faq-block details p { padding: 0 30px 17px 0; font-size: .84rem; }
.site-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 22px; padding: 22px 24px; border-top: 1px solid var(--border); background: var(--bg-card); color: var(--text-dim); font-size: .75rem; }
.site-footer span:first-child { color: var(--text-main); font-weight: 700; }
.site-footer a { color: #9389ff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .seo-section { padding: 60px 18px 52px; }
  .seo-feature-grid, .seo-two-column { grid-template-columns: 1fr; }
  .seo-feature-grid { margin-bottom: 54px; }
  .seo-intro h2 { font-size: 2rem; }
}
